/* ReadAloud landing page
   Dyslexia-friendly rules used here:
   - big text (18-20px), line height 1.7, short lines (max ~60 characters)
   - left-aligned, never justified, no italics
   - cream background instead of pure white, strong contrast (WCAG AA+)
   - clear focus rings, dark mode, reduced motion
*/

/* Atkinson Hyperlegible, the same font as the logo wordmark. Served from this site.
   SIL Open Font License: assets/fonts/OFL-Atkinson.txt */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBF8F1;
  --bg-alt: #F2ECDD;
  --surface: #FFFDF7;
  --text: #1F2328;
  --muted: #4A4A52;
  --border: #DCD3BF;
  --accent: #1E4FA3;
  --accent-hover: #163D80;
  --on-accent: #FFFFFF;
  --hl: #FFD633;
  --hl-text: #1F2328;
  --select: rgba(64, 132, 255, 0.28);
  --reading-bg: rgba(255, 214, 51, 0.22);
  --bubble-bg: #2563EB;   /* the app's speaker bubble (Bubble.swift) */
  --bubble-fg: #FFFFFF;
  --shadow: 0 1px 2px rgba(60, 45, 10, 0.06), 0 8px 24px rgba(60, 45, 10, 0.08);
  --focus: #1E4FA3;

  --font: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --measure: 40rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18191C;
    --bg-alt: #202226;
    --surface: #26282D;
    --text: #EEEAE0;
    --muted: #BDB8AC;
    --border: #3B3E45;
    --accent: #9DC2FF;
    --accent-hover: #C2D9FF;
    --on-accent: #10131A;
    --select: rgba(110, 160, 255, 0.35);
    --reading-bg: rgba(255, 214, 51, 0.12);
    --bubble-bg: #2563EB;
    --bubble-fg: #FFFFFF;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --focus: #FFD633;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18191C;
  --bg-alt: #202226;
  --surface: #26282D;
  --text: #EEEAE0;
  --muted: #BDB8AC;
  --border: #3B3E45;
  --accent: #9DC2FF;
  --accent-hover: #C2D9FF;
  --on-accent: #10131A;
  --select: rgba(110, 160, 255, 0.35);
  --reading-bg: rgba(255, 214, 51, 0.12);
  --bubble-bg: #2563EB;
  --bubble-fg: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --focus: #FFD633;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* keeps headings and focus clear of the sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;           /* 18px on phones */
  line-height: 1.7;
  letter-spacing: 0.01em;
  word-spacing: 0.06em;
  text-align: left;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) {
  body { font-size: 1.25rem; }   /* 20px on larger screens */
}

em, i, cite, address, dfn { font-style: normal; }  /* no italics anywhere */
em { font-weight: 700; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25em; }

p, ul, ol { margin: 0 0 1em; }
p, li { max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 0.14em; }

strong { font-weight: 700; }

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

img, svg { flex-shrink: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }
/* Narrow sections keep the same left edge as the rest of the page;
   only the line length is limited (see p, li max-width). */
.wrap.narrow > * { max-width: var(--measure); }

.small { font-size: 1rem; }
@media (min-width: 720px) { .small { font-size: 1.0625rem; } }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3.25rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn-small { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 1rem; }
.btn-big { min-height: 3.75rem; padding: 0.9rem 2rem; font-size: 1.15em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--hl);
  color: var(--hl-text);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-size: 1.0625rem;
  padding: 0.4rem 0.2rem;
}
.nav-list a:not(.btn):hover { text-decoration: underline; color: var(--text); }
@media (max-width: 999px) { .nav-hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 4rem; }
@media (min-width: 720px) { .hero { padding: 5rem 0 6rem; } }
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 0.9fr 1.2fr; gap: 3.5rem; }
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--hl);
  color: var(--hl-text);
  font-weight: 700;
  font-size: 1rem;
}
.hero-sub {
  margin: -0.25rem 0 1rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}
