/* SocialBreathalyzer.AI — site-wide stylesheet
 *
 * Mobile-first. Design system: investigative diagnostic (red / black /
 * Geist + JetBrains Mono). All third-party requests are eliminated —
 * fonts and images are self-hosted.
 */

/* ---------- Self-hosted fonts (OFL — see fonts/marketing/) ---------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/marketing/Geist-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/marketing/Geist-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/marketing/JetBrainsMono-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/marketing/JetBrainsMono-Variable.woff2') format('woff2');
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  /* New design palette — primary tokens */
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --ink-50:  #f9fafb;
  --paper:   #ffffff;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-200: #fecaca;
  --red-100: #fee2e2;
  --red-50:  #fef2f2;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  --blue-700: #1d4ed8;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-700: #15803d;
  --green-500: #22c55e;
  --green-200: #bbf7d0;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  --shadow-sm: 0 1px 2px rgba(17,24,39,.05);
  --shadow-md: 0 4px 6px -1px rgba(17,24,39,.08), 0 2px 4px -2px rgba(17,24,39,.04);
  --shadow-lg: 0 10px 15px -3px rgba(17,24,39,.1), 0 4px 6px -4px rgba(17,24,39,.05);
  --shadow-xl: 0 20px 25px -5px rgba(17,24,39,.1), 0 8px 10px -6px rgba(17,24,39,.05);

  --radius: 0; /* clinical aesthetic — sharp corners by default */
  --radius-sm: 4px;

  /* ---- Compatibility aliases ----
   * Legacy selectors throughout pages/assets/wizard.js, upload.html,
   * report.css, etc. reference older brand tokens. We remap them here
   * so existing markup picks up the new palette without churn.
   */
  --navy: var(--ink-900);
  --dark-navy: var(--ink-900);
  --maroon: var(--red-600);
  --deep-red: var(--red-700);
  --gold: var(--amber-500);            /* still amber — used by report.css LCD readout */
  --link-blue: var(--blue-700);
  --text-gray: var(--ink-600);
  --light-gray: var(--ink-50);
  --white: #ffffff;
  --border: var(--ink-200);
  --max-content: 56rem;
}

/* ---------- Base ---------- */
body {
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink-900); text-decoration: none; }
a:hover { color: var(--red-700); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink-900);
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
small, .muted { color: var(--ink-500); font-size: 0.875rem; }

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  h1 { font-size: 60px; }
  h2 { font-size: 42px; }
  h3 { font-size: 22px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
}

main {
  /* Marketing pages handle their own padding via .section. The container
   * is here for the in-app screens that still wrap body in <main>. */
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.report main, .marketing main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- Site header (shared) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  box-shadow: var(--shadow-sm);
}
.site-header-meta {
  background: var(--ink-900);
  color: var(--ink-400);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-header-meta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  /* vertical-only — preserves the horizontal padding from the .container class */
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-header-meta-inner .left,
.site-header-meta-inner .right { display: flex; gap: 16px; align-items: center; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--red-500); }
.live-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-500); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.site-header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.site-header-end {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
/* The "Get my report" CTA in the header. Always visible — never inside the
 * collapsed mobile menu. Sized down on small screens so it doesn't crowd
 * the brand mark + hamburger. */
.header-cta { white-space: nowrap; }
@media (max-width: 600px) {
  .header-cta { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 380px) {
  /* On the smallest phones, hide the brand wordmark so the logo + CTA + hamburger
   * all fit in the header strip without truncation. */
  .brand-text-name { display: none; }
  .header-cta { padding: 7px 10px; font-size: 11.5px; }
}
.brand {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  color: var(--ink-900);
}
.brand:hover { color: var(--ink-900); }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text-name {
  font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  color: var(--ink-900); line-height: 1.1;
}
.brand-text-name .accent { color: var(--red-600); }
.brand-text-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500);
  margin-top: 2px;
}
/* Legacy header tag (used on report.html static markup until the chrome.js port). */
.site-header .brand .brand-tag {
  font-weight: 400; opacity: 0.7; margin-left: 0.5rem; font-size: 13px;
  color: var(--ink-500);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink-600);
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--ink-900); }
.nav-link.active { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.nav-divider { width: 1px; height: 22px; background: var(--ink-300); margin: 0 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--ink-300);
  padding: 8px 10px;
}
.nav-toggle:hover { border-color: var(--ink-900); }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink-900); display: block; }

