/* Ido Azaria, private AI lessons. Studio direction (22-brand-v2). Site v3, verified: 2026-10-13 (25-landing-v2/design-notes.md §v3)
   Every colour, face, size and space is a token in :root. Palette swap = the first block; monogram swap = assets/mark.svg.
   Logical properties throughout, so he/ mirrors itself (the schematic and the mark never mirror).
   Fonts are self-hosted (OFL, licences in /fonts). No request leaves this origin. No inline styles anywhere (strict CSP). */

/* ---------- fonts ---------- */
@font-face { font-family: "Bellefair"; src: url("../fonts/bellefair.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-stretch: 85% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Hebrew"; src: url("../fonts/plex-hebrew-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200E-200F, U+20AA, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; src: url("../fonts/plex-hebrew-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0590-05FF, U+200E-200F, U+20AA, U+FB1D-FB4F; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  /* palette: Sanzo Wada No. 166 (Ido, 1 Nov 2026). Deep Slate Green leads, hints of Naples Yellow + Grenadine Pink.
     Hex values from an unofficial list, not checked against the printed book. Previous palette: git tag site-before-166. */
  --c-cream: #FFFBEF; --c-cream-deep: #FDF0C8; --c-green: #112f2c; --c-green-muted: #47605C; --c-rule: #E4DAB4;
  --c-yellow: #fbe6a0; --c-pink: #f48067;
  --c-green-raised: #1A3F3B; --c-green-low: #0B2320; --c-paper-dark: #FDF6DC; --c-sage: #C2CDB9; --c-rule-dark: #31524D;
  --c-band-line: #3F5C57;

  /* roles */
  --bg: var(--c-cream); --surface: var(--c-cream-deep); --text: var(--c-green); --muted: var(--c-green-muted);
  --accent: var(--c-green); --on-accent: var(--c-cream); --note: var(--c-green); --line: var(--c-rule); --rule-strong: var(--c-green);
  --field-bg: #FFFFFF; --field-border: var(--c-green-muted); --focus: var(--c-green);
  --mark: var(--c-green);
  --band-bg: var(--c-green); --band-text: var(--c-cream); --band-muted: var(--c-yellow);
  --band-line: var(--c-band-line); --wave-in: var(--c-pink); --wave-out: var(--c-yellow);
  --photo-filter: none;
  --pop: var(--c-pink);

  /* type: one serif for display (Bellefair), one sans for reading (IBM Plex). Scale ≈ 1.333 (perfect fourth) from 17px */
  --display: "Bellefair", "Frank Ruhl Libre", Georgia, serif;
  --body: "Plex", "Plex Hebrew", Arial, sans-serif;
  --body-he: "Plex Hebrew", "Plex", Arial, sans-serif;
  --fs-caption: 0.875rem;                          /* 14 */
  --fs-small: 0.9375rem;                           /* 15 */
  --fs-body: 1.0625rem;                            /* 17 */
  --fs-lead: clamp(1.125rem, 1.3vw, 1.25rem);      /* 18–20 */
  --fs-h3: 1.4375rem;                              /* 23 */
  --fs-quote: clamp(1.45rem, 2.1vw, 1.875rem);     /* 23–30 */
  --fs-h2: clamp(2rem, 3.6vw, 2.875rem);           /* 32–46 */
  --fs-display: clamp(2.5rem, 5.4vw, 4.25rem);     /* 40–68 */
  --fs-hero: clamp(3.4rem, 8.4vw, 7.5rem);         /* 54–120 */
  --lh: 1.6; --lh-he: 1.75; --measure: 34em;

  /* space (8px grid) + shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;
  --gutter: 16px; --container: 1160px; --head-h: 64px;
  --r-control: 4px; --r-panel: 6px;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 140ms; --dur-draw: 1500ms;
}
@media (min-width: 760px) { :root { --gutter: 40px; --head-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--c-green); --surface: var(--c-green-raised); --text: var(--c-paper-dark); --muted: var(--c-sage);
    --accent: var(--c-yellow); --on-accent: var(--c-green); --note: var(--c-pink); --line: var(--c-rule-dark); --rule-strong: var(--c-sage);
    --field-bg: var(--c-green-raised); --field-border: var(--c-sage); --focus: var(--c-pink);
    --mark: var(--c-yellow);
    --band-bg: var(--c-green-low); --band-text: var(--c-paper-dark); --band-muted: var(--c-sage);
    --band-line: var(--c-rule-dark); --wave-in: var(--c-pink); --wave-out: var(--c-yellow);
    --photo-filter: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--c-green); --surface: var(--c-green-raised); --text: var(--c-paper-dark); --muted: var(--c-sage);
  --accent: var(--c-yellow); --on-accent: var(--c-green); --note: var(--c-pink); --line: var(--c-rule-dark); --rule-strong: var(--c-sage);
  --field-bg: var(--c-green-raised); --field-border: var(--c-sage); --focus: var(--c-pink);
  --mark: var(--c-yellow);
  --band-bg: var(--c-green-low); --band-text: var(--c-paper-dark); --band-muted: var(--c-sage);
  --band-line: var(--c-rule-dark); --wave-in: var(--c-pink); --wave-out: var(--c-yellow);
  --photo-filter: none;
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; --dur-draw: 0ms; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + var(--s4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/var(--lh) var(--body);
  overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html[lang="he"] body { font-family: var(--body-he); line-height: var(--lh-he); font-size: calc(var(--fs-body) * 1.04); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0; text-wrap: balance; }
h3 { font-size: var(--fs-h3); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-control); }
strong { font-weight: 600; }
bdi { unicode-bidi: isolate; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: var(--s4); top: -100px; background: var(--accent); color: var(--on-accent);
  padding: var(--s3) var(--s4); border-radius: var(--r-control); z-index: 20; font-weight: 500; }
.skip:focus { top: var(--s4); }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--s4); }
.muted { color: var(--muted); }
.note { color: var(--note); padding-inline-start: var(--s3); border-inline-start: 2px solid var(--note); font-size: var(--fs-small); line-height: 1.5; margin-block-end: var(--s5); }
.notice { padding: var(--s3) var(--s4); border: 1px solid var(--note); color: var(--note); border-radius: var(--r-control); font-size: var(--fs-small); }
.mark { display: inline-block; width: 1em; height: 1em; color: var(--mark); flex: none; vertical-align: -.12em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5);
  font-family: inherit; font-weight: 500; font-size: var(--fs-small); line-height: 1.2; border-radius: var(--r-control);
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; text-align: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--quiet { background: transparent; color: var(--accent); }
.btn--quiet:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn--small { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-caption); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-block-start: var(--s6); }
@media (max-width: 459px) { .actions .btn { width: 100%; } }

/* ---------- header (sticky, slim) ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s5); min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.brand .mark { font-size: 1.75rem; }
.brand:hover { text-decoration: none; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s5); font-size: var(--fs-small); }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.nav-links { display: none; gap: var(--s5); }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: var(--r-control);
  font-family: inherit; font-weight: 500; font-size: var(--fs-caption); line-height: 1; min-height: 40px; padding: 0 var(--s3); cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 459px) { .theme-toggle { display: none; } }

/* ---------- sections: head in a narrow column, body in a wide one ---------- */
.section { padding-block: var(--s8); }
@media (min-width: 760px) { .section { padding-block: var(--s9) var(--s10); } }
.section + .section { border-top: 1px solid var(--line); }
.sec { display: grid; gap: var(--s6); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head p { margin-block-start: var(--s4); color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 26em; }
.sec-body { min-width: 0; }
@media (min-width: 1000px) {
  .sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s9); align-items: start; }
  .sec-head { position: sticky; top: calc(var(--head-h) + var(--s6)); }
}
.sub-title { font-size: var(--fs-h3); margin-block: var(--s8) var(--s5); }
.aside-line { margin-block-start: var(--s5); color: var(--muted); font-size: var(--fs-small); max-width: var(--measure); }
.dash { list-style: none; padding: 0; max-width: var(--measure); }
.dash li { padding-inline-start: 1.5em; position: relative; }
.dash li + li { margin-block-start: var(--s3); }
.dash li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: .75em; height: 2px; background: var(--accent); }

/* ---------- 1 hero ---------- */
.hero { padding-block: var(--s7) var(--s8); }
@media (min-width: 760px) { .hero { padding-block: var(--s8) var(--s9); } }
.hero-grid { display: grid; gap: var(--s6); }
.hero h1 { font-size: var(--fs-hero); line-height: .94; letter-spacing: -.015em; max-width: 9ch; }
/* copy v2 (2026-10-26): the English headline is two sentences, so a little smaller and wider than the old two-word line */
html[lang="en"] .hero h1 { font-size: clamp(3rem, 6.6vw, 6.25rem); max-width: 13ch; }
.hero-alt { margin-block-start: var(--s4); font-size: var(--fs-small); color: var(--muted); }
html[dir="ltr"] .hero-alt { text-align: left; }
html[dir="rtl"] .hero-alt { text-align: right; }
.hero-alt a { color: inherit; text-decoration-color: var(--line); }
.hero-alt a:hover { color: var(--text); }
.hero-lede { margin-block-start: var(--s6); font-family: var(--display); font-size: var(--fs-quote); line-height: 1.28; max-width: 22em; }
.hero-sub { margin-block-start: var(--s4); font-size: var(--fs-lead); line-height: 1.55; max-width: 30em; color: var(--muted); }
.hero-entry { margin-block-start: var(--s4); font-size: var(--fs-small); color: var(--muted); max-width: 32em; }
.hero-portrait { display: grid; grid-template-columns: 76px 1fr; gap: var(--s4); align-items: center; }
.hero-portrait img { display: block; width: 76px; height: 95px; object-fit: cover; object-position: 50% 22%; border-radius: var(--r-control); background: var(--surface); filter: var(--photo-filter); }
.hero-portrait figcaption { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s5); margin-block-start: var(--s4); }
.facts div { border-top: 1px solid var(--rule-strong); padding-block: var(--s3) var(--s4); }
.facts dt { font-size: var(--fs-caption); color: var(--muted); }
.facts dd { margin: var(--s1) 0 0; font-weight: 500; line-height: 1.4; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--s9); row-gap: var(--s8); align-items: end; }
  .hero-portrait { display: block; }
  .hero-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-position: 50% 30%; border-radius: var(--r-panel); }
  .hero-portrait figcaption { margin-block-start: var(--s3); }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block-start: 0; }
}

