/*
 * SpeakMyStory LP
 * Tokens mirror the app palettes (apps/mobile/constants/palettes.ts):
 * Noir is the default, Daylight is the opt-in light appearance.
 * Shape rule: controls are pills, surfaces use --r-surface, phones use their device radius.
 */

:root {
  color-scheme: dark;

  --bg: #050505;
  --bg-raised: #0a0a0c;
  --surface: #111114;
  --surface-2: #18181d;
  --line: #24252d;
  --line-soft: #17181f;
  --text: #ece8df;
  --text-2: #a39e95;
  --text-3: #8a857c;
  --accent: #ffb42e;
  --accent-hover: #ffd77a;
  --accent-ink: #050505;
  --accent-text: #ffb42e;
  --accent-surface: #241503;
  --accent-line: rgba(255, 180, 46, 0.32);
  --device: #0d0d10;
  --device-line: rgba(255, 255, 255, 0.09);
  --shadow: rgba(0, 0, 0, 0.55);
  --vinyl: #0c0c0e;
  --groove: rgba(255, 255, 255, 0.035);
  --nav-bg: rgba(5, 5, 5, 0.72);

  --font-body: "Geist", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-display: "Geist", "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, "Hiragino Sans", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 11vw, 144px);
  --r-surface: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4efe8;
  --bg-raised: #fbf8f4;
  --surface: #fffdfa;
  --surface-2: #efe9e1;
  --line: #e3dbd0;
  --line-soft: #ece6dd;
  --text: #2a2420;
  --text-2: #5f564f;
  --text-3: #6e655d;
  --accent: #9a5a17;
  --accent-hover: #8a4f12;
  --accent-ink: #fff9f0;
  --accent-text: #8a4f12;
  --accent-surface: #f6e8d5;
  --accent-line: rgba(154, 90, 23, 0.3);
  --device: #1d1a17;
  --device-line: rgba(42, 36, 32, 0.14);
  --shadow: rgba(74, 58, 44, 0.28);
  --vinyl: #1d1a17;
  --groove: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(244, 239, 232, 0.78);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.only-light { display: none; }
:root[data-theme="light"] .only-light { display: block; }
:root[data-theme="light"] .only-dark { display: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--text); }
h1 {
  font-size: clamp(2rem, 1rem + 3vw, 3.3rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}
h3 { font-size: 1.2rem; line-height: 1.5; letter-spacing: -0.01em; }
.accent { color: var(--accent-text); }
/* Keeps Japanese headline phrases intact; lines break only between phrases. */
.phrase { display: inline-block; }
.lead { color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); max-width: 38em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.section { padding: var(--section-y) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.en { font-family: "Geist", sans-serif; letter-spacing: -0.01em; }
.note { font-size: 13px; color: var(--text-3); line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn-store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.2s var(--ease), opacity 0.2s; }
.btn-store img { height: 56px; width: auto; }
.btn-store:hover { opacity: 0.88; }
.btn-store:active { transform: scale(0.98); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 28px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent-line); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .when-light { display: none; }
:root[data-theme="light"] .theme-toggle .when-light { display: block; }
:root[data-theme="light"] .theme-toggle .when-dark { display: none; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav .btn-primary { padding: 0 14px; } }

/* ---------- Phone ---------- */
.phone {
  position: relative;
  width: var(--pw, 280px);
  padding: calc(var(--pw, 280px) * 0.026);
  border-radius: calc(var(--pw, 280px) * 0.15);
  background: var(--device);
  box-shadow: 0 0 0 1px var(--device-line), 0 40px 80px -30px var(--shadow);
}
.phone img { width: 100%; aspect-ratio: 1179 / 2556; object-fit: cover; object-position: top; border-radius: calc(var(--pw, 280px) * 0.125); background: #050505; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
  min-height: min(720px, calc(100dvh - 68px));
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 36px; max-width: 30em; }
.hero-stage { position: relative; height: 640px; }
.disc {
  position: absolute; top: 50%; left: 50%;
  width: min(560px, 118%); aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%;
  background:
    radial-gradient(circle, var(--accent) 0 15.5%, transparent 15.8%),
    radial-gradient(circle, transparent 0 16.5%, var(--vinyl) 16.8%, var(--vinyl) 69.5%, transparent 70%),
    repeating-radial-gradient(circle, transparent 0 5px, var(--groove) 5px 6px),
    var(--vinyl);
  box-shadow: 0 0 0 1px var(--line-soft), 0 50px 120px -40px var(--shadow);
  opacity: 0.95;
}
.disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 18%, rgba(255, 255, 255, 0.06) 24%, transparent 30% 68%, rgba(255, 255, 255, 0.045) 74%, transparent 80%);
}
.hero-phone { position: absolute; }
.hero-phone.back { --pw: 248px; left: 2%; top: 9%; rotate: -6deg; }
.hero-phone.front { --pw: 284px; right: 4%; top: 2%; rotate: 3deg; }
.hero-caption {
  position: absolute; left: 0; bottom: 4%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
  box-shadow: 0 20px 40px -24px var(--shadow);
}
.hero-caption strong { color: var(--text); font-weight: 600; }
.hero-caption .icon { color: var(--accent-text); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-stage { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-phone.back { --pw: 196px; left: 0; top: 6%; }
  .hero-phone.front { --pw: 226px; right: 0; top: 0; }
  .hero-caption { left: 50%; translate: -50% 0; bottom: 0; white-space: nowrap; }
}
@media (max-width: 400px) {
  .hero-stage { height: 470px; }
  .hero-phone.back { --pw: 176px; }
  .hero-phone.front { --pw: 204px; }
}

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-raised); }
.proof-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.proof-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px; font-size: 14px; color: var(--text-2);
}
.proof-list li + li { border-left: 1px solid var(--line-soft); }
.proof-list .icon { width: 22px; height: 22px; color: var(--accent-text); }
.proof-list strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.4; }
.proof-list span { line-height: 1.5; }
@media (max-width: 900px) {
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-list li:nth-child(3) { border-left: 0; }
  .proof-list li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .proof .wrap { padding: 0; }
  .proof-list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px; font-size: 12.5px; }
  .proof-list strong { font-size: 14px; }
}

