/* Read Along — public site
   Plain CSS. No build step, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --bg-elev: #ffffff;
  --fg: #1b1c22;
  --muted: #626776;
  --line: #e6e2d9;
  --accent: #5b54d6;
  --accent-ink: #ffffff;
  --accent-soft: #efeeff;
  --warm: #f6f1e7;
  --ok: #2f7d61;
  --shadow: 0 22px 60px rgba(27, 28, 34, 0.13);
  --radius: 18px;
  --max: 1120px;
  --read: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f14;
    --bg-elev: #15161d;
    --fg: #e9eaf2;
    --muted: #9a9dae;
    --line: #262832;
    --accent: #a5a3ff;
    --accent-ink: #12121a;
    --accent-soft: #1d1c30;
    --warm: #17161d;
    --ok: #7ed0ac;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
}

.skip:focus { top: 16px; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(27, 28, 34, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-left: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}

.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle svg { display: block; margin: auto; }

/* Hero */

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
}

h1,
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.lead {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.9vw, 19.5px);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 26%, transparent);
}

.button-primary:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 34%, transparent); }

.button-secondary {
  border-color: var(--line);
  background: var(--bg-elev);
  color: var(--fg);
}

.button-secondary:hover { border-color: var(--accent); }

.button.is-disabled,
.button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 12.5px;
  list-style: none;
}

.hero-note li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note svg { color: var(--ok); flex: none; }

.hero-visual { position: relative; }

.shot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, var(--bg-elev));
}

.shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.shot-bar .shot-url {
  flex: 1;
  height: 18px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
}

.shot-frame img { display: block; width: 100%; }

.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: 0 10px 28px rgba(27, 28, 34, 0.12);
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 620;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
}

/* Sections */

.section { padding: clamp(58px, 8vw, 98px) 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  max-width: 740px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(29px, 3.6vw, 42px);
  font-weight: 730;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

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

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 680;
  letter-spacing: -0.012em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

/* Screenshots */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-elev);
}

.shot-card img {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.shot-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12.5px;
}

.shot-caption strong {
  color: var(--fg);
  font-weight: 620;
}

/* Privacy band */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--warm);
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 74px) 0;
}

.band h2 { margin-top: 0; }

.band p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  text-wrap: pretty;
}

.checklist {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
}

.checklist svg {
  flex: none;
  margin-top: 2px;
  color: var(--ok);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.012em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: 11.5px/1.5 var(--mono);
  white-space: nowrap;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 850px;
}

.faq details {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-elev);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.faq details p + p { margin-top: 9px; }

/* Closing CTA */

.cta {
  padding: clamp(56px, 7vw, 86px) 0;
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(110% 160% at 100% 0%, var(--accent-soft) 0%, transparent 58%),
    var(--bg-elev);
}

.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); }

.cta p { margin: 0; color: var(--muted); font-size: 15px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.75fr));
  gap: 30px;
}

.footer-brand p {
  max-width: 300px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-col h3 {
  margin: 2px 0 11px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 3px 0;
  color: var(--fg);
  font-size: 13.5px;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

/* Reading pages */

.page-hero { padding: clamp(48px, 6vw, 76px) 0 12px; }

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: clamp(36px, 4.7vw, 56px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-hero .lead {
  max-width: 680px;
  font-size: 17px;
}

.prose {
  max-width: var(--read);
  padding: 24px 0 clamp(64px, 8vw, 100px);
}

.prose h2 {
  margin: 38px 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.prose p { margin: 0 0 15px; }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 21px; }

.prose li { margin: 6px 0; }

.prose strong { color: var(--fg); font-weight: 650; }

.prose a { text-underline-offset: 2px; }

.prose hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12.5px;
}

.note {
  margin: 22px 0;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.note strong { color: var(--fg); }

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--fg);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td { color: var(--muted); }

tr:last-child td { border-bottom: 0; }

td:first-child { color: var(--fg); font-weight: 560; white-space: nowrap; }

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.page-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* 404 */

.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 66px);
  padding: 60px 0;
  text-align: center;
}

.center-page .code {
  margin: 0 0 8px;
  color: var(--accent);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.16em;
}

.center-page h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); }

.center-page p { max-width: 460px; margin: 0 auto 24px; color: var(--muted); }

/* Responsive */

@media (max-width: 940px) {
  .hero-grid,
  .band-inner { grid-template-columns: 1fr; }

  .hero-visual { max-width: 720px; }

  .hero { padding-top: 42px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shot-grid { grid-template-columns: 1fr; }

  .shot-card { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; }

  .shot-card img { border-right: 1px solid var(--line); border-bottom: 0; }

  .shot-caption { display: block; padding: 16px; }

  .shot-caption strong { display: block; margin-bottom: 3px; }

  .steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
    box-shadow: 0 18px 50px rgba(27, 28, 34, 0.16);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a { padding: 11px 12px; font-size: 14px; }

  .nav-cta { margin: 4px 0 0; justify-content: center; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 36px)); }

  h1,
  .hero h1 { font-size: clamp(38px, 11.5vw, 52px); }

  .hero { padding-top: 34px; }

  .hero-actions .button { width: 100%; }

  .feature-grid { grid-template-columns: 1fr; }

  .shot-card { display: block; }

  .shot-card img { border-right: 0; border-bottom: 1px solid var(--line); }

  .hero-badge { left: 10px; bottom: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-actions { width: 100%; }

  .cta-actions .button { width: 100%; }

  .page-hero h1 { font-size: clamp(34px, 10vw, 44px); }
}

@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;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-nav,
  .cta { display: none; }

  body { background: #fff; color: #000; }

  .prose { max-width: none; }

  .prose p,
  .prose li { color: #222; }
}