@media (max-width: 767.98px) {
  .hide-sm { display: none !important; }
  .site-header-meta-inner { padding-top: 6px; padding-bottom: 6px; gap: 8px; flex-wrap: wrap; font-size: 10px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--ink-200);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }
  .nav.is-open { display: flex; }
  .nav-link {
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-link.active { border-left-color: var(--red-600); border-bottom-color: transparent; }
  .nav-divider { display: none; }
  .site-header-main { position: relative; padding-top: 10px; padding-bottom: 10px; }
  .brand-text-tag { display: none; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-text-name { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; font-size: 14px; font-weight: 700;
  letter-spacing: .01em; transition: all .15s;
  border: 2px solid transparent;
  background: none; color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; filter: grayscale(0.2);
}
.btn-primary {
  background: var(--red-600); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover:not(:disabled) { background: var(--red-700); box-shadow: var(--shadow-lg); color: #fff; }
.btn-cta { /* legacy alias preserved for any markup still using it */
  background: var(--red-600); color: #fff;
}
.btn-cta:hover:not(:disabled) { background: var(--red-700); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--ink-900); border-color: var(--ink-300);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-900); color: var(--ink-900); }
.btn-ghost-dark {
  background: #fff; color: var(--ink-900); border-color: var(--ink-300);
}
.btn-ghost-dark:hover:not(:disabled) { border-color: var(--ink-900); color: var(--ink-900); }
.btn-on-dark {
  background: #fff; color: var(--ink-900); border-color: #fff;
}
.btn-on-dark:hover:not(:disabled) { background: var(--ink-100); color: var(--ink-900); }
.btn-on-red {
  background: #fff; color: var(--red-700); border-color: #fff;
}
.btn-on-red:hover:not(:disabled) { background: var(--ink-50); color: var(--red-700); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* Inline error banner shown by wizard.js after a failed /api/intake submit. */
.inline-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--red-600);
  background: var(--red-50);
  color: var(--red-700);
  font-size: 0.95rem;
}

/* ---------- Tags / eyebrow chips ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid;
}
.tag-red { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.tag-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.tag-amber { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }
.tag-green { background: var(--green-50); color: var(--green-700); border-color: var(--green-200); }
.tag-ink { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-300); }
.tag-dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-dot.pulse { animation: pulse 2s infinite; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-tight { padding: 48px 0; }
.section-dark { background: var(--ink-900); color: var(--ink-50); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lede { color: var(--ink-300); }
.section-gray { background: var(--ink-50); border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); }
.section-red { background: var(--red-600); color: #fff; }
.section-red h1, .section-red h2, .section-red h3 { color: #fff; }

.lede { font-size: 18px; line-height: 1.6; color: var(--ink-600); }
@media (min-width: 768px) { .lede { font-size: 19px; } }
.divider { height: 1px; background: var(--ink-200); }
.divider-dark { height: 1px; background: var(--ink-800); }

/* ---------- Layout utilities ---------- */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mt-12{margin-top:48px}
.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}.mb-12{margin-bottom:48px}
.text-center { text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--ink-200);
  padding: 28px;
}
.card-bordered {
  background: #fff;
  border: 2px solid var(--ink-200);
  padding: 28px;
}
.card-dark {
  background: var(--ink-900);
  color: #fff;
  padding: 28px;
}
.card-step {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink-200);
  padding: 32px 28px 28px;
}
.card-step-num {
  position: absolute; top: -14px; left: 24px;
  background: var(--ink-900); color: #fff;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  font-weight: 700; letter-spacing: .1em;
}

