/* HearLater public landing — the light end of the app's stone token system.
   Cream ground, near-black ink, ember reserved for the primary action.
   Bricolage Grotesque for display, Switzer for everything else. */

@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --n-950: #0e0d0b;
  --n-900: #171512;
  --n-800: #211f1b;
  --n-700: #363229;
  --n-400: #8f887a;
  --n-200: #cbc5b9;
  --n-100: #e5e1d8;
  --n-50: #f3f0ea;

  --ember-300: #eda668;
  --ember-500: #d97b33;
  --ember-600: #b25f21;
  --ember-ink: #201105;

  --ok: #3f7a55;
  --danger: #a63f2c;

  --speaker-0: #d99a5b;
  --speaker-1: #7fa9e8;
  --speaker-2: #62bfa3;
  --speaker-3: #dd8fb0;
  --speaker-4: #b39ce4;
  --speaker-5: #e0917c;
  --speaker-6: #64b8d6;
  --speaker-7: #a9ba6b;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Switzer', -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --elev-1: 0 1px 2px rgba(30, 24, 15, 0.08), 0 8px 24px -12px rgba(30, 24, 15, 0.18);
  --elev-2: 0 2px 4px rgba(30, 24, 15, 0.08), 0 18px 44px -16px rgba(30, 24, 15, 0.25);

  --dur-fast: 140ms;
  --dur-med: 260ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--n-50);
  color: var(--n-950);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
}

:focus-visible {
  outline: 2px solid var(--ember-500);
  outline-offset: 2px;
}

::selection {
  background: color-mix(in srgb, var(--ember-500) 28%, transparent);
}

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

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.shell-narrow {
  max-width: 720px;
}

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

/* honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0; }

.eyebrow {
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-600);
  margin-bottom: 0.9rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--n-700);
  max-width: 38rem;
  margin-top: 1rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--n-50) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--n-200) 60%, transparent);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.mark { display: block; border-radius: 7px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
}

.header-cta {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ember-ink);
  background: var(--ember-500);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-full);
  box-shadow: var(--edge), var(--elev-1);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.header-cta:hover { background: var(--ember-300); }
.header-cta:active { transform: scale(0.97); }

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--n-700);
  max-width: 33rem;
  margin-top: 1.2rem;
}

/* ---------- waitlist form ---------- */

.waitlist-form { margin-top: 2rem; }

.waitlist-row {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
}

.waitlist-row input[type='email'] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--n-950);
  background: #ffffff;
  border: 1px solid var(--n-200);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  caret-color: var(--ember-500);
  transition: border-color var(--dur-fast) var(--ease);
}

.waitlist-row input[type='email']::placeholder { color: var(--n-400); }

.waitlist-row input[type='email']:focus {
  border-color: var(--n-700);
  outline: none;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ember-ink);
  background: var(--ember-500);
  border: none;
  border-radius: var(--r-sm);
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--edge), var(--elev-1);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn-primary:hover { background: var(--ember-300); }
.btn-primary:active { background: var(--ember-600); transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }

.form-note {
  font-size: 0.84375rem;
  color: var(--n-400);
  margin-top: 0.7rem;
  max-width: 30rem;
}

.form-note a { color: var(--ember-600); }

.form-note.is-success { color: var(--ok); }
.form-note.is-error { color: var(--danger); }

/* ---------- hero listen card ---------- */

.listen-card {
  background: #ffffff;
  border: 1px solid var(--n-200);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--edge), var(--elev-2);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.listen-card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.listen-tile {
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: var(--elev-1);
}

.listen-meta { flex: 1; min-width: 0; }

.listen-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ember-600);
}

