/* Palette follows the iPhone reader: warm paper, ink, and a confident teal. */
:root {
  --ink: #211d1a;
  --muted: #6d635c;
  --paper: #f6efe2;
  --panel: #fffaf1;
  --line: #d6c7b5;
  --accent: #007766;
  --accent-strong: #004f45;
  --accent-soft: #c8e7df;
  --sun: #e5aa33;
  --shadow: 0 24px 68px rgba(34, 25, 17, 0.14);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1e9dc;
    --muted: #b3a89c;
    --paper: #171513;
    --panel: #221f1b;
    --line: #3d3731;
    --accent: #3fbfa8;
    --accent-strong: #7fdcca;
    --accent-soft: #163a34;
    --sun: #f0bf55;
    --shadow: 0 24px 68px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 80% 8%, rgba(200, 231, 223, 0.24), transparent 34rem),
    var(--paper);
  font-family: "Avenir Next", "Gill Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--accent-strong); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
  border-radius: 3px;
}

.top, main, .foot {
  max-width: 1080px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.74fr);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  min-height: 640px;
  padding: 44px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { text-wrap: balance; }

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 36em;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.15;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
}

.text-link { font-weight: 700; }

.hero-note, .small-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-note { margin: 18px 0 0; }

.hero-device {
  position: relative;
  width: min(100%, 390px);
  justify-self: center;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 250, 241, 0.8);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.hero-device figcaption {
  padding: 10px 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

h2 {
  max-width: 17ch;
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.section-lede {
  max-width: 52em;
  margin: 0 0 28px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.feature-number {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.feature p, .voice-options p, .voice-proof p, .summary-callout p, details p {
  margin: 0;
  color: var(--muted);
}

.voice-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 8vw, 96px);
}

.voice-band .section-lede { margin-top: 18px; }

.voice-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.voice-options article { padding-top: 16px; border-top: 2px solid var(--line); }

.voice-limit {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--ink);
}

.voice-proof {
  padding: 28px;
  border-radius: 24px;
  background: var(--accent-strong);
  color: #fffaf1;
  box-shadow: var(--shadow);
}

.proof-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #d3f1e9;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proof-dot { width: 9px; height: 9px; border-radius: 50%; background: #f0bf55; }

.voice-proof p { color: #e5f1ec; }

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.language-list li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 250, 241, 0.35);
  border-radius: 999px;
  color: #fffaf1;
  font-size: 0.88rem;
}

.later-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(38px, 8vw, 100px);
}

.later-band .section-lede { margin-top: 18px; }

.later-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.later-step {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--accent);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1rem;
}

.later-step b {
  color: var(--ink);
  font-family: "Avenir Next", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.02rem;
}

.later-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  margin-top: 10px;
  color: var(--accent);
}

.later-wave i {
  flex: 1;
  height: 34%;
  border-radius: 3px;
  background: currentColor;
  animation: wave 1.4s ease-in-out infinite;
}

.later-wave i:nth-child(3n) { animation-delay: -0.3s; }
.later-wave i:nth-child(3n + 1) { animation-delay: -0.7s; }
.later-wave i:nth-child(4n) { animation-delay: -1.1s; }

@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }

.summary-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 8px 0 64px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--accent-soft);
}

.summary-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-strong);
  color: #fffaf1;
  font-size: 1.65rem;
}

.summary-callout .eyebrow { margin-bottom: 7px; }
.summary-callout h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.summary-callout p:not(.eyebrow) { color: var(--muted); }

.coming-tag {
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.faq-band h2 { margin-bottom: 16px; }

details {
  max-width: 820px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 10px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .later-wave i { animation: none; height: 60%; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (max-width: 860px) {
  .top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .top-nav { width: 100%; gap: 18px; overflow-x: auto; padding: 2px 2px 6px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr); gap: 32px; min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-number { margin-bottom: 14px; }
}

@media (max-width: 640px) {
  .top, main, .foot { padding-right: 18px; padding-left: 18px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 26px 0 48px; }
  h1 { max-width: 12ch; font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-device { width: min(82%, 330px); transform: rotate(1deg); }
  .band { padding: 48px 0; }
  .voice-band, .later-band { grid-template-columns: 1fr; gap: 30px; }
  .voice-options { gap: 16px; }
  .summary-callout { grid-template-columns: auto 1fr; gap: 16px; margin-bottom: 48px; padding: 20px; }
  .coming-tag { grid-column: 2; justify-self: start; }
}

@media (max-width: 420px) {
  .voice-options { grid-template-columns: 1fr; }
  .summary-mark { width: 44px; height: 44px; }
  .foot nav { gap: 12px; }
}

/* Account page (/account/) */
.account { max-width: 760px; padding-bottom: 56px; }
.account h1 { margin-top: 24px; }
.account .lede { margin-bottom: 24px; }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.apple-button { width: 260px; max-width: 100%; height: 44px; cursor: pointer; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.status-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.label { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.big { margin: 4px 0 0; font-size: 1.8rem; font-weight: 700; }
.text-button { margin: 16px 16px 0 0; padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-weight: 600; cursor: pointer; }
.message { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.message.error { background: rgba(184, 77, 90, 0.16); }
#shop { margin-top: 32px; }
#shop h2 { font-size: 1.4rem; }
.spaced { margin-top: 32px; }
.buy { width: 100%; margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.buy:disabled { opacity: 0.55; cursor: default; }

@media (max-width: 760px) {
  .status-row { grid-template-columns: 1fr; }
}
