/* Penelope website — mirrors the iOS app's white/blue theme (ios/RunLines/App/Theme.swift). */
:root {
  --canvas: #ffffff;
  --ink: #17243b;
  --ink-deep: #0b1b3f;      /* home greeting color in the app */
  --accent: #0866ff;
  --accent-hover: #0755d4;
  --muted: #606d80;
  --track: #dfe5ee;
  --selection: #e7f0ff;
  --card: rgba(255, 255, 255, 0.85);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  /* Kept for older markup; the site no longer uses a serif. */
  --serif: var(--sans);
  --radius: 20px;
  --gutter: 80px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Same canvas as the app: white that settles into a soft blue. */
body.home {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 85% -10%, var(--selection), transparent 70%),
    linear-gradient(var(--canvas) 0, var(--canvas) 55%, var(--selection) 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--selection); color: var(--ink); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark .logo {
  display: block;
  width: 160px;
  height: auto;
}
.mark { display: none; }
.links { display: flex; align-items: center; gap: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 700 15px/1.2 var(--sans);
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-lg { font-size: 17px; padding: 18px 28px; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--selection); color: var(--accent); }

/* Product hero */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 104px;
}
.product-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--selection);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.product h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(48px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink-deep);
}
.accent { color: var(--accent); }
.product .sub { margin: 0; max-width: 540px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.product .waitlist { max-width: 560px; }
.product .note { margin-top: -14px; }
.note:empty { display: none; }
.letter-link { font-size: 15px; font-weight: 700; color: var(--accent); }
.letter-link span { display: inline-block; transition: transform 0.2s; }
.letter-link:hover span { transform: translateX(3px); }

/* Rehearsal demo (mirrors the app's rehearsal screen) */
.demo { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone {
  width: 310px;
  height: 640px;
  padding: 10px;
  border-radius: 52px;
  background: #0f1a2e;
  box-shadow: 0 50px 90px -30px rgba(8, 102, 255, 0.45), 0 0 0 1px rgba(23, 36, 59, 0.1);
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(var(--canvas) 0, var(--canvas) 55%, var(--selection) 100%);
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
}
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 0; height: 44px; font-size: 13px; font-weight: 700; }
.island { width: 86px; height: 24px; border-radius: 999px; background: #0f1a2e; }
.bars { width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.bars::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.app-head .back, .app-head .dots {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 4px rgba(23, 36, 59, 0.12);
  color: var(--ink); font-size: 16px; letter-spacing: 0;
}
.app-head .dots { font-size: 9px; letter-spacing: 1px; }
.feed {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent);
}
.feed-inner { display: flex; flex-direction: column; gap: 18px; padding: 140px 16px 220px; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.line {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 18px;
  transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
}
.line .who {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted);
  transition: color 0.3s, box-shadow 0.3s;
}
.line p { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: rgba(23, 36, 59, 0.4); transition: color 0.3s; }
.line.stage p { font-style: italic; font-size: 12.5px; color: var(--muted); }
.line.current { padding: 16px 14px 14px; background: #fff; box-shadow: 0 8px 24px -10px rgba(11, 27, 63, 0.25); }
.line.current p { color: var(--ink); font-weight: 700; font-size: 16px; }
.line.current .who { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.line.current.mine { background: var(--selection); box-shadow: none; }
.wave { display: none; align-items: center; gap: 2px; height: 10px; }
.line.current.speaking .wave { display: inline-flex; }
.wave b { width: 2px; height: 100%; border-radius: 1px; background: var(--accent); animation: wave 0.9s ease-in-out infinite; }
.wave b:nth-child(2) { animation-delay: 0.15s; }
.wave b:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.heard { display: none; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); min-height: 18px; }
.line.current.mine .heard { display: block; }
.heard::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.mic-row { display: flex; justify-content: center; padding: 6px 0 10px; }
.mic {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 800;
  transition: background-color 0.3s;
}
.mic.on { background: var(--accent); }
.mic-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mic.on .mic-dot { animation: blink 1s infinite; }
/* Liquid Glass tab bar */
.tabbar {
  display: flex; justify-content: space-around;
  margin: 0 14px 16px; padding: 7px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px -8px rgba(11, 27, 63, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 14px; border-radius: 999px; font-size: 9.5px; font-weight: 600; color: var(--ink); }
.tab.on { color: var(--accent); background: rgba(8, 102, 255, 0.1); }
.ti { position: relative; display: block; width: 18px; height: 16px; }
.ti-home::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 0; height: 9px; border-radius: 2px; background: currentColor; }
.ti-home::after { content: ""; position: absolute; left: 1px; top: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid currentColor; }
.ti-rehearse::before { content: ""; position: absolute; inset: 1px 1px 4px; border-radius: 6px; background: currentColor; }
.ti-rehearse::after { content: ""; position: absolute; left: 4px; bottom: 0; border-left: 4px solid currentColor; border-bottom: 4px solid transparent; }
.ti-tape::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 10px; border-radius: 3px; background: currentColor; }
.ti-tape::after { content: ""; position: absolute; right: 0; top: 5px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-right: 5px solid currentColor; }
.demo-caption { max-width: 320px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--muted); }

/* Section scaffolding */
.section-title {
  margin: 0 0 40px;
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  text-wrap: balance;
}

/* How it works */
.steps { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-top: 24px; padding-bottom: 112px; }
.step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.step {
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 24px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(223, 229, 238, 0.8);
  box-shadow: 0 24px 48px -32px rgba(11, 27, 63, 0.35);
}
.step > img { grid-row: 1 / span 3; width: 150px; height: auto; align-self: center; }
.step-num {
  justify-self: start;
  padding: 4px 10px; border-radius: 999px;
  background: var(--selection); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
}
.step h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-deep); }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Section kicker above titles */
.steps .kicker, .pricing .kicker { display: block; margin-bottom: 10px; text-transform: uppercase; }
.steps { scroll-margin-top: 16px; }
.selftape { padding-top: 0; }