/* ---------- Hero image treatments ---------- */
.hero {
  background: linear-gradient(to bottom, var(--ink-50), #fff);
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  /* vertical-only padding — the .container class on the same element supplies
   * the horizontal padding (0 24px / 0 32px). Using `padding: ... 0 ... 0`
   * here would override that and slam content edge-to-edge. */
  padding-top: 32px;
  padding-bottom: 48px;
}
.hero-grid > * { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink-200);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 100%;
}
@media (min-width: 1024px) {
  /* Cap image height on desktop so the hero column heights are driven by
   * the copy + CTA, not by a tall image. Keeps the buttons above the fold
   * on typical desktop viewports (≥800px tall). */
  .hero-grid > .hero-image-wrap .hero-image {
    aspect-ratio: 4 / 5;
    max-height: 460px;
    width: auto;
    margin-left: auto;
  }
}

/* Hero-specific type sizes — tighter than the site-wide h1/h2 scale so the
 * primary CTA lands above the fold on common viewports (375x667 mobile,
 * ≥1024x800 desktop). Other pages inherit the larger global h1/h2. */
.hero h1 { font-size: 32px; line-height: 1.1; }
@media (min-width: 640px) { .hero h1 { font-size: 40px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 48px; } }
.hero .lede { font-size: 17px; line-height: 1.55; }
@media (min-width: 768px) { .hero .lede { font-size: 18px; } }

/* Mobile button stacking — keeps the hero column from being forced wider
 * than the viewport by long button labels (the hero CTAs run ~24 chars,
 * which at 16px + .btn-lg padding is ~440px min-content; without this
 * rule they push the grid track past 375px and the H1 gets clipped). */
@media (max-width: 600px) {
  .hero .flex .btn { width: 100%; }
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.15) contrast(1.05);
}
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,.85) 0%, rgba(17,24,39,.1) 50%, transparent 100%);
}
.hero-image-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px; color: #fff;
}
.hero-image-caption .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 4px;
}
.warning-badge {
  position: absolute; top: -12px; right: 8px;
  background: var(--red-600); color: #fff;
  padding: 12px 18px;
  transform: rotate(3deg);
  box-shadow: var(--shadow-xl);
  text-align: left;
  /* Keep the badge inside the column on mobile so it doesn't stretch the
   * grid track and clip the H1 next door. */
  max-width: calc(100% - 16px);
}
.warning-badge .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  margin-bottom: 2px;
}
.warning-badge .value { font-size: 14px; font-weight: 800; line-height: 1.1; }

.checks { display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-600);
}
.check svg { color: var(--ink-400); flex-shrink: 0; }

/* ---------- Reading-card (data callouts) ---------- */
.reading {
  background: #fff;
  border: 2px solid var(--ink-200);
  padding: 24px;
}
.reading-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 4px;
}
.reading-value {
  font-size: 40px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink-900); line-height: 1;
}
.reading-sub { color: var(--ink-600); font-size: 14px; margin-top: 8px; }
.reading-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
}
.reading-row:last-child { border-bottom: none; }
.reading-row .label { font-size: 14px; color: var(--ink-700); }
.reading-row .value-wrap { display: flex; align-items: center; gap: 8px; }
.reading-row .value {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  font-weight: 700; color: var(--ink-900);
}
.flag-dot { width: 8px; height: 8px; border-radius: 50%; }
.flag-high { background: var(--red-500); }
.flag-med { background: var(--amber-500); }
.flag-low { background: var(--green-500); }

/* ---------- Stat cells (why-it-matters) ---------- */
.stat-cell {
  background: #fff;
  border: 2px solid var(--ink-200);
  padding: 28px;
}
.stat-cell .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 12px;
}
.stat-cell .value {
  font-size: 56px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1; color: var(--ink-900); margin-bottom: 12px;
}
.stat-cell .source {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-500);
}
.stat-cell.danger .value { color: var(--red-700); }
.stat-cell.warn .value { color: var(--amber-700); }

