/* Landing page (/). The guide pages still use site.css. Tokens follow the
   /learn app: lighter paper, app green, warm brown ink. */
/* Self-hosted fonts (latin + latin-ext), bundled for offline use.
   Replaces the Google Fonts CDN link — no network needed. Files in fonts/. */
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-serif-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-serif-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/noto-serif-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/noto-serif-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces — variable serif (wght 400–600), display face for the
   wordmark, headings and sentence text. Same self-hosted pattern. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── Tokens: the /learn palette ─────────────────────────────── */
:root {
  --paper: #fbf9f4; --white: #ffffff; --sand: #f3efe6;
  --green: #1a4a2a; --green-l: #e7ecd9;
  --text: #29231a; --text-2: #56503e; --text-3: #736a55; --border: #ece6d8;
  --on-art: #fffdf4; --scrim: 28, 20, 10;
  --font-serif: "Fraunces", "Noto Serif", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --section: clamp(88px, 11vw, 150px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
/* On the paintings a green ring vanishes into the dark scrim. */
.hero .copy :focus-visible, .hero .swap :focus-visible, .tile :focus-visible, .offband :focus-visible, .closing :focus-visible { outline-color: var(--on-art); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.section { padding-top: var(--section); }

/* Type */
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.4vw, 58px); color: var(--green); }
.intro { margin-top: 18px; max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.fine { font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 15px 24px; border-radius: 999px; background: var(--green); color: var(--white); font-weight: 700; font-size: 16px; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.btn:active, .nav-download:active { transform: scale(0.97); }
.tlink { font-weight: 600; font-size: 16px; color: var(--green); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .nav-download:hover { background: #22593a; }
  .site-header nav a:hover { background: var(--white); color: var(--text); }
  .site-footer nav a:hover { color: var(--text); }
  .tlink:hover { border-bottom-width: 2.5px; }
}

/* Skip link: off-screen until focused (keyboard users). */
.skip { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 12px; background: var(--white); }
.skip:focus { top: 10px; }

/* Header */
.site-header { max-width: 1408px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--green); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.site-header nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sand); font-size: 15px; color: var(--text-2); }
.site-header nav a { padding: 8px 16px; border-radius: 999px; transition: background-color 160ms ease, color 160ms ease; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-link { font-size: 15px; font-weight: 600; color: var(--green); }
.nav-download { transition: transform 160ms var(--ease-out), background-color 160ms ease; padding: 10px 18px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 15px; font-weight: 600; }

/* ── Shared painted scene + phrase player ───────────────────── */
.scene { position: relative; overflow: hidden; border-radius: 28px; background: #c9b48c; }
.scene .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.char { position: absolute; bottom: -3%; height: 80%; width: auto; z-index: 2; }
.char.b { transform: scaleX(-1); } /* faces the speaker, like the app */
.phrase .row { display: flex; align-items: center; gap: 12px; }
.phrase .say { flex: 1; font-family: var(--font-serif); font-weight: 600; line-height: 1.15; }
.phrase .lang { display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; }
.play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--green); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out); }
.play:active { transform: scale(0.95); }
.play svg { width: 40%; height: 40%; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
/* Play ⇄ stop: the icon is swapped via innerHTML, so the new one fades/scales in. */
@starting-style { .play svg { opacity: 0; transform: scale(0.6); } }
/* "Your turn" and the translation unfold below the sentence (0fr → 1fr) instead
   of popping in, so the sentence and play button never jump. The translation
   stays rendered while idle, so closing has something to fade out. */
.unfold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.phrase[data-step="turn"] .unfold, .phrase[data-step="trans"] .unfold { grid-template-rows: 1fr; }
.unfold > div { min-height: 0; overflow: hidden; }
.turn { margin-top: 12px; font-size: 14px; color: var(--text-2); display: none; transition: opacity 200ms ease; }
.bar { height: 4px; border-radius: 2px; background: var(--green-l); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); transform-origin: left; }
.trans { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-2); opacity: 0; transition: opacity 200ms ease; }
.phrase[data-step="turn"] .turn { display: block; }
.phrase[data-step="turn"] .trans { display: none; }
.phrase[data-step="trans"] .trans { opacity: 1; }
@starting-style { .phrase[data-step="turn"] .turn, .phrase[data-step="trans"] .trans { opacity: 0; } }
.bubble { position: absolute; z-index: 4; background: var(--white); color: var(--text); border-radius: 20px; padding: 16px 16px 14px 18px; box-shadow: 0 12px 40px rgba(40, 28, 12, 0.22); }
.bubble .say { font-size: 22px; }
.bubble::after { content: ""; position: absolute; bottom: -10px; width: 22px; height: 22px; background: var(--white); transform: rotate(45deg); border-radius: 3px; left: var(--tail, 62%); }