/* Self-tape cards */
.tape-card { grid-template-columns: 1fr; grid-template-rows: auto; align-content: start; }
.tape-card h3 { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 32px; }
.tape-card h3 .soon { margin-left: 0; }
.readers, .voices { display: flex; align-items: center; height: 80px; }
.voice-wave { display: flex; align-items: center; justify-content: center; gap: 6px; width: 72px; height: 72px; border-radius: 50%; background: var(--selection); color: var(--accent); }
.voice-wave i { width: 5px; height: 22px; border-radius: 4px; background: currentColor; }
.voice-wave i:nth-child(2n) { height: 38px; }
.voice-wave i:nth-child(3) { height: 50px; }
.readers img { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 18px -10px rgba(11, 27, 63, 0.45); }
.call-line { display: flex; gap: 6px; padding: 0 14px; }
.call-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.call-line i:nth-child(2) { animation-delay: 0.2s; }
.call-line i:nth-child(3) { animation-delay: 0.4s; }

/* Pricing */
.pricing { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-top: 8px; padding-bottom: 112px; scroll-margin-top: 16px; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.pricing-head > :first-child { flex-basis: 100%; }
.pricing-head .section-title { margin: 0; max-width: 640px; text-wrap: balance; }
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--track); }
.bill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 14px/1 var(--sans); cursor: pointer; }
.bill.on { background: var(--ink-deep); color: #fff; }
.save { padding: 3px 7px; border-radius: 999px; background: var(--selection); color: var(--accent-hover); font-size: 11px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 36px; border-radius: 28px; background: var(--card); border: 1px solid rgba(223, 229, 238, 0.9); box-shadow: 0 24px 48px -32px rgba(11, 27, 63, 0.35); }
.plan h3 { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-top img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.6); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.amt { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-size: 16px; font-weight: 600; color: var(--muted); }
.price-note { margin: 0; min-height: 1.6em; font-size: 15px; color: var(--muted); }
.perks { flex: 1; margin: 14px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--track); list-style: none; display: flex; flex-direction: column; gap: 12px; }
.perks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.perks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--selection); }
.perks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.soon { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 11px; font-weight: 700; white-space: nowrap; }
/* Hover blue, not accent: the accent is 4.2:1 on the pale fill, under AA at 15px. */
.btn-ghost { background: var(--selection); color: var(--accent-hover); }
.btn-ghost:hover { background: #d6e5ff; color: var(--accent-hover); }
.plan-pro { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 30px 60px -30px rgba(8, 102, 255, 0.7); }
/* Solid white: 80% white on the accent is 3.6:1, and even pure white is only 4.8:1. */
.plan-pro .per, .plan-pro .price-note { color: #fff; }
.plan-pro .perks { border-top-color: rgba(255, 255, 255, 0.25); }
.plan-pro .perks li::before { background: rgba(255, 255, 255, 0.2); }
.plan-pro .perks li::after { border-color: #fff; }
.plan .btn { align-self: stretch; }

/* Ethics / FAQ */
.ethics {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 32px 72px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 104px;
  scroll-margin-top: 16px;
}
.ethics-head { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.ethics-head h2 { margin: 0; font-weight: 800; font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; color: var(--ink-deep); }
.ethics-intro { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 32px; }
.faq-group { display: flex; flex-direction: column; gap: 10px; }
.faq-label { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.faq details {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(223, 229, 238, 0.9);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq details[open] { border-color: transparent; box-shadow: 0 16px 40px -24px rgba(11, 27, 63, 0.35); background: #fff; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink-deep);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--selection); color: var(--accent);
  font-size: 18px; font-weight: 600; line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 14px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.signoff-card {
  grid-column: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 32px;
  border-radius: 28px;
  background: var(--selection);
}
.signoff-card img { width: 64px; height: 64px; border-radius: 16px; }
.signoff-card .closing-line { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink-deep); }
.signoff-card .signoff { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.signoff-card .signoff strong { color: var(--ink); }

/* Closing band */
.cta-band { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 48px;
  border-radius: 32px;
  background: var(--accent);
  color: #fff;
}
.cta-inner h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }

/* Letter page */
.letter-open, .letter-body, .letter-close { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; }
.letter-open { display: flex; flex-direction: column; gap: 24px; padding-top: 88px; padding-bottom: 48px; }
.letter .kicker { text-transform: uppercase; }
.letter-open h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-deep);
}
.letter-body { display: flex; flex-direction: column; gap: 24px; }
.letter-body p, .letter-close p { margin: 0; font-size: 19px; line-height: 1.75; }
.letter-body h2 { margin: 32px 0 -4px; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink-deep); }
.letter-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 16px; }
.letter-steps li { font-size: 19px; line-height: 1.75; padding-left: 0.3em; }
.letter-steps li::marker { color: var(--accent); font-weight: 800; }
.letter-steps strong { font-weight: 800; }
.letter-close { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 64px; }
.letter-cta { display: flex; justify-content: center; padding-top: 56px; padding-bottom: 104px; border-top: 1px solid var(--track); max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; }
.letter-close .closing-line { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--ink-deep); }
.letter-close .signoff em { font-style: normal; font-weight: 700; }

/* Waitlist */
.waitlist { display: flex; gap: 10px; width: 100%; max-width: 620px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--track), 0 18px 40px -26px rgba(11, 27, 63, 0.4); scroll-margin-top: 40vh; }
.waitlist input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 16px var(--sans);
  color: var(--ink);
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.waitlist .btn { padding: 0 24px; height: 54px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.note.ok { color: var(--accent); font-weight: 600; }
.note.err { color: #c0392b; }

.nav-link { font-size: 15px; font-weight: 600; color: var(--muted); }
.label-short { display: none; }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--track);
  font-size: 13px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; }