/* ---------- Info callouts ---------- */
.callout {
  padding: 20px 24px;
  border-left: 4px solid;
  background: var(--ink-50);
  border-color: var(--ink-300);
  font-size: 14px;
}
.callout.amber { background: var(--amber-50); border-color: var(--amber-500); color: var(--amber-700); }
.callout.amber strong { color: var(--amber-700); }
.callout.red { background: var(--red-50); border-color: var(--red-600); color: var(--red-700); }
.callout.red strong { color: var(--red-700); }
.callout.blue { background: var(--blue-50); border-color: var(--blue-700); color: var(--blue-700); }
.callout.green { background: var(--green-50); border-color: #16a34a; color: var(--green-700); }
.callout strong { font-weight: 700; }

/* ---------- Step rows (how-it-works) ---------- */
.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 32px 28px;
  background: #fff;
  border: 2px solid var(--ink-200);
  transition: border-color .15s;
}
.step-row:hover { border-color: var(--ink-900); }
.step-num-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px; font-weight: 800;
  color: var(--red-600);
  letter-spacing: -.02em;
  align-self: flex-start;
  padding-top: 4px;
}
.step-time {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-700);
  background: var(--ink-100);
  border: 1px solid var(--ink-300);
  padding: 4px 10px;
}

/* ---------- Read / never-read table ---------- */
.we-read-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .we-read-grid { grid-template-columns: 1fr 1fr; } }
.we-read { border: 2px solid; padding: 28px; }
.we-read.yes { background: var(--green-50); border-color: var(--green-200); }
.we-read.no { background: var(--red-50); border-color: var(--red-200); }
.we-read h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.we-read.yes h3 { color: var(--green-700); }
.we-read.no h3 { color: var(--red-700); }
.we-read ul { list-style: none; padding: 0; margin: 0; }
.we-read li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 15px;
  color: var(--ink-800);
  display: flex; gap: 10px; align-items: flex-start;
}
.we-read li:last-child { border-bottom: none; }
.we-read .icon {
  flex-shrink: 0; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  margin-top: 2px;
}
.we-read.yes .icon { background: var(--green-700); color: #fff; }
.we-read.no .icon { background: var(--red-600); color: #fff; }

/* ---------- Charts (sample-report; CSS-only fallback layouts) ---------- */
.chart-frame {
  background: #fff;
  border: 1px solid var(--ink-200);
  padding: 20px;
}
.chart-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.chart-title .name {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500);
}
.chart-title .meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-700);
}
.bar-chart {
  display: grid; grid-template-columns: repeat(90, 1fr);
  align-items: flex-end; gap: 1px; height: 120px;
}
.bar-chart .bar { background: var(--ink-300); min-height: 2px; }
.bar-chart .bar.high { background: var(--red-600); }
.bar-chart .bar.med { background: var(--amber-500); }
.bar-chart .bar.low { background: var(--ink-400); }
.hour-chart {
  display: grid; grid-template-columns: repeat(24, 1fr);
  align-items: flex-end; gap: 2px; height: 100px;
}
.hour-chart .bar { background: var(--ink-300); }
.hour-chart .bar.late { background: var(--red-600); }
.hour-axis {
  display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-500);
}
.hour-axis span { text-align: center; }
.legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-600);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink-900); color: #fff;
  border-top: 3px solid var(--red-600); border-bottom: 3px solid var(--red-600);
  padding: 14px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 48px; align-items: center; white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .04em;
}
.ticker-track > span { display: inline-flex; gap: 12px; align-items: center; }
.ticker-track .sep { color: var(--red-500); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ---------- Roadmap chips ---------- */
.roadmap-row { display: flex; gap: 12px; flex-wrap: wrap; }
.roadmap-chip {
  background: #fff; border: 1px solid var(--ink-300); padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 180px; flex: 1 1 auto;
}
.roadmap-chip .step {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500);
}
.roadmap-chip .name { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.roadmap-chip.active { border-color: var(--red-600); background: var(--red-50); }
.roadmap-chip.active .step { color: var(--red-700); }

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  border-top: 1px solid var(--ink-800);
}
.site-footer-inner { padding-top: 56px; padding-bottom: 32px; }
.site-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px;
}
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 16px; font-weight: 600;
}
.site-footer a {
  display: block; color: var(--ink-400); font-size: 14px;
  padding: 6px 0; transition: color .15s;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand-text-name { color: #fff; }
.site-footer .brand-text-tag { color: var(--ink-500); }
.site-footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--ink-800);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-500); letter-spacing: .04em;
}
/* Legacy thin footer used by upload/faq/privacy etc. — keep compatible */
.site-footer-light {
  border-top: 1px solid var(--ink-200);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.85rem;
  background: #fff;
}
.site-footer-light a { color: var(--ink-500); margin: 0 0.5rem; padding: 0; display: inline; }