.hero-sub::after {
  content: "";
  display: block;
  width: 4rem; height: 0.35rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--hl);
}
.lead { font-size: 1.1em; max-width: 30em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.listen-toggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- Demo ---------- */
.demo { margin: 0; }
.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.demo-bar span {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--border);
}
.demo-body {
  position: relative;
  padding: 1.75rem 1.5rem 3.75rem;
}
@media (min-width: 720px) { .demo-body { padding: 2.25rem 2.25rem 4rem; } }
.demo-text {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.85;
  max-width: none;
}
@media (min-width: 720px) { .demo-text { font-size: 1.3rem; } }
.demo-text .w, .demo-text .s {
  border-radius: 4px;
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.demo-text .sel { background: var(--select); }
.demo-text .w.sel { box-shadow: 0 0 0 1px transparent; }
.demo-text .w.on {
  background: var(--hl);
  color: var(--hl-text);
  box-shadow: 0 0 0 3px var(--hl);
}

.demo-bubble, .demo-controls {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.demo-bubble {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--bubble-bg);
  color: var(--bubble-fg);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  transform: scale(0.6);
}
.demo-body.show-bubble .demo-bubble { opacity: 1; transform: scale(1); }
.demo-body.press .demo-bubble { transform: scale(0.85); }

.demo-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bubble-bg);
  color: var(--bubble-fg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transform: translateY(4px);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.demo-body.reading .demo-controls { opacity: 1; transform: none; }
.demo-pause {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
}
.demo-speed {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bubble-fg) 18%, transparent);
}

.demo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
}
.demo-toggle {
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.demo-toggle:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 720px) { .section { padding: 5.5rem 0; } }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.1em; color: var(--muted); margin-bottom: 2.25rem; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--hl);
  color: var(--hl-text);
  font-weight: 700;
  font-size: 1.25rem;
}
.step p { margin: 0; }

/* Feature cards */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15em;
}
.card p { margin: 0; }
.hl-chip {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem; height: 2.4rem;
  padding: 0 0.4rem;
  border-radius: 10px;
  background: var(--hl);
  color: var(--hl-text);
  font-size: 1rem;
  font-weight: 700;
}

/* Who */
.who {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.who li {
  padding: 1.1rem 0 0.25rem 1.1rem;
  border-left: 4px solid var(--hl);
}
.who h3 { margin-bottom: 0.25rem; font-size: 1.15em; }
.who p { margin: 0; }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--hl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F2328' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.note {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.section-beta { background: var(--bg); }
.section-beta .btn-big { margin-top: 0.5rem; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.5rem 1.1rem 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--hl);
  color: var(--hl-text);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 1.25rem 0.5rem; }
.faq-body ol { padding-left: 1.4rem; }
.faq-body li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-size: 1.2rem; }
.footer-brand .brand-mark { width: 1.9rem; height: 1.9rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}

/* ---------- "Listen to this page" ---------- */
.tts-block {
  background: var(--reading-bg);
  border-radius: 6px;
  box-shadow: 0 0 0 0.4rem var(--reading-bg);
}
.tts-w.on {
  background: var(--hl);
  color: var(--hl-text);
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--hl);
}
.reader-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.reader-bar[hidden] { display: none; }
.reader-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--hl);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 35%, transparent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.7); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .demo-text .w.on, .tts-w.on { forced-color-adjust: none; background: Mark; color: MarkText; }
  .btn { border-color: ButtonText; }
}

/* ---------- Pillars (right under the hero) ---------- */
.section-pillars { background: var(--bg-alt); padding: 3rem 0; }
@media (min-width: 720px) { .section-pillars { padding: 3.5rem 0; } }
.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  counter-reset: pillar;
}
.pillar {
  counter-increment: pillar;
  padding-top: 1rem;
  border-top: 5px solid var(--hl);
}
.pillar h3 { font-size: 1.2em; margin-bottom: 0.35rem; }
.pillar p { margin: 0; }

/* ---------- Gentle list in "reading feels harder" ---------- */
.soft-list { padding-left: 1.4rem; }
.soft-list li { margin-bottom: 0.4rem; }
.soft-list li::marker { color: var(--muted); }

