/* Koe's pages on speakthecity.com, in the Speak the City cinematic look: Tokyo in real photographs, the lines you
   will say set huge in Japanese with their readings, the app in real captures, one accent.
   Everything the pages load lives in this folder (the font, the logo, the script, the photographs, the recordings).
   The site check allows no CSS gradient function, so the dark scrims under text on photographs are soft inset
   shadows on an overlay.
   Contents: tokens, base, header, buttons, hero, play control, lines, photo scenes, intro, lesson window, the walk,
   Talk, price, questions, closing, footer, document pages, motion, narrow screens. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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 { /* fetched for romaji with long vowels */
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0f1113;        /* text on light */
  --night: #0b0c0d;      /* behind photographs, scrims */
  --mist: #f2f3f4;       /* the light surface beside a photograph, the price, the footer */
  --white: #ffffff;      /* the app sections, the Buy block */
  --mute: #5b626a;       /* secondary text on light */
  --line: #e4e8ee;       /* hairlines on light */
  --accent: #cc1e2c;     /* Tokyo red: Buy, play, the current tab. Nothing else */
  --cobalt: #1c4ed8;     /* the app's own blue, only where the page shows something of the app's (the license key) */
  --cobalt-wash: #edf2fd;
  --pad: clamp(20px, 4.4vw, 64px);
  --bar-h: 72px;
  --foot-h: 104px;
  --screen: 100vh;
  --latin: "Plus Jakarta Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --t-hero: clamp(40px, 6.35vw, 104px);
  --t-say-cjk: clamp(31px, 4vw, 62px);
  --t-say-full: clamp(38px, 6vw, 100px);
  --t-h2: clamp(34px, 4.6vw, 70px);
  --t-h3: clamp(24px, 2.3vw, 36px);
  --t-lead: 21px;
  --t-body: 18px;
  --t-small: 15px;
}
@supports (height: 100svh) { :root { --screen: 100svh; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  font-family: var(--latin); font-size: var(--t-body); line-height: 1.5;
  color: var(--ink); background: var(--night);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ja) { font-family: var(--ja); }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ruby { ruby-align: center; }
rt { font-size: .34em; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .full :focus-visible, .walk :focus-visible, .close .line :focus-visible, .bar:not(.solid) :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.section--mist { background: var(--mist); }
.fine { font-size: 14px; line-height: 1.5; color: var(--mute); }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.bar.solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand, .foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.mark { width: 26px; height: 26px; fill: currentColor; flex: none; }
.brand-app { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding-left: 14px; border-left: 1.5px solid currentColor; line-height: 1; white-space: nowrap; }
.bar-tabs { display: flex; gap: 30px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.bar.solid .bar-tabs { opacity: 1; visibility: visible; }
.bar-tabs a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--mute); padding: 6px 0; }
.bar-tabs a:hover, .bar-tabs a[aria-current] { color: var(--ink); }
.bar-cta { display: flex; align-items: center; gap: 22px; }
.bar-dl { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar-dl:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 10px; border: 0;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--accent); color: #fff; }
.btn-buy:hover { background: var(--ink); }
.hero .btn-buy:hover, .bar:not(.solid) .btn-buy:hover { background: #fff; color: var(--ink); }
.btn-dl, .btn--line { border: 1.5px solid currentColor; background: none; }
.btn-dl:hover, .btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .btn-dl:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 9px; }
.btn__size { font-weight: 500; opacity: .75; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-buy { order: -1; }   /* Buy leads, wherever it sits in the source */
/* Phones and tablets cannot install a Mac app: Download gives way to one line. Buy stays. */
.handheld a[data-download], .handheld .bar-dl, .handheld .try-first, .handheld .hero-foot .fine { display: none; }
.handheld-note { font-size: 16px; font-weight: 600; flex: 1 1 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; height: var(--screen); min-height: 640px; color: #fff; background: var(--night); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.hero-photo picture, .hero-photo img, .close-photo picture, .close-photo img { width: 100%; height: 100%; }
.hero-photo img, .close-photo img, .scene-photo img { object-fit: cover; object-position: var(--pos, 50% 50%); }
/* The scrim: night rising from the foot of the photograph, and a little from the top for the header. */
.hero-photo::after, .close-photo::after, .full .scene-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-photo::after {
  box-shadow: inset 0 -92vh 44vh -46vh rgba(11,12,13,.98), inset 0 20vh 14vh -14vh rgba(11,12,13,.6);
  box-shadow: inset 0 -92cqh 44cqh -46cqh rgba(11,12,13,.98), inset 0 20cqh 14cqh -14cqh rgba(11,12,13,.6);
}
.hero-body {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--foot-h) + 34px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 370px); gap: 48px; align-items: end;
}
.hero-title { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.042em; word-spacing: .09em; line-height: .95; }
.hero-title span { display: block; white-space: nowrap; }
.hero-sub { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.92); }
.hero-first { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.34); }
.hero-say { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.5; }
.hero-mean { font-size: 15px; color: rgba(255,255,255,.84); margin-top: 2px; }
.hero-first .play { margin-top: 12px; }
/* The foot of the hero: Buy and Download, and what the free day is. */
.hero-foot {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 0; height: var(--foot-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  border-top: 2px solid rgba(255,255,255,.3);
}
.hero-foot .cta { flex: none; flex-wrap: nowrap; }
.hero-foot .fine { color: rgba(255,255,255,.84); font-size: 15px; text-align: right; max-width: 62ch; }

/* ---------- Play control: a real recording, drawn from its own waveform ---------- */
.play {
  --p: 0;
  display: inline-flex; align-items: center; gap: 14px;
  margin: 18px 0 0; padding: 0; min-height: 50px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.play-btn { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .15s ease; }
.play:hover .play-btn { transform: scale(1.06); }
.play-btn svg { width: 22px; height: 22px; fill: currentColor; grid-area: 1 / 1; }
.play .i-stop, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.wave { position: relative; display: block; line-height: 0; }
.wave svg { display: block; fill: currentColor; max-width: 100%; }
.wave-base { display: block; opacity: .3; }
.wave-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); overflow: hidden; color: var(--accent); }
.hero .wave-fill, .full .wave-fill, .close .line .wave-fill { color: #fff; }
.hero .wave-base, .full .wave-base, .close .line .wave-base { opacity: .45; }
.dur { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; white-space: nowrap; }

/* ---------- A line you will say ---------- */
.when { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--mute); margin-bottom: 40px; }
.who { font-size: var(--t-small); font-weight: 600; color: var(--mute); margin-bottom: 4px; }
/* The build puts <wbr> between phrases; keep-all breaks a line only there. */
.say { font-size: var(--t-say-cjk); font-weight: 700; letter-spacing: -0.02em; line-height: 1.5; line-break: strict; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hero-say { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.say > span { display: inline-block; }
.ph { white-space: nowrap; }
.line--s .say { font-size: clamp(24px, 2.4vw, 36px); }
.rom { font-size: 18px; color: var(--mute); margin-top: 6px; }
.mean { font-size: var(--t-lead); font-weight: 500; margin-top: 2px; }
.line + .line { margin-top: 36px; }
.note { font-size: 17px; line-height: 1.55; color: var(--mute); max-width: 43ch; margin-top: 40px; }
.note rt { font-size: .55em; }
.nb { white-space: nowrap; }

/* ---------- Photo scenes ---------- */
.scene { position: relative; }
.scene-photo { position: relative; overflow: hidden; background: var(--night); }
.scene-photo picture { position: absolute; inset: 0; }
.scene-photo img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; }

.split { display: grid; grid-template-columns: 46fr 54fr; min-height: var(--screen); background: var(--mist); }
.split.flip { grid-template-columns: 54fr 46fr; }
.split.flip .scene-photo { order: 2; }
.split .scene-text { align-self: center; padding: 120px clamp(28px, 6.6vw, 104px); min-width: 0; }

.full { min-height: var(--screen); display: flex; align-items: flex-end; color: #fff; background: var(--night); }
.full .scene-photo { position: absolute; inset: 0; container-type: size; }
.full .scene-photo::after {
  box-shadow: inset 0 -96vh 50vh -52vh rgba(11,12,13,.95), inset 74vw 0 50vw -52vw rgba(11,12,13,.5);
  box-shadow: inset 0 -96cqh 50cqh -52cqh rgba(11,12,13,.95), inset 74cqw 0 50cqw -52cqw rgba(11,12,13,.5);
}
.full .scene-text { position: relative; z-index: 1; padding: 160px var(--pad) 76px; width: 100%; }
.full .when, .full .who, .full .rom, .full .note { color: rgba(255,255,255,.9); }
.full .when { margin-bottom: 28px; }
.full .say, .close .line .say { font-size: var(--t-say-full); line-height: 1.42; }
.full .line--s .say { font-size: clamp(24px, 2.4vw, 36px); }
.full .note { margin-top: 28px; }

/* ---------- Intro: what kind of Japanese ---------- */
.intro { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad) clamp(72px, 9vw, 128px); }
.intro-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro h2, .lesson h2, .walk h2, .talk h2, .faq h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; word-spacing: .08em; line-height: 1; text-wrap: balance; }
.intro-top p { font-size: var(--t-lead); color: var(--mute); max-width: 46ch; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 104px); }
.facts li { border-top: 2px solid var(--ink); padding-top: 20px; }
.facts h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.facts p { font-size: 17px; color: var(--mute); margin-top: 10px; max-width: 36ch; }