/* Hide the wizard progress pills while the marketing hero (step 1) is the
 * active wizard step on /. The data attribute is set by chrome.js via
 * setupHomepageHelpers(). */
body[data-active-step="1"] #progress { display: none; }

/* ===========================================================================
 *  WIZARD (existing intake flow on / and per-platform walkthroughs)
 * --------------------------------------------------------------------------- */

fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
legend {
  font-weight: 700; margin-bottom: 0.5rem; color: var(--ink-900);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
label {
  display: block; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--ink-900);
}
input[type="text"], input[type="email"], input[type="tel"], select {
  display: block; width: 100%; font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink-300); background: #fff;
  color: var(--ink-900);
  margin-bottom: 0.875rem;
  border-radius: var(--radius);
}
input:focus, select:focus {
  outline: 2px solid var(--ink-900);
  outline-offset: 1px;
  border-color: var(--ink-900);
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.625rem; margin: 0.75rem 0;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem; width: 1.05rem; height: 1.05rem;
}
.checkbox-row label {
  margin: 0; font-weight: 400; font-size: 0.9rem; line-height: 1.4;
}
.field-error {
  color: var(--red-600); font-size: 0.825rem; margin: -0.5rem 0 0.625rem;
}

/* Wizard progress pills */
.wizard-progress {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0.5rem 0 1.25rem; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500);
}
.wizard-progress .pill {
  background: #fff; border: 1px solid var(--ink-300);
  padding: 0.25rem 0.7rem;
}
.wizard-progress .pill[aria-current="step"] {
  background: var(--ink-900); color: #fff; border-color: var(--ink-900);
}
.wizard-progress .pill.done { background: var(--ink-50); color: var(--ink-700); border-color: var(--ink-200); }

.step { display: none; }
.step.active { display: block; }
.step-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1rem; }

/* Privacy promise row used in the legacy hero — restyled. */
.privacy-promise {
  background: var(--ink-50);
  border-left: 3px solid var(--red-600);
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}

/* Platform picker (intake step 3) */
.platform-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 1rem;
}
@media (min-width: 768px) { .platform-grid { grid-template-columns: 1fr 1fr; } }
.platform-option {
  display: flex; align-items: flex-start; gap: 0.625rem;
  border: 1px solid var(--ink-300);
  padding: 0.85rem 0.9rem;
  cursor: pointer; background: #fff;
}
.platform-option input[type="checkbox"] { margin-top: 0.2rem; }
.platform-option .pname { font-weight: 700; color: var(--ink-900); }
.platform-option .pdesc { display: block; font-size: 0.85rem; color: var(--ink-600); }
.platform-option:has(input:checked) {
  border-color: var(--red-600);
  box-shadow: 0 0 0 2px var(--red-100);
}