/* ---------- 2 IA, not AI: the schematic band, the page's one bold moment ---------- */
.amp { background: var(--band-bg); color: var(--band-text); }
.section + .amp, .amp + .section { border-top: 0; }
.amp-head { display: grid; gap: var(--s5); }
.amp-head h2 { font-size: var(--fs-h2); }
.amp .thesis { font-family: var(--display); font-size: var(--fs-display); line-height: 1.08; max-width: 15em; }
.amp-body { color: var(--band-muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }
@media (min-width: 1000px) {
  .amp-head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s9); row-gap: var(--s5); }
  .amp-head h2 { grid-row: 1 / span 2; padding-block-start: .35em; }
}
.amp-figure { margin-block-start: var(--s8); }
.schematic { display: block; width: 100%; height: auto; overflow: visible; }
.schematic .wire { fill: none; stroke: var(--wave-in); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.schematic .wire.d3 { stroke: var(--wave-out); stroke-width: 4; }
.schematic .tri { fill: none; stroke: var(--band-text); stroke-width: 6; stroke-linejoin: miter; stroke-linecap: butt; }
@media (max-width: 759px) { .schematic .wire { stroke-width: 6; } .schematic .wire.d3 { stroke-width: 8; } .schematic .tri { stroke-width: 11; } }
.schematic .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.amp.is-drawn .schematic .draw { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-draw) var(--ease); }
.amp.is-drawn .schematic .d2 { transition-delay: calc(var(--dur-draw) * .55); transition-duration: calc(var(--dur-draw) * .6); }
.amp.is-drawn .schematic .d3 { transition-delay: calc(var(--dur-draw) * 1.05); }
@media (prefers-reduced-motion: reduce) { .schematic .draw { stroke-dashoffset: 0; } }
.amp-parts { display: grid; gap: var(--s5); margin-block-start: var(--s6); }
.amp-parts .part { border-top: 1px solid var(--band-line); padding-block-start: var(--s4); }
.amp-parts h3 { font-family: var(--body); font-weight: 600; font-size: var(--fs-body); }
.amp-parts p { margin-block-start: var(--s2); color: var(--band-muted); font-size: var(--fs-small); max-width: 26em; }
@media (min-width: 760px) { .amp-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.amp .credit { margin-block-start: var(--s7); color: var(--band-muted); font-size: var(--fs-caption); }
.amp .credit a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* ---------- 3 what you get: the ladder (a real sequence, hence numbered) ---------- */
.ladder { list-style: none; padding: 0; margin: 0; counter-reset: rung; border-top: 1px solid var(--rule-strong); }
.ladder li { counter-increment: rung; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--s1) var(--s4); padding-block: var(--s4); border-bottom: 1px solid var(--line); align-items: baseline; }
.ladder li::before { content: counter(rung); grid-row: span 2; font-family: var(--display); font-size: 1.75rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.ladder .t { font-weight: 600; line-height: 1.4; }
.ladder .d { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 760px) {
  .ladder li { grid-template-columns: 2.75rem minmax(0, 14em) minmax(0, 1fr); gap: var(--s5); }
  .ladder li::before { grid-row: auto; }
}

/* ---------- 2b sound familiar, 2c how I teach (copy v2, 2026-10-26): like .steps, without numbers ---------- */
.cards { list-style: none; padding: 0; display: grid; gap: var(--s6); }
@media (min-width: 700px) { .cards--2 { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s6); } }
.cards li { padding-block-start: var(--s4); border-top: 1px solid var(--rule-strong); }
.cards h3 { font-family: var(--body); font-weight: 600; font-size: var(--fs-body); }
.cards p { margin-block-start: var(--s2); color: var(--muted); font-size: var(--fs-small); max-width: var(--measure); }