/* ---------- The lesson window: four steps, four real captures ---------- */
.lesson { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad) clamp(72px, 9vw, 128px); }
.intro + .lesson { padding-top: clamp(24px, 3vw, 40px); }
.lesson-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.app-icon { width: 72px; height: 72px; margin-bottom: 30px; }
.lesson-head p { font-size: var(--t-lead); color: var(--mute); max-width: 46ch; }
.win { margin-top: clamp(48px, 6vw, 88px); background: #f5f6f7; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 90px -56px rgba(15,17,19,.5); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #ecedef; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 8px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: #cdd1d6; }
.win-tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8f9; }
.win-tabs button { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--mute); padding: 7px 13px; border-radius: 7px; white-space: nowrap; }
.win-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.pane img { width: 100%; height: auto; }
.pane + .pane { border-top: 1px solid var(--line); }
.js .pane { display: none; border-top: 0; }
.js .pane.on { display: block; }
.lesson-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: 36px; }
.lstep { border-top: 2px solid var(--line); padding-top: 18px; cursor: default; transition: border-color .25s ease, opacity .25s ease; }
.js .lstep { opacity: .5; cursor: pointer; }
.js .lstep.on { opacity: 1; border-top-color: var(--accent); }
.lstep h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.lstep p { font-size: 16px; color: var(--mute); margin-top: 8px; }
.lesson-cap { font-size: var(--t-small); color: var(--mute); margin-top: 40px; max-width: 76ch; }

