/* streetalk.app — marketing site
   Same design system as the app: limestone / deep-teal / saffron / paprika / cobalt,
   Secular One (street sign) for display, Rubik for text. Logical properties throughout (RTL + LTR).
   Motion: everything animated is transform/opacity only, and is switched off for prefers-reduced-motion. */

:root {
  --bg: #eef1ea;
  --bg2: #e4e9e0;
  --ink: #17201c;
  --ink2: #4c5a54;
  --ink3: #7d8a83;
  --teal: #0b5f58;
  --teal-deep: #07443f;
  --teal-soft: #dceae4;
  --teal-ghost: #edf4f0;
  --saffron: #e8a21b;
  --saffron-deep: #9a6506;
  --saffron-soft: #fbeed2;
  --paprika: #c24327;
  --paprika-soft: #f7e2da;
  --cobalt: #23509b;
  --cobalt-soft: #dfe7f5;
  --card: #ffffff;
  --line: #d8ded4;
  --night: #0e1a2b;
  --night-2: #16253b;
  --night-ink: #e9eef7;
  --night-ink2: #a9b6c9;

  --disp: 'Secular One', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', -apple-system, 'Segoe UI', 'Arial Hebrew', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 10px 30px rgba(23, 32, 28, .09), 0 2px 6px rgba(23, 32, 28, .05);
  --shadow-lg: 0 30px 70px rgba(23, 32, 28, .18), 0 6px 16px rgba(23, 32, 28, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --flip: 1;
}
[dir='rtl'] { --flip: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  background-image:
    radial-gradient(1200px 520px at 85% -10%, #f7f9f4 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 96px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--saffron-soft); }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* page progress */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), #f6c453); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
[dir='rtl'] .progress i { transform-origin: 100% 50%; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 241, 234, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}
.top-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.brand svg { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 6px rgba(7, 68, 63, .2)); }
.brand-word { font-family: var(--disp); font-size: 1.45rem; line-height: 1; color: var(--teal-deep); direction: ltr; unicode-bidi: isolate; }
.brand-word b { font-weight: 400; color: var(--saffron-deep); }
.eq { transform-box: fill-box; transform-origin: 50% 100%; }
.brand:hover .eq, .talking .eq { animation: eqTalk .85s cubic-bezier(.77, 0, .175, 1) infinite; }
.brand:hover .eq.d2, .talking .eq.d2 { animation-delay: .1s; }
.brand:hover .eq.d3, .talking .eq.d3 { animation-delay: .2s; }
@keyframes eqTalk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.brand-big { display: block; width: 86px; height: 86px; margin: 0 auto 18px; filter: drop-shadow(0 8px 16px rgba(7, 68, 63, .22)); }
.brand-mini { width: 20px; height: 20px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.nav .lang { font-family: var(--mono); font-weight: 700; font-size: .8rem; border: 1px solid var(--line); }
.nav-cta { margin-inline-start: 6px; }
.top .btn-primary { box-shadow: 0 4px 12px rgba(7, 68, 63, .2); }
@media (max-width: 900px) { .nav a:not(.lang) { display: none; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font: 600 1.02rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(180deg, #117a71, var(--teal-deep)); color: #fff; box-shadow: 0 10px 24px rgba(7, 68, 63, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(7, 68, 63, .34); }
.btn-gold { background: linear-gradient(180deg, #f6c453, var(--saffron)); color: #2a1d02; box-shadow: 0 10px 24px rgba(232, 162, 27, .32); }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--teal-soft); }
.btn-ghost:hover { background: #fff; color: var(--teal-deep); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.btn-xl { min-height: 64px; padding: 12px 30px; flex-direction: column; gap: 2px; font-size: 1.14rem; }
.btn-xl small { font-weight: 500; font-size: .78rem; opacity: .82; }
.btn-wide { width: 100%; }
.play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #101614; color: #fff; border-radius: 16px; padding: 10px 20px 10px 18px; min-height: 64px;
  box-shadow: 0 12px 26px rgba(16, 22, 20, .25); transition: transform .25s var(--ease);
}
.play:hover { color: #fff; transform: translateY(-2px); }
.play svg { width: 28px; height: 28px; flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.play small { font-size: .74rem; opacity: .8; letter-spacing: .02em; }
.play b { font-size: 1.12rem; font-weight: 600; }
.play[aria-disabled='true'] { cursor: default; }
.play[aria-disabled='true']:hover { transform: none; }

/* ── shared section bits ── */
.sec { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.sec-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { text-align: center; margin-inline: auto; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--saffron-deep); text-transform: uppercase; }
.sec h2, .story h2, .route h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); margin-block: 10px 16px; }
.sec-lead { color: var(--ink2); font-size: clamp(1.04rem, 1.4vw, 1.18rem); max-width: 36em; }
.sec-head.center .sec-lead { margin-inline: auto; }
.pill { font-weight: 600; font-size: .78rem; color: var(--teal-deep); background: var(--teal-soft); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 5vw, 64px) clamp(70px, 9vw, 110px); min-height: min(900px, calc(100svh - 68px)); display: grid; align-items: center; }
.mesh { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; opacity: .75; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.mesh i:nth-child(1) { width: 60vw; height: 60vw; background: radial-gradient(closest-side, #cfe5dc, rgba(207, 229, 220, 0)); inset-inline-end: -12vw; top: -14vw; }
.mesh i:nth-child(2) { width: 46vw; height: 46vw; background: radial-gradient(closest-side, #f8e3b4, rgba(248, 227, 180, 0)); inset-inline-start: -10vw; bottom: -12vw; animation-duration: 22s; }
.mesh i:nth-child(3) { width: 36vw; height: 36vw; background: radial-gradient(closest-side, #dfe7f5, rgba(223, 231, 245, 0)); inset-inline-start: 30%; top: 34%; opacity: .45; animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0); } }

.bigwords {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; direction: ltr; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 1vh;
}
.bw-row { display: flex; gap: 5vw; width: max-content; white-space: nowrap; font-family: var(--disp); font-size: clamp(5rem, 15vw, 14rem); line-height: 1.05; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 95, 88, .1); animation: marquee 70s linear infinite; will-change: transform; }
.bw-row.rev { animation-direction: reverse; -webkit-text-stroke-color: rgba(232, 162, 27, .2); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--teal-deep);
  background: rgba(255, 255, 255, .85); border: 1px solid var(--teal-soft); border-radius: 999px; padding: 6px 14px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(232, 162, 27, 0); } }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 1.02; margin-block: 20px 22px; }
.hero h1 .ln { display: block; overflow: hidden; padding-block: .06em; }
.hero h1 .dim { color: var(--ink3); font-size: .66em; padding-top: .18em; }
.mark { color: var(--teal-deep); background: linear-gradient(180deg, transparent 60%, var(--saffron-soft) 60%, var(--saffron-soft) 92%, transparent 92%); padding-inline: .06em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--ink2); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 30px 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink2); font-size: .93rem; list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%230b5f58' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* entrance: lines rise out of their mask, the rest fades up */
.rise { display: block; opacity: 0; transform: translateY(26px); animation: riseIn .95s var(--ease) forwards; }
.ln .rise { display: inline-block; opacity: 1; transform: translateY(108%); }
.eyebrow.rise { display: inline-flex; }
.cta-row.rise, .trust.rise { display: flex; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .12s; } .r3 { animation-delay: .22s; }
.r4 { animation-delay: .32s; } .r5 { animation-delay: .46s; } .r6 { animation-delay: .58s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* hero stage: live cards, not screenshots */
.hero-stage { position: relative; height: clamp(470px, 46vw, 600px); --mx: 0; --my: 0; }
.hs-glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 95, 88, .2), rgba(11, 95, 88, 0)); }
.hs-card { position: absolute; background: #fff; border: 1px solid #fff; border-radius: 28px; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.hs-main { inset-inline: 0; margin-inline: auto; top: 17%; width: min(340px, 78%); padding: 20px 22px 18px; animation: floatY 7s ease-in-out infinite; }
.phrase-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 600; }
.phrase-top .say { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.phrase-he { font-family: var(--disp); font-size: 1.35rem; color: var(--ink2); margin-top: 12px; }
.phrase-slot { position: relative; height: 104px; margin-top: 2px; }
.phrase-item { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-inline-end: 44px; opacity: 0; translate: 0 12px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
.phrase-item.on { opacity: 1; translate: 0 0; }
.phrase-item .w { font-family: var(--disp); font-size: 2.6rem; line-height: 1.12; color: var(--teal-deep); }
.phrase-item .t { color: var(--saffron-deep); font-weight: 600; font-size: 1.12rem; }
.phrase-item .l { position: absolute; inset-inline-end: 0; top: 10px; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--ink3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.no-js .phrase-item:first-child { opacity: 1; translate: 0 0; }

.eqbars { display: flex; align-items: center; gap: 4px; height: 30px; margin-top: 8px; direction: ltr; }
.eqbars i { flex: 1; max-width: 7px; height: 100%; border-radius: 99px; background: linear-gradient(180deg, #f6c453, var(--saffron)); transform-origin: 50% 50%; animation: eqBar 1.1s ease-in-out infinite; }
.eqbars i:nth-child(3n) { animation-duration: .8s; } .eqbars i:nth-child(3n + 1) { animation-duration: 1.35s; }
.eqbars i:nth-child(2n) { animation-delay: -.35s; } .eqbars i:nth-child(5n) { animation-delay: -.7s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.hs-ring { inset-inline-end: -2%; top: -4%; width: 132px; z-index: 2; padding: 14px 12px 12px; display: grid; justify-items: center; animation: floatY 9s ease-in-out -2s infinite; }
.hs-ring .ring-svg { width: 84px; height: 84px; }
.hs-ring b { position: absolute; top: 14px; height: 84px; display: grid; place-items: center; font: 400 2rem var(--disp); color: var(--saffron-deep); }
.hs-ring span { font-size: .78rem; font-weight: 600; color: var(--ink2); margin-top: 4px; }
.ring-svg { display: block; rotate: -90deg; }
.ring-bg { fill: none; stroke: var(--saffron-soft); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--saffron); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ring-fg.auto { animation: ringLoop 4.2s linear infinite; }
.ring-fg.done { stroke-dashoffset: 26; }
@keyframes ringLoop { 0% { stroke-dashoffset: 100; } 72%, 100% { stroke-dashoffset: 0; } }
@keyframes ringClose { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.hs-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); white-space: nowrap; transition: transform .5s var(--ease); }
.hs-chip b { font-family: var(--disp); font-weight: 400; font-size: 1.2rem; color: var(--saffron-deep); }
.hs-chip.c1 { inset-inline-start: 3%; top: 4%; animation: floatY 8s ease-in-out -1s infinite; }
.hs-chip.c2 { inset-inline-end: 0; top: 64%; background: var(--teal-deep); color: #fff; animation: floatY 10s ease-in-out -4s infinite; }
.hs-chip.c3 { inset-inline-start: 2%; top: 70%; animation: floatY 9s ease-in-out -6s infinite; }
.hs-coach { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4px; transition: transform .5s var(--ease); }
.hs-coach img { width: clamp(120px, 13vw, 168px); filter: drop-shadow(0 14px 18px rgba(23, 32, 28, .2)); animation: floatY 6s ease-in-out -3s infinite; }
.hs-say { background: #fff; border-radius: 20px; border-end-start-radius: 6px; padding: 10px 16px; box-shadow: var(--shadow); margin-bottom: 64px; display: grid; }
.hs-say span { font-family: var(--disp); font-size: 1.25rem; color: var(--teal-deep); }
.hs-say small { color: var(--saffron-deep); font-weight: 600; }
@keyframes floatY { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; inset-inline: 0; bottom: 18px; margin-inline: auto; width: fit-content; display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--ink3); text-decoration: none; text-transform: uppercase; }
.scroll-cue span { width: 24px; height: 38px; border: 2px solid var(--ink3); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--saffron); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }

@media (max-width: 940px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 470px; max-width: 520px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero-stage { height: 440px; }
  .hs-main { width: 82%; top: 19%; }
  .hs-ring { width: 104px; padding: 10px; }
  .hs-ring .ring-svg { width: 64px; height: 64px; }
  .hs-ring b { top: 10px; height: 64px; font-size: 1.5rem; }
  .hs-chip { font-size: .82rem; padding: 8px 12px; }
  .hs-chip.c3 { display: none; }
  .phrase-item .w { font-size: 2.1rem; }
  .cta-row .btn-xl, .cta-row .play { flex: 1 1 100%; }
}

/* ── stats + ticker ── */
.stats { padding-block: 8px 34px; }
.stats-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .72); border: 1px solid #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.stats-row li { padding: 22px 16px; text-align: center; display: grid; gap: 2px; }
.stats-row li + li { border-inline-start: 1px solid var(--line); }
.stats-row b { font: 400 clamp(2rem, 4.6vw, 3.2rem)/1 var(--disp); color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.stats-row span { color: var(--ink2); font-size: .92rem; }
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row li:nth-child(3) { border-inline-start: 0; }
  .stats-row li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.ticker { overflow: hidden; direction: ltr; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.ticker-row { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.tk { display: inline-flex; align-items: baseline; gap: 10px; padding: 15px 0; white-space: nowrap; }
.tk::after { content: '✦'; color: var(--saffron); margin-inline: 26px; font-size: .8rem; }
.tk-f { font-family: var(--disp); font-size: 1.25rem; color: var(--teal-deep); }
.tk-he { color: var(--ink3); font-size: .9rem; }

/* ── try a lesson ── */
.try-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(28px, 6vw, 84px); align-items: center; }
.try-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.try-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.try-steps b { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font: 400 1.2rem var(--disp); color: var(--teal-deep); }
.try-note { margin-top: 22px; font-size: .86rem; color: var(--ink3); max-width: 34em; }

.lab { position: relative; background: #fff; border-radius: 34px; box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, .5); overflow: hidden; }
.lab-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: linear-gradient(180deg, #117a71, var(--teal-deep)); color: #fff; font-weight: 600; }
.lab-dots { display: flex; gap: 6px; }
.lab-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lab-dots i:first-child { background: var(--saffron); }
.lab-count { margin-inline-start: auto; font-family: var(--mono); font-size: .8rem; opacity: .9; }
.lab-langs { display: flex; gap: 8px; padding: 12px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.lab-langs::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink2); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { transform: translateY(-1px); border-color: var(--teal); }
.chip[aria-pressed='true'] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.lab-progress { height: 5px; background: var(--bg2); }
.lab-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), #f6c453); transition: width .6s var(--ease); }
.lab-body { padding: 26px 24px 26px; min-height: 452px; display: grid; position: relative; }
.lcard { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.l-he { font-family: var(--disp); font-size: 1.45rem; color: var(--ink2); }
.l-he small { display: block; font: 500 .85rem var(--body); color: var(--ink3); }
.l-he.big { font-size: clamp(2rem, 6vw, 2.6rem); color: var(--ink); }
.l-t { font-family: var(--disp); font-size: clamp(2.1rem, 6.4vw, 3rem); line-height: 1.14; color: var(--teal-deep); }
.l-tr { color: var(--saffron-deep); font-weight: 600; font-size: 1.16rem; min-height: 1.6em; }
.l-q { font-weight: 600; color: var(--ink2); }
.l-tools { display: flex; gap: 10px; margin-block: 8px 4px; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--teal-ghost); color: var(--teal-deep); font: 600 .98rem var(--body); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.tool:hover { background: var(--teal-soft); transform: translateY(-1px); }
.tool.playing { background: var(--saffron-soft); }
.l-hint { color: var(--ink2); font-size: .96rem; max-width: 26em; }
.l-warn { font-size: .84rem; color: var(--paprika); min-height: 1.3em; max-width: 30em; }
.l-dots { display: flex; gap: 10px; margin-block: 6px 10px; }
.l-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); transition: background .3s, transform .4s var(--ease); }
.l-dots i.on { background: var(--saffron); transform: scale(1.25); }
.l-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.l-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.ring { position: relative; width: 148px; height: 148px; margin-block: 8px; }
.ring .ring-svg { width: 100%; height: 100%; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 3.4rem var(--disp); color: var(--saffron-deep); }
.ring.run .ring-fg { animation: ringClose 3s linear forwards; }
.ring.closed .ring-fg { stroke-dashoffset: 0; }
.l-big { font-family: var(--disp); font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.18; }
.l-score { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-block: 8px; }
.l-score span { background: var(--teal-ghost); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--teal-deep); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 3px; left: var(--x); background: var(--c); opacity: 0; animation: fall var(--d) cubic-bezier(.2, .6, .4, 1) var(--w) forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(480px) rotate(var(--r)); } }
@media (max-width: 900px) { .try-grid { grid-template-columns: 1fr; } .lab { max-width: 520px; width: 100%; margin-inline: auto; } }

/* ── the method: pinned scroll story ── */
.story { position: relative; padding-block: clamp(72px, 10vw, 136px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.story-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.st { display: flex; gap: 16px; padding: 18px 20px; border-radius: 24px; border: 1px solid transparent; transition: opacity .45s var(--ease), background .45s, box-shadow .45s, transform .45s var(--ease); }
.st .n { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--teal-ghost); font: 400 1.4rem var(--disp); color: var(--teal-deep); transition: background .4s, color .4s; }
.st h3 { font-size: 1.5rem; margin-bottom: 4px; }
.st p { color: var(--ink2); }
.story-dots { display: none; }
.story-visual { position: relative; height: min(500px, 60vh); }
.sv { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; opacity: 0; scale: .9; transition: opacity .5s var(--ease), scale .7s var(--ease); pointer-events: none; }
.story:not([data-step]) .sv-voice,
.story[data-step='0'] .sv-voice, .story[data-step='1'] .sv-ring, .story[data-step='2'] .sv-box { opacity: 1; scale: 1; }

.story.is-pinned { height: 330vh; padding: 0; }
.story.is-pinned .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; padding-top: 60px; }
.story.is-pinned .st { opacity: .36; }
.story.is-pinned[data-step='0'] .st:nth-child(1),
.story.is-pinned[data-step='1'] .st:nth-child(2),
.story.is-pinned[data-step='2'] .st:nth-child(3) { opacity: 1; background: #fff; border-color: #fff; box-shadow: var(--shadow); transform: translateX(calc(var(--flip) * 8px)); }
.story.is-pinned[data-step='0'] .st:nth-child(1) .n,
.story.is-pinned[data-step='1'] .st:nth-child(2) .n,
.story.is-pinned[data-step='2'] .st:nth-child(3) .n { background: var(--saffron); color: #2a1d02; }

.voice-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.voice-rings i { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(11, 95, 88, .22); animation: wave 3s ease-out infinite; }
.voice-rings i:nth-child(2) { animation-delay: 1s; } .voice-rings i:nth-child(3) { animation-delay: 2s; }
@keyframes wave { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
.voice-card { position: relative; background: #fff; border-radius: 30px; box-shadow: var(--shadow-lg); padding: 24px 30px; display: grid; gap: 4px; text-align: center; min-width: 290px; }
.vc-he { font-family: var(--disp); color: var(--ink2); font-size: 1.2rem; }
.vc-f { font-family: var(--disp); font-size: 2.3rem; color: var(--teal-deep); line-height: 1.15; }
.vc-tr { color: var(--saffron-deep); font-weight: 600; }
.eqbars.big { height: 46px; margin-top: 12px; justify-content: center; }
.eqbars.big i { max-width: 8px; }

.bigring { position: relative; width: min(270px, 34vh); aspect-ratio: 1; }
.bigring .ring-svg { width: 100%; height: 100%; filter: drop-shadow(0 12px 24px rgba(232, 162, 27, .3)); }
.bigring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(4rem, 12vh, 6.4rem) var(--disp); color: var(--saffron-deep); }
.ring-fg.scrub { stroke-dashoffset: 100; }
.ring-q { font-family: var(--disp); font-size: 1.5rem; color: var(--ink2); }
.ring-a { display: grid; justify-items: center; opacity: 0; translate: 0 10px; transition: opacity .4s, translate .4s var(--ease); }
.ring-a span { font-family: var(--disp); font-size: 2.2rem; color: var(--teal-deep); line-height: 1.1; }
.ring-a small { color: var(--saffron-deep); font-weight: 600; }
.sv-ring.answered .ring-a { opacity: 1; translate: 0 0; }

.boxes { display: flex; align-items: flex-end; gap: 18px; direction: ltr; }
[dir='rtl'] .boxes { flex-direction: row-reverse; }
.boxes span { width: 78px; height: 70px; border-radius: 14px 14px 18px 18px; background: linear-gradient(180deg, #e9c98a, #d9ac57); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), var(--shadow); position: relative; }
.boxes span::before { content: ''; position: absolute; inset-inline: -5px; top: -9px; height: 16px; border-radius: 6px; background: #c99a45; }
.boxes span:nth-child(2) { height: 86px; } .boxes span:nth-child(3) { height: 102px; } .boxes span:nth-child(4) { height: 118px; }
.fly { position: absolute; top: 14%; inset-inline-start: calc(50% - 196px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px 16px; display: grid; text-align: center; min-width: 104px; will-change: transform; }
.fly span { color: var(--ink3); font-size: .85rem; }
.fly b { font: 400 1.3rem var(--disp); color: var(--teal-deep); }
.box-cap { font-weight: 600; color: var(--ink2); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 6px 16px; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 18px; }
  .story-visual { order: -1; height: min(330px, 40vh); }
  .voice-rings i { width: 210px; height: 210px; }
  .voice-card { min-width: 240px; padding: 18px 22px; }
  .vc-f { font-size: 1.9rem; }
  .story h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); margin-bottom: 0; }
  .bigring { width: min(176px, 22vh); }
  .bigring b { font-size: clamp(2.6rem, 8vh, 3.6rem); }
  .ring-q { font-size: 1.15rem; }
  .ring-a span { font-size: 1.6rem; }
  .sv { gap: 8px; }
  .boxes span { width: 60px; height: 54px; } .boxes span:nth-child(2) { height: 66px; } .boxes span:nth-child(3) { height: 78px; } .boxes span:nth-child(4) { height: 90px; }
  .boxes { gap: 12px; }
  .fly { inset-inline-start: calc(50% - 150px); top: 6%; }
  .story.is-pinned .story-pin { padding-top: 72px; align-items: start; }
  .story.is-pinned .st { display: none; }
  .story.is-pinned[data-step='0'] .st:nth-child(1),
  .story.is-pinned[data-step='1'] .st:nth-child(2),
  .story.is-pinned[data-step='2'] .st:nth-child(3) { display: flex; transform: none; animation: cardIn .5s var(--ease) both; }
  .story.is-pinned .story-dots { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }
  .story-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s var(--ease); }
  .story[data-step='0'] .story-dots i:nth-child(1), .story[data-step='1'] .story-dots i:nth-child(2), .story[data-step='2'] .story-dots i:nth-child(3) { background: var(--saffron); width: 26px; border-radius: 9px; }
}

/* ── street scene ── */
.scene-sec { padding-block: clamp(56px, 7vw, 96px); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(28px, 6vw, 84px); align-items: center; }
.scene-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scene-list li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: .94rem; box-shadow: 0 4px 12px rgba(23, 32, 28, .06); }
.scene-list li.on { background: var(--teal-deep); color: #fff; }
.scene-list li.more { background: none; box-shadow: none; color: var(--ink3); font-weight: 500; }
.scene { background: linear-gradient(180deg, #10303a, #0a1e26); color: #eaf2f0; border-radius: 34px; box-shadow: var(--shadow-lg), 0 0 0 10px rgba(16, 48, 58, .08); overflow: hidden; display: flex; flex-direction: column; }
.scene-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.scene-emoji { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .09); display: grid; place-items: center; font-size: 1.5rem; }
.scene-top b { font: 400 1.25rem var(--disp); }
.scene-top small { display: block; color: rgba(255, 255, 255, .62); font-size: .86rem; }
.scene-count { margin-inline-start: auto; font-family: var(--mono); font-size: .8rem; color: var(--saffron); }
.lab-langs.dark { border-block: 1px solid rgba(255, 255, 255, .08); }
.lab-langs.dark .chip { background: transparent; color: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .18); }
.lab-langs.dark .chip[aria-pressed='true'] { background: var(--saffron); border-color: var(--saffron); color: #2a1d02; }
.scene-log { height: 226px; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.msg { max-width: 86%; padding: 11px 16px; border-radius: 20px; animation: msgIn .45s var(--ease) both; position: relative; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.msg.them { align-self: flex-start; background: rgba(255, 255, 255, .11); border-end-start-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, #f6c453, var(--saffron)); color: #2a1d02; border-end-end-radius: 6px; }
.msg p { font-family: var(--disp); font-size: 1.28rem; line-height: 1.3; }
.msg .tr { display: block; color: #f6c453; font-weight: 600; font-size: .95rem; }
.msg.me .tr { color: #6b4704; }
.msg .he { display: block; opacity: .72; font-size: .86rem; margin-top: 2px; }
.msg .spk { position: absolute; inset-inline-end: -40px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: .95rem; }
.msg .spk:hover { background: rgba(255, 255, 255, .2); }
.msg.dots { display: flex; gap: 5px; padding: 15px 16px; }
.msg.dots i, .cm.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: blink 1s ease-in-out infinite; }
.msg.dots i:nth-child(2), .cm.typing i:nth-child(2) { animation-delay: .15s; } .msg.dots i:nth-child(3), .cm.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; transform: translateY(-3px); } }
.msg.note { align-self: center; background: none; padding: 0; max-width: 100%; color: rgba(255, 255, 255, .66); font-size: .86rem; text-align: center; }
.msg.note b { color: #7fe0b0; font-weight: 600; }
.scene-nojs { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.js .scene-nojs { display: none; }
.scene-choices { padding: 14px 16px 18px; display: grid; gap: 9px; background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .08); min-height: 196px; align-content: start; }
.scene-prompt { font-size: .92rem; color: rgba(255, 255, 255, .72); }
.scene-prompt b { color: #fff; font-weight: 600; }
.opt { text-align: start; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 16px; padding: 10px 14px; cursor: pointer; font: inherit; display: grid; transition: border-color .2s, background .2s, transform .2s var(--ease), opacity .3s; animation: msgIn .4s var(--ease) both; }
.opt:nth-of-type(2) { animation-delay: .06s; } .opt:nth-of-type(3) { animation-delay: .12s; }
.opt b { font: 400 1.14rem/1.3 var(--disp); }
.opt-sub { display: block; font-size: .88rem; line-height: 1.45; }
.opt small { color: #f6c453; font-weight: 600; font-size: inherit; }
.opt .he { color: rgba(255, 255, 255, .62); font-weight: 400; }
.opt:hover:not(:disabled) { border-color: var(--saffron); background: rgba(255, 255, 255, .11); transform: translateY(-1px); }
.opt:disabled { cursor: default; }
.opt.right { background: rgba(60, 180, 125, .24); border-color: #4cc38a; }
.opt.wrong { border-color: #e06a50; opacity: .55; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.scene-end { display: grid; gap: 10px; justify-items: center; text-align: center; padding-block: 8px; }
.scene-end b { font: 400 1.5rem/1.2 var(--disp); }
.scene-end p { color: rgba(255, 255, 255, .72); }
.scene-end .l-links { margin-top: 4px; }
@media (max-width: 900px) {
  .scene-grid { grid-template-columns: 1fr; }
  .scene { max-width: 520px; width: 100%; margin-inline: auto; }
  .msg .spk { position: static; margin-top: 6px; }
}

/* ── the route: horizontal scroll ── */
.route { position: relative; padding-block: clamp(72px, 10vw, 136px); }
.route-pin { display: flex; flex-direction: column; gap: 26px; }
.route-pin > .wrap { width: 100%; }
.route-head { display: grid; grid-template-columns: auto minmax(0, 500px); justify-content: space-between; align-items: end; gap: 12px 60px; }
.route h2 { margin-bottom: 0; }
.route-view { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-block: 12px 26px; outline-offset: -3px; }
.route-view::-webkit-scrollbar { display: none; }
.route-track { list-style: none; margin: 0; display: flex; gap: 16px; width: max-content; padding-block: 0; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; }
.stn { flex: none; width: 252px; scroll-snap-align: center; position: relative; background: #fff; border-radius: 26px; padding: 22px 20px 22px; box-shadow: 0 8px 22px rgba(23, 32, 28, .07); border: 1px solid rgba(216, 222, 212, .7); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.stn:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stn .num { position: absolute; inset-inline-end: 18px; top: 16px; font: 400 2.4rem/1 var(--disp); color: var(--bg2); }
.stn .em { font-size: 2.1rem; line-height: 1; display: block; }
.stn h3 { font: 700 1.1rem/1.3 var(--body); margin-block: 14px 6px; }
.stn p { font-size: .92rem; color: var(--ink2); line-height: 1.5; }
.stn.first { background: linear-gradient(160deg, var(--teal), var(--teal-deep)); color: #fff; border: 0; }
.stn.first p { color: rgba(255, 255, 255, .8); } .stn.first .num { color: rgba(255, 255, 255, .16); }
.stn.last { background: linear-gradient(160deg, #f5b939, var(--saffron)); border: 0; }
.stn.last p { color: rgba(23, 32, 28, .76); } .stn.last .num { color: rgba(23, 32, 28, .14); }
.road { height: 14px; border-radius: 999px; background: #2b3431; position: relative; margin-top: 30px; }
.road::after { content: ''; position: absolute; inset-inline: 10px; top: 6px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 22px, transparent 22px 44px); }
.road-fill { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, var(--saffron), #f6c453); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
[dir='rtl'] .road-fill { transform-origin: 100% 50%; }
.walker { position: absolute; top: -38px; inset-inline-start: 0; font-size: 1.9rem; line-height: 1; will-change: transform; }
.walker span { display: block; translate: 50% 0; }
[dir='ltr'] .walker span { translate: -50% 0; scale: -1 1; }
.route-note { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; color: var(--ink2); font-size: .95rem; }
.route-note .hint-pin, .route-note .hint-swipe { font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--saffron-deep); text-transform: uppercase; align-self: center; }
.hint-pin { display: none; }
.route.is-pinned { height: var(--h); padding: 0; }
.route.is-pinned .route-pin { position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center; overflow: hidden; padding-top: 60px; }
.route.is-pinned .route-view { overflow: hidden; }
.route.is-pinned .hint-pin { display: inline; } .route.is-pinned .hint-swipe { display: none; }
@media (max-width: 760px) { .route-head { grid-template-columns: 1fr; } .stn { width: 232px; } }

/* ── bento ── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bn { background: #fff; border-radius: 28px; padding: 16px 16px 22px; box-shadow: 0 8px 22px rgba(23, 32, 28, .07); transition: transform .3s var(--ease), box-shadow .3s; }
.bn:hover { box-shadow: var(--shadow-lg); }
.bn h3 { font: 700 1.15rem var(--body); margin: 16px 6px 4px; }
.bn p { color: var(--ink2); font-size: .95rem; margin-inline: 6px; }
.bn-art { height: 150px; border-radius: 20px; position: relative; overflow: hidden; display: grid; place-items: center; background: var(--teal-ghost); }
.big-emoji { font-size: 3.4rem; line-height: 1; }
.bn-daily .bn-art { background: linear-gradient(140deg, var(--saffron-soft), #fff6e0); }
.mini-ring { position: relative; width: 104px; height: 104px; }
.mini-ring .ring-svg { width: 100%; height: 100%; }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.1rem; animation: floatY 3s ease-in-out infinite; }
.bn-walk .bn-art { background: linear-gradient(160deg, #117a71, var(--teal-deep)); gap: 6px; align-content: center; }
.bn-walk .eqbars { width: 120px; }
.bn-stage .bn-art { background: radial-gradient(120px 90px at 50% 0%, rgba(246, 196, 83, .5), transparent 70%), linear-gradient(180deg, #1c2540, #0e1426); }
.timer { font: 400 4rem/1 var(--disp); color: #fff; display: grid; justify-items: center; }
.timer small { font: 600 .8rem var(--body); color: #f6c453; letter-spacing: .08em; }
.bn-test .bn-art { background: var(--cobalt-soft); align-content: center; gap: 8px; padding-inline: 18px; place-items: stretch; }
.mini-msg { background: #fff; border-radius: 16px; padding: 8px 14px; font: 400 1.1rem var(--disp); color: var(--cobalt); width: fit-content; box-shadow: 0 4px 10px rgba(35, 80, 155, .12); }
.mini-msg.b { background: var(--cobalt); color: #fff; margin-inline-start: auto; }
.bn-sound .bn-art { background: radial-gradient(160px 120px at 70% 20%, #3a4a7a, transparent 70%), linear-gradient(180deg, #1a2244, #0d1226); }
.bn-sound .big-emoji { animation: floatY 6s ease-in-out infinite; }
.bn-words .bn-art { background: var(--paprika-soft); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-content: center; padding: 14px; }
.word-chip { background: #fff; border-radius: 999px; padding: 6px 14px; font: 400 1.05rem var(--disp); color: var(--paprika); box-shadow: 0 3px 8px rgba(194, 67, 39, .12); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bn-art { height: 130px; } }

/* ── coach ── */
.coach-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px); gap: clamp(28px, 6vw, 84px); align-items: center; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); }
.points li b { color: var(--ink); }
.points li::before { content: ''; flex: none; margin-top: 8px; width: 10px; height: 10px; border-radius: 3px; background: var(--saffron); rotate: 45deg; }
.byok { margin-top: 26px; background: var(--card); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.byok h3 { font-size: 1.4rem; }
.byok p { color: var(--ink2); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; list-style: none; padding: 0; }
.chips li { font-weight: 600; font-size: .9rem; background: var(--teal-ghost); color: var(--teal-deep); border-radius: 999px; padding: 6px 14px; direction: ltr; }
.chat { background: #fff; border-radius: 34px; box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, .5); overflow: hidden; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; background: linear-gradient(180deg, var(--teal-soft), var(--teal-ghost)); }
.chat-head img { width: 76px; align-self: flex-end; }
.chat-head b { font: 400 1.3rem var(--disp); display: block; }
.chat-head small { color: var(--ink2); }
.chat-live { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--teal); }
.chat-live i { width: 8px; height: 8px; border-radius: 50%; background: #35b37e; animation: pulse 2s infinite; box-shadow: 0 0 0 4px rgba(53, 179, 126, .25); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; min-height: 428px; }
.cm { max-width: 88%; padding: 10px 15px; border-radius: 18px; font-weight: 500; }
.cm.me { align-self: flex-end; background: var(--teal-deep); color: #fff; border-end-end-radius: 6px; }
.cm.them { align-self: flex-start; background: var(--bg); border-end-start-radius: 6px; }
.cm.line { background: var(--saffron-soft); display: grid; }
.cm.line span { font: 400 1.3rem/1.35 var(--disp); color: var(--teal-deep); }
.cm.line small { color: var(--saffron-deep); font-weight: 600; font-size: .86rem; }
.cm.typing { display: none; align-self: flex-start; background: var(--bg); gap: 5px; padding: 14px 15px; color: var(--ink2); }
.chat.is-playing .cm { opacity: 0; translate: 0 14px; transition: opacity .45s var(--ease), translate .45s var(--ease); }
.chat.is-playing .cm.show { opacity: 1; translate: 0 0; }
.chat.is-playing .cm.typing.show { display: flex; }
.chat-cap { padding: 0 18px 16px; font-size: .8rem; color: var(--ink3); }
@media (max-width: 900px) { .coach-grid { grid-template-columns: 1fr; } .chat { max-width: 520px; margin-inline: auto; } }

/* ── languages ── */
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lang-card { background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 6px 18px rgba(23, 32, 28, .06); display: grid; gap: 4px; align-content: start; }
.lang-card .top-line { display: flex; justify-content: space-between; align-items: center; color: var(--ink3); font-size: .88rem; font-weight: 600; }
.lang-card .code { font-family: var(--mono); font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .74rem; }
.lang-card .w { font-family: var(--disp); font-size: 2rem; color: var(--teal-deep); line-height: 1.2; margin-top: 6px; }
.lang-card .t { color: var(--saffron-deep); font-weight: 600; min-height: 1.6em; }
.lang-card .m { font-size: .86rem; color: var(--ink2); }
@media (max-width: 860px) { .langs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .langs { gap: 10px; } .lang-card { padding: 16px; } .lang-card .w { font-size: 1.55rem; } }

/* ── games (compact, night band) ── */
.night { background: radial-gradient(900px 500px at 80% 0%, #1d3354 0%, transparent 60%), linear-gradient(180deg, var(--night), #0a1322); color: var(--night-ink); }
.night .kicker { color: var(--saffron); }
.night .sec-lead { color: var(--night-ink2); }
.night h2 { color: #fff; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.game { background: linear-gradient(180deg, var(--night-2), #111d30); border: 1px solid rgba(255, 255, 255, .07); border-radius: 30px; padding: 12px 12px 20px; transition: transform .3s var(--ease); }
.game .shot { border-radius: 22px; overflow: hidden; aspect-ratio: 390 / 560; background: #0b1424; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.game-txt { padding: 16px 8px 0; }
.game h3 { font-size: 1.5rem; color: #fff; }
.game p { color: var(--night-ink2); font-size: .95rem; margin-top: 4px; }
.games-note { margin: 26px auto 0; color: var(--night-ink2); display: flex; gap: 10px; align-items: flex-start; max-width: 760px; font-size: .94rem; }
.games-note::before { content: '🛡️'; }
@media (max-width: 820px) {
  .games { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 14px; }
  .games::-webkit-scrollbar { display: none; }
  .game { flex: 0 0 76%; scroll-snap-align: center; }
}

/* ── privacy band ── */
.privacy-band { background: linear-gradient(160deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: clamp(26px, 4vw, 40px); padding: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center; position: relative; overflow: hidden; }
.privacy-band::after { content: ''; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(232, 162, 27, .18); }
.privacy-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.privacy-band .kicker { color: var(--saffron); }
.privacy-band p { color: rgba(255, 255, 255, .82); margin-top: 12px; }
.privacy-band a { color: #fff; }
.p-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.p-list li { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.p-list li span { font-size: 1.3rem; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }

/* ── faq + final ── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r-md); padding: 4px 22px; box-shadow: 0 4px 14px rgba(23, 32, 28, .05); }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--teal); font-size: 1.3rem; line-height: 1; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink2); padding-bottom: 18px; }
.final { text-align: center; overflow: hidden; }
.final h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.final p { color: var(--ink2); font-size: 1.14rem; margin-top: 12px; }
.final .cta-row { justify-content: center; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--ink2); font-size: .94rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink2); text-decoration: none; }
.foot nav a:hover { color: var(--teal); text-decoration: underline; }
.foot small { display: block; margin-top: 18px; color: var(--ink3); font-size: .8rem; }

/* ── legal pages ── */
.doc { padding-block: clamp(40px, 6vw, 80px); }
.doc article { max-width: 780px; margin-inline: auto; background: var(--card); border-radius: var(--r-xl); padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 18px; }
.doc h2, .doc h3 { font-family: var(--disp); font-size: 1.35rem; margin-block: 30px 10px; color: var(--teal-deep); }
.doc p, .doc li { color: #2c3833; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc code { font-family: var(--mono); font-size: .88em; background: var(--teal-ghost); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.doc .lg-meta, .doc .meta { margin-top: 28px; color: var(--ink3); font-size: .9rem; }
.doc .note { background: var(--saffron-soft); border-radius: var(--r-md); padding: 14px 18px; margin-block: 18px; color: #4d3a10; }
.doc .steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.doc .steps li { counter-increment: s; background: var(--teal-ghost); border-radius: var(--r-md); padding: 14px 16px; display: flex; gap: 12px; }
.doc .steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.crumbs { max-width: 780px; margin: 0 auto 16px; font-size: .92rem; }
.crumbs a { text-decoration: none; }
.other-lang { display: inline-block; margin-top: 14px; font-size: .95rem; }
.lost { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.lost p { color: var(--ink2); margin-block: 12px 26px; font-size: 1.12rem; }
.lost .cta-row { justify-content: center; }

/* ── scroll-linked motion (only when motion is on) ── */
.motion-on .hero-copy, .motion-on .hero-stage, .motion-on .hero .bigwords { will-change: transform; }
.motion-on [data-enter] { transform-origin: 50% 100%; }

/* looping animations wait while their section is off screen */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }

/* Lenis smooth scrolling (from lenis/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.final { position: relative; }
.final .bigwords { opacity: .9; }
.final .wrap { position: relative; }

/* ── scroll reveal ── */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* Motion off: when the device asks for reduced motion (unless the visitor switched animations on
   with the footer toggle), or when the visitor switched them off. Same rules for both cases. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { animation: none !important; transition: none !important; }
  html:not(.motion-on) .rise { opacity: 1; transform: none; }
  html:not(.motion-on) .reveal { opacity: 1; translate: 0 0; }
  html:not(.motion-on) .ring-fg.auto { stroke-dashoffset: 30; }
  html:not(.motion-on) .bigwords { display: none; }
}
html.motion-off { scroll-behavior: auto; }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition: none !important; }
html.motion-off .rise { opacity: 1; transform: none; }
html.motion-off .reveal { opacity: 1; translate: 0 0; }
html.motion-off .ring-fg.auto { stroke-dashoffset: 30; }
html.motion-off .bigwords { display: none; }

.motion-toggle { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: 600 .86rem var(--body); color: var(--ink2); cursor: pointer; }
.motion-toggle:hover { border-color: var(--teal); color: var(--teal-deep); }
.motion-toggle i { width: 30px; height: 18px; border-radius: 99px; background: var(--line); position: relative; flex: none; }
.motion-toggle i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.motion-toggle[aria-pressed='true'] i { background: var(--teal); }
.motion-toggle[aria-pressed='true'] i::after { inset-inline-start: 14px; }
.no-js .motion-toggle { display: none; }

@media print {
  .top, .foot, .skip, .progress, .bigwords, .mesh { display: none; }
  body { background: #fff; }
  .doc article { box-shadow: none; }
}
