/* The research survey's own look: plain and neutral, nothing borrowed from
   the main site, and no fonts fetched from anywhere else. */

:root {
  --bg: #F5F4EF; --surface: #FFFFFF; --surface-2: #ECEBE5; --text: #1C2321; --muted: #56605B;
  --line: #D3D6D1; --line-soft: #E3E5E0; --brand: #1E5A55; --on-brand: #FFFFFF;
  --brand-soft: #E3EEEC; --error: #A3362B; --bar-cash: #A9B0AB; --bar-grow: #1E5A55;
  --radius: 14px; --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111514; --surface: #1A1F1E; --surface-2: #232A28; --text: #E8ECEA; --muted: #A5AEAA;
    --line: #36403D; --line-soft: #2B3331; --brand: #7FC4BA; --on-brand: #0D1A18;
    --brand-soft: #1D2E2B; --error: #F0938A; --bar-cash: #5E6864; --bar-grow: #7FC4BA;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif; }
[lang="ar"] body, html[lang="ar"] body { line-height: 1.7; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
.top { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.langs { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.langs__btn { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.langs__btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--text); }

.title { font-size: 26px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
html[lang="ar"] .title { letter-spacing: 0; }
.lede { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.note-strip { font-size: 13.5px; margin: 0 0 24px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); }

.question { margin: 0 0 22px; }
.question__text { font-weight: 650; font-size: 16px; margin: 0 0 8px; display: block; }
.question__note { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }
.question.is-missing .question__text { color: var(--error); }
.concept { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--surface); font-size: 14.5px; }
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px;
  padding: 10px 14px; border: 1.5px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface);
  text-align: start; cursor: pointer; font-size: 15px; }
.option__tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.option--many .option__tick { border-radius: 6px; }
.option[aria-checked="true"], .option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.option[aria-checked="true"] .option__tick, .option[aria-pressed="true"] .option__tick { border-color: var(--brand); background: var(--brand); }
.option[aria-checked="true"] .option__tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-brand); }
.option--many[aria-pressed="true"] .option__tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-brand);
  border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
@media (hover: hover) and (pointer: fine) { .option:hover { border-color: var(--line); } }

.comment { width: 100%; min-height: 92px; padding: 12px 14px; font-size: 15px; resize: vertical;
  background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--radius-sm); }
.comment:focus { outline: none; border-color: var(--brand); }

.btn { display: block; width: 100%; min-height: 50px; padding: 12px 18px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 16px; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: default; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--ghost { background: transparent; border-color: var(--line); }
.linkbtn { display: block; margin: 6px auto 0; min-height: 44px; padding: 8px 12px; background: none; border: 0;
  color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.count { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.error { color: var(--error); font-size: 14px; text-align: center; margin: 10px 0 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; }
.card--quiet { background: var(--surface-2); border-color: transparent; }
.card__title { font-size: 17px; margin: 0 0 6px; }
.card__text { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }
.growth__lead { font-size: 15px; margin: 0 0 14px; }
.growth__row { margin: 0 0 12px; }
/* The label and its figure share a line when they fit; a long one puts the
   figure on its own line, at the end. */
.growth__label { display: flex; flex-wrap: wrap; column-gap: 10px; font-size: 14px; margin: 0 0 6px; }
.growth__label > :first-child { flex: 1 1 12em; }
.growth__value { margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.growth__bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.growth__fill { height: 100%; border-radius: 6px; background: var(--bar-cash); }
.growth__fill--grow { background: var(--bar-grow); }
.growth__note { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.tip__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin: 0 0 4px; }
html[lang="ar"] .tip__label { text-transform: none; letter-spacing: 0; }
.tip__text { margin: 0; font-size: 15px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

.field { display: block; margin: 0 0 12px; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field__input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; }
.field__input:focus { outline: none; border-color: var(--brand); }
html[lang="ar"] .field__input { text-align: right; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 0 0 14px; cursor: pointer; }
.tick input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.kept { margin: 0; font-weight: 600; color: var(--brand); }
.actions { margin: 18px 0 0; }

.privacy { margin: 28px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); font-size: 13.5px; }
.privacy summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.privacy p, .privacy ul { margin: 8px 0 0; color: var(--muted); }
.privacy ul { padding-inline-start: 20px; }
.privacy a { color: var(--brand); }

@media (prefers-reduced-motion: no-preference) {
  .growth__fill { transition: width .6s cubic-bezier(.23, 1, .32, 1); }
}