/* Legal pages */
.page-header { display: flex; flex-direction: column; gap: 18px; padding-top: 64px; padding-bottom: 48px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.page-header h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink-deep);
}
.page-header .intro { margin: 0; max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.updated { font-size: 13px; font-weight: 600; color: var(--muted); }
.rule { height: 1px; background: var(--track); }

.body { display: grid; grid-template-columns: 260px 1fr; gap: 80px; padding-top: 56px; padding-bottom: 96px; }
.contents { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.contents .label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.contents a { font-size: 14px; font-weight: 600; color: var(--muted); }
.contents a span { display: inline-block; width: 28px; color: var(--accent); }
.contents a:hover { color: var(--accent); }
.sections { display: flex; flex-direction: column; gap: 40px; max-width: 800px; overflow-wrap: anywhere; }
.sections section { display: flex; flex-direction: column; gap: 14px; }
.sections h2 { margin: 0; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--ink-deep); scroll-margin-top: 24px; }
.sections p { margin: 0; line-height: 1.75; }
.checklist { margin: 0; padding-left: 1.5em; display: flex; flex-direction: column; gap: 10px; line-height: 1.65; }
.checklist li::marker { color: var(--accent); font-weight: 700; }
.inline-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* Tablet */
@media (max-width: 1040px) {
  .ethics { grid-template-columns: 1fr; }
  .ethics-head { position: static; }
  .signoff-card { grid-column: 1; }
  .step { grid-template-columns: 1fr; }
  .step > img { grid-row: auto; width: 130px; margin-bottom: 12px; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .wordmark .logo { width: 136px; }
  .links { gap: 16px; }
  .nav-link { display: none; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .eyebrow { font-size: 11px; letter-spacing: 0.04em; }
  .product { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; padding-bottom: 72px; }
  .product h1 { font-size: 46px; }
  .product .sub { font-size: 17px; }
  .product .waitlist { max-width: none; }
  .waitlist { flex-direction: column; border-radius: 26px; padding: 8px; }
  .waitlist input, .waitlist .btn { flex: none; height: 52px; width: 100%; }
  .steps { padding-bottom: 72px; }
  .section-title { margin-bottom: 24px; }
  .step-grid { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 22px; grid-template-columns: 96px 1fr; column-gap: 16px; }
  .step > img { grid-row: 1 / span 3; width: 96px; margin: 0; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 15px; }
  .tape-card { grid-template-columns: 1fr; }
  .readers img { width: 60px; height: 60px; }
  .pricing { padding-bottom: 72px; }
  .pricing-head { margin-bottom: 24px; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 26px; }
  .amt { font-size: 44px; }
  .ethics { padding-bottom: 72px; gap: 28px; }
  .ethics-intro { font-size: 17px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15.5px; }
  .signoff-card { padding: 24px; }
  .signoff-card .closing-line { font-size: 20px; }
  .cta-band { padding-bottom: 64px; }
  .cta-inner { padding: 32px 24px; border-radius: 26px; }
  .cta-inner .btn { width: 100%; }
  .letter-open { padding-top: 48px; padding-bottom: 32px; gap: 18px; }
  .letter-open h1 { font-size: 34px; }
  .letter-body { gap: 20px; }
  .letter-body p, .letter-close p, .letter-steps li { font-size: 17.5px; }
  .letter-close { gap: 20px; padding-top: 32px; padding-bottom: 48px; }
  .letter-body h2 { font-size: 22px; margin-top: 20px; }
  .letter-cta { padding-top: 40px; padding-bottom: 72px; }
  .letter-cta .btn { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; padding-bottom: 44px; }
  .footer-links { gap: 10px 18px; }
  .page-header { padding-top: 36px; padding-bottom: 32px; }
  .body { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 64px; }
  .contents { position: static; }
  .sections h2 { font-size: 21px; }
  .phone { width: 286px; height: 592px; }
}

.nav-link[aria-current="page"] { color: var(--accent); }

/* Nav menu: text links collapse into a menu button below laptop width */
.nav-link { white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--track);
  list-style: none; cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 54px; z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 220px; padding: 8px;
  border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--track), 0 24px 48px -20px rgba(11, 27, 63, 0.35);
}
.menu-panel a { padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--selection); color: var(--accent); }