/* Walkthrough step cards */
.walkthrough h2 .platform-tag {
  display: inline-block; background: var(--ink-900); color: #fff;
  font-size: 0.7rem; padding: 0.18rem 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-left: 0.5rem; vertical-align: middle;
}
.walkthrough h2 .platform-tag-optional {
  background: #fff; color: var(--ink-600);
  border: 1px dashed var(--ink-300);
}
.walkthrough ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.walkthrough ol li { margin-bottom: 0.875rem; }
.walkthrough .screenshot-placeholder {
  display: block; margin-top: 0.5rem;
  background: var(--ink-50); border: 1px dashed var(--ink-300);
  padding: 1.25rem; text-align: center;
  color: var(--ink-500); font-size: 0.825rem;
}
.walkthrough-steps { list-style: none; padding-left: 0; margin: 0 0 1rem; }
.walkthrough-step-card {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 0.875rem; margin-bottom: 0.75rem;
  background: #fff; border: 1px solid var(--ink-300);
}
.walkthrough-step-num {
  flex: 0 0 2rem; width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-900); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-weight: 800;
  font-size: 0.95rem;
}
.walkthrough-step-body { flex: 1; min-width: 0; }
.walkthrough-step-text { margin: 0 0 0.5rem; }
.walkthrough-step-img {
  display: block; max-width: 280px; width: 100%; height: auto;
  border: 1px solid var(--ink-200); background: var(--ink-50);
}
.walkthrough-step-warn {
  background: var(--red-50); border-color: var(--red-600); border-left-width: 4px;
}
.walkthrough-step-warn .walkthrough-step-num { background: var(--red-600); }
.walkthrough-step-warn-label {
  margin: 0 0 0.25rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  font-weight: 700; color: var(--red-700);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.walkthrough-step-inline-warn {
  margin-top: 0.4rem !important;
  padding: 0.5rem 0.625rem;
  background: var(--red-50); border-left: 3px solid var(--red-600);
  font-size: 0.875rem; color: var(--red-700); font-weight: 600;
}

.walkthrough-platform-nav {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1rem; padding: 0.5rem;
  background: var(--ink-50); border: 1px solid var(--ink-200);
}
.walkthrough-platform-nav-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  border: 1px solid var(--ink-300); background: #fff;
  color: var(--ink-700); line-height: 1.2;
}
.walkthrough-platform-nav-link.is-selected {
  color: var(--ink-900); border-color: var(--ink-900);
}
.walkthrough-platform-nav-link.is-optional {
  color: var(--ink-500); background: transparent;
  border-style: dashed;
}
a.walkthrough-platform-nav-link:hover {
  color: #fff; background: var(--ink-900); border-color: var(--ink-900);
}
.walkthrough-platform-nav-link.is-current {
  background: var(--red-600); color: #fff;
  border-color: var(--red-600); cursor: default;
}
.walkthrough-platform-nav-link.is-current:hover {
  background: var(--red-600); color: #fff;
}
.walkthrough-optional-note {
  background: var(--blue-50); border-left: 3px solid var(--blue-700);
  padding: 0.6rem 0.75rem; font-size: 0.9rem;
  color: var(--blue-700); margin: 0 0 1rem;
}
.walkthrough-tip {
  font-size: 0.85rem; color: var(--ink-600);
  background: var(--ink-50); border-left: 3px solid var(--ink-300);
  padding: 0.5rem 0.625rem; margin: 0 0 1rem;
}

/* ---------- Upload page platform list ---------- */
.platform-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.platform-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.75rem 0.875rem;
  border: 1px solid var(--ink-300); background: #fff;
}
.platform-row.is-optional { background: var(--ink-50); border-style: dashed; }
.platform-row.is-done { opacity: 0.65; }
.platform-row-label { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.platform-row-name { font-weight: 700; color: var(--ink-900); }
.platform-row-optional-tag {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); margin-left: 0.4rem; font-weight: 700;
}
.platform-row-help {
  font-size: 0.8rem; color: var(--red-700);
  text-decoration: underline; margin-top: 0.1rem;
}
.platform-row-help:hover { color: var(--red-700); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 3rem 1rem; }
.notfound .code {
  font-size: 4rem; color: var(--red-600);
  font-weight: 800; margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Brand link inside legacy main wrappers ---------- */
.legacy-main-page {
  /* Pages that still use the old <main> + .card layout sit on top of the new
   * tokens cleanly because everything inherits from :root. No overrides needed
   * here — this class is just a hook in case page-specific tweaks are needed. */
}