/* ---------- The walk: twelve units across Tokyo ---------- */
.walk { background: var(--night); color: #fff; }
.walk-head { padding: clamp(88px, 11vw, 160px) var(--pad) clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.walk-head p { font-size: var(--t-lead); color: rgba(255,255,255,.8); max-width: 46ch; }
.leg { display: grid; grid-template-columns: 46fr 54fr; min-height: var(--screen); }
.leg.flip { grid-template-columns: 54fr 46fr; }
.leg.flip .scene-photo { order: 2; }
.stops { list-style: none; align-self: center; padding: 72px clamp(28px, 6.6vw, 104px); min-width: 0; }
.stop { display: grid; grid-template-columns: 1.9em minmax(0, 1fr) auto; column-gap: 18px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: var(--t-h3); }
.stop:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.stop-n { font-size: 1em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; color: rgba(255,255,255,.42); font-variant-numeric: tabular-nums; }
.stop h3 { font-size: 1em; font-weight: 800; letter-spacing: -0.035em; word-spacing: .06em; line-height: 1.08; }
.stop p { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.8); max-width: 44ch; margin-top: 10px; }
.stop-pic { width: 104px; height: 78px; object-fit: cover; border-radius: 6px; margin-top: 4px; }

/* ---------- Talk ---------- */
.talk { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad) clamp(72px, 9vw, 128px); }
.talk-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.talk-head p { font-size: var(--t-lead); color: var(--mute); max-width: 46ch; }
.talk-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 70px -44px rgba(15,17,19,.38); }
.shot figcaption { font-size: var(--t-small); color: var(--mute); margin-top: 16px; max-width: 58ch; }
.points { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 7vw, 104px); }
.points li { border-top: 2px solid var(--ink); padding-top: 20px; }
.points h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.points p { font-size: 16px; color: var(--mute); margin-top: 10px; }
.cast { margin-top: clamp(56px, 7vw, 104px); }
.cast-names { font-size: clamp(24px, 3.1vw, 46px); font-weight: 800; letter-spacing: -0.035em; word-spacing: .06em; line-height: 1.16; max-width: 26em; text-wrap: balance; }
.cast-names + p { font-size: 16px; color: var(--mute); margin-top: 20px; }

