/* Dargo — the universal site.
   Chunky building blocks: a warm paper ground, the logo's four colours, and
   every piece of a word colour-coded by its job (prefix / core / ending). */

:root {
    --paper: #FAF7F2;
    --sand: #F2EDE4;
    --white: #FFFFFF;
    --ink: #131A2A;
    --ink-2: #3A4356;
    --muted: #4A5468;
    --muted-2: #5A6377;
    --line: #ECE6DB;
    --line-2: #E3DDD2;

    --night: #0E1626;
    --night-2: #16213A;
    --night-line: #24304A;
    --night-muted: #A9B3C7;

    --blue: #2563C0;   --blue-lip: #1A4A94;
    --sky: #4DB6E8;    --sky-lip: #2E8DBE;
    --orange: #E8642A; --orange-lip: #B84A1A;
    --gold: #F5B830;   --gold-lip: #C98F12;
    --green: #2FA866;  --green-lip: #1F7A49;
    --violet: #7C5BD9; --violet-lip: #5B3FB0;

    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Figtree', system-ui, -apple-system, sans-serif;
    --heb: 'Frank Ruhl Libre', 'Times New Roman', serif;
    --arab: 'Noto Naskh Arabic', 'Geeza Pro', serif;

    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --out: cubic-bezier(.22, 1, .36, 1);
    --wrap: 1200px;
    --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-lip); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-optical-sizing: auto; }
