/* Sapir Seraf Akiva: personal financial guidance landing page.
   Built with the hebrew-landing-page skill. Same copy as her current page, new design:
   a warm cream ground, espresso for the dark sections, bronze from her SA monogram as the accent.
   RTL first: logical properties only (inline-start = right). */
:root {
  --cream: #fbf6ee;        /* page ground */
  --cream-2: #f4ebdf;      /* alternate sections */
  --paper: #fffdf9;        /* cards */
  --ink: #1d1612;          /* espresso: text and dark sections */
  --ink-2: #2a201b;        /* raised on dark */
  --ink-3: #352a24;        /* inputs on dark */
  --text: #241c17;
  --muted: #66594f;        /* secondary text, AA on cream */
  --muted-dark: #c9bcae;   /* secondary text on espresso, AA */
  --line: rgba(138, 90, 43, .16);
  --line-dark: rgba(227, 199, 154, .18);
  --bronze: #a8733f;
  --bronze-hi: #e3c79a;    /* on dark */
  --bronze-lo: #87562a;    /* small bronze text on cream, AA */
  --bronze-grad: linear-gradient(115deg, #87562a 0%, #c9a06a 42%, #e6cb9d 58%, #a8733f 100%);
  --wa: #25d366;

  --f-display: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --f-body: "Rubik", "Arial Hebrew", Arial, sans-serif;
  --f-label: "IBM Plex Sans Hebrew", "Rubik", Arial, sans-serif;
  --f-mono: "Cormorant Garamond", Georgia, serif;

  --step--1: clamp(.85rem, .82rem + .15vw, .95rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.06rem + .45vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
  --step-3: clamp(1.95rem, 1.45rem + 2.3vw, 3.2rem);
  --step-4: clamp(2.4rem, 1.55rem + 3.9vw, 4.7rem);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1180px;
  --radius: 22px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(60, 35, 15, .05), 0 12px 40px -18px rgba(60, 35, 15, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7; font-weight: 400;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
bdi, .num { unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }

.bronze { background: var(--bronze-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--dark .bronze { background: linear-gradient(115deg, #c9a06a, #f0dcb6 50%, #c9a06a); -webkit-background-clip: text; background-clip: text; }
.eyebrow {
  font-family: var(--f-label); font-weight: 600; font-size: var(--step--1); letter-spacing: .06em; color: var(--bronze-lo);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section--dark .eyebrow { color: var(--bronze-hi); }
.h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--step-4); line-height: 1.06; letter-spacing: -.02em; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1.12; letter-spacing: -.015em; }
.h3 { font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.lead { font-size: var(--step-1); line-height: 1.65; color: var(--muted); font-weight: 400; max-width: 40ch; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section__head .lead { max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 1.7em; border-radius: 999px;
  font: 600 var(--step-0)/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn--bronze { background: var(--bronze-grad); background-size: 140% 100%; color: #fff; text-shadow: 0 1px 1px rgba(60, 30, 5, .35);
  box-shadow: 0 10px 28px -12px rgba(135, 86, 42, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--bronze:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(135, 86, 42, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--ghost { border-color: rgba(36, 28, 23, .2); color: var(--text); background: rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: var(--bronze); background: #fff; }
.section--dark .btn--ghost { color: var(--cream); border-color: var(--line-dark); background: transparent; }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-solid { background: rgba(251, 246, 238, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__name { display: grid; line-height: 1.15; }
.brand__name b { font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.brand__name span { font-family: var(--f-label); font-size: .74rem; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; color: var(--muted); position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav { display: none; } .header .btn { display: none; } }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: clip; }
.hero::before { /* warm light behind the visual */
  content: ""; position: absolute; inset-inline-end: -10%; top: -10%; width: 70vw; height: 90%;
  background: radial-gradient(closest-side, rgba(201, 160, 106, .22), transparent 75%); pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "top vis" "rest vis"; column-gap: clamp(32px, 5vw, 72px); row-gap: 22px; position: relative; }
.hero__top { grid-area: top; align-self: end; display: grid; gap: 20px; justify-items: start; }
.hero__rest { grid-area: rest; align-self: start; display: grid; gap: 22px; justify-items: start; }
.hero__rest .lead { max-width: 44ch; }
.visual { grid-area: vis; align-self: center; }
.hero .h1 { font-size: clamp(2.2rem, 1.4rem + 3.1vw, 3.9rem); }
.hero__h .l { display: block; }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--muted); }
.hero__note svg { width: 18px; height: 18px; color: var(--bronze); flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(22px, 4vw, 48px); margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.stat b { display: block; font-size: var(--step-2); font-weight: 800; line-height: 1.1; color: var(--bronze-lo); }
.stat span { font-size: var(--step--1); color: var(--muted); }

/* hero visual: arch portrait, a growth line that draws, and three money widgets that settle in */
.visual { position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 4 / 5; }
.visual__arch {
  position: absolute; inset: 6% 12% 0; border-radius: 999px 999px 32px 32px; overflow: hidden;
  background: linear-gradient(180deg, #e9e5e1, #d9d4cf); box-shadow: 0 40px 80px -40px rgba(60, 35, 15, .55);
}
.visual__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.visual__ring { position: absolute; inset: 1% 7% -4%; border-radius: 999px 999px 40px 40px; border: 1px solid rgba(168, 115, 63, .35); }
.visual__line { position: absolute; inset: auto -4% 2% -6%; width: 110%; height: 58%; overflow: visible; pointer-events: none; }
.visual__line path.l { fill: none; stroke: url(#lg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.visual__line path.a { fill: url(#la); opacity: 0; }
.visual__line circle { fill: #fff; stroke: var(--bronze); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

.chip {
  position: absolute; z-index: 2; background: rgba(255, 253, 249, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow);
  display: grid; gap: 8px; min-width: 150px; font-size: .82rem; line-height: 1.3;
}
.chip__t { font-family: var(--f-label); font-weight: 600; color: var(--muted); font-size: .74rem; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; }
.chip__t i { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }
.chip--budget { inset-inline-start: -6%; top: 18%; }
.chip--grow { inset-inline-end: -8%; top: 40%; }
.chip--safe { inset-inline-start: 2%; bottom: 7%; min-width: 180px; }
.donut { display: flex; align-items: center; gap: 10px; }
.donut svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 7; stroke-dasharray: 0 100; }
.donut .bg { stroke: #efe6da; stroke-dasharray: none; }
.legend { display: grid; gap: 2px; font-size: .72rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; }
.spark { width: 120px; height: 40px; overflow: visible; }
.spark path { fill: none; stroke: var(--bronze); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spark .fill { fill: url(#sg); stroke: none; opacity: 0; }
.tag-up { display: inline-flex; align-items: center; gap: 4px; color: #2f7a4b; font-weight: 600; font-size: .74rem; }
.bar { height: 8px; background: #efe6da; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--bronze-grad); border-radius: inherit; }
.safe-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.check { width: 22px; height: 22px; border-radius: 50%; background: #2f7a4b; color: #fff; display: grid; place-items: center; transform: scale(0); }
.check svg { width: 13px; height: 13px; }
.coins { position: absolute; inset-inline-end: 6%; bottom: 3%; width: 64px; height: 90px; z-index: 2; }
.coin { position: absolute; inset-inline: 0; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #e8cf9f, #b48047); box-shadow: inset 0 -3px 0 #8a5a2b, 0 2px 4px rgba(60, 35, 15, .25); opacity: 0; }
.coin::after { content: ""; position: absolute; inset: 2px 8px 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); }

/* the entrance timeline (JS adds .play to .visual once fonts/images are ready) */
.visual .visual__arch { opacity: 0; transform: translateY(24px) scale(.97); }
.visual .chip { opacity: 0; transform: translateY(16px) scale(.96); }
.visual.play .visual__arch { animation: rise 1.1s var(--ease) forwards; }
.visual.play .visual__line path.l { animation: draw 2.2s .35s var(--ease) forwards; }
.visual.play .visual__line path.a { animation: fadeIn 1.2s 1.4s ease forwards; }
.visual.play .visual__line circle { animation: pop .5s var(--ease) forwards; }
.visual.play .visual__line circle:nth-of-type(1) { animation-delay: .9s; }
.visual.play .visual__line circle:nth-of-type(2) { animation-delay: 1.5s; }
.visual.play .visual__line circle:nth-of-type(3) { animation-delay: 2.2s; }
.visual.play .chip--grow { animation: rise .9s .8s var(--ease) forwards, float 7s 2s ease-in-out infinite; }
.visual.play .chip--budget { animation: rise .9s 1.25s var(--ease) forwards, float 8s 2.4s ease-in-out infinite reverse; }
.visual.play .chip--safe { animation: rise .9s 1.7s var(--ease) forwards, float 9s 2.8s ease-in-out infinite; }
.visual.play .spark path:not(.fill) { animation: draw 1.4s 1.1s var(--ease) forwards; }
.visual.play .spark .fill { animation: fadeIn .8s 2s ease forwards; }
.visual.play .donut .s1 { animation: seg1 1.2s 1.5s var(--ease) forwards; }
.visual.play .donut .s2 { animation: seg2 1.2s 1.7s var(--ease) forwards; }
.visual.play .donut .s3 { animation: seg3 1.2s 1.9s var(--ease) forwards; }
.visual.play .bar i { animation: fill 1.6s 2.1s var(--ease) forwards; }
.visual.play .check { animation: pop .5s 3.6s var(--ease) forwards; }
.visual.play .coin { animation: drop .6s cubic-bezier(.5, 0, .75, 0) forwards, settle .25s ease-out forwards; }
.visual.play .coin:nth-child(1) { bottom: 0; animation-delay: 2.4s, 3s; }
.visual.play .coin:nth-child(2) { bottom: 9px; animation-delay: 2.75s, 3.35s; }
.visual.play .coin:nth-child(3) { bottom: 18px; animation-delay: 3.1s, 3.7s; }
.visual.play .coin:nth-child(4) { bottom: 27px; animation-delay: 3.45s, 4.05s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes seg1 { to { stroke-dasharray: 52 100; } }
@keyframes seg2 { to { stroke-dasharray: 22 100; } }
@keyframes seg3 { to { stroke-dasharray: 26 100; } }
@keyframes fill { to { width: 100%; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-90px); } 15% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes settle { 0% { scale: 1 1; } 50% { scale: 1.08 .85; } 100% { scale: 1 1; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "top" "vis" "rest"; row-gap: 26px; }
  .visual { width: min(86%, 380px); }
  .hero__h .l:not(:first-child) { display: inline; }
  .chip { min-width: 0; padding: 9px 11px; font-size: .76rem; }
  .chip--budget { inset-inline-start: -4%; top: 14%; }
  .chip--grow { inset-inline-end: -4%; top: 44%; }
  .chip--safe { min-width: 158px; }
  .spark { width: 92px; height: 32px; }
  .donut svg { width: 38px; height: 38px; }
}
@media (max-width: 480px) { .hero__rest .actions { width: 100%; } .hero__rest .actions .btn { flex: 1 1 100%; } }

/* ---------- pain: "מכירים את זה?" ---------- */
.pain { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pain__copy { display: grid; gap: 18px; }
.pain__list { display: grid; gap: 12px; counter-reset: p; }
.pain__list li {
  display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(60, 35, 15, .04);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pain__list li:hover { transform: translateX(-4px); border-color: rgba(168, 115, 63, .4); box-shadow: var(--shadow); }
.pain__ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #f6ede1; color: var(--bronze-lo); }
.pain__ico svg { width: 20px; height: 20px; }
.pain__cta { margin-top: 8px; }
@media (max-width: 900px) { .pain { grid-template-columns: 1fr; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.calc__intro { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.calc__points { display: grid; gap: 10px; margin-top: 6px; }
.calc__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted-dark); }
.calc__points svg { width: 20px; height: 20px; color: var(--bronze-hi); flex: none; margin-top: 3px; }
.quiz { background: var(--paper); color: var(--text); border-radius: 26px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); min-height: 420px; position: relative; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: grid; gap: 18px; }
.quiz legend { font-weight: 700; font-size: var(--step-2); line-height: 1.25; padding: 0; margin-bottom: 4px; outline: none; }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-family: var(--f-label); font-size: var(--step--1); color: var(--muted); }
.quiz__progress { height: 6px; border-radius: 99px; background: #efe6da; overflow: hidden; margin-bottom: 26px; }
.quiz__progress i { display: block; height: 100%; background: var(--bronze-grad); border-radius: inherit; transition: width .5s var(--ease); }
.quiz__hint { color: var(--muted); font-size: var(--step--1); }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  text-align: start; font: 500 var(--step-0)/1.4 var(--f-body); color: var(--text); background: #fff; cursor: pointer;
  border: 1px solid rgba(36, 28, 23, .14); border-radius: 14px; padding: 15px 18px; display: flex; align-items: center; gap: 12px;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.quiz__opt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(36, 28, 23, .3); flex: none; transition: .2s; }
.quiz__opt:hover { border-color: var(--bronze); background: #fdf8f1; transform: translateX(-3px); }
.quiz__opt[aria-pressed="true"] { border-color: var(--bronze); background: #fbf1e3; }
.quiz__opt[aria-pressed="true"]::before { border-color: var(--bronze); background: radial-gradient(circle, var(--bronze) 45%, transparent 50%); }
.money { display: flex; align-items: center; border: 1px solid rgba(36, 28, 23, .18); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.money:focus-within { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168, 115, 63, .14); }
.money span { padding-inline: 18px 6px; font-weight: 700; color: var(--bronze-lo); font-size: var(--step-1); }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 700 var(--step-2)/1 var(--f-body); color: var(--text); padding: 16px 14px 16px 18px; direction: ltr; text-align: end; }
.money input[aria-invalid="true"] { color: #a33; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 500 var(--step--1)/1 var(--f-body); padding: 10px 14px; border-radius: 99px; border: 1px solid rgba(36, 28, 23, .15); background: #fff; color: var(--text); cursor: pointer; transition: .2s; }
.chips button:hover { border-color: var(--bronze); background: #fdf8f1; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.quiz__back { background: none; border: 0; color: var(--muted); font: 500 var(--step--1) var(--f-body); cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.quiz__back:hover { color: var(--text); }
.quiz__err { color: #a33; font-size: var(--step--1); min-height: 1.4em; }
.quiz__step { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.res { display: grid; gap: 22px; }
.res__eyebrow { font-family: var(--f-label); font-size: var(--step--1); color: var(--bronze-lo); font-weight: 600; }
.res__big { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.res__big small { font-size: .38em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.res__sub { color: var(--muted); font-size: var(--step--1); }
.split { display: grid; gap: 10px; }
.split__bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: #efe6da; }
.split__bar i { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease); }
.split__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); }
.split__legend span { display: inline-flex; align-items: center; gap: 6px; }
.split__legend i { width: 10px; height: 10px; border-radius: 3px; }
.c-exp { background: #d8cbbb; } .c-inv { background: linear-gradient(90deg, #a8733f, #d7b27c); } .c-emg { background: #7c9a83; } .c-free { background: #efe6da; border: 1px solid #e2d6c6; }
.res__steps { display: grid; gap: 12px; counter-reset: s; }
.res__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.res__steps li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bronze-hi); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.res__steps b { display: block; }
.res__steps p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.res__note { font-size: .8rem; color: var(--muted); background: #f8f1e7; border-radius: 12px; padding: 12px 14px; line-height: 1.6; }
.res__cap { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 12px; }
.res__cap .h3 { font-size: var(--step-1); }
.res__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .res__row { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__intro { position: static; } }

/* ---------- fields (calculator capture + main form) ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 500; }
.field input { font: 400 var(--step-0)/1.3 var(--f-body); padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(36, 28, 23, .18); background: #fff; color: var(--text); width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: 0; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168, 115, 63, .14); }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field input[dir="ltr"] { text-align: end; }
.opt { color: var(--muted); font-weight: 400; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bronze); flex: none; }
.consent a { color: var(--bronze-lo); }
.msg { font-size: var(--step--1); min-height: 1.4em; }
.msg.is-error { color: #b03a2e; }
.msg.is-ok { color: #2f7a4b; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 26px; }
.about p { color: var(--muted); }
.about p.strong { color: var(--text); font-weight: 600; font-size: var(--step-1); line-height: 1.6; }
.milestone {
  position: relative; background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px);
  overflow: hidden; box-shadow: 0 40px 70px -40px rgba(30, 20, 10, .7); margin-block: 8px;
}
.milestone::before { content: ""; position: absolute; inset-inline-start: -20%; top: -60%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(201, 160, 106, .25), transparent); }
.milestone__k { font-family: var(--f-label); color: var(--bronze-hi); font-size: var(--step--1); letter-spacing: .06em; position: relative; }
.milestone h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.35; margin-block: 12px 14px; position: relative; }
.milestone p { color: var(--muted-dark) !important; position: relative; }
.quote {
  font-size: var(--step-2); font-weight: 700; line-height: 1.4; text-align: center; padding: clamp(26px, 4vw, 44px) clamp(18px, 4vw, 54px);
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; margin-block: 8px;
}
.quote::before { content: "״"; position: absolute; top: -26px; inset-inline-start: 50%; translate: 50% 0; width: 52px; height: 52px; border-radius: 50%; background: var(--bronze-grad); color: #fff; display: grid; place-items: center; font-size: 2rem; line-height: 1; padding-top: 10px; }
.mantra { font-size: var(--step-2); font-weight: 800; line-height: 1.3; margin-top: 14px; }
.sign { font-family: var(--f-mono); font-style: italic; font-size: 2rem; color: var(--bronze); direction: ltr; text-align: end; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin-top: 18px; border: 1px solid var(--line); }
.creds div { background: var(--paper); padding: 20px 16px; display: grid; gap: 4px; }
.creds b { font-size: var(--step-1); font-weight: 800; color: var(--bronze-lo); }
.creds span { font-size: .8rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 700px) { .creds { grid-template-columns: 1fr 1fr; } }

/* ---------- process ---------- */
.steps { display: grid; gap: 20px; position: relative; margin: 0; padding: 0; list-style: none; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 31px; top: 30px; bottom: 30px; width: 2px; background: #e8dccb; }
.timeline__fill { position: absolute; inset-inline-start: 31px; top: 30px; width: 2px; height: 0; background: var(--bronze-grad); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; position: relative; }
.step__n { width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 2px solid #e8dccb; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: var(--bronze-lo); position: relative; z-index: 1; transition: border-color .4s, background-color .4s, color .4s; }
.step.is-on .step__n { border-color: var(--bronze); background: var(--ink); color: var(--bronze-hi); }
.step__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: 0 1px 2px rgba(60, 35, 15, .04); display: grid; gap: 10px; transition: box-shadow .3s, transform .3s var(--ease); }
.step__card:hover { box-shadow: var(--shadow); }
.step__card p { color: var(--muted); }
.step__get { display: flex; gap: 8px; align-items: baseline; font-size: var(--step--1); color: var(--bronze-lo); font-weight: 600; background: #fbf3e8; border-radius: 10px; padding: 8px 12px; justify-self: start; }
.extras { margin-top: 30px; background: var(--ink); color: var(--cream); border-radius: 26px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.extras::after { content: ""; position: absolute; inset-inline-end: -10%; bottom: -60%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(201, 160, 106, .18), transparent); pointer-events: none; }
.extras ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; position: relative; }
.extras li { display: flex; gap: 12px; align-items: center; }
.extras li svg { width: 22px; height: 22px; color: var(--bronze-hi); flex: none; }
.extras p { color: var(--muted-dark); position: relative; }
.extras p b { color: var(--bronze-hi); }
@media (max-width: 700px) { .extras ul { grid-template-columns: 1fr; } .step { grid-template-columns: 48px 1fr; gap: 14px; } .step__n { width: 48px; height: 48px; font-size: 1rem; } .timeline::before, .timeline__fill { inset-inline-start: 23px; } }

/* ---------- testimonials ---------- */
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clip { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 9 / 14; box-shadow: var(--shadow); }
.clip img, .clip video { width: 100%; height: 100%; object-fit: cover; }
.clip__play { position: absolute; inset: 0; border: 0; padding: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 12, 8, .75)); cursor: pointer; display: grid; place-items: center; color: #fff; }
.clip__play .pb { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--bronze-lo); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
.clip__play:hover .pb { transform: scale(1.08); }
.clip__play .pb svg { width: 26px; height: 26px; margin-inline-start: -4px; }
.clip__cap { position: absolute; inset-inline: 18px; bottom: 16px; font-weight: 600; font-size: var(--step--1); text-align: start; }
.clip__note { position: absolute; inset: auto 12px 12px; background: rgba(255, 253, 249, .95); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: .8rem; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.qcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(60, 35, 15, .04); }
.qcard__stars { display: flex; gap: 2px; color: #c9a06a; }
.qcard__stars svg { width: 16px; height: 16px; }
.qcard p { flex: 1; line-height: 1.75; }
.qcard footer { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--bronze-lo); font-size: var(--step--1); }
.qcard footer i { width: 34px; height: 34px; border-radius: 50%; background: #f3e6d4; color: var(--bronze-lo); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.rail-nav { display: none; }
@media (max-width: 900px) {
  .reel, .quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar, .quotes::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 68%; scroll-snap-align: center; }
  .qcard { flex: 0 0 84%; scroll-snap-align: center; }
  .rail-nav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
  .rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--text); display: grid; place-items: center; cursor: pointer; }
  .rail-nav svg { width: 18px; height: 18px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(168, 115, 63, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: var(--step-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; background: #f6ede1; color: var(--bronze-lo); flex: none; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; inset: 50% 9px auto; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] .pm { background: var(--ink); color: var(--bronze-hi); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); }

/* ---------- signup ---------- */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.signup__pitch { display: grid; gap: 18px; }
.signup__pitch .lead { color: var(--muted-dark); }
.signup__alt { display: inline-flex; align-items: center; gap: 10px; color: var(--bronze-hi); font-weight: 600; text-decoration: none; }
.signup__alt svg { width: 22px; height: 22px; color: var(--wa); }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 26px; padding: clamp(22px, 3.4vw, 38px); display: grid; gap: 14px; position: relative; }
.form .field label { color: var(--cream); }
.form .field input { background: var(--ink-3); border-color: var(--line-dark); color: var(--cream); }
.form .field input::placeholder { color: #9d8f82; }
.form .consent { color: var(--muted-dark); }
.form .consent a { color: var(--bronze-hi); }
.form .msg.is-error { color: #ff9c8f; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: var(--step--1); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted-dark); }
.footer .brand__name b { color: var(--cream); }
.footer .brand__name span { color: var(--muted-dark); }

/* ---------- WhatsApp: a floating button that moves ---------- */
.wa {
  position: fixed; z-index: 60; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; flex-direction: row-reverse;
}
.wa__btn {
  width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .15); position: relative; text-decoration: none;
  animation: waBob 3.2s ease-in-out infinite, waWiggle 7s 2s ease-in-out infinite;
}
.wa__btn svg { width: 32px; height: 32px; }
.wa__btn::before, .wa__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: waRing 2.8s ease-out infinite; }
.wa__btn::after { animation-delay: 1.4s; }
.wa__btn:hover { animation-play-state: paused; transform: scale(1.06); }
.wa__bubble {
  background: #fff; color: var(--text); border-radius: 16px 16px 4px 16px; padding: 12px 36px 12px 14px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.4; max-width: 230px; position: relative; opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease); text-decoration: none;
}
.wa__bubble b { display: block; }
.wa.is-talking .wa__bubble { opacity: 1; transform: none; pointer-events: auto; }
.wa__x { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #f2ece4; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
@keyframes waBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes waWiggle { 0%, 88%, 100% { rotate: 0deg; } 90% { rotate: -14deg; } 92% { rotate: 12deg; } 94% { rotate: -8deg; } 96% { rotate: 5deg; } }
@keyframes waRing { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* mobile dock: the CTA always one tap away; the WhatsApp button rides above it */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    display: flex; position: fixed; z-index: 55; inset-inline: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 246, 238, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; min-height: 50px; }
  .wa { inset-inline-end: 14px; transition: bottom .4s var(--ease); }
  .wa__btn { width: 56px; height: 56px; }
  body.dock-on .wa { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- dialog (legal pages) ---------- */
.box { border: 0; padding: 0; border-radius: 22px; width: min(760px, 94vw); max-height: 88vh; background: var(--cream); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, .4); }
.box::backdrop { background: rgba(29, 22, 18, .6); backdrop-filter: blur(4px); }
.box__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--cream); border-bottom: 1px solid var(--line); z-index: 1; }
.box__head h2 { font-size: var(--step-1); }
.box__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 20px; }
.box__body { padding: 8px 22px 24px; }

/* ---------- legal pages ---------- */
.legal-page { background: var(--cream); }
.legal-top { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.legal { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 80px; line-height: 1.8; }
.legal h1 { font-weight: 800; font-size: var(--step-3); margin-bottom: 6px; }
.legal h2 { font-weight: 700; font-size: var(--step-1); margin: 32px 0 10px; color: var(--bronze-lo); }
.legal h3 { font-weight: 700; font-size: var(--step-0); margin: 18px 0 6px; }
.legal--box { max-width: none; padding: 0 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-inline-start: 20px; display: grid; gap: 6px; list-style: disc; }
.legal a { color: var(--bronze-lo); }
.legal__meta { color: var(--muted) !important; font-size: var(--step--1); }
.legal__back { margin-top: 40px; }
.legal .todo { background: #f6e3c4; color: #6b4318; padding: 1px 6px; border-radius: 4px; }
.legal-foot { border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px; color: var(--muted); font-size: var(--step--1); display: grid; gap: 10px; justify-items: center; text-align: center; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.legal-foot a { color: var(--muted); }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.hero__h .l { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.hero.play .hero__h .l { animation: lineIn .9s var(--ease) forwards; }
.hero.play .hero__h .l:nth-child(2) { animation-delay: .12s; }
.hero.play .hero__h .l:nth-child(3) { animation-delay: .24s; }
.hero.play .hero__h .l:nth-child(4) { animation-delay: .36s; }
@keyframes lineIn { to { opacity: 1; transform: none; filter: none; } }
.no-js .hero__h .l, .no-js .visual .visual__arch, .no-js .visual .chip { opacity: 1; transform: none; filter: none; }

/* reduced motion and the toolbar's "stop animations": everything at its end state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
/* Styles for assets/a11y.js. Append to styles.css (every page loads it, so the toolbar looks the same everywhere).
   The 'a11y-big' block refers to the scroll-story classes of the worked example (.beat, .actions, .display--publish):
   point it at whatever in your page has white-space: nowrap or fixed-width rows. */
/* ---------- accessibility toolbar (a11y.js) ---------- */
.a11y { position: fixed; z-index: 90; inset-inline-end: 16px; bottom: 24px; font-family: Arial, "Arial Hebrew", sans-serif; font-size: 15px; line-height: 1.35; letter-spacing: normal; word-spacing: normal; }
.a11y__fab {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: #1d4fd8; color: #fff; border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.a11y__fab svg { width: 28px; height: 28px; fill: currentColor; }
.a11y__fab.is-set::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: #ffd400; border: 2px solid #000; }
.a11y__fab:focus-visible, .a11y button:focus-visible, .a11y a:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; }
.a11y__panel {
  position: absolute; bottom: 60px; inset-inline-end: 0; width: min(340px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 170px)); overflow: auto;
  background: #fff; color: #111; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); padding: 14px; text-align: start;
}
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.a11y__title { font: 700 18px/1.2 Arial, "Arial Hebrew", sans-serif; color: #111; margin: 0; }
.a11y__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #bbb; background: #fff; color: #111; font-size: 16px; cursor: pointer; }
.a11y__size { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 10px; }
.a11y__label { flex: 1; font-weight: 700; }
.a11y__size button { min-width: 44px; height: 40px; border-radius: 8px; border: 1px solid #1d4fd8; background: #fff; color: #1d4fd8; font-weight: 700; font-size: 15px; cursor: pointer; }
.a11y__size button:disabled { opacity: .4; cursor: default; }
.a11y__val { min-width: 48px; text-align: center; font-weight: 700; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__opt {
  display: grid; justify-items: center; gap: 4px; padding: 10px 6px; min-height: 68px; border-radius: 10px; cursor: pointer;
  border: 2px solid #ddd; background: #f5f6f8; color: #111; font: 600 14px/1.25 Arial, "Arial Hebrew", sans-serif;
}
.a11y__opt svg { width: 24px; height: 24px; fill: currentColor; }
.a11y__opt[aria-pressed="true"] { background: #1d4fd8; border-color: #1d4fd8; color: #fff; }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.a11y__reset { padding: 9px 14px; border-radius: 8px; border: 1px solid #111; background: #111; color: #fff; font: 700 14px Arial, sans-serif; cursor: pointer; }
.a11y__foot a { color: #1d4fd8; text-decoration: underline; font-weight: 700; }
/* phones: in the header row, between the logo and the call button, clear of the hero buttons and the dock */
@media (max-width: 860px) {
  .a11y { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: auto; left: 50%; transform: translateX(-50%); }
  .a11y__fab { width: 44px; height: 44px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
  .a11y__fab svg { width: 26px; height: 26px; }
  .a11y__panel { bottom: auto; top: 54px; inset-inline-end: auto; left: 50%; transform: translateX(-50%); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
}

/* the settings; the toolbar itself keeps its own look */
/* bigger text: long headlines and button rows wrap instead of running off a phone screen */
html.a11y-big .beat, .story.is-static .beat { min-width: 0; max-width: 100%; }
html.a11y-big .beat .actions { flex-wrap: wrap !important; }
html.a11y-big .btn { white-space: normal; text-align: center; line-height: 1.2; }
html.a11y-big .display--publish { text-wrap: wrap !important; }
html.a11y-contrast {
  --ink: #000; --ink-2: #000; --ink-3: #000; --ivory: #fff; --muted: #fff; --line: rgba(255, 255, 255, .7);
  --gold: #ffd400; --gold-hi: #ffd400; --gold-lo: #ffd400; --gold-grad: linear-gradient(#ffd400, #ffd400);
}
html.a11y-contrast body { background: #000; }
html.a11y-contrast :not(.a11y *) { text-shadow: none !important; }
html.a11y-contrast a:not(.a11y *):not(.btn) { color: #ffd400; }
/* the page ground is painted on <html>/<body>, so the inversion goes on the root; photos, video and the toolbar flip back */
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert :is(img, video, .p3d, .l3d, .a11y) { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray body > *:not(.a11y) { filter: grayscale(1); }
html.a11y-links a:not(.a11y *), html.a11y-links button:not(.a11y *) { outline: 2px solid #ffd400 !important; outline-offset: 2px; }
html.a11y-links a:not(.a11y *) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font { --f-display: Arial, "Arial Hebrew", sans-serif; --f-body: Arial, "Arial Hebrew", sans-serif; --f-label: Arial, "Arial Hebrew", sans-serif; }
html.a11y-font :not(.a11y *) { font-family: Arial, "Arial Hebrew", sans-serif !important; }
html.a11y-font .gold, html.a11y-font .gold * { background: none !important; color: var(--gold-hi) !important; -webkit-text-fill-color: currentColor; }
/* WCAG 1.4.12 text spacing */
html.a11y-spacing :not(.a11y, .a11y *) { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p:not(.a11y *) { margin-bottom: 2em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .rv, html.a11y-still .rv * { opacity: 1 !important; transform: none !important; }
html.a11y-still .beat .line { filter: none !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 12-6.2.6 3.7 7.6-2.7 1.3-3.6-7.7L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 8 4, auto !important;
}

/* ---------- Sapir: toolbar placement and end states ---------- */
/* desktop: the toolbar sits bottom-right, the WhatsApp button bottom-left */
@media (min-width: 861px) {
  .a11y { inset-inline-end: auto; inset-inline-start: 16px; }
  .a11y__panel { inset-inline-end: auto; inset-inline-start: 0; }
}
html.a11y-big .actions { flex-wrap: wrap; }
html.a11y-big .stats { grid-template-columns: 1fr 1fr; }
/* "stop animations" and reduced motion: the hero shows its finished state */
html.a11y-still .hero__h .l, html.a11y-still .visual .visual__arch, html.a11y-still .visual .chip,
html.a11y-still .coin, html.a11y-still .check, html.a11y-still .visual__line circle, html.a11y-still .visual__line path.a, html.a11y-still .spark .fill { opacity: 1 !important; transform: none !important; filter: none !important; }
html.a11y-still .visual__line path.l, html.a11y-still .spark path { stroke-dashoffset: 0 !important; }
html.a11y-still .bar i { width: 100% !important; }
html.a11y-still .donut .s1 { stroke-dasharray: 52 100 !important; }
html.a11y-still .donut .s2 { stroke-dasharray: 22 100 !important; }
html.a11y-still .donut .s3 { stroke-dasharray: 26 100 !important; }
html.a11y-still .coin:nth-child(1) { bottom: 0; } html.a11y-still .coin:nth-child(2) { bottom: 9px; }
html.a11y-still .coin:nth-child(3) { bottom: 18px; } html.a11y-still .coin:nth-child(4) { bottom: 27px; }
html.a11y-contrast { --cream: #000; --cream-2: #000; --paper: #000; --text: #fff; --muted: #fff; --muted-dark: #fff; --bronze-lo: #ffd400; --bronze-hi: #ffd400; --bronze: #ffd400; --bronze-grad: linear-gradient(#ffd400, #ffd400); }
html.a11y-contrast .btn--bronze { color: #000; text-shadow: none; }
html.a11y-contrast :is(.chip, .quiz, .quiz__opt, .chips button, .money, .field input, .header.is-solid, .dock, .wa__bubble) { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-font .bronze, html.a11y-font .bronze * { background: none !important; color: var(--bronze-lo) !important; -webkit-text-fill-color: currentColor; }

/* phones: the toolbar sits at the far end of the header row (the header CTA is hidden there);
   the WhatsApp button waits until the hero buttons are off screen, then rides above the dock */
@media (max-width: 860px) {
  .a11y { left: 12px; transform: none; top: calc(14px + env(safe-area-inset-top, 0px)); }
  .a11y__panel { left: 0; transform: none; }
  body:not(.dock-on) .wa { opacity: 0; pointer-events: none; scale: .6; }
  .wa { transition: bottom .4s var(--ease), opacity .4s, scale .4s var(--ease); }
}

/* footer legal lines */
.footer__small { flex-basis: 100%; font-size: .8rem; line-height: 1.6; color: var(--muted-dark); opacity: .85; margin: 0; }
/* consent checkbox: a clear bronze box with a check mark, before the text */
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--bronze); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.consent input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .2s var(--ease); }
.consent input:checked { background: var(--bronze); }
.consent input:checked::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 2px; }
.consent input[aria-invalid="true"], .consent.is-missing input { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.form .consent input { background: var(--ink-3); border-color: var(--bronze-hi); }
.form .consent input:checked { background: var(--bronze); }

/* the real photo sits on a camel backdrop: match the arch to it */
.visual__arch { background: #cca57a; }
.visual__arch img { object-position: 50% 12%; }
.legal-top img { width: 56px; height: auto; }
/* phones: leave room under the footer for the fixed CTA bar */
@media (max-width: 900px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