/* ---------- Price ---------- */
.price { padding: clamp(88px, 11vw, 160px) var(--pad); }
.price-title { font-size: clamp(40px, 7vw, 112px); font-weight: 800; letter-spacing: -0.045em; word-spacing: .08em; line-height: .96; }
.price-title span { display: block; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); max-width: 1080px; }
.terms > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.terms h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.terms p { font-size: 17px; color: var(--mute); margin-top: 10px; max-width: 46ch; }
.price .cta { align-items: center; gap: 12px 24px; margin-top: 44px; }
.try-first { font-size: 16px; font-weight: 600; text-underline-offset: 4px; }
.license-note { font-size: 17px; font-weight: 600; margin-top: 44px; max-width: 60ch; }
.price .fine { margin-top: 10px; max-width: 76ch; }

/* ---------- Questions ---------- */
.faq { background: var(--white); padding: clamp(88px, 11vw, 160px) var(--pad); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { font-size: 18px; color: var(--mute); max-width: 62ch; padding: 0 40px 28px 0; }
.faq details a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Closing: a last line over a night photograph, and the white Buy block ---------- */
.close { position: relative; min-height: var(--screen); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.close-photo { position: absolute; inset: 0; container-type: size; }
.close-photo::after {
  background: rgba(11,12,13,.12);
  box-shadow: inset 0 -90vh 50vh -52vh rgba(11,12,13,.9);
  box-shadow: inset 0 -90cqh 50cqh -52cqh rgba(11,12,13,.9);
}
.close-body { position: relative; z-index: 1; width: 100%; padding: 140px var(--pad) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: end; }
.close .line .who, .close .line .rom { color: rgba(255,255,255,.9); }
.deal { background: var(--white); color: var(--ink); border-radius: 6px; padding: clamp(26px, 3vw, 44px); grid-column: 2; }
.deal h2 { font-size: clamp(27px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; word-spacing: .06em; line-height: 1.08; }
.deal p { font-size: 17px; color: var(--mute); margin-top: 14px; }
.deal .cta { margin-top: 26px; }
.deal .fine { margin-top: 22px; }
.deal .handheld-note { color: var(--ink); margin: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--mist); color: var(--mute); padding: 52px var(--pad) 60px; font-size: 14px; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.foot-brand { color: var(--ink); margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }

/* ---------- Document pages: support, privacy, thank you, photo credits ---------- */
.page { background: var(--white); min-height: 70vh; padding: calc(var(--bar-h) + clamp(56px, 8vw, 112px)) var(--pad) clamp(72px, 9vw, 128px); }
.page-photo { position: relative; margin-top: var(--bar-h); height: clamp(260px, 42vh, 480px); overflow: hidden; background: var(--night); }
.page-photo picture, .page-photo img { width: 100%; height: 100%; }
.page-photo img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.page-photo + .page { padding-top: clamp(48px, 6vw, 88px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 800; letter-spacing: -0.045em; word-spacing: .08em; line-height: .98; text-wrap: balance; }
.page .lede { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); margin-top: 28px; }
.page .updated { font-size: var(--t-small); font-weight: 600; color: var(--mute); margin-top: 20px; }
.page h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 64px; padding-top: 22px; border-top: 2px solid var(--ink); }
.page h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: 30px; }
.page p, .page li { font-size: 17px; line-height: 1.6; }
.page h2 + p, .page h3 + p, .page p + p, .page ul + p, .page ol + p { margin-top: 14px; }
.page ul, .page ol { margin-top: 14px; padding-left: 22px; }
.page li + li { margin-top: 10px; }
.page li::marker { color: var(--mute); }
.page a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.page a:hover { color: var(--accent); }
.page .short { margin-top: 40px; padding: 26px 28px; background: var(--mist); border-radius: 6px; }
.page .short p { font-size: 17px; }
.page .cta { margin-top: 24px; }
.page .cta + p { margin-top: 22px; }
.thanks__icon { width: 72px; height: 72px; margin-bottom: 28px; }
.keybox { margin-top: 44px; padding: 28px; background: var(--cobalt-wash); border-radius: 6px; }
.page .keybox h2, .page .howto h2, .page .install h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(17px, 2.2vw, 24px) !important; font-weight: 600; color: var(--cobalt); overflow-wrap: anywhere; user-select: all; margin-top: 12px; }
.route { color: var(--mute); margin-top: 18px; }
.howto, .install { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--ink); }
/* Photo credits */
.credits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; margin-top: 28px; padding: 0 !important; }
.credits li + li { margin-top: 0; }
.credits img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--mist); }
.credits p { font-size: 15px; margin-top: 10px; }
.credits p + p { color: var(--mute); margin-top: 2px; }
.page--wide .wrap { max-width: none; }
.page--wide .wrap > p { max-width: 62ch; }