/* ---------- 4 how it works ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--s6); }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s6); } }
.steps li { counter-increment: step; padding-block-start: var(--s4); border-top: 1px solid var(--rule-strong); }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 2.25rem; line-height: 1; color: var(--accent); margin-block-end: var(--s3); }
.steps h3 { font-family: var(--body); font-weight: 600; font-size: var(--fs-body); }
.steps p { margin-block-start: var(--s2); color: var(--muted); font-size: var(--fs-small); }
.capacity { margin-block-start: var(--s8); padding-inline-start: var(--s5); border-inline-start: 2px solid var(--accent); max-width: 36em; }
.capacity p:first-child { font-family: var(--display); font-size: var(--fs-quote); line-height: 1.3; }
.capacity p + p { margin-block-start: var(--s4); color: var(--muted); font-size: var(--fs-small); }
.dates { margin-block-start: var(--s7); display: grid; max-width: 40em; border-bottom: 1px solid var(--line); }
.dates div { display: grid; grid-template-columns: minmax(0, 13em) 1fr; gap: var(--s4); padding-block: var(--s3); border-top: 1px solid var(--line); }
.dates dt { color: var(--muted); }
.dates dd { margin: 0; font-weight: 600; }
@media (max-width: 599px) { .dates div { grid-template-columns: 1fr; gap: 0; } }
.dates--compact { margin-block-start: var(--s6); }

/* ---------- 5 price ---------- */
.price-panel { background: var(--surface); border-radius: var(--r-panel); padding: var(--s6) var(--s5); display: grid; gap: var(--s6); }
@media (min-width: 760px) { .price-panel { padding: var(--s7); } }
@media (min-width: 1200px) { .price-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); } }
.price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.price-big .num { font-family: var(--display); font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; font-variant-numeric: lining-nums; }
.price-big .per { font-size: var(--fs-lead); color: var(--muted); }
.price-total { margin-block-start: var(--s5); font-size: var(--fs-lead); line-height: 1.5; padding-block-start: var(--s4); border-top: 1px solid var(--rule-strong); }
.price-main .dash { margin-block-start: var(--s5); }
.price-aside h3 { font-family: var(--body); font-weight: 600; font-size: var(--fs-body); }
.price-aside p { margin-block-start: var(--s2); font-size: var(--fs-small); }
.price-aside > * + h3 { margin-block-start: var(--s5); }
@media (min-width: 1200px) { .price-aside { padding-inline-start: var(--s6); border-inline-start: 1px solid var(--line); } }
.price-lines { margin-block-start: var(--s6); display: grid; border-bottom: 1px solid var(--line); }
.price-lines div { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); padding-block: var(--s3); border-top: 1px solid var(--line); align-items: baseline; }
.price-lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.price-lines .sub { display: block; color: var(--muted); font-size: var(--fs-caption); font-weight: 400; }
.fine { margin-block-start: var(--s5); color: var(--muted); font-size: var(--fs-small); max-width: var(--measure); list-style: none; padding: 0; }
.fine li + li { margin-block-start: var(--s1); }

