/* Earshot static pages — one shared stylesheet for the standalone
   pages (landing, privacy, terms, 404). These pages used to carry
   their CSS in inline <style> blocks, which the site's own CSP
   (style-src 'self') blocks, so they rendered unstyled. The audit
   fix (2026-11-29) moved the rules here instead of weakening the
   policy. Every rule is scoped by the page class on <html>
   (page-landing / page-privacy / page-terms / page-404) so each
   page keeps its own variables and the designs never leak into
   each other. Rule bodies are the pages' original CSS, unchanged. */

/* ------------------------------------------------- shared (pass 2) */
/* One display face + one text-gray pair for every static page.
   The pages used to each invent their own grays; the landing
   values are canonical and the per-page variables below now
   point at these. Fraunces is the app's display face
   (public/fonts/, SIL OFL 1.1) — here it sets the landing h1. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
html.page-landing, html.page-privacy, html.page-terms, html.page-404 {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --text-gray: #9aa7b8;
  --text-gray-faint: #647284;
}

/* ---------------------------------------------------------- landing */
html.page-landing {
  --bg: #0d1015; --surface: #151a23; --surface-2: #1d2531;
  --accent: #35b6f6; --accent-bright: #6fd3ff; --accent-2: #9385f2;
  --text-1: #f2f5f9; --text-2: var(--text-gray); --text-3: var(--text-gray-faint);
  --border: rgba(255, 255, 255, 0.08);
}
html.page-landing * { box-sizing: border-box; }
html.page-landing body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
html.page-landing .wrap { max-width: 680px; margin: 0 auto; padding: 48px 20px 64px; }
html.page-landing .brand { display: flex; align-items: center; gap: 12px; }
html.page-landing .brand svg { display: block; height: 34px; width: auto; }
html.page-landing h1 { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.15; margin: 28px 0 10px; font-weight: 800; }
html.page-landing .brand-line { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }
html.page-landing .promise { color: var(--accent-bright); font-weight: 600; font-size: 1.05rem; margin: 0 0 28px; }
html.page-landing .lede { color: var(--text-2); font-size: 1.05rem; margin: 28px 0 36px; }
html.page-landing .cta-hero { margin-bottom: 8px; }
/* Phone mock (design pass 3): the hero's picture of the product —
   a phone frame drawn in pure CSS around a miniature of the real
   feed (Pulse card, two Earshot cards, the tab bar), mirroring the
   app's own surfaces so the page and the product match. */
html.page-landing .phone-mock {
  width: 300px; max-width: 84vw; margin: 40px auto 16px;
  background: #05070a; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 38px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.page-landing .phone-screen {
  background: var(--bg); border-radius: 29px; overflow: hidden;
  padding: 14px 12px 10px; text-align: left;
}
html.page-landing .phone-top { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
html.page-landing .phone-mark { width: 17px; height: auto; display: block; }
html.page-landing .phone-appname { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em; }
html.page-landing .phone-loc { margin-left: auto; color: var(--text-2); font-size: 0.72rem; }
html.page-landing .phone-pulse {
  font-family: var(--font-display); font-size: 0.92rem; line-height: 1.35;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 10px 12px; margin: 0 0 10px;
}
html.page-landing .phone-card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--text-3); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.page-landing .phone-card.headsup { border-left-color: #ffc46b; }
html.page-landing .phone-card.free { border-left-color: #8fe3a8; }
html.page-landing .phone-meta { display: flex; align-items: center; gap: 7px; font-size: 0.7rem; color: var(--text-2); margin-bottom: 5px; flex-wrap: wrap; }
html.page-landing .phone-card p { margin: 0; font-size: 0.85rem; line-height: 1.45; }
html.page-landing .phone-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border);
}
html.page-landing .phone-foot .sample-confirm { font-size: 0.75rem; }
html.page-landing .phone-foot .sample-echo { font-size: 0.75rem; }
html.page-landing .phone-tabs {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding: 9px 6px 2px;
  color: var(--text-2); font-size: 0.68rem; font-weight: 600;
}
html.page-landing .phone-tab-on { color: var(--accent-bright); }
html.page-landing .phone-post {
  background: var(--accent); color: #052a3d; font-weight: 800; font-size: 0.85rem;
  width: 23px; height: 23px; border-radius: 50%; text-align: center; line-height: 23px;
}
html.page-landing .cta {
  display: inline-block; background: var(--accent); color: #052a3d;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 13px 28px; border-radius: 999px; margin-bottom: 48px;
}
html.page-landing .cta-app {
  background: transparent; color: var(--accent-bright);
  border: 1.5px solid var(--accent); margin-left: 10px;
}
html.page-landing .app-block { margin-bottom: 40px; }
html.page-landing .app-block .cta { margin-left: 0; margin-bottom: 10px; }
html.page-landing .app-note { color: var(--text-3); font-size: 0.85rem; margin: 0; max-width: 34em; }
html.page-landing h2 { font-size: 1.15rem; margin: 40px 0 14px; }
/* iPhone block (audit fix): the picture steps, mirroring the
   in-app iOS install guide — Share, Add to Home Screen, home. */