@media (max-width: 1060px) {
  :root { --gutter: 40px; }
  .links { gap: 12px; }
  .nav-link { display: none; }
  .menu { display: block; }
  .product { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .product-copy { max-width: 640px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .links { gap: 8px; }
  .btn.btn-lg { width: 100%; }
  .menu summary { width: 40px; height: 40px; }
}

/* Coming soon tag outside the blue Pro card */
.step .soon, .plan:not(.plan-pro) .soon { background: var(--selection); color: var(--accent); vertical-align: middle; letter-spacing: 0; }
.step h3 .soon { font-size: 12px; position: relative; top: -2px; }

/* ------------------------------------------------------------------
   Mobile polish (phones). Big buttons follow the app's own primary
   button: 54px tall, 16px corners. Card rows swipe sideways.
   ------------------------------------------------------------------ */
.sticky-cta, .plan-tabs { display: none; }
.sec-toggle {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-align: left;
  pointer-events: none;
}

@media (max-width: 720px) {
  body.home { padding-bottom: 96px; }

  /* Buttons */
  .btn-lg, .waitlist .btn, .plan .btn {
    height: 54px; padding: 0 22px; border-radius: 16px;
    font-size: 16px; font-weight: 700;
  }
  .btn-lg:not(.btn-light):not(.btn-ghost), .waitlist .btn { box-shadow: 0 12px 24px -14px rgba(8, 102, 255, 0.9); }
  .nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }

  /* Hero */
  .product { gap: 36px; padding-bottom: 56px; }
  .product h1 { font-size: 44px; }
  .product-copy { gap: 20px; }
  .waitlist { gap: 10px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .waitlist input {
    height: 54px; padding: 0 18px; border-radius: 16px;
    background: #fff; box-shadow: 0 0 0 1px var(--track), 0 6px 16px -12px rgba(11, 27, 63, 0.3);
  }
  .waitlist input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
  .product .note { margin-top: -8px; }
  .phone { width: 264px; height: 548px; border-radius: 46px; }
  .screen { border-radius: 37px; }


  .steps { padding-bottom: 56px; }
  /* Self tape: two compact rows instead of tall cards */
  .steps .step-grid { gap: 12px; }
  .tape-card { padding: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .tape-card .readers, .tape-card .voices { grid-row: 1 / span 2; height: auto; }
  .tape-card .readers { flex-direction: column; gap: 0; }
  .tape-card .readers img + .call-line + img { margin-top: -14px; }
  .tape-card .call-line { display: none; }
  .tape-card .voice-wave { width: 48px; height: 64px; gap: 4px; }
  .tape-card .readers img { width: 48px; height: 48px; border-width: 3px; }
  .tape-card h3 { margin: 0 0 4px; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .tape-card p { font-size: 14.5px; line-height: 1.5; }
  .step h3 .soon { top: 0; font-size: 11px; }

  /* Pricing: Free · Monthly · Yearly tabs show one card at a time */
  .pricing-head .billing { display: none; }
  .plan-tabs { display: flex; width: 100%; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--track); }
  .ptab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: 700 15px/1 var(--sans); cursor: pointer; }
  .ptab.on { background: var(--ink-deep); color: #fff; }
  .ptab .save { font-size: 11px; }
  .ptab.on .save { background: rgba(255, 255, 255, 0.18); color: #fff; }
  .plans { display: block; }
  .plans[data-show="free"] .plan-pro, .plans:not([data-show="free"]) .plan:not(.plan-pro) { display: none; }

  .pricing { padding-bottom: 56px; }
  .pricing-head { gap: 16px; margin-bottom: 20px; }
  .billing { width: 100%; }
  .bill { flex: 1; justify-content: center; padding: 12px 10px; }
  .plan { padding: 24px; }
  .amt { font-size: 42px; }

  .ethics { padding-bottom: 56px; }
  .cta-band { padding-bottom: 40px; }
  .cta-inner { gap: 20px; }

  /* Pinned sign-up button */
  .btn.sticky-cta {
    display: flex; position: fixed; z-index: 30; width: auto;
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateY(140%); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
    box-shadow: 0 16px 32px -12px rgba(8, 102, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.4);
  }
  .btn.sticky-cta.show { transform: none; opacity: 1; }

  /* Long pages: sections become tap-to-open rows */
  .contents { display: none; }
  .body { padding-top: 28px; gap: 0; }
  .sections { gap: 10px; }
  .sections section {
    gap: 0; border-radius: 18px; background: #fff;
    box-shadow: 0 0 0 1px var(--track);
    transition: box-shadow 0.2s;
  }
  .sections section.open { box-shadow: 0 0 0 1px transparent, 0 16px 36px -24px rgba(11, 27, 63, 0.4); }
  .sections h2 { font-size: 17px; letter-spacing: -0.01em; }
  .sec-toggle {
    position: relative; pointer-events: auto; cursor: pointer;
    padding: 18px 54px 18px 18px; line-height: 1.35;
  }
  .sec-toggle::after {
    content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--selection); color: var(--accent);
    font-size: 18px; font-weight: 600; transition: transform 0.2s;
  }
  .sections section.open .sec-toggle::after { transform: translateY(-50%) rotate(45deg); }
  .sections section > :not(h2) { display: none; }
  .sections section.open > :not(h2) { display: block; padding: 0 18px; margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; }
  .sections section.open > .checklist { display: flex; padding-left: 38px; }
  .sections section.open > :last-child { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

.faq details p:last-child { padding-bottom: 22px; }
.faq-tests { margin: 0; padding: 0 22px 14px 46px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; color: var(--ink-deep); }
.faq-tests li::marker { color: var(--accent); font-weight: 800; }

/* ------------------------------------------------------------------
   Self-tape demo: a landscape phone mirroring the app's sideways
   Self Tape screen (script left, camera right). Scaled to fit by JS.
   ------------------------------------------------------------------ */
.ls-fit { position: relative; width: 100%; max-width: 640px; aspect-ratio: 640 / 300; }
.ls-phone {
  --fit: 1;
  position: absolute; left: 0; top: 0;
  width: 640px; height: 300px; padding: 10px; border-radius: 50px;
  transform: scale(var(--fit)); transform-origin: top left;
}
.ls-screen { flex-direction: row; gap: 14px; padding: 12px 16px 12px 34px; border-radius: 40px; font-size: 12px; }
.ls-island { position: absolute; left: 10px; top: 50%; width: 22px; height: 78px; margin-top: -39px; border-radius: 999px; background: #0f1a2e; }
.ls-left { display: flex; flex-direction: column; gap: 8px; width: 236px; flex: none; }
.ls-right { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }

.st-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.st-prof { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--selection); position: relative; }
.st-prof::before { content: ""; position: absolute; left: 8px; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); box-sizing: border-box; }
.st-prof::after { content: ""; position: absolute; left: 5px; top: 14px; width: 14px; height: 6px; border-radius: 7px 7px 0 0; border: 1.5px solid var(--accent); border-bottom: 0; box-sizing: border-box; }
.st-me { width: 26px; height: 26px; border-radius: 50%; }
.st-banner { padding: 4px 9px; border-radius: 999px; background: var(--selection); color: var(--accent); font-size: 9.5px; font-weight: 700; white-space: nowrap; }

.ls-scriptbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-pills { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-bottom: -10px; padding: 0 6px; }
.st-pills span { padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--track); background: #fff; color: var(--accent); font-size: 9.5px; font-weight: 700; }
.st-script { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 6px 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--track); background: #fff; overflow: hidden; }
.tl { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 10px; transition: background-color 0.3s; }
.tl .who { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
/* Unspoken lines stay dimmed, but at 65% ink they read at about 5:1 on white (40% was 2.4:1). */
.tl p { margin: 0; text-align: center; font-size: 11.5px; line-height: 1.35; color: rgba(23, 36, 59, 0.65); transition: color 0.3s; }
.tl.current { background: var(--selection); }
.tl.current p { color: var(--ink); font-weight: 700; }
.tl.done p { color: rgba(23, 36, 59, 0.4); font-weight: 400; }
.tl.current.speaking .wave { display: inline-flex; }
.st-words span { transition: color 0.2s; }
.st-words span.said { color: var(--accent); }
.st-cut { display: none; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 7.5px; letter-spacing: 0.02em; }
.st-screen.cut .st-cut { display: inline-block; }

.st-reader { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; flex: none; border-radius: 12px; background: var(--selection); color: var(--accent); font-size: 11px; font-weight: 700; }
.st-lockdot { position: relative; width: 10px; height: 8px; margin-top: 4px; border-radius: 2px; background: var(--accent); }
.st-lockdot::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 4px; height: 5px; border: 1.5px solid var(--accent); border-bottom: 0; border-radius: 4px 4px 0 0; }

.st-cam { position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden; background: #dfe5ee; }
.st-actor { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-rec { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: rgba(15, 26, 46, 0.6); color: #fff; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.25s; }
.st-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: blink 1s infinite; }
.st-screen.rec .st-rec { opacity: 1; }
.st-pip { position: absolute; right: 10px; top: 10px; width: 56px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(15, 26, 46, 0.6); transition: border-color 0.2s; }
.st-pip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-pip em { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0 3px; background: rgba(15, 26, 46, 0.55); color: #fff; font-style: normal; font-size: 8.5px; font-weight: 700; text-align: center; }
.st-screen.speaking-partner .st-pip { border-color: var(--accent); }
.st-you { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(15, 26, 46, 0.55); color: #fff; font-size: 9px; font-weight: 700; }
.st-toast { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); padding: 5px 12px; border-radius: 999px; background: var(--ink-deep); color: #fff; font-size: 10.5px; font-weight: 700; opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.st-screen.saved .st-toast { opacity: 1; transform: translate(-50%, 0); }

.st-controls { display: flex; align-items: center; justify-content: center; gap: 28px; height: 52px; flex: none; }
.st-play { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--selection); }
.st-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 10px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.st-recbtn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 3px #ff3b30; }
.st-recbtn i { width: 36px; height: 36px; border-radius: 50%; background: #ff3b30; transition: width 0.25s, height 0.25s, border-radius 0.25s; }
.st-screen.rec .st-recbtn i { width: 18px; height: 18px; border-radius: 5px; }
.st-thumb { width: 46px; height: 34px; border-radius: 8px; background: var(--selection); overflow: hidden; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(0.4); opacity: 0; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1.3), opacity 0.3s; }
.st-screen.saved .st-thumb img { transform: none; opacity: 1; }

.tdemo { width: 100%; }
@media (min-width: 1061px) {
  .product { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .st-rec i { animation: none; }
}

/* Demo modes: Rehearse · With a reader · Built-in reader */
.tdemo { gap: 16px; }
.ls-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--track), 0 10px 24px -18px rgba(11, 27, 63, 0.4); }
.ls-tab { padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 14px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.ls-tab.on { background: var(--ink-deep); color: #fff; }
.ls-tab:not(.on):hover { color: var(--accent); }

.st-voiceimg { display: none; width: 22px; height: 22px; border-radius: 50%; }
.st-screen[data-mode="voice"] .st-voiceimg, .st-screen[data-mode="rehearse"] .st-voiceimg { display: block; }
.st-screen[data-mode="voice"] .st-lockdot, .st-screen[data-mode="rehearse"] .st-lockdot { display: none; }

.st-voicepip {
  position: absolute; right: 10px; top: 10px; display: none; flex-direction: column; align-items: center; gap: 4px;
  width: 64px; padding: 8px 0 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px -6px rgba(15, 26, 46, 0.5); transition: box-shadow 0.2s;
}
.st-voicepip img { width: 38px; height: 38px; border-radius: 50%; }
.st-voicepip em { font-style: normal; font-size: 8.5px; font-weight: 800; color: var(--ink); }
.st-voicepip .wave { display: inline-flex; height: 8px; opacity: 0.25; transition: opacity 0.2s; }
.st-screen.speaking-partner .st-voicepip { box-shadow: 0 0 0 2px var(--accent), 0 6px 14px -6px rgba(15, 26, 46, 0.5); }
.st-screen.speaking-partner .st-voicepip .wave { opacity: 1; }
.st-screen[data-mode="voice"] .st-voicepip { display: flex; }
.st-screen[data-mode="voice"] .st-pip { display: none; }


@media (max-width: 720px) {
  .ls-tabs { display: flex; width: 100%; border-radius: 16px; }
  .ls-tab { flex: 1; padding: 11px 6px; border-radius: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-listen-head i, .ls-bars b { animation: none !important; }
}

/* Minimal screen: script and camera only */
.ls-scriptbox { position: relative; }
.st-controls { position: relative; height: 50px; }
.st-thumb { position: absolute; right: 18px; top: 8px; }

/* Rehearse: the script takes the whole screen */
.ls-status, .ls-callout { position: absolute; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.ls-status { right: 12px; top: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--selection); color: var(--accent); font-size: 10px; font-weight: 800; }
.ls-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.ls-callout { left: 50%; bottom: 16px; transform: translate(-50%, 6px) scale(0.9); padding: 7px 16px; border-radius: 999px; background: var(--ink-deep); color: #fff; font-size: 15px; font-weight: 800; }
.st-screen[data-mode="rehearse"] .ls-status { opacity: 1; }
.st-screen.line-called .ls-callout { opacity: 1; transform: translate(-50%, 0) scale(1); }
.st-screen[data-mode="rehearse"] .ls-right { display: none; }
.st-screen[data-mode="rehearse"] .ls-left { width: auto; flex: 1; }
.st-screen[data-mode="rehearse"] .st-pills { padding: 0 14px; }
.st-screen[data-mode="rehearse"] .st-script { padding: 22px 40px 14px; gap: 6px; }
.st-screen[data-mode="rehearse"] .tl { padding: 6px 18px; }
.st-screen[data-mode="rehearse"] .tl .who { font-size: 9.5px; }
.st-screen[data-mode="rehearse"] .tl p { font-size: 15px; line-height: 1.35; }
.st-screen.line-fed .tl[data-who="me"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (prefers-reduced-motion: reduce) { .ls-status i { animation: none; } }
.st-screen[data-mode="rehearse"] .st-pills { display: none; }
.st-screen[data-mode="rehearse"] .st-script { box-shadow: none; background: transparent; padding: 34px 40px 18px; }
.ls-callout { top: 6px; bottom: auto; transform: translate(-50%, -4px) scale(0.9); }
.ls-status { top: 8px; }

/* "Your line" capsule, as in the app: on the top-left edge of your current line */
.tl { position: relative; }
.yl {
  position: absolute; left: 12px; top: 0; transform: translateY(-50%);
  padding: 2px 7px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent); font-size: 8.5px; font-weight: 700; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s;
}
.tl.current[data-who="me"] .yl { opacity: 1; }
.tl[data-who="me"].current { margin-top: 6px; }
.st-screen[data-mode="rehearse"] .yl { left: 18px; font-size: 10px; padding: 3px 9px; }
.st-script { padding-top: 8px; }

/* Cookie choice (posthog.js) */
.cookie-banner {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px 20px;
  padding: 16px 16px 16px 22px; border-radius: var(--radius);
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px var(--track), 0 20px 40px -16px rgba(11, 27, 63, 0.35);
  font-size: 15px; line-height: 1.45;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.footer-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: inherit;
}
.footer-button:hover { color: var(--accent); }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookie-actions .btn { flex: 1; height: 48px; border-radius: 14px; }
}