/* ---------- 6 fit ---------- */
.fit { display: grid; gap: var(--s7); }
@media (min-width: 700px) { .fit { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.fit h3 { margin-block-end: var(--s4); padding-block-end: var(--s3); border-bottom: 1px solid var(--rule-strong); }
.fit-note { margin-block-start: var(--s7); padding-inline-start: var(--s5); border-inline-start: 2px solid var(--accent); max-width: var(--measure); }
.dash--no li::before { content: "×"; width: auto; height: auto; background: none; top: 0; color: var(--muted); font-weight: 500; }

/* ---------- 7 about ---------- */
.sec-head .pull { margin-block-start: var(--s6); font-family: var(--display); font-size: var(--fs-quote); line-height: 1.3; color: var(--text); max-width: 16em; }
.proofs { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); max-width: 40em; }
.proofs li { display: grid; grid-template-columns: 4.5em 1fr; gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.proofs .when { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- 8 questions ---------- */
.faq { max-width: 44em; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: var(--s4); padding-inline-end: 2.5em; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: .4em; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-inline-end: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding-block: 0 var(--s5); max-width: 38em; color: var(--muted); }
.faq details > div > * + * { margin-block-start: var(--s3); }

/* ---------- 9 apply band ---------- */
.apply-band { background: var(--surface); }
.section + .apply-band { border-top: 0; }
.apply-grid { display: grid; gap: var(--s7); }
.apply-band h2 { font-size: var(--fs-display); line-height: 1.04; max-width: 12em; }
.apply-lead { margin-block-start: var(--s4); font-size: var(--fs-lead); max-width: 28em; }
.apply-band .muted { font-size: var(--fs-small); }
.apply-band .dash { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 1000px) { .apply-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s9); align-items: end; } }

/* ---------- apply page + form ---------- */
.section--page { padding-block-start: var(--s7); }
.page-title { font-size: var(--fs-h2); }
.apply-page { display: grid; gap: var(--s7); }
@media (min-width: 1000px) {
  .apply-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s9); align-items: start; }
  .apply-intro { position: sticky; top: calc(var(--head-h) + var(--s6)); }
}
.entry-line { margin-block-start: var(--s4); font-weight: 500; }
.apply-intro-text { margin-block-start: var(--s3); color: var(--muted); max-width: 30em; }
.form { display: grid; gap: var(--s6); max-width: 40em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; margin-block-end: var(--s2); padding: 0; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .textarea, .select { width: 100%; min-height: 48px; padding: var(--s3) var(--s4); font: inherit; color: var(--text); background: var(--field-bg);
  border: 1px solid var(--field-border); border-radius: var(--r-control); }
.textarea { min-height: 104px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355606B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s4) center; }
html[dir="rtl"] .select { background-position: left var(--s4) center; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--note); }
.error { color: var(--note); font-size: var(--fs-caption); margin-block-start: var(--s2); }
.hint { color: var(--muted); font-size: var(--fs-caption); margin-block-start: var(--s2); }
.hint--ref { margin-block-start: var(--s5); font-size: var(--fs-small); max-width: 30em; }
.choices { display: grid; gap: var(--s2); }
.choice { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--r-control); cursor: pointer; background: var(--field-bg); }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; font-size: var(--fs-small); }
.consent input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--accent); }
.consent .error { grid-column: 2; }
.form-row--2 { display: grid; gap: var(--s5); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field--sub { margin-block-start: var(--s4); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: var(--s4); justify-items: start; }
.small-print { color: var(--muted); font-size: var(--fs-caption); }

/* ---------- simple pages (thanks, legal) ---------- */
.simple { padding-block: var(--s8) var(--s10); }
.simple .page-title { margin-block-end: var(--s5); }
.legal .prose h2 { font-size: var(--fs-h3); margin-block-start: var(--s7); }
.legal .prose ul { padding-inline-start: 1.2em; }
.legal .prose li + li { margin-block-start: var(--s2); }
.legal-switch { display: flex; justify-content: flex-end; gap: var(--s4); margin-block-end: var(--s5); font-size: var(--fs-caption); }
.legal-switch [aria-current] { font-weight: 600; }
/* English first; #de shows the German text instead (D214). Without :has() both languages show, which is fine. */
.legal-lang { scroll-margin-block-start: var(--s8); }
.legal-lang--de { display: none; }
.legal-lang--de:target { display: block; }
.legal:has(#de:target) .legal-lang--en { display: none; }
.legal-home { margin-block-start: var(--s8); }
@media print { .legal-lang--de { display: block; margin-block-start: var(--s9); } .legal-switch { display: none; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: var(--s7) var(--s8); color: var(--muted); font-size: var(--fs-caption); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); align-items: center; }
.site-foot .brand { font-size: 1.2rem; color: var(--muted); }
.site-foot .brand .mark { font-size: 1.4rem; color: var(--muted); }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-inline-start: auto; }
.foot-links a { color: var(--muted); }

/* ---------- Hebrew: Bellefair's Hebrew runs optically small, so display sizes get ~12% more ---------- */
html[lang="he"] h3 { font-size: calc(var(--fs-h3) * 1.12); }
html[lang="he"] .sec-head h2, html[lang="he"] .amp-head h2, html[lang="he"] .page-title { font-size: calc(var(--fs-h2) * 1.12); }
html[lang="he"] .hero h1 { font-size: clamp(2.8rem, 6vw, 5.75rem); max-width: 14ch; line-height: 1.05; }
html[lang="he"] .hero-lede, html[lang="he"] .capacity p:first-child, html[lang="he"] .sec-head .pull { font-size: calc(var(--fs-quote) * 1.1); }
html[lang="he"] .amp .thesis, html[lang="he"] .apply-band h2 { font-size: calc(var(--fs-display) * 1.08); line-height: 1.12; }
html[lang="he"] .brand { font-size: 1.65rem; }
html[lang="he"] .steps h3, html[lang="he"] .price-aside h3, html[lang="he"] .amp-parts h3 { font-size: var(--fs-body); font-family: var(--body-he); }
html[lang="he"] .ladder li::before, html[lang="he"] .steps li::before, html[lang="he"] .price-big .num { font-family: var(--display); }

/* No. 166: one small orange line under the big headings, and the portrait's background follows the theme. */
.sec-head h2::after, .hero h1::after { content: ""; display: block; width: 56px; height: 6px; margin-top: .35em; background: var(--pop); }
:root[data-theme="dark"] .hero-portrait img, :root[data-theme="dark"] .ob-photo { content: url("ido-portrait-166-dark.jpg"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-portrait img, :root:not([data-theme="light"]) .ob-photo { content: url("ido-portrait-166-dark.jpg"); } }

/* Learner's words (25 Nov 2026): tokens only, works in light and dark */
.quotes { display: grid; gap: var(--s6); }
.quote { margin: 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--rule-strong); }
.quote blockquote p { font-family: var(--display); font-size: var(--fs-quote); line-height: 1.3; color: var(--text); max-width: 22em; overflow-wrap: anywhere; }
.quote figcaption { margin-block-start: 0.6rem; font-size: var(--fs-small); color: var(--muted); }