/* ---------- Motion (all of it optional) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-photo img { animation: settle 7s cubic-bezier(.16,.6,.2,1) both; }
  .hero-title span { animation: rise 1.1s cubic-bezier(.16,.8,.2,1) both .1s; }
  .hero-title span + span { animation-delay: .24s; }
  .hero-side, .hero-foot { animation: arrive .9s ease both .7s; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(34%); } to { clip-path: inset(-12% -6% -24% -6%); transform: none; } }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

  /* A line appears the way it is spoken: left to right. Without the script it is simply there. */
  .js .line .say > span { clip-path: inset(-40% 100% -24% 0); transition: clip-path 1.05s cubic-bezier(.2,.7,.15,1) .1s; }
  .js .line.in .say > span { clip-path: inset(-40% -6% -24% 0); }
  .js .line + .line .say > span { transition-delay: .4s; }

  @supports (animation-timeline: view()) {
    .scene-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(-5.5%); } to { transform: translateY(5.5%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  :root { --t-hero: clamp(40px, 7.4vw, 84px); --foot-h: 96px; }
  .hero-body { grid-template-columns: 1fr; gap: 22px; }
  .hero-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .hero-first { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.34); }
  .hero-first .play { margin-top: 10px; }
  .hero-photo::after {
    box-shadow: inset 0 -104vh 44vh -46vh rgba(11,12,13,.98), inset 0 20vh 14vh -14vh rgba(11,12,13,.6);
    box-shadow: inset 0 -104cqh 44cqh -46cqh rgba(11,12,13,.98), inset 0 20cqh 14cqh -14cqh rgba(11,12,13,.6);
  }
  .bar-tabs { gap: 20px; }
  .split .scene-text { padding: 96px clamp(24px, 5vw, 56px); }
  .stops { padding: 64px clamp(24px, 5vw, 56px); }
  .when { font-size: 18px; margin-bottom: 30px; }
  .wave svg { width: 150px; height: auto; }
}
@media (max-width: 1000px) {
  .bar-tabs { display: none; }
  .intro-top, .lesson-head, .walk-head, .talk-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .close { display: block; }
  .close-photo { inset: 0 0 auto 0; height: 64vh; }
  .close-photo::after {
    background: none;
    box-shadow: inset 0 -64vh 30vh -30vh rgb(11,12,13);
    box-shadow: inset 0 -110cqh 50cqh -50cqh rgb(11,12,13);
  }
  .close-body { grid-template-columns: 1fr; gap: 36px; padding: 50vh var(--pad) 48px; }
  .deal { grid-column: 1; max-width: 560px; }
  .hero-foot .fine { max-width: 30ch; font-size: 14px; }
  .leg, .leg.flip { grid-template-columns: 1fr; min-height: 0; }
  .leg.flip .scene-photo { order: 0; }
  .leg .scene-photo { height: 58vw; max-height: 560px; }
  .stops { padding: 24px var(--pad) 72px; }
}