/* ── 1. Hero ────────────────────────────────────────────────── */
.hero { max-width: 1408px; margin: 0 auto; padding: 0 16px; display: grid; }
.hero .scene, .hero .copy { grid-area: 1 / 1; }
.hero .scene { aspect-ratio: 16 / 9; max-height: max(480px, min(780px, calc(100svh - 87px))); }
/* Shade only where the copy sits, so the rest of the watercolour stays light. */
.hero .scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 52% 62% at 22% 52%, rgba(var(--scrim),0.6) 0%, rgba(var(--scrim),0.38) 50%, rgba(var(--scrim),0) 100%); }
/* Swap: JS leaves a frozen copy of the old scene underneath, so hiding is
   instant (no transition) and only the new scene fades in over it. */
.hero .layer { position: absolute; inset: 0; transition: opacity 300ms var(--ease-out) 100ms; } /* delay: old characters leave first */
.hero .layer.out { opacity: 0; transition: none; }
.hero .char.a { left: 50%; } .hero .char.b { left: 74%; }
/* On a swap the new bubble grows out of its tail tip (over the old one's copy),
   so the line comes from the speaker. Origin = tail centre (22px square) and its tip. */
.hero .bubble { left: 40%; top: 9%; width: min(330px, 30%); transform-origin: calc(var(--tail, 62%) + 11px) calc(100% + 14px); transition: opacity 220ms var(--ease-out) 100ms, transform 220ms var(--ease-out) 100ms; }
.hero .scene.swapping .bubble:not(.ghost) { opacity: 0; transform: scale(0.96); transition: none; }
.hero .bubble .play { width: 54px; height: 54px; }
.phrase .hint { display: none; }
.hero .phrase .hint { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.hero .phrase.heard .hint, .hero .phrase:not([data-step="idle"]) .hint { display: none; }
.hero .swap { position: absolute; z-index: 5; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; }
.hero .place, .hero .another { font-size: 14px; font-weight: 600; color: var(--on-art); background: rgba(var(--scrim),0.42); border-radius: 999px; padding: 9px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .another { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,253,244,0.35); cursor: pointer; font-family: inherit; transition: transform 160ms var(--ease-out); }
.hero .another:active { transform: scale(0.97); }
.hero .another svg { width: 16px; height: 16px; }
.hero .copy { position: relative; z-index: 3; align-self: center; padding-left: clamp(32px, 5vw, 72px); max-width: min(600px, 44%); color: var(--on-art); }
/* Shrinks faster than the scene below ~1300px, so on narrow desktops the
   heading clears the bubble (left: 40%) and the copy clears the speaker (50%). */
.hero h1 { font-size: clamp(40px, 6.2vw - 14px, 76px); }
.hero .lead { margin-top: 20px; font-size: 19px; line-height: 1.5; opacity: 0.95; }
.hero .actions { margin-top: 28px; }
.hero .btn { background: var(--paper); color: var(--green); }
.hero .tlink { color: var(--on-art); }
.hero .fine { margin-top: 22px; color: var(--on-art); opacity: 0.9; }

/* ── 2. Places ──────────────────────────────────────────────── */
.places .rail { --inset: max(24px, calc((100vw - 1240px) / 2 + 24px)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px var(--inset) 12px; scroll-padding-inline: var(--inset); scrollbar-width: none; }
.places .rail::-webkit-scrollbar { display: none; }
/* Mouse users can't swipe: give them a quiet scrollbar to drag. Touch keeps none. */
@media (pointer: fine) { .places .rail { scrollbar-width: thin; scrollbar-color: var(--text-3) transparent; } }
.tile { flex: 0 0 clamp(250px, 24vw, 300px); aspect-ratio: 3 / 4; border-radius: 22px; scroll-snap-align: start; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--scrim),0.74), rgba(var(--scrim),0) 58%); }
.tile .label { position: absolute; z-index: 2; top: 14px; left: 16px; font-size: 13px; font-weight: 600; color: var(--on-art); background: rgba(var(--scrim),0.35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile .phrase { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; color: var(--on-art); }
/* Play buttons sit on one line across the row, whatever the sentence length. */
.tile .phrase .row { align-items: flex-end; }
.tile .say { font-size: 23px; }
.tile .lang { color: var(--on-art); opacity: 0.8; }
.tile .play { width: 42px; height: 42px; background: var(--paper); color: var(--green); }
.tile .turn, .tile .trans { color: var(--on-art); border-color: rgba(255,253,244,0.3); }
.tile .bar { background: rgba(255,253,244,0.25); } .tile .bar i { background: var(--on-art); }
.places .more { margin-top: 18px; }

/* ── 3. The rhythm (live demo) ──────────────────────────────── */
.rhythm .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 48px; }
.demo { background: var(--sand); border-radius: 28px; padding: 28px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #e9e2d2; }
.seg button { flex: 1; padding: 10px 12px; border: none; border-radius: 999px; background: transparent; font: 500 14px var(--font-sans); color: var(--text-2); cursor: pointer; }
.seg button, .langs button { transition: transform 160ms var(--ease-out); }
.seg button:active, .langs button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--text); font-weight: 600; box-shadow: 0 4px 20px rgba(84, 64, 32, 0.07); }
/* Demo language chips (selected = green tint, like the app's chips). */
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.langs button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); font: 600 14px var(--font-sans); color: var(--text-2); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--green-l); border-color: var(--green); color: var(--green); }
.appcard { margin-top: 20px; background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 40px 24px; text-align: center; min-height: 290px; display: flex; flex-direction: column; justify-content: center; }
.appcard .cl { font-size: 13px; font-weight: 600; color: var(--text-3); }
.appcard .cs { margin-top: 6px; font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.appcard .olive { display: block; width: 190px; height: auto; margin: 18px auto; opacity: 0.8; }
.appcard .reveal { transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out); }
.appcard .reveal.hide { opacity: 0.12; filter: blur(5px); }
.appcard .cs2 { font-size: clamp(22px, 2.4vw, 28px); color: var(--text-2); }
.appcard .pausebar { width: 60%; margin: 18px auto 0; visibility: hidden; }
.appcard .pausebar.on { visibility: visible; }
.demo .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.rate { display: flex; gap: 10px; opacity: 0.35; transition: opacity 200ms ease; }
.rate.on { opacity: 1; }
.rate button { padding: 10px 16px; border-radius: 999px; border: 1.5px solid transparent; font: 600 14px var(--font-sans); cursor: pointer; transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease, color 200ms ease; }
.rate button:disabled { cursor: default; }
.rate button:active:not(:disabled) { transform: scale(0.97); }
.rate .learn { border-color: #b85e3c; background: transparent; color: #b85e3c; }
.rate .got { border-color: var(--green); background: var(--green); color: var(--white); }
/* Picked: the chosen pill fills in, the other steps back. */
.rate .learn[aria-pressed="true"] { background: #b85e3c; color: var(--white); }
.rate.picked button[aria-pressed="false"] { opacity: 0.35; }
.demo .play { width: 52px; height: 52px; }
.steps { display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; opacity: 0.45; transition: opacity 240ms ease; }
.steps li.on, .rhythm:not(.running) .steps li { opacity: 1; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease; }
.steps li.on .n { background: var(--green); border-color: var(--green); color: var(--white); }
.steps h3 { font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 1.2; }
.steps p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* ── 4. Beyond single sentences ─────────────────────────────── */
.beyond .grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 44px; align-items: stretch; }
/* Painting on top, caption on white below: the text never sits on the art. */
.beyond .dlg { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 28px; }
.beyond .dlg-art { flex: 1; min-height: 360px; border-radius: 0; }
.beyond .dlg .char { height: 84%; } .beyond .dlg .char.a { left: 14%; } .beyond .dlg .char.b { left: 50%; }
.beyond .dlg .cap { padding: 24px 28px 28px; }
.beyond .dlg h3 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; color: var(--green); }
.beyond .dlg p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 52ch; }
.exlist { display: grid; align-content: stretch; background: var(--white); border: 1px solid var(--border); border-radius: 28px; overflow: hidden; }
/* Rows stretch to the Dialogues card's height; the content sits centred in
   each row (icon still top-aligned with its heading), so the spare space splits evenly. */
