/* Onscript. The app's own look: recording-booth charcoal for the hero, clean paper for the rest,
   and the record-button red for actions and the line being read. One family, Instrument Sans,
   slightly condensed for headings. */

:root {
  --booth: #141416;
  --booth-2: #212125;
  --paper: #f6f5f3;
  --paper-2: #ebe9e5;
  --ink: #18181b;
  --muted: #5f5f66;
  --red: #ff3b30;
  --red-ink: #d42a20;
  --line: rgba(24, 24, 27, 0.12);
  --on-booth: #f4f4f5;
  --on-booth-dim: #a1a1aa;

  --font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --s-1: 0.8125rem;
  --s0: 1.125rem;
  --s1: 1.5rem;
  --s2: 2rem;
  --s3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --s4: clamp(2.6rem, 1.5rem + 4.6vw, 4.5rem);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18181b;
    --paper-2: #222226;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.12);
    --red-ink: #ff6a61;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s0)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: var(--s3); font-weight: 700; font-stretch: 90%; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--s0); font-weight: 650; line-height: 1.3; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); padding: 0.5rem 1rem; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.mast { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.home { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: inherit; text-decoration: none; font-size: 1.15rem; letter-spacing: -0.01em; }
.mark { border-radius: 8px; }
.mast nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
.mast nav a { color: var(--muted); text-decoration: none; font-size: 1rem; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); }
.mast-booth { background: var(--booth); color: var(--on-booth); border-color: rgba(255, 255, 255, 0.08); }
.mast-booth nav a { color: var(--on-booth-dim); }
.mast-booth nav a:hover { color: var(--on-booth); }

/* Hero */
.hero { background: radial-gradient(120% 80% at 75% 10%, #2a2a30 0%, var(--booth) 60%); color: var(--on-booth); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; grid-template-columns: 1.1fr 0.9fr; }
.hero h1 { font-size: var(--s4); font-weight: 700; font-stretch: 88%; line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { font-size: 1.25rem; margin-top: 1.25rem; max-width: 34em; color: var(--on-booth-dim); }
.acts { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; }
.store { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--on-booth); color: var(--booth); padding: 0.6rem 1.1rem 0.6rem 0.9rem; border-radius: 12px; font-weight: 650; font-size: 1.2rem; line-height: 1.05; }
.store small { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.01em; }
.link-light { color: var(--on-booth); }

/* The phone: camera view with the script scrolling over the top, like the app. */
.phone-scene { margin: 0; justify-self: center; }
.phone {
  position: relative; width: min(19rem, 78vw); aspect-ratio: 9 / 19.5;
  border-radius: 2.6rem; padding: 0.55rem; background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
.screen { position: relative; height: 100%; border-radius: 2.1rem; overflow: hidden; background: #3a3530; }
.feed { position: absolute; inset: 0; width: 100%; height: 100%; }
.island { position: absolute; top: 0.6rem; left: 50%; translate: -50% 0; width: 32%; height: 1.45rem; border-radius: 1rem; background: #000; z-index: 3; }
.prompter {
  position: absolute; top: 2.6rem; left: 0.55rem; right: 0.55rem; height: 38%;
  border-radius: 1.1rem; background: rgba(0, 0, 0, 0.58); overflow: hidden; z-index: 2;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 84%, transparent);
          mask: linear-gradient(transparent, #000 14%, #000 84%, transparent);
}
.roll { padding: 3.2rem 1rem 0; color: #fff; font-weight: 650; font-size: 1.02rem; line-height: 1.38; }
.roll p + p { margin-top: 0.9rem; }
.js .play .roll { animation: roll 16s linear infinite; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.marker { position: absolute; left: 0.3rem; top: 3.45rem; width: 0; height: 0; border-left: 7px solid var(--red); border-block: 5px solid transparent; z-index: 3; }
.rec { position: absolute; bottom: 6.6rem; left: 50%; translate: -50% 0; background: var(--red); color: #fff; font: 600 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0.35rem 0.65rem; border-radius: 999px; z-index: 2; letter-spacing: 0.02em; }
.controls { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: space-around; align-items: center; z-index: 2; }
.controls .btn-round { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: rgba(0, 0, 0, 0.45); }
.shutter { width: 3.9rem; height: 3.9rem; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter span { width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; background: var(--red); }
.phone-scene figcaption { text-align: center; color: var(--on-booth-dim); font-size: var(--s-1); margin-top: 1rem; }

/* Sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.intro { color: var(--muted); font-size: 1.2rem; margin-top: 0.75rem; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { background: var(--paper-2); border-radius: 1.25rem; padding: 1.6rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.steps p { color: var(--muted); margin-top: 0.5rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin: 2.75rem 0 0; }
.features div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.features dt { font-weight: 650; }
.features dd { margin: 0.4rem 0 0; color: var(--muted); }

.sources { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.sources li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 1rem; }

/* Price table */
.table-wrap { overflow-x: auto; margin-top: 2.5rem; }
table { width: 100%; border-collapse: collapse; min-width: 30rem; }
th, td { padding: 0.95rem 0.75rem; border-bottom: 1px solid var(--line); text-align: center; }
tbody th { text-align: left; font-weight: 450; }
thead th { font-weight: 700; font-size: 1.1rem; vertical-align: bottom; }
.cost { display: block; font-weight: 500; color: var(--red-ink); font-size: 0.95rem; }
.yes { color: var(--red-ink); font-weight: 700; }
.no { color: var(--muted); }
.part { color: var(--muted); font-size: 0.95rem; }
.small { color: var(--muted); font-size: 1rem; margin-top: 1rem; }

/* Privacy band */
.trust { background: var(--booth); color: var(--on-booth); }
.trust p { color: var(--on-booth-dim); margin-top: 1rem; max-width: 40em; }
.trust a { color: var(--on-booth); }

.last { text-align: center; }
.last p { color: var(--muted); margin-top: 0.75rem; }
.btn { display: inline-block; margin-top: 1.5rem; background: var(--red); color: #fff; text-decoration: none; font-weight: 650; padding: 0.85rem 1.5rem; border-radius: 12px; }
.btn:hover { background: var(--red-ink); }

/* Support and privacy pages */
.app-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.prose { max-width: 44rem; }
.prose h1 { font-size: var(--s3); font-weight: 700; font-stretch: 90%; letter-spacing: -0.02em; }
.prose h2 { font-size: var(--s1); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose ul { margin-top: 0.75rem; }
.prose li + li { margin-top: 0.35rem; }
.dim { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; }
.note { background: var(--paper-2); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; padding: 1rem 1.25rem; margin-top: 1.5rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 1rem; }
footer .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .play .roll { animation: none; }
  html { scroll-behavior: auto; }
}