/* ---------- Phone ---------- */
@media (max-width: 699px) {
  :root { --bar-h: 60px; --foot-h: 0px; --t-body: 17px; --t-lead: 19px; --t-hero: clamp(34px, 10.6vw, 60px); --t-say-cjk: clamp(27px, 8vw, 44px); --t-say-full: clamp(30px, 9.4vw, 60px); }
  .bar { gap: 12px; }
  .bar-dl { display: none; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-app { font-size: 17px; padding-left: 10px; }
  .bar-id { gap: 10px; }
  .mark { width: 22px; height: 22px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }

  .hero { height: auto; min-height: var(--screen); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-photo { inset: 0 0 auto 0; height: 62vh; }
  .hero-photo img { object-position: var(--pos-phone, var(--pos, 50% 50%)); }
  .hero-photo::after {
    box-shadow: inset 0 -66vh 30vh -30vh rgb(11,12,13), inset 0 20vh 14vh -14vh rgba(11,12,13,.55);
    box-shadow: inset 0 -110cqh 50cqh -50cqh rgb(11,12,13), inset 0 30cqh 22cqh -22cqh rgba(11,12,13,.55);
  }
  .hero-body { position: relative; left: auto; right: auto; bottom: auto; padding: 44vh var(--pad) 0; gap: 14px; }
  .hero-title { line-height: .98; }
  .hero-title span { white-space: normal; }
  .hero-side { display: block; }
  .hero-sub { font-size: 15px; line-height: 1.45; }
  .hero-first { margin-top: 14px; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.34); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .hero-say { font-size: 21px; grid-column: 1; }
  .hero-mean { grid-column: 1; font-size: 14px; }
  .hero-first .play { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .hero-first .wave, .hero-first .dur { display: none; }
  .hero-foot { position: relative; left: auto; right: auto; height: auto; flex-direction: column; align-items: stretch; border-top: 0; padding: 20px var(--pad) 26px; }
  .hero-foot .fine { text-align: left; max-width: none; font-size: 14px; }
  .cta .btn { flex: 1 1 100%; }
  .hero-foot .cta { flex: 1 1 auto; flex-wrap: wrap; }

  .split, .split.flip, .leg, .leg.flip { grid-template-columns: 1fr; min-height: 0; }
  .split.flip .scene-photo, .leg.flip .scene-photo { order: 0; }
  .split .scene-photo, .leg .scene-photo { height: 112vw; max-height: 620px; }
  .split .scene-text { padding: 44px var(--pad) 64px; }
  .when { font-size: 17px; margin-bottom: 26px; }
  .line--s .say, .full .line--s .say { font-size: 23px; }
  .rom { font-size: 16px; }
  .line + .line { margin-top: 28px; }
  .note { margin-top: 28px; font-size: 16px; }
  .full { min-height: calc(var(--screen) * .88); }
  .full .scene-text { padding: 120px var(--pad) 48px; }
  .full .scene-photo::after { background: rgba(11,12,13,.34); }
  .wave svg { width: 170px; }

  .facts, .lesson-steps, .points, .terms, .talk-shots { grid-template-columns: 1fr; }
  .facts li, .points li { padding-top: 16px; }
  .win-dots { display: none; }
  .win-bar { padding: 8px; justify-content: center; }
  .win-tabs { width: 100%; }
  .win-tabs button { flex: 1 1 auto; padding: 8px 4px; font-size: 13px; }
  .js .lstep { display: none; opacity: 1; }
  .js .lstep.on { display: block; border-top: 0; padding-top: 0; }
  .lesson-steps { margin-top: 22px; }
  .lesson-cap { margin-top: 22px; }
  .shot img { border-radius: 10px; }
  .stops { padding: 20px var(--pad) 56px; }
  .stop { padding: 24px 0; column-gap: 12px; grid-template-columns: 1.6em minmax(0, 1fr) auto; }
  .stop p { font-size: 16px; }
  .stop-pic { width: 72px; height: 54px; }
  .faq details p { padding-right: 0; }
  .close-body { padding: 46vh var(--pad) 28px; }
  .page h2 { margin-top: 48px; }
  .keybox { padding: 22px 20px; }
}