.ex { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 28px; align-content: center; align-items: start; }
.ex + .ex { border-top: 1px solid var(--border); }
.ex .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--green-l); color: var(--green); display: grid; place-items: center; }
.ex .ic svg { width: 22px; height: 22px; }
.ex h3 { font-size: 18px; font-weight: 700; }
.ex p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ex .note { display: block; margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* ── 5. Screen off ──────────────────────────────────────────── */
.offband { max-width: 1408px; margin: 0 auto; padding-inline: 16px; } /* not the shorthand: it would zero .section's padding-top */
.offband .scene { min-height: 560px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: clamp(32px, 5vw, 72px); }
.offband .scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(var(--scrim),0.68), rgba(var(--scrim),0.3) 55%, rgba(var(--scrim),0.15)); }
.offband .bg { object-position: 50% 60%; }
.offband .copy { position: relative; z-index: 2; color: var(--on-art); max-width: 540px; }
.offband h2 { color: var(--on-art); }
.offband .intro { color: var(--on-art); opacity: 0.92; }
.offband .tlink { color: var(--on-art); margin-top: 24px; display: inline-block; }
.lock { position: relative; z-index: 2; width: 280px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 14px; background: rgba(20, 16, 10, 0.55); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55); color: #fff; display: flex; flex-direction: column; align-items: center; }
.lock .time { margin-top: 46px; font-size: 64px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.np { margin-top: auto; margin-bottom: 30px; width: 100%; border-radius: 24px; padding: 14px; background: rgba(255,255,255,0.16); }
.np .top { display: flex; gap: 10px; align-items: center; }
.np img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.np b { display: block; font-size: 14px; font-weight: 600; }
.np span { display: block; font-size: 12px; opacity: 0.75; }
.np .prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); margin: 14px 0 12px; overflow: hidden; }
.np .prog i { display: block; width: 38%; height: 100%; background: #fff; }
.np .ctl { display: flex; justify-content: space-around; align-items: center; }
.np .ctl svg { width: 22px; height: 22px; }

/* ── 6. Pricing ─────────────────────────────────────────────── */
.pricing .box { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr auto; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--border); border-radius: 28px; align-items: start; }
.pricing h3 { font-family: var(--font-serif); font-weight: 600; font-size: 24px; }
.pricing h3 small { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text-3); }
.pricing ul { margin-top: 16px; display: grid; gap: 10px; }
.pricing li { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.pricing li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
.pricing .price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.pricing .price b { font-family: var(--font-serif); font-weight: 600; font-size: 44px; line-height: 1; color: var(--green); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pricing .price span { font-size: 15px; color: var(--text-3); }
.pricing .get { display: grid; gap: 14px; justify-items: start; }
.pricing .badge img { height: 48px; width: auto; display: block; }

/* ── 7. Guides ──────────────────────────────────────────────── */
.guides .list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.guides a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.3; }
.guides a svg { flex: none; width: 18px; height: 18px; color: var(--text-3); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .guides a:hover { color: var(--green); } .guides a:hover svg { transform: translateX(3px); } }

/* ── 8. FAQ (open, no accordion) ────────────────────────────── */
/* Folded answers: two independent columns (1–4, 5–8), so opening one never
   moves or stretches the questions beside it. */
.faq .list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
.faq details { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq p { margin-top: -6px; padding-bottom: 20px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.faq details a { display: inline-block; margin: -10px 0 20px; font-size: 15px; font-weight: 600; color: var(--green); border-bottom: 1.5px solid currentColor; }

/* ── 9. Closing scene ───────────────────────────────────────── */
.closing { max-width: 1408px; margin: var(--section) auto 0; padding: 0 16px; }
.closing .scene { min-height: 520px; display: flex; align-items: center; padding: clamp(32px, 5vw, 72px); }
.closing .scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(var(--scrim),0.62), rgba(var(--scrim),0.25) 50%, rgba(var(--scrim),0)); }
.closing .copy { position: relative; z-index: 2; color: var(--on-art); max-width: 560px; }
.closing h2 { color: var(--on-art); }
.closing .intro { color: var(--on-art); opacity: 0.92; }
.closing .actions { margin-top: 28px; }
.closing .btn { background: var(--paper); color: var(--green); }
.closing .tlink { color: var(--on-art); }

/* ── 10. Footer ─────────────────────────────────────────────── */
.site-footer { max-width: 1240px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 32px; font-size: 15px; color: var(--text-3); }
.site-footer .brand { font-size: 19px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-footer .copy { width: 100%; font-size: 14px; }

/* ── Phone ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Phones: brand + "Get the app" only; the in-page links cost the hero its fold. */
  .site-header { padding: 12px 16px; grid-template-columns: 1fr auto; }
  .site-header nav, .header-link { display: none; }
  .wrap { padding-inline: 20px; }
  .intro { font-size: 17px; }
  /* hero */
  .hero { display: block; padding: 0 12px; }
  .hero .scene { aspect-ratio: 1 / 1; border-radius: 24px; }
  .hero .scene .bg { object-position: 62% 50%; }
  .hero .scene::before { display: none; }
  .hero .char { height: 64%; } .hero .char.a { left: 6%; } .hero .char.b { left: 52%; }
  .hero .bubble { left: 6%; right: 6%; width: auto; top: 6%; --tail: 18%; }
  .hero .swap { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .hero .copy { padding: 28px 8px 0; max-width: none; color: var(--text); }
  .hero h1 { color: var(--green); font-size: 44px; }
  .hero .lead { font-size: 17px; color: var(--text-2); }
  .hero .btn { background: var(--green); color: var(--white); }
  .hero .tlink { color: var(--green); }
  .hero .fine { color: var(--text-3); opacity: 1; }
  .hero .copy :focus-visible { outline-color: var(--green); } /* copy sits on paper here */
  /* places */
  .places .rail { padding-inline: 20px; }
  .tile { flex-basis: 74%; }
  /* rhythm */
  .rhythm .grid { grid-template-columns: 1fr; margin-top: 32px; }
  .demo { padding: 18px; border-radius: 24px; }
  .appcard { padding: 32px 18px; min-height: 260px; }
  .steps { gap: 20px; }
  /* beyond */
  .beyond .grid { grid-template-columns: 1fr; }
  .beyond .dlg { border-radius: 24px; }
  .beyond .dlg-art { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
  .beyond .dlg .char { height: 66%; } .beyond .dlg .char.a { left: 8%; } .beyond .dlg .char.b { left: 48%; }
  .beyond .dlg .cap { padding: 20px; }
  .beyond .dlg h3 { font-size: 24px; }
  .exlist { border-radius: 24px; }
  .ex { padding: 20px; }
  /* screen off */
  .offband { padding-inline: 12px; }
  .offband .scene { grid-template-columns: 1fr; padding: 28px 20px 0; border-radius: 24px; justify-items: center; }
  .offband .scene::before { background: linear-gradient(to bottom, rgba(var(--scrim),0.7), rgba(var(--scrim),0.35)); }
  /* Only the top of the phone, rising out of the scene's bottom edge: the full
     handset was a screen of empty glass. Now Playing sits under the clock, as on iOS. */
  .lock { width: 260px; aspect-ratio: auto; padding-bottom: 28px; border-bottom: 0; border-radius: 40px 40px 0 0; }
  .lock .time { font-size: 54px; margin-top: 38px; }
  .np { margin: 28px 0 0; }
  /* pricing */
  .pricing .box { grid-template-columns: 1fr; padding: 24px; border-radius: 24px; }
  /* guides + faq */
  .guides .list { grid-template-columns: 1fr; }
  .guides a { font-size: 18px; }
  .faq .list { grid-template-columns: 1fr; }
  /* closing */
  .closing { padding: 0 12px; }
  .closing .scene { min-height: 0; aspect-ratio: auto; padding: 160px 22px 32px; border-radius: 24px; align-items: flex-end; }
  .closing .scene::before { background: linear-gradient(to top, rgba(var(--scrim),0.78), rgba(var(--scrim),0.1) 75%); }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-download, .play, .play svg, .seg button, .langs button, .rate button, .hero .another, .faq summary::after, .appcard .reveal, .steps li, .steps .n, .unfold { transition: none; }
  .hero .layer { transition-duration: 200ms; } /* crossfade, no movement: keep it */
  .hero .scene.swapping .bubble { transform: none; } /* bubble: fade only */
}