.he { font-family: var(--heb); }
.ar { font-family: var(--arab); }
.t-orange { color: var(--orange); }
.t-gold { color: var(--gold); }
.t-blue { color: var(--blue); }
.t-green { color: var(--green-lip); }
.t-violet { color: var(--violet); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Buttons: chunky, with the app's raised lip ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 16px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s var(--out), box-shadow .15s var(--out), background-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(4px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 14px; }
.btn-lg { min-height: 58px; min-width: 190px; padding: 0 28px; font-size: 17px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-lip); }
.btn-blue:hover { color: #fff; background: #2B6CD0; }
.btn-blue:active { box-shadow: 0 1px 0 var(--blue-lip); }
.btn-sm.btn-blue { box-shadow: 0 4px 0 var(--blue-lip); }
.btn-white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2), 0 5px 0 var(--line-2); }
.btn-white:hover { color: var(--ink); background: #FFFDF9; }
.btn-white:active { box-shadow: inset 0 0 0 2px var(--line-2), 0 1px 0 var(--line-2); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-lip); margin-top: 34px; }
.btn-green:hover { color: #fff; background: #33B470; }
.btn-green:active { box-shadow: 0 1px 0 var(--green-lip); }
.btn-onblue { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--blue-lip); }
.btn-onblue:hover { color: var(--ink); }
.btn-onblue:active { box-shadow: 0 1px 0 var(--blue-lip); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #8FB3EC, 0 5px 0 var(--blue-lip); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Scroll progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(19,26,42,.4); }
.nav-row { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--out); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 14px; }
.nav-login:hover { color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); align-items: center; justify-content: center; cursor: pointer; }
.drawer { border-top: 1px solid var(--line); background: var(--paper); padding: 12px var(--gutter) 22px; display: flex; flex-direction: column; gap: 4px; }
.drawer[hidden] { display: none; }
.drawer a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 14px; min-height: 54px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--out), transform .8s var(--out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 0; text-wrap: balance; }
.hero-title, .lede { text-wrap: pretty; }
.h2-sm { font-size: clamp(36px, 4vw, 54px); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; }
.sec { padding: 128px 0; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.night { background: var(--night); color: #fff; }
.night .lede { color: var(--night-muted); }
.sand { background: var(--sand); }
.white { background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 112px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(47,168,102,.55); } 100% { box-shadow: 0 0 0 11px rgba(47,168,102,0); } }
.hero-title { font-size: clamp(50px, 5.7vw, 84px); line-height: .97; letter-spacing: -.035em; font-weight: 800; margin: 26px 0 0; }
.hero .lede { font-size: 20px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg, .checks svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.hero-stage { position: relative; }
.asm {
    position: relative; z-index: 1; margin: 0;
    background: #fff; border-radius: 32px; padding: 26px 30px 26px;
    box-shadow: 0 40px 80px -40px rgba(19,26,42,.35), 0 0 0 1px #EFE9DF;
}
.asm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #F4EFE7; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.lang-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
#asmLang { transition: opacity .3s; }
.asm-dots { display: flex; gap: 2px; }
.asm-dots button { width: 26px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.asm-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .35s var(--out), background-color .35s; }
.asm-dots button[aria-current="true"]::before { width: 22px; background: var(--orange); }

.asm-tiles { display: flex; justify-content: center; align-items: flex-start; gap: 14px; margin-top: 30px; min-height: 128px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .5s var(--out), transform .7s var(--spring); }
.ptxt { display: block; padding: 2px 20px 10px; border-radius: 18px; color: #fff; font-weight: 700; font-size: 58px; line-height: 1.25; white-space: nowrap; transition: opacity .4s, filter .4s; }
.ptile.pre .ptxt { background: var(--blue); box-shadow: 0 6px 0 var(--blue-lip); }
.ptile.core .ptxt { background: var(--orange); box-shadow: 0 6px 0 var(--orange-lip); }
.ptile.end .ptxt { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 var(--gold-lip); }
.ptile.la .ptxt { font-family: var(--display); font-weight: 800; font-size: 50px; padding: 6px 20px 10px; letter-spacing: -.02em; }
.ptile.he .ptxt { font-family: var(--heb); }
.ptile.ar .ptxt { font-family: var(--arab); font-size: 48px; padding: 4px 18px 14px; }
.gloss { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; direction: ltr; }
.ptile.pre .gloss { color: var(--blue); }
.ptile.core .gloss { color: var(--orange-lip); }
.ptile.end .gloss { color: var(--gold-lip); }
.ptile.used .ptxt { opacity: .28; filter: saturate(.3); }

.asm-arrow { display: flex; justify-content: center; margin: 18px 0 2px; }
.asm-arrow svg { width: 40px; height: 40px; padding: 11px; border-radius: 50%; background: #F4EFE7; fill: none; stroke: var(--muted-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.asm-word { text-align: center; font-size: 84px; font-weight: 700; line-height: 1.45; min-height: 1.45em; white-space: nowrap; }
.asm-word.la { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 74px; }
.asm-word.ar { font-family: var(--arab); font-size: 72px; }
.asm-word span { text-decoration-line: underline; text-decoration-color: var(--u); text-decoration-thickness: 7px; text-underline-offset: .3em; text-decoration-skip-ink: none; transition: opacity .25s; }
.asm-word.la span { text-underline-offset: .22em; }
.asm-word span.wait { opacity: 0; }
.asm-meaning { display: flex; flex-direction: column; align-items: center; margin-top: 6px; transition: opacity .5s var(--out), transform .5s var(--out); }
.asm-meaning .display { font-size: 26px; font-weight: 700; }
.asm-note { font-size: 14px; color: #6A7385; font-weight: 600; margin-top: 2px; }
.asm-note .he { font-size: 17px; }
.asm-meaning.wait { opacity: 0; transform: translateY(8px); }
.legend { display: flex; justify-content: center; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #F0EBE2; font-size: 13px; font-weight: 700; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.asm.leaving .ptile, .asm.leaving .asm-word, .asm.leaving .asm-meaning { opacity: 0; transform: translateY(-14px); transition: opacity .45s var(--out), transform .45s var(--out); }
.flyer { position: absolute; z-index: 5; pointer-events: none; color: #fff; border-radius: 16px; white-space: nowrap; will-change: transform; }

.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.floater { position: absolute; padding: 6px 15px 8px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; animation: bob 7s ease-in-out infinite; }
.floater.he, .floater.ar { font-weight: 700; font-size: 26px; padding: 2px 15px 8px; }
.floater.he { font-family: var(--heb); }
.floater.ar { font-family: var(--arab); font-size: 24px; }
.f1 { top: -26px; left: -22px; background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-lip); --r: -8deg; }
.f2 { top: 96px; right: -30px; background: var(--sky); color: var(--ink); box-shadow: 0 5px 0 var(--sky-lip); --r: 7deg; animation-delay: -2s; }
.f3 { bottom: -24px; left: 44px; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-lip); --r: 5deg; animation-delay: -4s; }
.f4 { bottom: 60px; right: -26px; background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-lip); --r: -6deg; animation-delay: -1s; }
.floater { transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--r)); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--night); color: #fff; overflow: hidden; padding: 24px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--display); font-size: 40px; font-weight: 700; white-space: nowrap; line-height: 1.3; }
.ticker-track span.he { font-family: var(--heb); }
.ticker-track span.ar { font-family: var(--arab); font-size: 36px; }
.ticker-track span.g { color: var(--gold); }
.ticker-track span::after { content: ''; width: 20px; height: 20px; background: var(--gold); clip-path: polygon(0 100%, 0 66%, 33% 66%, 33% 33%, 66% 33%, 66% 0, 100% 0, 100% 100%); flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why: pieces multiply ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 28px; margin-top: 56px; align-items: stretch; }
.card-ink { background: var(--ink); color: #fff; border-radius: 30px; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.muted-ink { color: var(--night-muted); font-size: 16px; font-weight: 600; margin: 0; }
.un-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .7s var(--spring), opacity .5s; }
.mini b { font-family: var(--display); font-size: 34px; font-weight: 800; padding: 4px 13px 8px; border-radius: 14px; line-height: 1.1; }
.mini small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mini.pre b { background: var(--blue); box-shadow: 0 5px 0 var(--blue-lip); }
.mini.pre small { color: #8FB3EC; }
.mini.core b { background: var(--orange); box-shadow: 0 5px 0 var(--orange-lip); }
.mini.core small { color: #F4A57F; }
.mini.end b { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-lip); }
.mini.end small { color: #F5CF72; }
.js #unthink:not(.in) .mini { opacity: 0; transform: translateY(30px) rotate(var(--rot, -6deg)); }
#unthink .mini:nth-child(2) { --rot: 7deg; transition-delay: .12s; }
#unthink .mini:nth-child(3) { --rot: -4deg; transition-delay: .24s; }
#unthink .mini:nth-child(4) { --rot: 9deg; transition-delay: .36s; }
.un-line { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }

.card-white { background: #fff; border-radius: 30px; padding: 34px; box-shadow: 0 0 0 1px var(--line); }
.mult-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.mult-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mult-sub { font-size: 15px; color: var(--muted-2); margin-top: 2px; }
.seg { display: inline-flex; gap: 6px; padding: 5px; background: #F4EFE7; border-radius: 14px; }
.seg button { border: 0; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 800; font-size: 14px; background: transparent; color: var(--muted-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(19,26,42,.18); }
.seg-night { background: var(--night-2); margin-top: 30px; }
.seg-night button { min-height: 44px; padding: 0 18px; font-size: 15px; color: var(--night-muted); }
.seg-night button[aria-selected="true"] { background: var(--orange); color: #fff; box-shadow: 0 3px 0 var(--orange-lip); }

.mult-body { margin-top: 26px; overflow-x: auto; }
.grid5 { display: grid; grid-template-columns: 124px repeat(5, minmax(78px, 1fr)); gap: 10px; min-width: 540px; }
.hd { text-align: center; padding: 8px 4px; border-radius: 12px; background: #FEF3D0; color: #8A5D00; }
.hd b, .st b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.hd small, .st small { display: block; font-size: 12px; font-weight: 700; }
.st { display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; border-radius: 12px; background: #FDE8DC; color: var(--orange-lip); }
.cell { min-height: 52px; padding: 0 2px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #E6E0D5, 0 4px 0 #E6E0D5; transition: transform .2s var(--out), background-color .2s, color .2s, box-shadow .2s; }
.cell:hover { transform: translateY(-2px); }
.cell .s { color: var(--orange-lip); }
.cell .e { color: #A87400; }
.cell.on { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-lip); transform: translateY(-2px); }
.cell.on .s, .cell.on .e { color: #fff; }
.cell.hl-row, .cell.hl-col { background: #FBF8F2; }
.pick { display: flex; flex-direction: column; gap: 16px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-lab { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pchip { border: 0; cursor: pointer; min-height: 46px; padding: 0 13px; border-radius: 12px; font: 800 17px var(--display); display: inline-flex; align-items: baseline; gap: 5px; align-items: center; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--out); }
.pchip small { font: 700 11.5px var(--body); opacity: .85; }
.pchip.stem { background: #FDE8DC; color: var(--orange-lip); box-shadow: 0 3px 0 #F3CDB9; }
.pchip.end { background: #FEF3D0; color: #8A5D00; box-shadow: 0 3px 0 #F1DE9F; }
.pchip.stem.on { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-lip); transform: translateY(-2px); }
.pchip.end.on { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold-lip); transform: translateY(-2px); }
.mult-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 24px; padding: 18px 22px; border-radius: 18px; background: #F4EFE7; min-height: 82px; }
.mult-result .w { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mult-result .word { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--blue); display: inline-block; animation: pop .45s var(--spring); }
.mult-result .word .s { color: var(--orange); }
.mult-result .word .e { color: var(--gold-lip); }
.mult-result .mean { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.mult-result .tally { font-size: 15px; font-weight: 800; }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.forms { display: flex; flex-direction: column; gap: 10px; }
.form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 16px; background: var(--paper); animation: rise .5s var(--out) both; animation-delay: var(--d, 0ms); }
.form .m { font-size: 16px; font-weight: 700; color: var(--ink-2); min-width: 130px; }
.form .hw { font-family: var(--heb); font-size: 34px; font-weight: 700; line-height: 1.3; }
.form .ps { display: flex; gap: 8px; }
.form .ps span { font-family: var(--heb); font-size: 26px; font-weight: 700; padding: 0 12px 4px; border-radius: 10px; line-height: 1.35; }
.form .ps .pre { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-lip); }
.form .ps .core { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-lip); }
.form .ps .end { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold-lip); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Method: the root family ---------- */
.family { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 72px; align-items: center; max-width: 1060px; margin: 64px auto 0; }
.family-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.family-lines path { fill: none; stroke: #2E3B58; stroke-width: 2; }
.family-lines path.lit { stroke: var(--orange); stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.family-lines circle { fill: var(--gold); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.fam-col { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.fam-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8FB3EC; text-align: center; }
.node { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); animation: rise .55s var(--out) both; animation-delay: var(--d, 0ms); transition: box-shadow .3s, transform .3s var(--out); }
.node.lit { box-shadow: inset 0 0 0 2px var(--orange); transform: scale(1.02); }
.node .g { font-size: 16px; font-weight: 700; }
.node .r { font-size: 13px; color: #8A95AB; margin-top: 2px; }
.node .w { font-size: 34px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.node .w.la { font-family: var(--display); font-weight: 800; font-size: 28px; }
.node .w.he { font-family: var(--heb); }
.node .w b { color: #FF8A4C; font-weight: inherit; }
.fam-root { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.root-disc { width: 230px; height: 230px; border-radius: 50%; background: var(--orange); box-shadow: 0 10px 0 var(--orange-lip), 0 0 0 14px rgba(232,100,42,.14), 0 0 0 30px rgba(232,100,42,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 10px 0 var(--orange-lip), 0 0 0 14px rgba(232,100,42,.14), 0 0 0 30px rgba(232,100,42,.06); } 50% { box-shadow: 0 10px 0 var(--orange-lip), 0 0 0 20px rgba(232,100,42,.16), 0 0 0 42px rgba(232,100,42,.05); } }
.root-word { font-size: 62px; font-weight: 800; line-height: 1.1; transition: opacity .3s; }
.root-word.he { font-family: var(--heb); font-weight: 700; }
.root-word.la { font-family: var(--display); letter-spacing: -.02em; }
.root-gloss { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.root-cap { font-size: 14px; font-weight: 700; color: var(--night-muted); text-align: center; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 104px; }
.pillar { padding: 28px; border-radius: 24px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.pnum { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--c); box-shadow: 0 4px 0 var(--l); font: 800 22px var(--display); color: #fff; }
.pillar h3 { font-size: 21px; font-weight: 800; margin: 22px 0 0; letter-spacing: -.01em; line-height: 1.2; }
.pillar p { font-size: 15.5px; color: var(--night-muted); margin: 10px 0 0; }

/* ---------- How: the staircase ---------- */
#how { position: relative; }
.how-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.how-head > div { max-width: 680px; }
.how-head .lede { max-width: 380px; font-size: 17px; margin: 0; }
.stairs { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.stair-slot { height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.block { height: var(--h); border-radius: 22px 22px 10px 10px; background: var(--c); box-shadow: 0 8px 0 var(--l); padding: 18px 20px; transform-origin: 50% 100%; transition: transform .9s var(--spring), filter .4s; transition-delay: var(--bd, 0ms); position: relative; }
.block span { font: 800 42px/1 var(--display); color: #fff; }
.block::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--c); transition: box-shadow .4s; }
.stair.on .block::after { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
.js .stairs:not(.in) .block { transform: scaleY(0); }
.stair:nth-child(2) { --bd: 110ms; } .stair:nth-child(3) { --bd: 220ms; } .stair:nth-child(4) { --bd: 330ms; } .stair:nth-child(5) { --bd: 440ms; }
.stair h3 { font-size: 20px; font-weight: 800; margin: 30px 0 0; letter-spacing: -.01em; line-height: 1.2; }
.stair p { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.climber { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .4s; pointer-events: none; will-change: transform; z-index: 2; }
.climber.show { opacity: 1; }
.climber-face { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ---------- Inside a lesson ---------- */
.lesson-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.ltabs { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.ltab { position: relative; overflow: hidden; cursor: pointer; text-align: left; border: 0; padding: 16px 20px; border-radius: 18px; display: flex; gap: 16px; align-items: center; background: transparent; transition: background-color .3s, box-shadow .3s; }
.ltab:hover { background: rgba(255,255,255,.55); }
.ltab[aria-selected="true"] { background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 12px 30px -16px rgba(19,26,42,.3); }
.ltab-n { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #B9B2A6; color: #fff; font: 800 16px var(--display); transition: background-color .3s; }
.ltab[aria-selected="true"] .ltab-n { background: var(--c); }
.ltab b { display: block; font-size: 17px; color: var(--ink); }
.ltab small { display: block; font-size: 14.5px; color: var(--muted-2); margin-top: 1px; }
.ltab-bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 2px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.ltab[aria-selected="true"] .ltab-bar.run { animation: tabfill var(--dur, 6s) linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }

.device { background: #1B2233; border-radius: 42px; padding: 16px; box-shadow: 0 40px 80px -40px rgba(19,26,42,.5); }
.screen { background: #F0F4FA; border-radius: 28px; height: 500px; padding: 22px 26px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.scr-top { display: flex; align-items: center; gap: 16px; }
.scr-x { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #E2E8F2; }
.scr-x svg { width: 14px; height: 14px; fill: none; stroke: #6B7A8D; stroke-width: 3; stroke-linecap: round; }
.scr-progress { flex: 1; height: 12px; border-radius: 6px; background: #E2E8F2; overflow: hidden; }
.scr-progress span { display: block; height: 100%; width: 30%; border-radius: 6px; background: #38B673; transition: width .8s var(--out); }
.coins { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #FEF3D0; font-weight: 800; font-size: 14px; color: #8A5D00; }
.coins svg { width: 16px; height: 16px; }
.coins.bump { animation: pop .5s var(--spring); }
.scr { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.scr[hidden] { display: none; }
.scr-q { font-size: 22px; font-weight: 800; margin-top: 26px; text-align: center; }
.teacher { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.t-face { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.bubble { padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 0 0 1px #E2E8F2; }
.slots { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.slot { min-width: 96px; height: 84px; border-radius: 16px; box-shadow: inset 0 0 0 2.5px #CFD7E5; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; }
.slot:has(.dtile) { box-shadow: none; background: transparent; }
.tray { display: flex; justify-content: center; gap: 12px; margin-top: 28px; min-height: 70px; }
.dtile { font-size: 40px; font-weight: 700; padding: 0 18px 6px; border-radius: 14px; line-height: 1.45; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #E2E8F2, 0 4px 0 #CFD7E5; transition: background-color .3s, color .3s, box-shadow .3s; will-change: transform; }
.dtile.placed.pre { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-lip); }
.dtile.placed.core { background: var(--orange); color: #fff; box-shadow: 0 5px 0 var(--orange-lip); }
.dtile.ghost { color: #98A4B6; }
.feedback { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 18px; background: #DDF5E7; color: var(--green-lip); font-weight: 800; font-size: 17px; opacity: 0; transform: translateY(calc(100% + 40px)); transition: transform .5s var(--spring), opacity .3s; }
.feedback.show { transform: none; opacity: 1; }
.feedback > span { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback svg { width: 22px; height: 22px; fill: none; stroke: var(--green-lip); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.feedback .he { font-size: 24px; }
.feedback b { color: #8A5D00; background: #FEF3D0; padding: 6px 12px; border-radius: 999px; }
.speaker, .mic { position: relative; width: 112px; height: 112px; margin: 26px auto 0; }
.mic { width: 84px; height: 84px; margin-top: 30px; }
.speaker .ring, .mic .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--sky); animation: ring 1.8s ease-out infinite; }
.mic .ring { background: #F4A57F; }
.speaker .r2 { animation-delay: .9s; }
@keyframes ring { 0% { transform: scale(.8); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.spk { position: absolute; inset: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 6px 0 var(--blue-lip); display: flex; align-items: center; justify-content: center; }
.spk.orange { background: var(--orange); box-shadow: 0 5px 0 var(--orange-lip); }
.spk svg { width: 44%; height: 44%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.opt { min-width: 128px; text-align: center; padding: 14px 18px; border-radius: 16px; background: #fff; font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 2px #E2E8F2, 0 4px 0 #CFD7E5; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--spring); }
.opt.picked { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-lip); transform: translateY(-3px); }
.verse { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #E2E8F2; font-size: 44px; font-weight: 700; }
.verse span { padding: 0 10px 4px; border-radius: 10px; line-height: 1.4; transition: background-color .3s, color .3s, box-shadow .3s; }
.verse span.now { box-shadow: inset 0 -4px 0 var(--gold); }
.verse span.ok { color: var(--green-lip); background: #DDF5E7; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin-top: 26px; }
.pairs span { text-align: center; padding: 14px; border-radius: 16px; background: #fff; font-weight: 800; font-size: 21px; box-shadow: inset 0 0 0 2px #E2E8F2, 0 4px 0 #CFD7E5; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--spring); }
.pairs span.sel { box-shadow: inset 0 0 0 2.5px var(--sky), 0 4px 0 var(--sky-lip); transform: translateY(-2px); }
.pairs span.m0 { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-lip); }
.pairs span.m1 { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-lip); }
.pairs span.m2 { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-lip); }

/* ---------- Languages ---------- */
.langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 60px; }
.lang { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--out), box-shadow .35s; }
.lang:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px rgba(19,26,42,.3); }
.lang-next { background: transparent; box-shadow: inset 0 0 0 2px var(--line-2); }
.lang-next:hover { box-shadow: inset 0 0 0 2px var(--line-2), 0 24px 40px -24px rgba(19,26,42,.2); }
.lang-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.glyph { width: 72px; height: 72px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; background: var(--c); color: #fff; box-shadow: 0 6px 0 var(--l); transition: transform .5s var(--spring); }
.glyph.he { font-weight: 700; }
.glyph.ink { color: var(--ink); }
.lang:hover .glyph { transform: translateY(-4px) rotate(-6deg); }
.status { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.s-green { background: #DDF5E7; color: var(--green-lip); }
.s-blue { background: #D6EEFA; color: #1F55A8; }
.s-orange { background: #FDE8DC; color: var(--orange-lip); }
.s-sand { background: #F4EFE7; color: var(--ink-2); }
.lang h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 26px 0 0; }
.lang p { font-size: 15.5px; color: var(--muted); margin: 10px 0 0; flex: 1; }
.sample { margin-top: 22px; padding-top: 16px; border-top: 1px solid #F0EBE2; font-size: 30px; font-weight: 700; line-height: 1.4; }
.sample.display { font-weight: 800; letter-spacing: -.02em; }
.lang-wide { grid-column: span 2; }
.heb-path { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #F0EBE2; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--paper); }
.st-lab { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.st-word { font-size: 36px; font-weight: 700; line-height: 1.4; color: var(--ink); align-self: flex-start; }
.st-word b { color: var(--orange); font-weight: inherit; }
.stage small { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.st-arrow svg { display: block; width: 44px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sample-link { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); font-weight: 800; text-decoration: none; }

/* ---------- Schools: the live board ---------- */
.schools-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; margin-top: 60px; align-items: start; }
.board { background: #fff; color: var(--ink); border-radius: 28px; padding: 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.board-title { font-size: 20px; font-weight: 800; }
.board-sub { font-size: 13.5px; color: var(--muted-2); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #DDF5E7; color: var(--green-lip); font-weight: 800; font-size: 13px; }
.lanes-scroll { overflow-x: auto; margin-top: 20px; }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; min-width: 560px; }
.lane { border-radius: 18px; padding: 12px; background: var(--bg); height: 372px; overflow: hidden; }
.lane-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--fg); }
.lane-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kid { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(19,26,42,.08); will-change: transform; }
.kid i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; font-style: normal; background: var(--kc); transition: background-color .4s; }
.kid b { display: block; font-size: 13.5px; line-height: 1.2; }
.kid small { display: block; font-size: 11.5px; color: var(--muted-2); line-height: 1.3; }
.kid.flash { animation: flash 1s var(--out); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--kc); } 100% { box-shadow: 0 1px 0 rgba(19,26,42,.08); } }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.features li { display: flex; gap: 16px; }
.fi { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); display: flex; align-items: center; justify-content: center; }
.fi::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.features h3 { font-size: 17px; font-weight: 800; margin: 0; }
.features p { font-size: 15px; color: var(--night-muted); margin: 4px 0 0; line-height: 1.55; }

/* ---------- Families ---------- */
.families-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; font-weight: 600; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 360px; max-width: 100%; background: #1B2233; border-radius: 48px; padding: 14px; box-shadow: 0 40px 80px -40px rgba(19,26,42,.5); transform: rotate(2deg); transition: transform .6s var(--out); }
.phone:hover { transform: rotate(0); }
.phone-screen { background: #F0F4FA; border-radius: 36px; padding: 26px 20px 22px; }
.phone-h { font-size: 22px; font-weight: 800; }
.child-card { margin-top: 16px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #E2E8F2; }
.child-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.child-name { flex: 1; min-width: 0; }
.child-name b { display: block; font-size: 18px; }
.child-name small { display: block; font-size: 13px; color: var(--muted-2); }
.tag-green { padding: 5px 10px; border-radius: 999px; background: #DDF5E7; color: var(--green-lip); font-size: 12px; font-weight: 800; white-space: nowrap; }
.mini-h { font-size: 13px; font-weight: 800; color: var(--muted-2); margin-top: 18px; }
.mini-h.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; margin-top: 10px; }
.bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars i { width: 100%; height: var(--v); border-radius: 8px; background: var(--violet); transform-origin: 50% 100%; transition: transform .9s var(--spring); }
.bars span.off i { background: #CFD7E5; }
.bars b { font-size: 11px; color: #98A4B6; }
.js .bars:not(.in) i { transform: scaleY(0); }
.bars span:nth-child(2) i { transition-delay: .06s; } .bars span:nth-child(3) i { transition-delay: .12s; } .bars span:nth-child(4) i { transition-delay: .18s; } .bars span:nth-child(5) i { transition-delay: .24s; } .bars span:nth-child(6) i { transition-delay: .3s; } .bars span:nth-child(7) i { transition-delay: .36s; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.c-blue { background: #D6EEFA; color: #1F55A8; }
.c-gold { background: #FEF3D0; color: #8A5D00; }
.next-up { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #F7F9FC; }
.next-up span { font-size: 13px; font-weight: 800; color: var(--muted-2); }
.next-up b { font-size: 14px; text-align: right; }

/* ---------- Privacy ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.fact { padding: 26px; border-radius: 22px; background: var(--paper); }
.fact .sq { display: block; width: 36px; height: 36px; border-radius: 11px; background: var(--c); box-shadow: 0 3px 0 var(--l); }
.fact h3 { font-size: 19px; font-weight: 800; margin: 18px 0 0; line-height: 1.25; }
.fact p { font-size: 15.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Numbers ---------- */
.numbers { padding: 96px 0 24px; }
.numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.num .display { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.num p { font-size: 16px; font-weight: 700; color: var(--muted); margin: 10px 0 0; }

/* ---------- CTA ---------- */
.cta { padding: 72px 0 112px; }
.cta-card { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: 40px; padding: 72px 56px; }
.cta-copy { position: relative; max-width: 640px; }
.cta-copy .h2 { margin: 0; }
.cta-copy p { font-size: 19px; color: #DCE7FA; margin: 20px 0 0; }
.cta-mail { font-size: 15px; color: #DCE7FA; margin-top: 26px; }
.cta-mail a { color: #fff; font-weight: 800; }
.cta-steps { position: absolute; right: 44px; bottom: 0; display: flex; align-items: flex-end; gap: 10px; }
.cta-steps span { width: 70px; height: var(--h); border-radius: 16px 16px 0 0; background: var(--c); transform-origin: 50% 100%; transition: transform 1s var(--spring); }
.js .cta-card:not(.in) .cta-steps span { transform: scaleY(0); }
.cta-steps span:nth-child(2) { transition-delay: .12s; } .cta-steps span:nth-child(3) { transition-delay: .24s; } .cta-steps span:nth-child(4) { transition-delay: .36s; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-brand { max-width: 360px; }
.foot-brand img { height: 32px; width: auto; }
.foot-brand p { font-size: 15px; color: var(--muted-2); margin: 16px 0 0; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-cols b { font-weight: 800; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--blue); }
.foot-legal { margin-top: 40px; font-size: 13.5px; color: #6A7385; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { gap: 48px; }
    .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family { gap: 40px; }
    .root-disc { width: 190px; height: 190px; }
    .root-word { font-size: 50px; }
}
@media (max-width: 960px) {
    .nav-links, .nav-login, .nav-cta > .btn { display: none; }
    .menu-btn { display: inline-flex; }
    .hero { padding: 40px 0 88px; }
    .hero-grid, .why-grid, .lesson-grid, .schools-grid, .families-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-stage { max-width: 560px; width: 100%; margin: 0 auto; }
    .family { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 520px; }
    .fam-root { order: -1; }
    .family-lines { display: none; }
    .stairs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .stair { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; align-items: center; }
    .stair-slot { height: auto; grid-row: span 2; }
    .block { height: 76px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 20px; }
    .stair:nth-child(2) { margin-left: 14px; } .stair:nth-child(3) { margin-left: 28px; } .stair:nth-child(4) { margin-left: 42px; } .stair:nth-child(5) { margin-left: 56px; }
    .block span { font-size: 34px; }
    .stair h3 { margin: 0; align-self: end; }
    .stair p { align-self: start; margin-top: 4px; }
    .js .stairs:not(.in) .block { transform: scale(.4); }
    .climber { display: none; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .cta-steps { opacity: .35; }
    .sec { padding: 96px 0; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .lede, .hero .lede { font-size: 17px; }
    .hero-title { font-size: 46px; }
    .cta-row .btn { flex: 1 1 100%; }
    .asm { padding: 20px 18px; border-radius: 26px; }
    .asm-tiles { gap: 9px; min-height: 96px; margin-top: 24px; }
    .ptxt { font-size: 40px; padding: 2px 13px 8px; border-radius: 14px; }
    .ptile.la .ptxt { font-size: 30px; padding: 4px 12px 8px; }
    .ptile.ar .ptxt { font-size: 32px; padding: 2px 12px 10px; }
    .gloss { font-size: 11px; }
    .asm-word { font-size: 56px; }
    .asm-word.la { font-size: 42px; }
    .asm-word.ar { font-size: 48px; }
    .asm-word span { text-decoration-thickness: 5px; }
    .legend { gap: 14px; }
    .floater { font-size: 17px; }
    .floater.he, .floater.ar { font-size: 20px; }
    .f1 { left: -6px; } .f2 { right: -8px; } .f4 { right: -8px; }
    .ticker-track span { font-size: 28px; gap: 24px; padding-right: 24px; }
    .ticker-track span.ar { font-size: 26px; }
    .card-ink, .card-white { padding: 26px 20px; border-radius: 24px; }
    .mini b { font-size: 30px; padding: 2px 12px 6px; }
    .un-line { font-size: 24px; }
    .langs, .pillars, .facts { grid-template-columns: minmax(0, 1fr); }
    .lang-wide { grid-column: auto; }
    .heb-path { gap: 8px; }
    .stage { padding: 12px; }
    .st-word { font-size: 28px; }
    .st-arrow svg { width: 28px; }
    .node .w { font-size: 28px; }
    .screen { height: 470px; padding: 16px; }
    .device { border-radius: 32px; padding: 10px; }
    .slot { min-width: 70px; height: 70px; }
    .dtile { font-size: 32px; padding: 0 13px 5px; }
    .verse { font-size: 32px; gap: 6px; padding: 14px; }
    .opt { min-width: 0; flex: 1 1 30%; font-size: 18px; padding: 12px 6px; }
    .pairs { gap: 10px 14px; }
    .pairs span { font-size: 17px; padding: 12px 6px; }
    .feedback { font-size: 15px; padding: 12px 14px; }
    .num .display { font-size: 48px; }
    .cta-card { padding: 48px 22px 140px; border-radius: 28px; }
    .cta-steps { right: 20px; opacity: 1; transform: scale(.55); transform-origin: 100% 100%; }
    .foot-cols { gap: 36px; }
}

/* ---------- Phones: fewer things, more air ----------
   The desktop page is a lot to carry at 390 px. Here each section keeps its
   one point: shorter copy, nothing floating against the edges, side-scrolling
   rows where a stack of cards would run on, and a board that fits. */
.m-only { display: none; }
@media (max-width: 640px) {
    :root { --gutter: 20px; }
    .m-hide { display: none; }
    .m-only { display: inline; }
    .sec { padding: 72px 0; }
    .h2, .h2-sm { font-size: 34px; }
    .lede, .hero .lede { font-size: 16.5px; margin-top: 16px; }
    .eyebrow { font-size: 12px; }

    /* Hero: the headline, one sentence, two buttons, the assembler. */
    .hero { padding: 28px 0 64px; }
    .hero-grid { gap: 40px; }
    .eyebrow-chip { font-size: 13px; padding: 6px 14px 6px 10px; }
    .hero-title { font-size: 44px; margin-top: 18px; }
    .cta-row { margin-top: 26px; gap: 10px; flex-wrap: nowrap; }
    .cta-row .btn { flex: 1 1 0; min-width: 0; min-height: 54px; padding: 0 12px; font-size: 16px; }
    .trust, .floaters, .legend, .asm-arrow { display: none; }
    .asm { padding: 18px 16px 22px; box-shadow: 0 24px 48px -30px rgba(19,26,42,.35), 0 0 0 1px #EFE9DF; }
    .asm-tiles { margin-top: 22px; min-height: 92px; }
    .asm-word { margin-top: 14px; }

    .ticker { padding: 16px 0; }
    .ticker-track span { font-size: 24px; gap: 20px; padding-right: 20px; }
    .ticker-track span.ar { font-size: 22px; }
    .ticker-track span::after { width: 14px; height: 14px; }

    /* Why */
    .why-grid { margin-top: 36px; gap: 16px; }
    .card-ink { gap: 26px; }
    .mult-result { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 14px 18px; }
    .mult-result .word { font-size: 30px; }

    /* Method: two relatives a side, the details left for the desktop. */
    .family { margin-top: 40px; gap: 18px; }
    .root-disc { width: 150px; height: 150px; }
    .root-word { font-size: 40px; }
    .root-gloss { font-size: 12px; }
    .fam-col .node:nth-child(4) { display: none; }
    .node { padding: 12px 16px; }
    .node .r { display: none; }
    .node .w { font-size: 28px; }

    /* Rows you swipe instead of cards that stack. */
    .pillars, .facts {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 48px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 10px;
        scroll-padding-inline: var(--gutter); scrollbar-width: none;
    }
    .pillars::-webkit-scrollbar, .facts::-webkit-scrollbar { display: none; }
    .pillar, .fact { flex: 0 0 80%; scroll-snap-align: start; }
    .facts { margin-top: 36px; }
    .fact { background: var(--paper); }

    /* How */
    .stairs { margin-top: 40px; }
    .block { height: 64px; border-radius: 18px; }
    .stair { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
    .block span { font-size: 28px; }
    .stair h3 { font-size: 18px; }
    .stair p { font-size: 14.5px; }

    /* Lesson: the tabs become a row of pills over the tablet. */
    .lesson-grid { gap: 22px; }
    .ltabs { flex-direction: row; gap: 8px; overflow-x: auto; margin: 24px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
    .ltabs::-webkit-scrollbar { display: none; }
    .ltab { flex: 0 0 auto; padding: 8px 14px 10px 8px; border-radius: 14px; gap: 10px; background: rgba(255,255,255,.5); }
    .ltab small { display: none; }
    .ltab b { font-size: 15px; white-space: nowrap; }
    .ltab-n { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
    .ltab-bar { left: 12px; right: 12px; }
    .screen { height: 430px; }
    .teacher { margin-top: 18px; }
    .bubble { font-size: 14px; padding: 10px 12px; }
    .scr-q { font-size: 19px; margin-top: 18px; }

    /* Languages */
    .langs { margin-top: 36px; gap: 14px; }
    .lang { padding: 22px; border-radius: 24px; }
    .glyph { width: 56px; height: 56px; font-size: 30px; border-radius: 17px; }
    .lang h3 { font-size: 22px; margin-top: 18px; }

    /* Schools: the board fits — four lanes in a square, names only. */
    .schools-grid { margin-top: 36px; gap: 36px; }
    .board { padding: 16px; border-radius: 22px; }
    .board-sub { display: none; }
    .lanes-scroll { overflow: visible; margin-top: 14px; }
    .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 8px; }
    .lane { height: 232px; padding: 10px; border-radius: 14px; }
    .lane-list { gap: 6px; margin-top: 8px; }
    .kid { padding: 5px 6px; gap: 6px; border-radius: 10px; }
    .kid i { width: 24px; height: 24px; font-size: 11px; }
    .kid small { display: none; }
    .features { gap: 20px; }
    .features p { font-size: 14.5px; }

    /* Families */
    .families-grid { gap: 40px; }
    .checks { margin-top: 20px; gap: 10px; }
    .checks li { font-size: 15.5px; }
    .btn-green { margin-top: 26px; width: 100%; }
    .phone { width: 300px; transform: none; }

    .numbers { padding: 56px 0 8px; }
    .num .display { font-size: 44px; }
    .num p { font-size: 14.5px; }
    .cta { padding: 40px 0 64px; }
    .cta-copy p { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .ticker-track { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
}