/* ---------- Free vs Pro ---------- */
.plans {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 720px) { .plan { padding: 2rem; } }
.plan-pro { border: 2px solid var(--hl); }
.plan h3 { font-size: 1.4em; margin-bottom: 0.2rem; }
.price { font-size: 1.15em; font-weight: 700; margin-bottom: 1.25rem; }
.price-note {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.plan-intro { font-weight: 700; margin-bottom: 0.75rem; }
.plan .checks { margin-bottom: 1.25rem; }
.planned { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.planned li {
  padding-left: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  position: relative;
}
.planned li::before {
  content: "";
  position: absolute;
  left: 0.35rem; top: 0.45em;
  width: 0.8rem; height: 0.8rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.6rem;
  border: 1.5px solid var(--muted);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 0.1em;
}
.tag-soon { background: var(--hl); border-color: var(--hl); color: var(--hl-text); }
.pricing-notes { list-style: none; padding: 0; margin: 0 0 2rem; }
.pricing-notes li {
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--hl);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}
.why-pro h3 { font-size: 1.15em; margin-bottom: 0.3rem; }

/* ---------- Hero video ---------- */
.hero-video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-video[hidden] { display: none; }
.hero-video video {
  display: block;
  width: 100%;
  height: auto;
  /* The render has wide empty margins around the content (launch/video D-hero-loop).
     Zoom in a little so the words are bigger; only empty margin is cropped. */
  transform: scale(1.14);
}

/* ---------- Install steps ---------- */
#install { margin-top: 2.5rem; }
.install-steps { padding-left: 1.6rem; }
.install-steps li { margin-bottom: 0.75rem; padding-left: 0.3rem; }
.install-steps li::marker { font-weight: 700; }
.price-line { display: block; white-space: nowrap; }
.price-line + .price-line { font-size: 0.85em; }

/* ---------- Legal pages (privacy, terms, refunds) ---------- */
.legal { padding: 2.5rem 0 4rem; }
@media (min-width: 720px) { .legal { padding: 3.5rem 0 5rem; } }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); margin-top: 0.5rem; }
.legal h2 { margin-top: 2.75rem; font-size: 1.6rem; }
.legal h3 { margin-top: 1.75rem; font-size: 1.2em; }
.legal ul:not(.checks), .legal ol:not(.install-steps) { padding-left: 1.4rem; }
.legal li { margin-bottom: 0.4rem; }

/* ---------- Logo: horizontal lockup from launch/brand (white version in dark mode) ---------- */
.brand picture, .footer-brand picture { display: block; line-height: 0; }
.brand-lockup {
  display: block;
  height: 3.5rem;        /* 56px tall, about 220px wide: well above the 120px minimum */
  width: auto;
  margin-left: -0.5rem;  /* the SVG has built-in clear space; line the icon up with the text edge */
}
.brand-lockup-sm { height: 3rem; }

/* ---------- Mac + Windows download options ---------- */
.hero-listen { margin: -0.25rem 0 0; }
.wrap.narrow > .platforms { max-width: 58rem; }
.platforms {
  display: grid;
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}
@media (min-width: 760px) { .platforms { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.platform {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 720px) { .platform { padding: 2rem; } }
.platform h3 { font-size: 1.4em; margin-bottom: 0.25rem; }
.platform .tag { margin-left: 0; }
.platform .checks { margin-bottom: 1.25rem; }
.platform > p:last-child { margin-bottom: 0; margin-top: auto; }
.platform:first-child { border: 2px solid var(--hl); }   /* the option shown first */

/* ---------- Explainer video (click to play) ---------- */
.explainer { margin-top: 3rem; max-width: 52rem; }
.explainer h3 { font-size: 1.4em; }
.explainer-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  line-height: 0;
}
.explainer-frame video { display: block; width: 100%; height: auto; }
.explainer #explainer-note { margin-top: 0.75rem; }
.transcript {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.transcript summary {
  cursor: pointer;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
}
.transcript[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 1rem; }

/* ---------- Pointer to the install guide (index.html, #install) ---------- */
.install-cta {
  margin: 2.5rem 0 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--hl);
}
.install-cta h3 { margin-top: 0; }
.install-cta p:last-child { margin-bottom: 0; }