.listen-title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.listen-duration {
  font-size: 0.84375rem;
  color: var(--n-400);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* the fingerprint doubles as the seek control, like the app */
.fingerprint {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 76px;
  cursor: pointer;
  border-radius: var(--r-sm);
  touch-action: none;
}

.fingerprint .fp-bar {
  flex-grow: var(--w, 1);
  flex-basis: 0;
  height: calc(var(--h, 50) * 1%);
  min-width: 3px;
  border-radius: 3px;
  background: var(--c, var(--n-200));
  opacity: 0.38;
  transition: opacity var(--dur-med) var(--ease);
}

.fingerprint .fp-bar.played { opacity: 1; }

.listen-card-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.play-btn {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--r-full);
  background: var(--ember-500);
  color: var(--ember-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--edge), var(--elev-1);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.play-btn svg[hidden] { display: none; }

.play-btn:hover { background: var(--ember-300); }
.play-btn:active { background: var(--ember-600); transform: scale(0.95); }

.listen-note {
  font-size: 0.84375rem;
  color: var(--n-700);
  line-height: 1.45;
}

.hero-card-caption {
  font-size: 0.84375rem;
  color: var(--n-400);
  margin-top: 0.9rem;
  text-align: center;
}

/* ---------- steps ---------- */

.steps { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.2rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--n-950);
  color: var(--n-50);
  font-weight: 700;
  font-size: 0.84375rem;
}

.step h3 { margin: 0.8rem 0 0.4rem; }

.step p {
  font-size: 0.9375rem;
  color: var(--n-700);
}

/* ---------- compare ---------- */

.compare {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--n-950);
  color: var(--n-50);
}

.compare .eyebrow { color: var(--ember-300); }
.compare .section-sub { color: var(--n-200); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.compare-col {
  border-radius: var(--r-lg);
  padding: 1.6rem;
}

.compare-tts {
  background: var(--n-900);
  border: 1px solid var(--n-700);
}

.compare-hl {
  background: var(--n-900);
  border: 1px solid color-mix(in srgb, var(--ember-500) 55%, var(--n-700));
}

.compare-col h3 { margin-bottom: 1rem; }
.compare-tts h3 { color: var(--n-400); }
.compare-hl h3 { color: var(--ember-300); }

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compare-col li {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
}

.compare-tts li { color: var(--n-400); }
.compare-hl li { color: var(--n-200); }

.compare-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.compare-tts li::before { background: var(--n-700); }
.compare-hl li::before { background: var(--ember-500); }

/* ---------- scenes ---------- */

.scenes { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 2.2rem;
}

.scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--n-200);
  box-shadow: var(--elev-1);
  display: block;
}

.scene h3 { margin: 1rem 0 0.4rem; }

.scene p {
  font-size: 0.9375rem;
  color: var(--n-700);
}

/* ---------- faq ---------- */

.faq { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.faq h2 { margin-bottom: 1.6rem; }

.faq details {
  border-bottom: 1px solid var(--n-200);
}

.faq details:first-of-type {
  border-top: 1px solid var(--n-200);
}

.faq summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1.1rem 2.2rem 1.1rem 0.2rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

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

.faq summary:hover { color: var(--ember-600); }

.faq summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--n-400);
  border-bottom: 2px solid var(--n-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 0.2rem 1.2rem;
  color: var(--n-700);
  font-size: 0.9375rem;
  max-width: 40rem;
}

/* ---------- final cta ---------- */

.cta-final {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}

.cta-final .section-sub { margin-left: auto; margin-right: auto; }

.cta-final .waitlist-row {
  margin: 0 auto;
  justify-content: center;
}

.cta-final .form-note { margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--n-200);
  padding: 2rem 0 2.6rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}

.lockup-footer {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 0.9375rem;
}

.footer-note {
  font-size: 0.84375rem;
  color: var(--n-400);
  max-width: 26rem;
}

.footer-links {
  font-size: 0.84375rem;
  color: var(--n-400);
}

.footer-links a {
  color: var(--ember-600);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- privacy page ---------- */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal h1 { font-size: 1.75rem; margin: 1.4rem 0; }
.legal h2 { font-size: 1.125rem; margin: 1.6rem 0 0.5rem; }
.legal p { color: var(--n-700); font-size: 0.9375rem; margin-bottom: 0.8rem; }
.legal a { color: var(--ember-600); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 30rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .scenes-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 520px) {
  .waitlist-row { flex-direction: column; }
  .btn-primary { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
