/* NS Tax-Exemption Calculator – UI
   Luxury-legal: navy + gold, serif headings, cream paper. RTL-first (logical properties only). */

:root {
  --navy: #0A1128;
  --navy-2: #0F1A3A;
  --navy-3: #18264f;
  --gold: #C5A059;
  --gold-d: #8B6914;
  --gold-m: #B08D48;
  --gold-l: #E8D5A3;
  --gold-xl: #F4EBD6;
  --cream: #F8F3EB;
  --sand: #e0d6cc;
  --paper: #FFFDF9;
  --ink: #0A1128;
  --slate: #2F3C4C;
  --muted: #5A6374;
  --line: #E7DDCC;
  --ok: #24704F;
  --ok-bg: #E7F2EC;
  --warn: #8B6914;
  --err: #B42318;
  --wa: #25D366;

  --f-head: 'Noto Sans Hebrew', 'Assistant', 'Segoe UI', sans-serif;
  --f-body: 'Noto Sans Hebrew', 'Assistant', 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(10, 17, 40, .05), 0 6px 18px -10px rgba(10, 17, 40, .18);
  --shadow-2: 0 1px 2px rgba(10, 17, 40, .06), 0 22px 48px -24px rgba(10, 17, 40, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
  --z-header: 30;
  --z-sheet: 50;
  --z-dialog: 60;
}
html[lang="ar"] {
  --f-head: 'Noto Sans Arabic', 'Noto Sans Hebrew', sans-serif;
  --f-body: 'Noto Sans Arabic', 'Noto Sans Hebrew', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.25; margin: 0; font-weight: 700; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  background: rgba(10, 17, 40, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(197, 160, 89, .22);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 25%, rgba(197,160,89,.28), transparent 60%), var(--navy-2);
  color: var(--gold); font-family: var(--f-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; color: #fff; white-space: nowrap; }
.brand-tag { font-size: .72rem; color: var(--gold-l); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(197,160,89,.3);
}
.lang-switch button {
  border: 0; background: transparent; color: rgba(255,255,255,.75);
  padding: 6px 12px; min-height: 34px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }
.lang-switch button:not([aria-pressed="true"]):hover { color: #fff; }
.lang-switch button[data-lang="ar"] { font-family: 'Noto Sans Arabic', sans-serif; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding-inline: 10px; border-radius: 999px;
  border: 1px solid rgba(197,160,89,.3); background: transparent; color: var(--gold-l);
  font-size: .85rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s;
}
.icon-btn:hover { background: rgba(197,160,89,.14); color: #fff; }
.icon-btn .lbl { display: none; }
@media (min-width: 720px) { .icon-btn .lbl { display: inline; } }
body[data-screen="intro"] .flow-only { display: none !important; }
@media (max-width: 420px) { .brand-tag { display: none; } }

/* ------------------------------------------------------------------ progress */
.progress {
  position: sticky; top: var(--header-h); z-index: calc(var(--z-header) - 1);
  background: rgba(248, 243, 235, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
body[data-screen="intro"] .progress { display: none; }
.progress-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px 0; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .82rem; }
.progress-sec { font-weight: 600; color: var(--ink); }
.progress-step { color: var(--muted); }
.progress-track { height: 3px; margin-top: 8px; background: var(--sand); overflow: hidden; border-radius: 3px 3px 0 0; }
.progress-fill {
  height: 100%; width: 100%;
  background: linear-gradient(270deg, var(--gold-m), var(--gold) 55%, var(--gold-l));
  transform-origin: right center; transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.progress-dots { display: flex; gap: 6px; }

/* ------------------------------------------------------------------ stage + screens */
.stage { position: relative; min-height: calc(100vh - var(--header-h)); outline: none; }
.screen { width: 100%; }
.screen.leaving { pointer-events: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, box-shadow .25s var(--ease), opacity .2s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-gold {
  color: var(--navy);
  background: linear-gradient(135deg, #DCBE7F 0%, var(--gold) 45%, var(--gold-m) 100%);
  box-shadow: 0 10px 28px -12px rgba(197,160,89,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { box-shadow: 0 14px 34px -12px rgba(197,160,89,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-navy { color: #fff; background: var(--navy); box-shadow: 0 10px 24px -14px rgba(10,17,40,.7); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { color: var(--slate); background: transparent; border-color: transparent; padding: 0 16px; }
.btn-ghost:hover { background: rgba(10,17,40,.05); }
.btn-outline { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold-m); background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn-outline-light:hover { border-color: var(--gold); background: rgba(197,160,89,.12); }
.btn-wa { color: #fff; background: #1FA855; }
.btn-wa:hover { background: #1b964c; }
.btn-lg { --bh: 58px; padding: 0 32px; font-size: 1.07rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .42; box-shadow: none; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ INTRO */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(197,160,89,.20), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(40,62,130,.55), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero::after { /* grain */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-geo { position: absolute; z-index: -1; inset-inline-end: -180px; top: -120px; width: 760px; max-width: none; opacity: .5; pointer-events: none; }
.hero-geo circle, .hero-geo path { fill: none; stroke: var(--gold); stroke-width: .6; }
.hero-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .8s var(--ease);
}
.hero-img.is-loaded { opacity: .22; }
.hero-inner {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) 16px clamp(48px, 8vw, 104px);
  display: grid; gap: 40px; align-items: center;
}
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; letter-spacing: .02em; color: var(--gold-l); font-weight: 500;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff; margin-top: 18px;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em;
}
.hero h1 em {
  display: block; white-space: nowrap;
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, #F1DDA9 0%, var(--gold) 45%, #E9CF8F 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { margin-top: 20px; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: rgba(255,255,255,.78); max-width: 60ch; line-height: 1.8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero-resume { margin-top: 14px; }
.hero-resume button { background: none; border: 0; color: var(--gold-l); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; font-size: .95rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 36px; }
@media (min-width: 640px) { .badges { display: flex; flex-wrap: nowrap; gap: 28px; } }
.badge { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.85); white-space: nowrap; }
.badge .ico { color: var(--gold); }

.hero-card {
  position: relative; border-radius: 28px; padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(197,160,89,.35);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  max-width: 440px; justify-self: center; width: 100%;
}
.hero-card-top { text-align: center; }
.hero-card-title { font-family: var(--f-head); font-size: 1.1rem; color: #fff; }
.hero-card-sub { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero-card .seal {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--gold); color: var(--gold); background: rgba(197,160,89,.08);
}
.hero-gauge { margin: 18px auto 4px; width: 100%; max-width: 320px; }
.gauge.hero-gauge .g-track { stroke: rgba(255,255,255,.1); }
.gauge.hero-gauge .g-fill { stroke: url(#heroGold); stroke-dasharray: 0 100; animation: heroFill 2.2s .6s var(--ease) forwards; }
@keyframes heroFill { to { stroke-dasharray: 78 100; } }
.hero-card-rows { display: grid; gap: 10px; margin-top: 10px; }
.hero-row { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255,255,255,.82); }
.hero-row .bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.hero-row .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, var(--gold-m), var(--gold-l)); transform-origin: right; transform: scaleX(0); animation: grow 1.4s var(--ease) forwards; }
.hero-row:nth-child(2) .bar i { animation-delay: .25s; }
.hero-row:nth-child(3) .bar i { animation-delay: .45s; }
@keyframes grow { to { transform: scaleX(1); } }
.hero-row .ico { color: var(--gold); }
.hero-chips { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(197,160,89,.3); font-size: .82rem; color: var(--gold-l); text-align: center; }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 16px 0; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(270deg, var(--gold), transparent); opacity: .6; }
.who-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .who-grid { grid-template-columns: repeat(3, 1fr); } }
.who-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-l); }
.who-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 16px; }
.who-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.who-card p { color: var(--muted); }

.how { display: grid; gap: 0; counter-reset: how; position: relative; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.how-step { position: relative; padding: 8px 0 28px; padding-inline-start: 72px; }
@media (min-width: 800px) { .how-step { padding: 0; padding-top: 84px; } }
.how-num {
  position: absolute; inset-inline-start: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-head); font-size: 1.5rem; font-weight: 700; color: var(--gold-d);
  background: var(--paper); border: 1px solid var(--gold-l); box-shadow: 0 0 0 6px var(--cream);
}
.how-step:not(:last-child)::before {
  content: ''; position: absolute; inset-inline-start: 27px; top: 60px; bottom: 0; width: 1px;
  background: repeating-linear-gradient(180deg, var(--gold-m) 0 4px, transparent 4px 9px); opacity: .6;
}
@media (min-width: 800px) {
  .how-step:not(:last-child)::before { inset-inline-start: 64px; inset-inline-end: -20px; top: 28px; bottom: auto; width: auto; height: 1px; background: repeating-linear-gradient(270deg, var(--gold-m) 0 4px, transparent 4px 9px); }
}
.how-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.how-step p { color: var(--muted); }

.what {
  display: grid; gap: 28px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
@media (min-width: 900px) { .what { grid-template-columns: 1.3fr 1fr; } }
.what::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: linear-gradient(180deg, var(--gold-l), var(--gold-m)); }
.what h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 12px; }
.what p { color: var(--slate); line-height: 1.85; }
.what-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.what-points li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.what-points .ico { color: var(--gold-d); }

.cta-band {
  margin: clamp(56px, 8vw, 96px) auto 0; max-width: 1180px; padding: 0 16px;
}
.cta-band-inner {
  border-radius: 28px; padding: clamp(28px, 5vw, 52px);
  background: radial-gradient(600px 300px at 90% 0%, rgba(197,160,89,.25), transparent 60%), var(--navy);
  color: #fff; display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden;
}
@media (min-width: 820px) { .cta-band-inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 6px; }

.disclaimer-box {
  max-width: 1180px; margin: 40px auto 0; padding: 0 16px;
}
.disclaimer-box > div { display: flex; gap: 12px; padding: 18px 20px; border-radius: 16px; background: #F2EBDD; border: 1px solid var(--line); color: var(--slate); font-size: .9rem; line-height: 1.7; }
.disclaimer-box .ico { color: var(--gold-d); margin-top: 3px; }
.sitefoot { max-width: 1180px; margin: 0 auto; padding: 36px 16px calc(36px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.sitefoot a { color: var(--gold-d); }

/* reveal animation (intro) */
.rv { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.io { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.io.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ FLOW layout */
.flow {
  max-width: 1180px; margin: 0 auto;
  padding: 28px 16px calc(96px + env(safe-area-inset-bottom));
  display: grid; gap: 20px; align-items: start;
}
@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 40px; }
  .flow--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-1);
}
.qcard { position: relative; }
.qmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.chip-meta {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); font-size: .8rem; color: var(--slate); font-weight: 500;
}
.chip-meta .ico { color: var(--gold-d); width: 1.05em; height: 1.05em; }
.chip-meta--muted { background: transparent; color: var(--muted); }
.qtitle { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 1.95rem); line-height: 1.3; outline: none; }
.qhint { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.qbody { margin-top: 24px; }
.cond-illus { width: 100%; max-height: 160px; object-fit: cover; border-radius: 16px; margin-bottom: 18px; border: 1px solid var(--line); }
.qnav { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.qnav .grow { flex: 1; }
.qnav .btn-ghost .ico { color: var(--gold-d); }
.need-msg {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--err);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; min-height: 1.4em;
}
.need-msg.show { opacity: 1; transform: none; }
.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.resume-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between;
  margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: var(--gold-xl); border: 1px solid var(--gold-l);
  font-size: .9rem; color: var(--ink);
}
.resume-bar .btn { --bh: 40px; padding: 0 16px; font-size: .9rem; }

/* options */
.opts { display: grid; gap: 10px; }
@media (min-width: 680px) { .opts--grid { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 58px; padding: 14px 18px; text-align: start;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--gold-m); box-shadow: 0 6px 18px -12px rgba(139,105,20,.45); }
.opt:active { transform: scale(.992); }
.opt[aria-checked="true"] { border-color: var(--gold); background: #FCF7EC; box-shadow: 0 0 0 3px rgba(197,160,89,.2); }
.opt-mark {
  width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #CDBFA8; background: #fff;
  display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s;
}
.opt--check .opt-mark { border-radius: 7px; }
.opt-mark .ico { width: 15px; height: 15px; stroke-width: 3; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.opt[aria-checked="true"] .opt-mark { background: var(--gold); border-color: var(--gold); }
.opt[aria-checked="true"] .opt-mark .ico { transform: scale(1); }
.opt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-label { font-weight: 500; color: var(--ink); line-height: 1.45; }
.opt-sub { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.opt--unknown { border-style: dashed; background: transparent; }
.opt--unknown .opt-label { color: var(--slate); font-weight: 400; }
.opt--none .opt-label { color: var(--slate); }
.opts-hint { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.opts-hint .ico { color: var(--gold-d); }

/* gender cards */
.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gcard {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px; font-weight: 600; font-size: 1.05rem; color: var(--ink);
  transition: border-color .2s, box-shadow .25s var(--ease), transform .2s var(--ease), background .2s;
}
.gcard:hover { border-color: var(--gold-m); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.gcard[aria-checked="true"] { border-color: var(--gold); background: #FCF7EC; box-shadow: 0 0 0 3px rgba(197,160,89,.2); }
.gcard .gico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.gcard .gico .ico { width: 30px; height: 30px; }

/* picker */
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: start;
  padding: 14px; min-height: 112px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, box-shadow .25s var(--ease), background .2s, transform .15s var(--ease);
}
.pcard:hover { border-color: var(--gold-m); box-shadow: 0 8px 20px -14px rgba(139,105,20,.5); }
.pcard:active { transform: scale(.985); }
.pcard[aria-checked="true"] { border-color: var(--gold); background: #FCF7EC; box-shadow: 0 0 0 3px rgba(197,160,89,.2); }
.pcard-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--navy); transition: background .25s, color .25s; position: relative; z-index: 1; }
.pcard[aria-checked="true"] .pcard-ico { background: var(--navy); color: var(--gold); }
.pcard-title { font-weight: 600; color: var(--ink); line-height: 1.35; font-size: .97rem; position: relative; z-index: 1; }
.pcard-sub { font-size: .8rem; color: var(--muted); line-height: 1.4; position: relative; z-index: 1; }
.pcard-check {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); z-index: 2;
}
.pcard-check .ico { width: 13px; height: 13px; stroke-width: 3; }
.pcard[aria-checked="true"] .pcard-check { transform: scale(1); }
.pick-none { margin-top: 12px; }
.pick-count { font-size: .85rem; color: var(--muted); }

/* number */
.num { display: flex; align-items: center; gap: 12px; }
.num-btn {
  width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.num-btn:hover { border-color: var(--gold-m); background: var(--cream); }
.num-field { position: relative; flex: 0 1 200px; }
.num-input {
  width: 100%; height: 64px; text-align: center; font-size: 1.7rem; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; direction: ltr;
  transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield;
}
.num-input::-webkit-outer-spin-button, .num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197,160,89,.18); }
.num-unit { color: var(--muted); font-weight: 500; }
.bmi-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .9rem; animation: pop .35s cubic-bezier(.3,1.5,.5,1);
}
.bmi-chip b { color: var(--gold); font-size: 1.05rem; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* text */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field .req { color: var(--gold-d); }
.input, .textarea, .select {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.02rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197,160,89,.18); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input[type="tel"], .input[type="email"] { direction: ltr; text-align: right; }
.field-err { color: var(--err); font-size: .85rem; min-height: 1.2em; }

/* combobox */
.combo { position: relative; }
.combo-input { padding-inline-start: 46px; }
.combo-search { position: absolute; inset-inline-start: 16px; top: 17px; color: var(--muted); pointer-events: none; }
.combo-list {
  position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 10; max-height: 300px; overflow: auto; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2);
}
.combo-list li { padding: 11px 14px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--cream); }
.combo-list li.is-chosen { font-weight: 600; color: var(--gold-d); }
.combo-empty { color: var(--muted); cursor: default !important; }
.combo-chosen { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .92rem; color: var(--ok); }

/* eyes / ears */
.pair { display: grid; gap: 22px; }
.pair-row { display: grid; gap: 10px; }
.pair-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.pair-label .ico { color: var(--gold-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 500;
  transition: background .2s, color .2s, border-color .2s, transform .12s;
}
.chip:hover { border-color: var(--gold-m); }
.chip[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--unk { border-style: dashed; color: var(--muted); }
.chip--unk[aria-checked="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }

/* ------------------------------------------------------------------ explain panel */
.explain {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(500px 260px at 100% 0%, rgba(197,160,89,.16), transparent 60%), var(--navy);
  color: rgba(255,255,255,.82); box-shadow: var(--shadow-2);
}
@media (min-width: 1024px) { .explain { position: sticky; top: calc(var(--header-h) + 64px); } }
.explain::before {
  content: ''; position: absolute; inset-inline-start: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(197,160,89,.25); box-shadow: 0 0 0 22px rgba(197,160,89,.04), 0 0 0 44px rgba(197,160,89,.03); pointer-events: none;
}
.explain-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 20px; background: none; border: 0; color: #fff; font-weight: 600; text-align: start;
}
.explain-toggle .ico { color: var(--gold); }
.explain-toggle .chev { margin-inline-start: auto; transition: transform .3s var(--ease); }
.explain-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.explain-body { padding: 0 22px 24px; display: none; position: relative; }
.explain-body.open { display: block; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1024px) {
  .explain-toggle { display: none; }
  .explain-body { display: block; padding: 28px; }
}
.ex-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .03em; }
.ex-eyebrow .ico { width: 1.1em; height: 1.1em; }
.ex-title { color: #fff; font-size: 1.22rem; margin-top: 10px; }
.ex-body { margin-top: 10px; line-height: 1.75; font-size: .95rem; color: rgba(255,255,255,.78); }
.ladder { list-style: none; margin: 18px 0 0; padding: 0; position: relative; display: grid; gap: 2px; }
.ladder li {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; font-size: .9rem; color: rgba(255,255,255,.66); transition: color .3s var(--ease);
}
.ladder li.active { color: #fff; }
.l-pct { font-weight: 700; color: var(--gold-l); white-space: nowrap; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ladder li.active .l-pct { color: var(--gold); }
.ladder-ind {
  position: absolute; inset-inline: 0; top: 0; height: 40px; z-index: 0; border-radius: 10px; pointer-events: none;
  background: rgba(197,160,89,.16); border: 1px solid rgba(197,160,89,.55); opacity: 0;
  transition: transform .4s var(--ease), height .4s var(--ease), opacity .25s;
}
.ex-readout { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(197,160,89,.14); color: #fff; font-weight: 600; display: none; }
.ex-readout.show { display: block; animation: pop .35s var(--ease); }
.ex-tip { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border-inline-start: 3px solid var(--gold); font-size: .9rem; line-height: 1.65; }
.ex-tip b { color: var(--gold-l); display: block; margin-bottom: 2px; font-size: .82rem; }
.ex-src { margin-top: 16px; font-size: .78rem; color: rgba(255,255,255,.48); line-height: 1.5; }

/* ------------------------------------------------------------------ answers navigator */
.nav-fab {
  position: fixed; z-index: var(--z-header); inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--navy); color: #fff; border: 1px solid rgba(197,160,89,.45); box-shadow: 0 14px 30px -12px rgba(10,17,40,.6); font-weight: 600; font-size: .92rem;
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-fab .ico { color: var(--gold); }
.nav-fab .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .75rem; display: grid; place-items: center; }
body[data-screen="intro"] .nav-fab, body[data-hidenav="1"] .nav-fab { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: var(--z-sheet); background: rgba(10,17,40,.45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: calc(var(--z-sheet) + 1); inset-inline: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(10,17,40,.5);
  transform: translateY(105%); transition: transform .38s var(--ease); visibility: hidden;
}
.sheet.open { transform: none; visibility: visible; }
@media (min-width: 1024px) {
  .sheet { inset-inline: auto 0; inset-inline-end: auto; inset-inline-start: 0; top: 0; bottom: 0; width: 420px; max-height: none; border-radius: 0; border-inline-end: 1px solid var(--line); transform: translateX(105%); }
  .sheet.open { transform: none; }
}
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.2rem; }
.sheet-head .close { margin-inline-start: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.sheet-grip { width: 44px; height: 5px; border-radius: 5px; background: var(--sand); margin: 10px auto 0; }
@media (min-width: 1024px) { .sheet-grip { display: none; } }
.sheet-body { overflow: auto; padding: 8px 12px 24px; }
.nav-sec { margin-top: 14px; }
.nav-sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 700; color: var(--ink); padding: 6px 8px; font-size: 1rem; }
.nav-sec-title .ico { color: var(--gold-d); }
.nav-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: none;
  transition: background .2s, border-color .2s;
}
.nav-item:hover { background: var(--cream); border-color: var(--line); }
.nav-item.is-current { background: var(--gold-xl); border-color: var(--gold-l); }
.nav-q { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.nav-a { font-size: .95rem; color: var(--ink); font-weight: 600; line-height: 1.4; grid-column: 1; }
.nav-edit { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--gold-d); display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; }
.nav-empty { padding: 24px 12px; color: var(--muted); }

/* ------------------------------------------------------------------ calc */
.calc { text-align: center; padding-block: clamp(40px, 8vw, 72px); }
.calc-ring { width: 104px; height: 104px; margin: 0 auto 24px; position: relative; }
.calc-ring svg { width: 100%; height: 100%; animation: spin 1.6s linear infinite; }
.calc-ring circle { fill: none; stroke-width: 3; }
.calc-ring .t { stroke: var(--sand); }
.calc-ring .a { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 70 220; }
.calc-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; color: var(--navy); }
.calc-ring .mid .ico { width: 34px; height: 34px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
.calc h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.calc p { color: var(--muted); margin-top: 8px; }
.calc-list { list-style: none; padding: 0; margin: 28px auto 0; max-width: 420px; display: grid; gap: 8px; text-align: start; }
.calc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: rise .45s var(--ease) forwards; }
.calc-list li .ico { color: var(--ok); }

/* ------------------------------------------------------------------ tier */
.tier { text-align: center; position: relative; overflow: hidden; }
.tier-medal {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #F3DFA8, var(--gold) 55%, var(--gold-m)); color: var(--navy);
  box-shadow: 0 18px 40px -14px rgba(197,160,89,.8), inset 0 2px 0 rgba(255,255,255,.4);
  animation: medal .7s cubic-bezier(.3,1.5,.5,1) both;
}
.tier-medal .ico { width: 40px; height: 40px; }
.tier--yellow .tier-medal { background: radial-gradient(circle at 30% 25%, #F7EBCB, #DCC08A 55%, #C5A059); }
.tier--gray .tier-medal { background: radial-gradient(circle at 30% 25%, #E6EAF2, #B8C1D3 60%, #8D98AE); color: var(--navy); box-shadow: 0 18px 40px -16px rgba(10,17,40,.4); }
@keyframes medal { from { transform: scale(.5) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tier-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 5px 14px; line-height: 1.45; max-width: 100%; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); }
.tier h2 { margin-top: 16px; font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem); }
.tier p { margin: 12px auto 0; max-width: 56ch; color: var(--slate); line-height: 1.8; }
.teaser { position: relative; margin: 28px auto 0; max-width: 420px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.teaser svg { filter: blur(7px); opacity: .85; padding: 18px; }
.teaser-lock { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #fff; text-align: center; padding: 16px; background: linear-gradient(180deg, rgba(10,17,40,.1), rgba(10,17,40,.55)); }
.teaser-lock .ico { width: 30px; height: 30px; color: var(--gold); }
.teaser-lock span { font-size: .9rem; max-width: 30ch; }
.tier .btn { margin-top: 26px; }
.result-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px; margin: 0 0 22px; }

/* ------------------------------------------------------------------ lead */
.lead-head { display: flex; gap: 16px; align-items: flex-start; }
.lead-ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.lead-ico .ico { width: 26px; height: 26px; }
.lead-head h2 { font-size: clamp(1.4rem, 1.05rem + 1.2vw, 1.9rem); }
.lead-head p { color: var(--muted); margin-top: 6px; line-height: 1.7; }
.lead-eyebrow { color: var(--gold-d); font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg .chip { min-height: 42px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid #BDAE95; background: #fff; display: grid; place-items: center; color: #fff; margin-top: 2px; transition: background .2s, border-color .2s; }
.consent .box .ico { width: 15px; height: 15px; stroke-width: 3; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.consent input:checked + .box { background: var(--gold); border-color: var(--gold); }
.consent input:checked + .box .ico { transform: scale(1); }
.consent input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.consent-text { font-size: .88rem; line-height: 1.65; color: var(--slate); }
.consent-text button { background: none; border: 0; padding: 0; color: var(--gold-d); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.form-err { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: var(--err); font-size: .92rem; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.secure-note .ico { color: var(--ok); }

/* ------------------------------------------------------------------ report */
.report { display: grid; gap: 20px; max-width: 960px; margin: 0 auto; padding: 28px 16px calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .report { padding-top: 40px; } }
.r-hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 4vw, 44px); color: #fff;
  background: radial-gradient(700px 360px at 85% -10%, rgba(197,160,89,.22), transparent 60%), radial-gradient(600px 300px at 0% 110%, rgba(40,62,130,.5), transparent 60%), var(--navy);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .r-hero { grid-template-columns: 1fr 1.05fr; } }
.r-hero h1 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin-top: 8px; }
.r-hero .eyebrow { color: var(--gold-l); }
.r-tier { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(197,160,89,.16); border: 1px solid rgba(197,160,89,.5); color: var(--gold-l); font-weight: 600; font-size: .9rem; }
.r-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.r-stat { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.r-stat .k { font-size: .78rem; color: rgba(255,255,255,.6); }
.r-stat .v { font-family: var(--f-head); font-size: 1.35rem; color: #fff; font-weight: 700; margin-top: 2px; }
.gauge-wrap { position: relative; width: 100%; max-width: 420px; justify-self: center; }
.gauge { width: 100%; overflow: visible; }
.gauge .g-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 16; }
.gauge .g-range { fill: none; stroke: rgba(197,160,89,.38); stroke-width: 16; }
.gauge .g-fill { fill: none; stroke: url(#gGold); stroke-width: 16; }
.gauge .g-tick { stroke: var(--gold-l); stroke-width: 1.5; }
.gauge .g-tick-lbl { fill: var(--gold-l); font-size: 8.5px; font-family: var(--f-body); font-weight: 600; }
.gauge .g-knob { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.gauge-center { position: relative; margin-top: -24%; text-align: center; }
.gauge-num { font-family: var(--f-head); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 700; color: #fff; line-height: 1; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.gauge-cap { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 6px; }
.gauge-legend { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.7); }
.gauge-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

.r-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.r-card h2 .ico { color: var(--gold-d); }
.r-note { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gold-xl); border: 1px solid var(--gold-l); font-size: .92rem; color: var(--ink); line-height: 1.65; }
.r-note .ico { color: var(--gold-d); margin-top: 3px; }
.r-note ul { margin: 6px 0 0; padding-inline-start: 18px; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.checks .st { margin-inline-start: auto; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.checks .st--ok { background: var(--ok-bg); color: var(--ok); }
.checks .st--no { background: #F3EEE6; color: var(--muted); }
.checks .st--maybe { background: var(--gold-xl); color: var(--gold-d); }
.checks .val { white-space: nowrap; font-weight: 700; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.bd { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.bd-row { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.bd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bd-label { font-weight: 600; color: var(--ink); }
.bd-pct { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; color: var(--gold-d); direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-bar { position: relative; height: 8px; margin-top: 10px; border-radius: 8px; background: var(--cream); overflow: hidden; }
.bd-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; transform-origin: right center; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.bd-bar .hi { background: var(--gold-l); }
.bd-bar .lo { background: linear-gradient(270deg, var(--gold-m), var(--gold)); }
.bd.in .bd-bar span { transform: scaleX(1); }
.bd-src { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.bd-top { display: inline-block; margin-inline-start: 8px; font-size: .72rem; font-weight: 600; color: var(--navy); background: var(--gold-l); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; }
details.how-calc { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
details.how-calc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; color: var(--ink); }
details.how-calc summary::-webkit-details-marker { display: none; }
details.how-calc summary .chev { margin-inline-start: auto; transition: transform .3s var(--ease); color: var(--gold-d); }
details.how-calc[open] summary .chev { transform: rotate(180deg); }
.calc-steps { padding: 0 16px 16px; display: grid; gap: 18px; }
.calc-steps h3 { font-family: var(--f-body); font-size: .9rem; color: var(--gold-d); margin-bottom: 8px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.calc-table td { padding: 8px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.calc-table td.n { white-space: nowrap; text-align: end; direction: ltr; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.calc-table tr.total td { border-bottom: 0; font-weight: 700; color: var(--ink); padding-top: 12px; }
.calc-table .muted { color: var(--muted); font-size: .82rem; }
.r-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.r-thanks { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; }
.r-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; background: var(--c, var(--gold)); opacity: .95; animation: fall var(--t, 2.8s) var(--dl, 0s) cubic-bezier(.25,.6,.45,1) forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 105vh) rotate(var(--r, 540deg)); opacity: .2; } }

/* dialog */
dialog.privacy { border: 0; border-radius: 22px; padding: 0; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-2); color: var(--slate); background: var(--paper); }
dialog.privacy::backdrop { background: rgba(10,17,40,.5); }
dialog.privacy .in { padding: 26px; }
dialog.privacy h2 { font-size: 1.3rem; margin-bottom: 10px; }
dialog.privacy p { line-height: 1.8; }
dialog.privacy .btn { margin-top: 18px; }


[hidden] { display: none !important; }

/* ------------------------------------------------------------------ hero art (navy line-art, artwork on the right third → mirrored so the RTL text sits on plain navy) */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; display: block; }
.hero-img { object-fit: cover; object-position: right center; opacity: 0; transform: scaleX(-1) translateX(2%); transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.hero[data-img] .hero-img { opacity: 1; transform: scaleX(-1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10,17,40,.55) 0%, rgba(10,17,40,0) 55%), linear-gradient(0deg, rgba(10,17,40,.5), transparent 30%); }
.hero[data-img] .hero-card { display: none; }
.hero[data-img] .hero-geo { opacity: .14; }
@media (max-width: 979px) {
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 10; max-height: 44vh; z-index: 0; }
  .hero-img, .hero[data-img] .hero-img { transform: none; object-position: 88% center; }
  .hero-shade { background: linear-gradient(0deg, var(--navy) 0%, rgba(10,17,40,0) 40%); }
  .hero[data-img] .hero-inner { padding-top: 0; margin-top: -24px; position: relative; z-index: 1; }
}

/* ------------------------------------------------------------------ condition plates (cream line-art, contain) */
.pcard { padding: 0; min-height: 0; gap: 0; transition: border-color .2s, box-shadow .25s var(--ease), background .2s, transform .25s var(--ease); }
.pcard:hover { transform: translateY(-2px); }
.pcard:active { transform: translateY(0) scale(.99); }
.pcard-img { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #F7F0E4; position: relative; border-bottom: 1px solid var(--line); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; opacity: 0; transition: opacity .5s var(--ease); }
.pcard-img[data-ok] img { opacity: 1; }
.pcard-img::after { content: ""; position: absolute; inset: 6px; border-radius: 10px; border: 1px solid transparent; transition: border-color .3s var(--ease); pointer-events: none; }
.pcard[aria-checked="true"] .pcard-img::after { border-color: var(--gold); }

.pcard-body { display: flex; align-items: center; gap: 10px; padding: 12px; width: 100%; }
.pcard-body .pcard-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.pcard-body .pcard-ico .ico { width: 18px; height: 18px; }
.pcard-txt { display: flex; flex-direction: column; min-width: 0; }
.pcard-check { top: 8px; inset-inline-end: 8px; box-shadow: 0 2px 8px rgba(10,17,40,.25); }
.cond-illus { display: block; width: calc(100% + 2 * clamp(22px, 4vw, 40px)); margin: calc(-1 * clamp(22px, 4vw, 40px)) calc(-1 * clamp(22px, 4vw, 40px)) 22px; aspect-ratio: 16 / 6; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #F7F0E4; border-bottom: 1px solid var(--line); }
.cond-illus img { width: 100%; height: 100%; object-fit: contain; padding: 10px 0; opacity: 0; transform: translateY(6px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.cond-illus[data-ok] img { opacity: 1; transform: none; }
.result-img { display: block; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 18px; margin: 0 0 22px; background: #F6EFE2; border: 1px solid var(--line); }
.result-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity .8s var(--ease); }
.result-img[data-ok] img { opacity: 1; }
.r-thanks-card .result-img { aspect-ratio: 16 / 6; }
@media (max-width: 640px) { .result-img img { object-fit: contain; } }

/* ------------------------------------------------------------------ privacy box, docs, modal, lawyer */
.privacy-box { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #EEF3EF; border: 1px solid #CFE0D5; color: #1F4B37; font-size: .92rem; line-height: 1.65; }
.privacy-box .ico { color: var(--ok); margin-top: 2px; }
.docs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.docs-list label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); cursor: pointer; line-height: 1.55; position: relative; }
.docs-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.docs-list .box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid #BDAE95; background: #fff; display: grid; place-items: center; color: #fff; margin-top: 1px; transition: background .2s, border-color .2s; }
.docs-list .box .ico { width: 14px; height: 14px; stroke-width: 3; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.docs-list input:checked + .box { background: var(--ok); border-color: var(--ok); }
.docs-list input:checked + .box .ico { transform: scale(1); }
.docs-list input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90,99,116,.5); }
.docs-list input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
dialog.modal .in { display: grid; gap: 14px; }
dialog.modal .in > .btn { justify-self: start; margin-top: 4px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.save-link .input { font-size: 16px; color: var(--muted); }
.opt-law { font-size: .75rem; color: #6B4F12; background: #F6EBCF; border-radius: 6px; padding: 1px 6px; margin-top: 4px; direction: ltr; unicode-bidi: isolate; align-self: flex-start; font-family: ui-monospace, Consolas, monospace; }
.law-badge { position: fixed; z-index: 80; inset-inline-end: 12px; bottom: calc(110px + env(safe-area-inset-bottom)); background: #6B4F12; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-1); }
.law-json { margin: 0; padding: 16px; max-height: 420px; overflow: auto; font-size: .75rem; direction: ltr; text-align: left; background: #0F1A3A; color: #E8D5A3; border-radius: 0 0 14px 14px; }
.print-head { display: none; }

/* ------------------------------------------------------------------ mobile polish */
@media (max-width: 1023px) {
  .qcard .qnav {
    position: sticky; bottom: 0; z-index: 6;
    margin: 24px calc(-1 * clamp(22px, 4vw, 40px)) calc(-1 * clamp(22px, 4vw, 40px));
    padding: 12px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 -12px 24px -20px rgba(10,17,40,.45);
  }
  .qnav .btn { --bh: 50px; padding: 0 18px; }
  .qnav .btn-navy { flex: 1 1 auto; max-width: 240px; }
  body[data-screen="flow"] .brand-text { display: none; }
}
@media (max-width: 480px) {
  .flow { padding-inline: 12px; gap: 14px; padding-top: 16px; }
  .report { padding-inline: 12px; }
  .card { border-radius: 20px; }
  .qnav .btn-ghost span { display: none; }
  .qnav .btn-ghost { padding: 0 12px; }
  .hero-ctas .btn { width: 100%; }
  .gauge-num { font-size: 2.4rem; }
  .num-btn { width: 48px; height: 48px; }
  .modal-actions .btn { width: 100%; }
  .chip { padding: 0 13px; }
  .progress-meta { font-size: .76rem; }
  .qnav .btn-outline { padding: 0 14px; }
}
@media (max-width: 380px) {
  .lang-switch button { padding: 6px 9px; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .icon-btn { min-width: 38px; height: 38px; padding-inline: 8px; }
  .pick-grid { gap: 8px; }
  .pcard-body { padding: 10px; gap: 8px; }
  .pcard-title { font-size: .9rem; }
}
input, select, textarea { font-size: max(16px, 1rem); }


@media (max-width: 480px) { .pcard-body .pcard-ico { display: none; } .pcard-sub { font-size: .76rem; } }
/* switch + dB inputs (hearing) */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; color: var(--ink); padding: 6px 0; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 26px; background: var(--sand); position: relative; flex: none; transition: background .25s var(--ease); }
.switch .thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10,17,40,.3); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--gold); }
.switch input:checked + .track .thumb { transform: translateX(-20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--gold); outline-offset: 2px; }
.db-block { display: grid; gap: 14px; padding: 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); animation: drop .3s var(--ease); }
.db-field .num-field { flex: 0 1 160px; }
.db-field .num-input { height: 54px; font-size: 1.3rem; }

/* ------------------------------------------------------------------ print (A4 report) */
@page { size: A4; margin: 14mm 12mm; }
@media print {
  .topbar, .progress, .sheet, .sheet-backdrop, .r-cta, .r-foot, .confetti, .law-badge, .skip-link, .sitefoot, .result-img, .r-thanks-card, dialog { display: none !important; }
  html, body { background: #fff !important; font-size: 11.5pt; }
  .stage { min-height: 0; }
  .report { max-width: none; padding: 0; gap: 10pt; }
  .print-head { display: flex !important; justify-content: space-between; align-items: flex-end; gap: 16pt; padding-bottom: 8pt; margin-bottom: 4pt; border-bottom: 2pt solid #C5A059; }
  .print-head div { display: flex; flex-direction: column; }
  .print-head b { font-family: var(--f-head); font-size: 14pt; color: #0A1128; }
  .print-head span { font-size: 9pt; color: #5A6374; }
  .r-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 10pt; padding: 14pt; grid-template-columns: 1fr 1fr !important; break-inside: avoid; }
  .card { box-shadow: none; border-color: #ddd; padding: 12pt; break-inside: avoid; border-radius: 10pt; }
  .bd-row, .checks li, .docs-list label { break-inside: avoid; }
  .bd-bar span { transform: scaleX(1) !important; transition: none !important; }
  .bd-bar, .bd-bar span, .checks .st, .docs-list .box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.how-calc { display: block; }
  details.how-calc summary .chev { display: none; }
  .gauge .g-knob { display: none; }
  .disclaimer-box > div { font-size: 8.5pt; }
  .law-json { max-height: none; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv, .io { opacity: 1 !important; transform: none !important; }
}

/* ---- brand alignment with ns-lawfirm.co.il (logo + Noto Sans Hebrew) ---- */
.brand-logo { height: 58px; width: auto; display: block; flex: none; }
@media (max-width: 600px) { .brand-logo { height: 44px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3, .hero h1 { letter-spacing: -.01em; }

/* hero artwork: never crop – fit the full height, pinned to the left, fading into the navy toward the text */
@media (min-width: 980px) {
  .hero-media { inset-inline-start: auto; inset-inline-end: 0; width: 58%; display: flex; align-items: center; }
  .hero-media picture { height: auto; }
  .hero-media .hero-img, .hero[data-img] .hero-img {
    position: static; width: 100%; height: auto; max-height: 100%; object-fit: contain;
    /* the mask is relative to the image itself, so its navy edges always melt into the hero background */
    -webkit-mask-image: radial-gradient(ellipse 34% 50% at 77% 50%, #000 72%, transparent 100%);
            mask-image: radial-gradient(ellipse 34% 50% at 77% 50%, #000 72%, transparent 100%);
  }
  .hero-shade { display: none; }
}

/* ---- header section nav (intro only) ---- */
body:not([data-screen="intro"]) .intro-only { display: none !important; }
.topnav { display: flex; align-items: center; gap: 4px; margin-inline-start: 28px; }
.topnav a {
  position: relative; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 10px 12px; border-radius: 10px; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.topnav a::after {
  content: ''; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease);
}
.topnav a:hover, .topnav a.is-active { color: var(--gold-l); }
.topnav a:hover::after, .topnav a.is-active::after { transform: scaleX(1); }
.topnav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-top {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: 999px;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-l); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn-top:hover { background: var(--gold); color: var(--navy); }
.btn-top .ico { width: 18px; height: 18px; }
.topnav-toggle { display: none; }
#sec-who, #sec-how, #sec-what, #sec-privacy { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 1023px) {
  .topnav-toggle { display: inline-flex; }
  .btn-top { display: none; }
  .topnav {
    position: fixed; top: var(--header-h); inset-inline: 0; margin: 0; z-index: var(--z-header);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: rgba(10, 17, 40, .98); border-bottom: 1px solid rgba(197,160,89,.22);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .topnav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .topnav a::after { display: none; }
  body.topnav-open .topnav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
}

/* ---- header centred in the same container as the page content (like ns-lawfirm.co.il) ---- */
.topbar {
  padding-inline:
    max(16px, env(safe-area-inset-left), calc((100% - 1180px) / 2 + 16px))
    max(16px, env(safe-area-inset-right), calc((100% - 1180px) / 2 + 16px));
}
@media (min-width: 1024px) {
  body[data-screen="intro"] .topnav { margin-inline: auto; }
  body[data-screen="intro"] .topbar-actions { margin-inline-start: 0; }
}

/* confirm popup */
.confirm-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #F6EBCF; color: var(--gold-d); }
.confirm-ico .ico { width: 24px; height: 24px; }

/* typed (free-text) locality option */
.combo-list li.combo-custom { color: var(--gold-d); font-weight: 600; border-top: 1px dashed var(--line, rgba(10,17,40,.12)); display: flex; align-items: center; gap: 8px; }
.combo-list li.combo-custom .ico { width: 18px; height: 18px; }
/* copy icon inside the saved-link field */
.save-link { position: relative; }
.save-link .input { padding-right: 52px; padding-left: 14px; }
.save-link-copy {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--gold-d);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease);
}
.save-link-copy:hover { background: #F6EBCF; }
.save-link-copy.is-done { color: #2E7D4F; }
.save-link-copy .ico { width: 20px; height: 20px; }
/* modal action buttons centred */
dialog.modal .modal-actions { justify-content: center; }
dialog.modal .in > .btn { justify-self: center; }

/* answers navigator – side tab (desktop) */
.nav-tab {
  position: fixed; z-index: var(--z-header); inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; gap: 10px; padding: 12px 14px 12px 16px;
  background: var(--navy); color: #fff; border: 1px solid rgba(197,160,89,.5); border-inline-start: 0;
  border-start-end-radius: 16px; border-end-end-radius: 16px; box-shadow: 0 16px 34px -14px rgba(10,17,40,.55);
  cursor: pointer; font: inherit; text-align: start; transition: padding .25s var(--ease), background-color .2s;
}
.nav-tab:hover { background: var(--navy-2); padding-inline-start: 22px; }
.nav-tab .ico { color: var(--gold); width: 20px; height: 20px; }
.nav-tab-txt { display: grid; line-height: 1.2; }
.nav-tab-txt b { font-size: .92rem; font-weight: 700; }
.nav-tab-txt small { font-size: .74rem; color: var(--gold-l); }
.nav-tab .count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.nav-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 1024px) { body[data-screen="flow"] .nav-tab:not([hidden]) { display: inline-flex; } }
/* compact tab: icon + count; the label slides out on hover / focus */
.nav-tab { padding: 12px 12px 12px 14px; flex-direction: column; gap: 8px; }
.nav-tab-txt { max-width: 0; max-height: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .3s var(--ease), opacity .2s var(--ease); }
.nav-tab:hover, .nav-tab:focus-visible { flex-direction: row; padding-inline-start: 18px; }
.nav-tab:hover .nav-tab-txt, .nav-tab:focus-visible .nav-tab-txt { max-width: 160px; max-height: 60px; opacity: 1; }
/* thank-you card actions: one row on desktop */
@media (min-width: 900px) {
  .r-thanks-card .r-cta { flex-wrap: nowrap; }
  .r-thanks-card .r-cta .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-inline: 14px; font-size: .92rem; min-width: 0; }
}

/* ---- mobile QA: 44px touch targets in the header and inline links ---- */
@media (max-width: 1023px) {
  .icon-btn { min-width: 44px; height: 44px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { min-height: 40px; }
  .brand { min-height: 44px; min-width: 44px; }
}
@media (max-width: 380px) {
  .topbar { gap: 6px; padding-inline: 10px; }
  .topbar-actions { gap: 4px; }
  .icon-btn { min-width: 42px; height: 42px; padding-inline: 8px; }
  .lang-switch button { padding: 6px 8px; font-size: .8rem; }
  .brand-logo { height: 40px; }
}
/* consent "privacy policy" inline button: larger hit area without changing the line */
.consent-text [data-act="privacy"] { padding-block: 11px; margin-block: -11px; }
/* short landscape phones: the sticky action bar would cover focused inputs – let it flow with the card */
@media (max-height: 500px) and (orientation: landscape) {
  .qcard .qnav { position: static; box-shadow: none; margin-inline: 0; padding-bottom: 0; background: transparent; }
}

/* mobile: no hero image – the headline opens the page (a 1px placeholder is served so nothing heavy downloads) */
@media (max-width: 979px) {
  .hero-media { display: none !important; }
  .hero[data-img] .hero-inner { margin-top: 0; padding-top: clamp(40px, 8vw, 96px); }
}