/* ---------- Manifesto + example ---------- */
.manifesto .section-head { max-width: 960px; }
.manifesto h2 { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem); line-height: 1.32; }
.example {
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--line); border-radius: var(--r-surface);
  background: var(--surface); overflow: hidden;
}
.tablist { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent-surface); color: var(--accent-text); font-weight: 700; }
.example-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: start; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 4vw, 44px); }
.example-panel[hidden] { display: none; }
.example-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px; }
.example-jp { font-size: 1.05rem; color: var(--text-2); line-height: 1.9; }
.example-en { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.6; color: var(--text); font-weight: 500; }
.example-arrow { color: var(--accent-text); padding-top: 34px; }
.example-arrow .icon { width: 26px; height: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.chip b { font-family: "Geist", sans-serif; font-weight: 600; color: var(--accent-text); }
.example-foot { padding: 0 clamp(24px, 4vw, 44px) clamp(20px, 3vw, 28px); }
.example-panel.is-entering { animation: fade-up 0.5s var(--ease); }
@media (max-width: 760px) {
  .example-panel { grid-template-columns: minmax(0, 1fr); }
  .example-arrow { padding-top: 0; rotate: 90deg; justify-self: start; }
}

/* ---------- How (scrollytelling) ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.how-steps { position: sticky; top: 120px; align-self: start; list-style: none; }
.how-step { padding: 26px 0 26px 28px; border-left: 2px solid var(--line); transition: border-color 0.4s var(--ease); }
.how-step h3 { color: var(--text-2); transition: color 0.4s var(--ease); }
.how-step.is-active { border-left-color: var(--accent); }
.how-step.is-active h3 { color: var(--text); }
.how-step .verb { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); letter-spacing: 0.06em; }
.how-step h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin: 6px 0 10px; }
.how-step p { color: var(--text-2); max-width: 30em; }
.how-phones { display: grid; gap: clamp(64px, 10vw, 140px); justify-items: center; padding: 20px 0; }
.how-cap { display: none; }
.how-phones .phone { --pw: 300px; }
.how-phones figure:nth-child(2) { translate: -12% 0; }
.how-phones figure:nth-child(3) { translate: 10% 0; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-steps { position: static; }
  .how-step { border-left-color: var(--line); padding: 18px 0 18px 22px; }
  .how-step h3 { color: var(--text); }
  .how-step.is-active { border-left-color: var(--line); }
  .how-phones {
    grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 48px;
  }
  .how-phones::-webkit-scrollbar { display: none; }
  .how-phones .phone { --pw: min(62vw, 260px); scroll-snap-align: center; }
  .how-phones figure:nth-child(2), .how-phones figure:nth-child(3) { translate: none; }
  .how-cap {
    display: block; position: absolute; left: 0; right: 0; top: calc(100% + 14px);
    text-align: center; font-size: 13px; font-weight: 700; color: var(--text-2);
  }
}

/* ---------- Create bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-surface); border: 1px solid var(--line);
  background: var(--surface); padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column;
}
.tile h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 15px; max-width: 26em; }
.tile .tag {
  align-self: flex-start; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: var(--accent-text); background: var(--accent-surface);
}
.tile-interview { grid-column: span 7; grid-row: span 2; }
.tile-monologue { grid-column: span 5; grid-row: span 2; }
.tile-topics { grid-column: span 4; }
.tile-scene { grid-column: span 5; }
.tile-write { grid-column: span 3; }
.tile-shots { position: relative; margin-top: auto; padding-top: 28px; height: 400px; }
.tile-shots .phone { position: absolute; top: 28px; }
.tile-interview .tile-shots .phone:first-child { --pw: 230px; left: 4%; }
.tile-interview .tile-shots .phone:last-child { --pw: 250px; right: 6%; top: 64px; }
.tile-monologue .tile-shots .phone { --pw: 260px; left: 50%; translate: -50% 0; }
.tile-topics { background: linear-gradient(160deg, var(--accent-surface), var(--surface) 70%); }
.tile-topics .topic-list { list-style: none; margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.tile-topics .topic-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.tile-topics .topic-list .icon { color: var(--accent-text); }
.tile-scene { color: #f4efe6; border-color: transparent; justify-content: flex-end; min-height: 260px; }
.tile-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.6) 48%, rgba(5, 5, 5, 0.9) 100%); z-index: 1; }
.tile-scene > :not(img) { position: relative; z-index: 2; }
.tile-scene h3 { color: #f4efe6; }
.tile-scene p { color: rgba(244, 239, 230, 0.86); }
.tile-write { background: var(--accent); border-color: transparent; }
.tile-write h3, .tile-write p { color: var(--accent-ink); }
.tile-write .icon { width: 30px; height: 30px; color: var(--accent-ink); margin-bottom: auto; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .tile-interview, .tile-monologue { grid-column: span 6; grid-row: auto; }
  .tile-topics { grid-column: span 3; }
  .tile-write { grid-column: span 3; }
  .tile-scene { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-interview, .tile-monologue, .tile-topics, .tile-scene, .tile-write { grid-column: auto; }
  .tile-shots { height: 330px; }
  .tile-interview .tile-shots .phone:first-child { --pw: 170px; left: 0; }
  .tile-interview .tile-shots .phone:last-child { --pw: 186px; right: 0; top: 56px; }
  .tile-monologue .tile-shots .phone { --pw: 210px; }
  .tile-write { min-height: 200px; }
}

/* ---------- Practice showcase ---------- */
.practice { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.practice-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.practice-stage .phone { --pw: 300px; }
.practice-stage .phone img { transition: opacity 0.35s var(--ease); }
.practice-stage .phone img.is-swapping { opacity: 0; }
.practice-list { list-style: none; display: grid; gap: 4px; }
.practice-item { border-radius: 16px; transition: background-color 0.25s; }
.practice-item button {
  width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  padding: 18px 20px; border-radius: 16px; align-items: center;
}
.practice-item .icon { width: 22px; height: 22px; color: var(--text-3); grid-row: span 2; align-self: start; margin-top: 3px; transition: color 0.25s; }
.practice-item .title { font-weight: 700; font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.practice-item .desc { color: var(--text-2); font-size: 14.5px; line-height: 1.75; grid-column: 2; }
.practice-item[data-active="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.practice-item[data-active="true"] .icon { color: var(--accent-text); }
.plan-pill { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-line); color: var(--accent-text); }
@media (max-width: 900px) {
  .practice-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .practice-stage { min-height: 0; order: 2; }
  .practice-stage .phone { --pw: min(68vw, 280px); }
  .practice-list {
    grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  }
  .practice-list::-webkit-scrollbar { display: none; }
  .practice-item { scroll-snap-align: start; box-shadow: inset 0 0 0 1px var(--line-soft); }
  .practice-item button { height: 100%; align-content: start; }
}

/* ---------- Talk ---------- */
.talk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.talk-card {
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface);
  padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; overflow: hidden;
}
.talk-card.is-plus { background: linear-gradient(170deg, var(--accent-surface), var(--surface) 62%); border-color: var(--accent-line); }
.talk-card h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem); margin: 10px 0 12px; }
.talk-card .plan-line { font-size: 13px; color: var(--text-3); }
.talk-card .plan-line strong { color: var(--accent-text); }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.ticks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-text); }
.talk-card .phone { --pw: 176px; align-self: end; margin-bottom: calc(clamp(24px, 3.4vw, 40px) * -1 - 60px); }
@media (max-width: 1000px) {
  .talk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .talk-card { grid-template-columns: minmax(0, 1fr); }
  .talk-card .phone { --pw: 220px; justify-self: center; }
}

