/* ─── Design tokens ─── */
:root {
  --paper: oklch(0.965 0.008 80);
  --paper-2: oklch(0.935 0.01 80);
  --ink: oklch(0.18 0.01 60);
  --ink-dim: oklch(0.45 0.008 60);
  --rule: oklch(0.85 0.008 80);
  --accent: oklch(0.62 0.22 32);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
body {
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* paper grain */
  background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  line-height: 1.45;
}
::selection { background: var(--accent); color: #fff; }
input::placeholder { color: var(--ink-dim); opacity: 0.6; }
button { cursor: pointer; }
button:hover { filter: brightness(1.1); }
em { font-style: normal; font-weight: inherit; color: var(--accent); }

/* ─── Top nav ─── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 56px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 32px 56px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 116px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -4px;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-headline span { display: block; }
.hero-sub {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 520px;
  margin-top: 32px;
  text-wrap: pretty;
}
.hero-form-wrap { margin-top: 44px; max-width: 520px; }

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 520px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--ink);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── Phone mockup ─── */
.phone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 660px;
}
.phone-caption {
  position: absolute;
  top: -8px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  text-align: right;
  line-height: 1.5;
}
.phone-caption .live-dot { color: var(--accent); }
.phone-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.phone-ring--inner {
  width: 420px;
  height: 420px;
  border: 1px dashed var(--rule);
}
.phone-ring--outer {
  width: 520px;
  height: 520px;
  border: 1px dashed var(--rule);
}

.iphone-frame {
  position: relative;
  z-index: 1;
  width: 314px;
  aspect-ratio: 402 / 874;
  border-radius: 48px;
  background: #000;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  overflow: hidden;
}
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.iphone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0c;
  display: block;
}
.iphone-screen-placeholder {
  width: 100%;
  height: 100%;
  background: #0b0b0c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.7);
  z-index: 60;
  pointer-events: none;
}

/* ─── Form (hero) ─── */
.signup-form {
  display: flex;
  align-items: stretch;
  height: 64px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 150ms;
}
.signup-form.is-error { border-color: var(--accent); }
.signup-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  padding: 0 18px;
  height: 100%;
  min-width: 0;
}
.signup-form button {
  border: none;
  background: var(--ink);
  color: var(--paper);
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.form-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-dim);
  min-height: 16px;
}
.form-meta.is-error { color: var(--accent); }
.form-fineprint {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
  opacity: 0.75;
  max-width: 480px;
}
.form-fineprint a { color: var(--ink-dim); }
.signup-success {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-family: var(--font-display);
}
.signup-success .check {
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.signup-success .msg-line1 { font-size: 16px; font-weight: 500; }
.signup-success .msg-line2 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.65;
  margin-top: 2px;
}

/* ─── Section header ─── */
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -2px;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 120px 56px;
  border-top: 1px solid var(--rule);
}
.how-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.how-step {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.how-step:last-child { border-right: none; }
.how-step-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}
.how-step-meta-tag { color: var(--accent); }
.how-step h3 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0 0 20px;
  color: var(--ink);
}
.how-step p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0;
  max-width: 340px;
}

/* ─── Why 88 dB ─── */
.why88 {
  padding: 120px 56px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}
.why88 .section-kicker { color: var(--accent); }
.why88-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why88-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -3px;
  margin: 0;
  text-wrap: balance;
}
.why88-lead {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  margin-top: 32px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
}
.footnote {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid var(--accent);
  max-width: 480px;
}
.footnote-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}
.footnote p {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.75);
}
.footnote-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.footnote-grid-item-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 2px;
  color: rgba(255,255,255,0.9);
}
.footnote-grid-item-num--accent { color: var(--accent); }
.footnote-tail {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: 0;
  color: rgba(255,255,255,0.55);
}

/* ─── Decibel ladder ─── */
.db-ladder { position: relative; }
.db-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.db-row:first-child { border-top: 1px solid rgba(255,255,255,0.15); }
.db-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.db-row.is-limit {
  background: rgba(255,58,32,0.08);
  margin: 0 -16px;
  padding: 16px;
}
.db-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -1px;
  color: rgba(255,255,255,0.9);
  font-variant-numeric: tabular-nums;
}
.db-row.is-limit .db-num {
  font-size: 36px;
  color: var(--accent);
}
.db-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.db-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
}
.db-bar-fill--bad, .db-bar-fill--limit { background: var(--accent); }
.db-bar-fill--warn { background: #ffb200; }
.db-bar-fill--normal, .db-bar-fill--quiet { background: rgba(255,255,255,0.4); }
.db-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.db-row.is-limit .db-label { color: var(--accent); }
.db-source {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
}

/* ─── Footer ─── */
.site-foot {
  border-top: 1px solid var(--ink);
  padding: 40px 56px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  gap: 24px;
  flex-wrap: wrap;
}
.site-foot a { color: inherit; text-decoration: underline; }

/* ─── Sticky signup bar ─── */
.sticky-signup {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 50;
  transform: translateY(140%);
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.sticky-signup.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-signup.is-dismissed { display: none; }
.sticky-signup-inner {
  width: 100%;
  max-width: 960px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.sticky-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-pulse-dot {
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}
.sticky-headline span:not(.sticky-pulse-dot) {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.sticky-form-wrap { flex: 1; min-width: 0; }
.sticky-form {
  display: flex;
  align-items: stretch;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.sticky-form.is-error { border-color: var(--accent); }
.sticky-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 0 14px;
  min-width: 0;
}
.sticky-form button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sticky-success {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-align: right;
}
.sticky-dismiss {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 20px;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .site-nav { padding: 24px 24px 0; }
  .hero { padding: 24px 24px 64px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 40px;
  }
  .hero-headline { letter-spacing: -2.5px; }
  .hero-sub { font-size: 18px; }
  .hero-stats { padding-top: 20px; }
  .hero-stat-num { font-size: 24px; }

  .phone-stage { min-height: 0; padding: 40px 0; }
  .phone-ring--inner { width: 320px; height: 320px; }
  .phone-ring--outer { width: 400px; height: 400px; }
  .phone-caption { display: none; }

  .how-it-works { padding: 80px 24px; }
  .how-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
  .how-step {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .how-step:last-child { border-bottom: none; }
  .how-step h3 { font-size: 28px; }

  .why88 { padding: 80px 24px; }
  .why88-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .db-row { grid-template-columns: 60px 1fr 1.5fr; gap: 12px; }
  .db-row.is-limit { margin: 0 -12px; padding: 12px; }
  .db-num { font-size: 22px; }
  .db-row.is-limit .db-num { font-size: 28px; }
  .db-label { font-size: 10px; }

  .site-foot {
    padding: 32px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .signup-form { height: 56px; }
  .signup-form input { font-size: 16px; padding: 0 14px; }
  .signup-form button { padding: 0 18px; font-size: 13px; }
  .signup-success { height: 56px; padding: 0 16px; }

  .sticky-signup { left: 12px; right: 12px; bottom: 12px; }
  .sticky-signup-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
  }
  .sticky-headline { width: 100%; }
  .sticky-form-wrap { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .iphone-frame { width: 260px; }
  .phone-ring--inner { width: 280px; height: 280px; }
  .phone-ring--outer { width: 360px; height: 360px; }
  .home-indicator { width: 90px; }
  .dynamic-island { width: 80px; height: 24px; top: 9px; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero-stats > :nth-child(3) { grid-column: 1 / -1; }
}
