/* Earwitness site. The app's tokens (apps/mobile/shared/design/tokens.ts): harbour-night
   blue, sodium streetlight amber, evidence-tape red, paper. Dark only, like the app. */
:root {
  --night: #0c1520;
  --night2: #122030;
  --night3: #1a2c3f;
  --line: #284058;
  --fg: #e6ecf2;
  --muted: #8ea2b7;
  --sodium: #f2a33a;
  --tape: #d8434a;
  --paper: #f1ead9;
  --ink: #1d1a14;
  --radius: 18px;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sodium); text-underline-offset: 3px; }
a:hover { color: #ffbd5c; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--sodium); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(12, 21, 32, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(40, 64, 88, 0.6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 900 26px/1 var(--display); letter-spacing: 0.5px; text-transform: uppercase; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
@media (max-width: 640px) { .nav-links a:not([href="/support"]) { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.4px; line-height: 1.02; margin: 0 0 16px; }
h1 { font-size: clamp(46px, 8vw, 92px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 26px; font-weight: 800; }
.kicker { font: 500 13px/1.4 var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--sodium); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--tape); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; }
section { padding: clamp(64px, 9vw, 110px) 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 90px); }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(242, 163, 58, 0.22), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--sodium); }
.hero-phones { position: relative; height: 620px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .phone:first-child { left: 0; top: 40px; transform: rotate(-5deg); }
.hero-phones .phone:last-child { right: 0; top: 0; transform: rotate(5deg); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; max-width: 460px; }
  .hero-phones .phone { width: 210px; }
}

.phone { border-radius: 36px; padding: 8px; background: #05090e; border: 1px solid var(--night3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.phone img { border-radius: 29px; width: 100%; height: auto; }

/* Store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--fg); color: var(--night); text-decoration: none; font-weight: 700; font-size: 19px; line-height: 1.1; }
.store-btn:hover { color: var(--night); background: #fff; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.3px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; counter-reset: step; }
.step { background: var(--night2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 13px var(--mono); color: var(--sodium); letter-spacing: 2px; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 110px); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(300px, 80%); }
.feature ul { padding-left: 20px; color: var(--muted); }
.feature li { margin: 6px 0; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature.flip .feature-media { order: 0; } }

/* Cases */
.alt { background: var(--night2); border-block: 1px solid var(--line); }
.season { margin-top: 44px; }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.season-head h3 { margin: 0; }
.season-head p { margin: 0; color: var(--muted); font-size: 15px; }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--night3); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(12, 21, 32, 0.95)); }
.cover div { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.cover b { display: block; font: 900 clamp(22px, 3vw, 32px)/1 var(--display); text-transform: uppercase; }
.cover span { font: 500 12px var(--mono); letter-spacing: 2px; color: var(--sodium); text-transform: uppercase; }
.free { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--tape); color: #fff; font: 500 11px var(--mono); letter-spacing: 2px; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; transform: rotate(-4deg); }
@media (max-width: 640px) { .covers { grid-template-columns: repeat(2, 1fr); } }

/* Bureau */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 36px; }
.plan { background: var(--night2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.best { border-color: var(--sodium); box-shadow: 0 0 0 1px var(--sodium) inset; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font: 900 44px/1 var(--display); color: var(--fg); margin: 10px 0 6px; }
.plan p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { display: inline-block; font: 500 11px var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--sodium); padding: 4px 8px; border-radius: 6px; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.checks li { padding-left: 28px; position: relative; color: var(--fg); }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--sodium); border-bottom: 3px solid var(--sodium); transform: rotate(-45deg); }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 12px; max-width: 820px; }
details { background: var(--night2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--sodium); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin: 12px 0 0; }

/* CTA */
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta .lead { margin-inline: auto; }

/* Documents (privacy, terms, support, contact, delete account) */
.doc { padding: clamp(48px, 7vw, 80px) 0; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); }
.doc h2 { font-size: 30px; margin-top: 44px; }
.doc h3 { font-size: 22px; margin-top: 28px; }
.doc p, .doc li { color: #c9d4df; }
.doc li { margin: 6px 0; }
.updated { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 1px; }
.card { background: var(--night2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.card.warn { border-color: var(--tape); }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--fg); font-weight: 600; }
td { color: #c9d4df; }
.table-scroll { overflow-x: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--fg); }
.copyright { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
