/* talktoscroll.com. One dark theme, matching the prompter itself. */
:root {
  --ink: #0c0d12; --surface: #15171f; --raised: #1c1f2a; --line: #2a2e3b;
  --paper: #f3ede2; --muted: #aaa497; --faint: #5b5f6b; --amber: #ffb245; --amber-ink: #1a1206; --hold: #f2736a;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Atkinson Hyperlegible", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1.0625rem/1.6 var(--font-ui); }
a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.nav { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.125rem var(--font-display); color: var(--paper); text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a.link:hover { color: var(--paper); }
@media (max-width: 620px) { .nav { gap: 12px; } .nav a.link { display: none; } .nav .btn.small { padding: 8px 13px; font-size: 0.875rem; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--font-ui); text-decoration: none; border-radius: 999px; padding: 13px 22px; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: #ffc166; }
.btn.quiet { border-color: var(--line); color: var(--paper); }
.btn.quiet:hover { border-color: var(--faint); }
.btn.small { padding: 9px 16px; font-size: 0.9375rem; }
.btn.soon { border: 1px dashed var(--line); color: var(--muted); cursor: default; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 56px 88px; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: 1.1875rem; color: var(--muted); margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 0.875rem; color: var(--faint); margin-top: 16px; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; padding-block: 28px 64px; gap: 36px; } }

/* The live demo in the hero: the real look of the prompter, read by a simulated voice. */
.demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; height: 440px; overflow: hidden; box-shadow: 0 30px 80px -30px #000; }
.demo .pill { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; font: 600 0.8125rem var(--font-ui); background: var(--raised); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.demo .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transition: background 0.2s; }
.demo[data-s="holding"] .pill i { background: var(--hold); }
.demo .window { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(#0000 9%, #000 24%, #000 68%, #0000 88%); mask-image: linear-gradient(#0000 9%, #000 24%, #000 68%, #0000 88%); }
.demo .text { position: absolute; left: 30px; right: 30px; top: 0; font: 700 1.625rem/1.45 var(--font-display); transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); will-change: transform; }
.demo .text p { margin: 0 0 0.75em; }
.demo .w { transition: color 0.18s; }
.demo .w.read { color: #f3ede24d; }
.demo .w.cur { color: var(--amber); }
.demo .mark { position: absolute; top: 35%; width: 10px; height: 3px; border-radius: 2px; background: var(--amber); }
.demo .mark.l { left: 8px; } .demo .mark.r { right: 8px; }
.demo .heard { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 8px; align-items: baseline; padding: 12px 18px; font-size: 0.8125rem; color: var(--muted); background: linear-gradient(#15171f00, var(--surface) 45%); }
.demo .heard b { color: var(--faint); font-weight: 600; flex: none; }
.demo .heard span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: rtl; text-align: left; }
.demo-note { text-align: center; font-size: 0.8125rem; color: var(--faint); margin-top: 12px; }
@media (max-width: 520px) { .demo { height: 380px; } .demo .text { font-size: 1.375rem; left: 24px; right: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .demo .text, .demo .w { transition: none; } }

section { padding-block: 72px; border-top: 1px solid var(--line); }
section > .wrap > h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.01em; max-width: 18em; }
section > .wrap > .sub { color: var(--muted); margin-top: 14px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised); color: var(--amber); font: 700 0.9375rem var(--font-display); margin-bottom: 18px; }
.card .said { font: 700 1.0625rem/1.4 var(--font-display); margin-bottom: 16px; color: var(--faint); }
.card .said b { color: var(--amber); font-weight: 700; }
.card .said s { text-decoration: none; color: var(--paper); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 1rem; }
.card li { padding-left: 22px; position: relative; margin-top: 8px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 3px; border-radius: 2px; background: var(--amber); }
.card .cta { margin-top: 22px; }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font: 700 1.125rem var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 10px; }

.closing { text-align: center; }
.closing h2 { margin-inline: auto; }
.closing .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding-block: 32px 44px; color: var(--faint); font-size: 0.875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--paper); }
footer .sp { margin-right: auto; }

/* Privacy and support pages */
.doc { padding-block: 40px 88px; max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.doc .date { color: var(--faint); margin-top: 10px; font-size: 0.9375rem; }
.doc h2 { font-size: 1.375rem; margin-top: 40px; }
.doc p, .doc ul { color: var(--muted); margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--paper); font-weight: 600; }