html.page-landing .ios-block { margin-bottom: 40px; }
html.page-landing .ios-title { font-size: 1.15rem; margin: 0 0 14px; }
html.page-landing .ios-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html.page-landing .ios-tile { margin: 0; text-align: center; }
html.page-landing .ios-tile svg { display: block; }
html.page-landing .ios-tile figcaption { font-size: 0.72rem; color: var(--text-2); margin-top: 4px; }
html.page-landing .ios-arrow { flex: 0 0 auto; display: inline-flex; }
html.page-landing .ios-note { color: var(--text-3); font-size: 0.85rem; margin: 10px 0 0; max-width: 34em; }
html.page-landing .samples { display: flex; flex-direction: column; gap: 12px; }
html.page-landing .sample {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--text-3); border-radius: 12px; padding: 14px 16px;
}
html.page-landing .sample.headsup { border-left-color: #ffc46b; }
html.page-landing .sample.free { border-left-color: #8fe3a8; }
html.page-landing .sample.spotted { border-left-color: #9385f2; }
html.page-landing .sample.happening { border-left-color: #ff8fb3; }
html.page-landing .sample-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-2); margin-bottom: 6px; flex-wrap: wrap; }
html.page-landing .persona { color: var(--text-1); font-weight: 600; }
html.page-landing .chip { background: var(--surface-2); border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; color: var(--text-1); }
html.page-landing .sample-tag {
  margin-left: auto; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-3); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 8px;
}
html.page-landing .sample p { margin: 0; font-size: 0.98rem; }
html.page-landing .sample-foot {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
}
html.page-landing .sample-confirm { color: #8fe3a8; font-size: 0.85rem; font-weight: 500; }
html.page-landing .sample-echo { color: var(--text-2); font-size: 0.85rem; }
html.page-landing .how { color: var(--text-2); }
html.page-landing .how b { color: var(--text-1); }
html.page-landing .how li { margin-bottom: 8px; }
html.page-landing footer { margin-top: 56px; color: var(--text-3); font-size: 0.82rem; }
html.page-landing footer a { color: var(--text-2); }
html.page-landing .how-note { font-size: 0.85rem; }

/* ---------------------------------------------------------- privacy */
html.page-privacy {
  --bg: #0d1015;
  --text: var(--text-gray);
  --strong: #f2f5f9;
  --muted: var(--text-gray-faint);
  --accent: #35b6f6;
  --rule: #232b38;
  background: var(--bg);
}
html.page-privacy * { box-sizing: border-box; }
html.page-privacy body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.page-privacy .wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}
@media (min-width: 720px) {
  html.page-privacy .wrap { padding: 56px 32px 72px; }
}
html.page-privacy header.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
html.page-privacy header.brand svg { flex: 0 0 auto; display: block; }
html.page-privacy .wordmark {
  color: var(--strong);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  line-height: 1;
}
html.page-privacy h1 {
  color: var(--strong);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
@media (min-width: 720px) {
  html.page-privacy h1 { font-size: 38px; }
}
html.page-privacy .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 32px;
}
html.page-privacy main p {
  margin: 0 0 20px;
}
html.page-privacy main p strong {
  color: var(--strong);
  font-weight: 700;
}
html.page-privacy a {
  color: var(--accent);
  text-decoration: none;
}
html.page-privacy a:hover, html.page-privacy a:focus-visible { text-decoration: underline; }
html.page-privacy footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
html.page-privacy footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
html.page-privacy footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
}
html.page-privacy footer .line {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ------------------------------------------------------------ terms */
html.page-terms {
  --bg: #0d1015;
  --accent: #35b6f6;
  --text: var(--text-gray);
  --strong: #f2f5f9;
  --muted: var(--text-gray-faint);
  --line: #232c3a;
}
html.page-terms * { box-sizing: border-box; }
html.page-terms body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html.page-terms .wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}
html.page-terms header.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
html.page-terms header.brand svg { display: block; flex: none; }
html.page-terms .wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--strong);
}
html.page-terms h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--strong);
}
html.page-terms .updated {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
}
html.page-terms main p {
  margin: 0 0 20px;
}
html.page-terms main p strong {
  color: var(--strong);
  font-weight: 700;
}
html.page-terms footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
html.page-terms footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}
html.page-terms footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}
html.page-terms footer nav a:hover { text-decoration: underline; }
html.page-terms footer .footline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* -------------------------------------------------------------- 404 */
html.page-404 {
  --bg: #0d1015;
  --text: var(--text-gray);
  --strong: #f2f5f9;
  --accent: #35b6f6;
  background: var(--bg);
}
html.page-404 * { box-sizing: border-box; }
html.page-404 body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
html.page-404 .wrap { max-width: 420px; text-align: center; }
html.page-404 .mark { display: block; margin: 0 auto 24px; }
html.page-404 h1 {
  color: var(--strong);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
}
html.page-404 p { margin: 0 0 28px; }
html.page-404 a.home {
  display: inline-block;
  background: var(--accent);
  color: #052a3d;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
}