/* ---------- Keep going ---------- */
.keep-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.keep-visual { position: relative; height: 620px; }
.keep-visual .phone { --pw: 280px; position: absolute; left: 8%; top: 0; }
.keep-visual .watch {
  position: absolute; right: 6%; bottom: 8%; width: 168px;
  border-radius: 46px; padding: 14px; background: var(--device);
  box-shadow: 0 0 0 1px var(--device-line), 0 30px 60px -24px var(--shadow);
}
.keep-visual .watch img { border-radius: 34px; width: 100%; }
.keep-list { list-style: none; display: grid; gap: 28px; margin-top: 36px; }
.keep-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.keep-list .icon-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-surface); color: var(--accent-text); }
.keep-list .icon-box .icon { width: 22px; height: 22px; }
.keep-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.keep-list p { color: var(--text-2); font-size: 15px; }
.keep-list .btn { margin-top: 12px; font-size: 13px; }
@media (max-width: 900px) {
  .keep-grid { grid-template-columns: minmax(0, 1fr); }
  .keep-visual { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .keep-visual .phone { --pw: 236px; left: 0; }
  .keep-visual .watch { width: 140px; right: 0; }
}

/* ---------- Science ---------- */
.science-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(32px, 6vw, 88px); list-style: none; }
.science-list li { padding-top: 24px; border-top: 1px solid var(--line); }
.science-list h3 { font-size: 1.2rem; margin-bottom: 10px; }
.science-list p { color: var(--text-2); font-size: 15px; }
.science-list .source { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.science-list .source a { color: var(--accent-text); border-bottom: 1px solid var(--accent-line); }
.science-foot { margin-top: 48px; max-width: 46em; }
@media (max-width: 760px) { .science-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Voices ---------- */
.voices { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.voices-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.rating { margin-top: 36px; }
.rating-num { font-family: "Geist", sans-serif; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.stars { display: flex; gap: 4px; margin: 14px 0 10px; color: var(--accent); }
.stars .icon { width: 22px; height: 22px; }
.stars .half { opacity: 0.35; }
.quotes { display: grid; gap: 20px; }
.quote {
  border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(22px, 3vw, 32px);
}
.quote blockquote { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; line-height: 1.7; }
.quote.is-featured blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.7; letter-spacing: -0.01em; text-wrap: pretty; }
.quote figcaption { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.review-themes { padding: clamp(8px, 2vw, 16px) clamp(4px, 2vw, 32px) 0; margin-left: clamp(0px, 5vw, 64px); }
.review-themes h3 { font-size: 1rem; color: var(--text-2); font-weight: 700; }
.review-themes .ticks { margin-top: 14px; }
.review-link { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 14px; font-weight: 700; color: var(--accent-text); border-bottom: 1px solid var(--accent-line); }
@media (max-width: 900px) {
  .voices-grid { grid-template-columns: minmax(0, 1fr); }
  .review-themes { margin-left: 0; padding: 8px 0 0; }
}

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.privacy-grid .lead { margin-top: 18px; }
.privacy-grid .lead a { color: var(--accent-text); border-bottom: 1px solid var(--accent-line); }
.privacy-list { list-style: none; display: grid; }
.privacy-list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 24px 0; }
.privacy-list li + li { border-top: 1px solid var(--line-soft); }
.privacy-list .icon { width: 24px; height: 24px; color: var(--accent-text); margin-top: 3px; }
.privacy-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.privacy-list p { color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column;
}
.plan.is-featured { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 18px; }
.plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-family: "Geist", sans-serif; font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price .unit { color: var(--text-3); font-size: 14px; }
.plan-annual { font-size: 13px; color: var(--text-2); min-height: 1.8em; }
.plan-for { margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2); }
.plan .ticks { margin-top: 18px; }
.plan .ticks .muted { color: var(--text-3); }
.plan .ticks .muted .icon { color: var(--text-3); }
.pricing-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.pricing-foot .note { max-width: 52em; }
@media (max-width: 980px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 16.5px; line-height: 1.6;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--text-3); transition: rotate 0.3s var(--ease), color 0.2s; }
.faq-list details[open] summary .icon { rotate: 45deg; color: var(--accent-text); }
.faq-list summary:hover { color: var(--accent-text); }
.faq-answer { padding: 0 40px 24px 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
}

/* ---------- Notes (scroll-snap) ---------- */
.notes-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.note-card {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-surface); background: var(--surface);
  padding: 26px; min-height: 260px; transition: border-color 0.25s, translate 0.25s var(--ease);
}
.note-card:hover, .js .reveal-group.is-in > .note-card:hover { border-color: var(--accent-line); translate: 0 -2px; }
.note-card .kind { font-size: 12px; color: var(--accent-text); font-weight: 700; }
.note-card h3 { font-size: 1.05rem; line-height: 1.65; }
.note-card p { font-size: 14px; color: var(--text-2); }
.note-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.notes-more { margin-top: 28px; font-size: 14px; }
.notes-more a { color: var(--text-2); border-bottom: 1px solid var(--line); }
.notes-more a:hover { color: var(--accent-text); border-color: var(--accent-line); }
@media (max-width: 1100px) { .notes-track { grid-auto-columns: minmax(280px, 42%); } }
@media (max-width: 640px) { .notes-track { grid-auto-columns: 84%; } }

/* ---------- Final CTA ---------- */
.final { text-align: center; overflow: clip; }
.final-mark { width: 88px; margin: 0 auto 32px; }
.final h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }
.final .lead { margin: 20px auto 40px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 64px 0 120px; font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-tag { margin-top: 14px; color: var(--text-3); }
.foot-col h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a:hover { color: var(--accent-text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 13px; color: var(--text-3); }
.foot-bottom a { display: inline-flex; align-items: center; gap: 6px; }
.foot-bottom a:hover { color: var(--text); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -16px var(--shadow);
  translate: 0 140%; visibility: hidden;
  transition: translate 0.4s var(--ease), visibility 0s linear 0.4s;
}
.sticky-cta.is-visible { translate: 0 0; visibility: visible; transition: translate 0.4s var(--ease); }
.sticky-cta .copy { display: grid; line-height: 1.35; }
.sticky-cta .copy strong { font-size: 14px; }
.sticky-cta .copy span { font-size: 12px; color: var(--text-3); }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .js .reveal-group > * { opacity: 0; translate: 0 20px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal-group.is-in > * { opacity: 1; translate: 0 0; }
  .hero-copy > * { animation: fade-up 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-phone.back { animation: fade-up 1s var(--ease) 0.2s both; }
  .hero-phone.front { animation: fade-up 1s var(--ease) 0.32s both; }
  .disc::after { animation: spin 14s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
