/* =================================================================
   OVERQUOTED. overquoted.com
   Design voice: precise, evidence-based, consumer-advocate.
   Typography split: sans for prose, mono for numbers & status.
   ================================================================= */

:root {
  /* Palette mirrors the app for brand continuity */
  --bg-deep: #0A0A0F;
  --bg-main: #111118;
  --bg-card: #1A1A24;
  --bg-elev: #22222E;
  --border-card: #2A2A38;
  --border-subtle: #1E1E2A;
  --border-hairline: rgba(255, 255, 255, 0.06);

  --accent: #5B9CF5;
  --accent-muted: #3D6DB5;
  --accent-dim: #2A4D80;
  --accent-glow: rgba(91, 156, 245, 0.12);
  --accent-glow-strong: rgba(91, 156, 245, 0.2);

  --green: #4CAF50;
  --green-glow: rgba(76, 175, 80, 0.18);
  --orange: #FF6B35;
  --orange-glow: rgba(255, 107, 53, 0.18);
  --red: #E74C3C;
  --red-glow: rgba(231, 76, 60, 0.18);

  --text-primary: #E8E8ED;
  --text-secondary: #9999A8;
  --text-muted: #6A6A7A;
  --text-dim: #3A3A4A;

  /* Oxanium (geometric sci-fi sans) everywhere; Share Tech Mono for monospace
     eyebrows and numerals. Both loaded via Google Fonts in each HTML head. */
  --font-sans: "Oxanium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-display: "Oxanium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-prose: "Oxanium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1140px;
  --radius-card: 14px;
  --radius-btn: 12px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Honeycomb backdrop. Uses the same MaterialCommunityIcons hexagon-outline glyph as the in-app HoneycombBackground, tiled in a pointy-top lattice with matching accent color and opacity. */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: url("hex-pattern.svg") repeat;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
}
main, nav, footer { position: relative; z-index: 1; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 0;
  position: sticky; top: 0;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  z-index: 20;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav .brand { display: flex; align-items: center; gap: 10px; }
.nav .brand img { height: 40px; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-family: var(--font-mono); }
.nav-links a { color: var(--text-secondary); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

/* Hamburger toggle button. Hidden above 640px. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-toggle:hover { border-color: var(--accent-muted); background: rgba(91, 156, 245, 0.05); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 18px 32px 24px;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border-hairline);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline);
    color: var(--text-primary);
    letter-spacing: 0.04em;
  }
  .nav-links a:last-child { border-bottom: none; }
  /* Lock body scroll when the menu is open on mobile so it feels like a drawer. */
  body.nav-open { overflow: hidden; }
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 6px 24px -10px var(--accent-glow-strong);
}
.btn-primary:hover {
  box-shadow: 0 10px 32px -8px var(--accent-glow-strong);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-card);
}
.btn-secondary:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
}

/* =================================================================
   MANIFESTO (hero, 2-column with phone mockup + parallax backdrop)
   ================================================================= */
.manifesto {
  padding: 88px 0 112px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero-bg.jpg") 30% center / cover no-repeat fixed;
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
}
.manifesto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,15,0.72) 0%, rgba(10,10,15,0.42) 45%, rgba(10,10,15,0.9) 100%),
    linear-gradient(to bottom, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.92) 100%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 960px) {
  .manifesto::before { background-attachment: scroll; }
}
.manifesto .container { padding: 0 32px; position: relative; }
.manifesto-visual { perspective: 1400px; }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-visual { order: -1; }
}
.manifesto-copy { min-width: 0; max-width: 620px; }
.manifesto-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}
.caption-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  flex-shrink: 0;
}
.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.manifesto-title .accent { color: var(--accent); }
.manifesto-body p {
  font-family: var(--font-prose);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 64ch;
}
.manifesto-body p:last-child { margin-bottom: 0; }
.signature {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  max-width: 64ch;
}
.signature .sig-line {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 16px;
  color: var(--text-primary);
  display: block;
}
.signature .sig-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.manifesto-cta {
  margin-top: 36px;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.secondary-link {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.secondary-link:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }

/* =================================================================
   PROSE HELPERS
   ================================================================= */
.prose-lead {
  max-width: 720px;
  margin: 0 auto 48px;
  font-family: var(--font-prose);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--text-primary);
}
.prose-lead.centered { text-align: center; }
.prose-body {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-prose);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.75;
  color: var(--text-primary);
}
.prose-body .mono { color: var(--accent); }

/* =================================================================
   MARGIN NOTES (editor's red-pen voice)
   ================================================================= */
.margin-note {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 16px 20px;
  font-family: var(--font-prose);
  font-size: 15px;
  line-height: 1.55;
  color: var(--red);
  border-left: 3px solid var(--red);
  background: rgba(231, 76, 60, 0.04);
  transform: rotate(-0.25deg);
}
.margin-note em { font-style: italic; }

/* =================================================================
   OLD HERO (kept for safety, unused by index.html now)
   ================================================================= */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.hero .eyebrow { display: block; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-align: center;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.hero .trust-strip {
  display: flex; gap: 28px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 48px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.hero .trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust-strip span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

/* =================================================================
   SECTION SHELL
   ================================================================= */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--border-hairline);
  position: relative;
}
.section.tight { padding: 56px 0; }
.section.tight-top { padding-top: 56px; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.08;
}
.section .sub {
  color: var(--text-secondary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}

/* =================================================================
   DEMO. mock invoice + verdict card
   ================================================================= */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
}

/* Mock invoice. styled to feel like a paper document */
.doc-scan {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: #F4F2EC;
  color: #1A1A24;
  padding: 32px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.doc-scan::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.03) 0 1px,
    transparent 1px 22px
  );
  pointer-events: none;
}
.doc-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #1A1A24;
  margin-bottom: 16px;
}
.doc-vendor {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
}
.doc-meta {
  font-size: 11px;
  color: #5A5A6E;
  text-align: right;
  line-height: 1.5;
}
.doc-title {
  font-size: 12px;
  color: #3A3A4A;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-lines { display: flex; flex-direction: column; gap: 6px; }
.doc-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(26, 26, 36, 0.2);
}
.doc-line .num { font-weight: 700; color: #1A1A24; }
.doc-subvendor {
  font-size: 11px;
  color: #5A5A6E;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0;
}
.doc-line-flagged {
  background: rgba(231, 76, 60, 0.08);
  margin: 0 -12px;
  padding: 6px 12px !important;
  border-radius: 3px;
}
.doc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 14px;
  border-top: 2px solid #1A1A24;
  font-weight: 800; font-size: 15px;
}
.doc-total .num { font-size: 17px; }

/* Scanline. a one-shot sweep when the block enters the viewport */
.scanline {
  position: absolute; left: 0; right: 0; top: -4px; height: 4px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px 6px var(--accent-glow-strong);
  opacity: 0;
  pointer-events: none;
}
.doc-scan.in-view .scanline {
  animation: scanline-sweep 2.2s cubic-bezier(0.25, 0.8, 0.3, 1) 0.3s forwards;
}
@keyframes scanline-sweep {
  0%   { top: -4px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: calc(100% + 4px); opacity: 0; }
}

/* Verdict card */
.verdict {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}
.verdict-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}
.verdict-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.verdict-pill.bad { background: var(--red-glow); color: var(--red); border: 1px solid rgba(231, 76, 60, 0.3); }
.verdict-pill.caution { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(255, 107, 53, 0.3); }
.verdict-pill.good { background: var(--green-glow); color: var(--green); border: 1px solid rgba(76, 175, 80, 0.3); }
.verdict-conf {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.05em;
}
.verdict-summary {
  font-size: 15px; line-height: 1.55; color: var(--text-primary);
}
.verdict-summary strong { color: var(--red); font-weight: 700; }
.verdict-lines { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.verdict-line {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--border-hairline);
}
.verdict-line:first-child { border-top: none; padding-top: 4px; }
.verdict-line .status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 4px 6px;
  border-radius: 4px;
  align-self: start;
}
.verdict-line.high .status { background: var(--orange-glow); color: var(--orange); }
.verdict-line.suspicious .status { background: var(--red-glow); color: var(--red); }
.verdict-line.fair .status { background: var(--green-glow); color: var(--green); }
.verdict-line .line-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 3px;
}
.verdict-line .line-name .num { font-family: var(--font-mono); color: var(--text-secondary); font-weight: 500; margin-left: 4px; }
.verdict-line .line-note {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}
.verdict-line .line-note .num { font-family: var(--font-mono); color: var(--text-primary); }
.verdict-tip {
  margin-top: 4px; padding: 14px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}
.verdict-tip strong { color: var(--accent); }

/* =================================================================
   LEGAL TRANSLATOR
   ================================================================= */
.legal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .legal-split { grid-template-columns: 1fr; }
}
.legal-original, .legal-plain {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column;
}
.legal-original .label,
.legal-plain .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-original blockquote {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--border-card);
  padding-left: 18px;
}
.legal-plain {
  border-top: 3px solid var(--orange);
}
.legal-plain .plain-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.legal-plain .clause-name { font-size: 14px; color: var(--text-primary); font-weight: 700; }
.legal-plain .sev {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 4px;
  background: var(--orange-glow); color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
}
.legal-plain .translation {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.legal-plain .why {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =================================================================
   USE CASES
   ================================================================= */
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .uses { grid-template-columns: 1fr; } }
.use {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.use:hover { border-color: var(--accent-muted); transform: translateY(-2px); }
.use .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.use h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.use p { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: left; padding: 0; }
.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent-dim);
  display: block;
}
.step h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* =================================================================
   PRIVACY / TRUST BLOCK
   ================================================================= */
.privacy-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) { .privacy-block { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; } }
.privacy-block .headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.privacy-block .headline .accent { color: var(--accent); }
.privacy-block .privacy-intro {
  color: var(--text-secondary);
  font-family: var(--font-prose);
  font-size: 16px;
  margin-top: 16px;
  line-height: 1.65;
}
.privacy-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.privacy-block li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}
.privacy-block li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  color: var(--green);
  font-weight: 800;
  font-family: var(--font-mono);
}

/* =================================================================
   PRICING
   ================================================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: 18px;
  padding: 36px 28px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.plan:hover { transform: translateY(-2px); }
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--bg-card) 100%);
}
.plan .badge {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
}
.plan .plan-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.plan .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
  line-height: 1;
}
.plan .period {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}
.plan ul { list-style: none; padding: 0; margin-bottom: 28px; flex-grow: 1; }
.plan li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--text-primary);
  position: relative;
  line-height: 1.5;
}
.plan li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--green);
  font-weight: 700;
}
.plan .btn { width: 100%; }
.trial-strip {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 14px 20px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* =================================================================
   FAQ
   ================================================================= */
.faq-head {
  max-width: 820px;
  margin: 0 auto 40px;
}
.faq-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--accent-dim); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq .answer {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.faq .answer p + p { margin-top: 10px; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 56px 0 28px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer .row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 640px) { .footer .row { grid-template-columns: 1fr; gap: 28px; } }
.footer .brand img { height: 24px; margin-bottom: 14px; display: block; }
.footer .brand p { color: var(--text-secondary); font-size: 13px; line-height: 1.6; max-width: 340px; }
.footer .col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer .col a, .footer .col p {
  display: block;
  color: var(--text-secondary);
  padding: 3px 0;
  font-size: 13px;
}
.footer .col .muted {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.footer .col a:hover { color: var(--text-primary); text-decoration: none; }
.footer .stripe-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
}
.footer .legal {
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}

/* =================================================================
   FADE-IN ON SCROLL
   (toggled by IntersectionObserver inline in index.html)
   ================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .doc-scan.in-view .scanline { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   DOC PAGES (terms.html, privacy.html)
   ================================================================= */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.08;
}
.doc .updated {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.doc h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 22px;
  margin-bottom: 6px;
}
.doc p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.doc ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin: 10px 0 14px 22px;
}
.doc li { margin-bottom: 6px; }
.doc a.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.doc a.back:hover { color: var(--accent); text-decoration: none; }

/* Research / citations section */
.research-prose { max-width: 640px; }
.research-prose p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; font-size: 15px; }
.research-list { list-style: none; padding: 0; margin: 18px 0; border-left: 1px solid var(--border-hairline); padding-left: 18px; }
.research-list li { color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; font-size: 14px; }
.research-list strong { color: var(--text-primary); font-weight: 600; }
.research-list a { color: var(--text-secondary); border-bottom: 1px dotted var(--border-hairline); }
.research-list a:hover { color: var(--text-primary); text-decoration: none; border-bottom-color: currentColor; }
.research-note { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 18px; line-height: 1.6; }

/* =================================================================
   CONTACT PAGE
   ================================================================= */
.contact-section { padding: 72px 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-intro { max-width: 460px; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.contact-title .accent { color: var(--accent); }
.contact-lead {
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.contact-facts { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.contact-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.contact-facts .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
  flex-shrink: 0;
}
.contact-footnote {
  font-family: var(--font-prose);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--border-hairline);
  padding-left: 14px;
  line-height: 1.55;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg-deep);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #0D0D14;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}
.contact-form textarea { resize: vertical; min-height: 140px; font-family: var(--font-sans); }
.field-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: right;
}
/* Honeypot. Visually gone, still in DOM so bots find it. */
.contact-form .field.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-submit { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.contact-submit .btn { width: 100%; padding: 15px 24px; }
.contact-privacy-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}
.contact-privacy-line a { color: var(--text-secondary); border-bottom: 1px dotted var(--border-hairline); }
.contact-privacy-line a:hover { color: var(--text-primary); text-decoration: none; }

.contact-status {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  padding: 0;
  min-height: 0;
  transition: all 0.2s ease;
}
.contact-status.success {
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
}
.contact-status.error {
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
}

/* =================================================================
   PHONE MOCKUP
   Used in the hero (phone-lead) and the showcase strip (phone-sm).
   Portrait aspect ratio matches source screenshots (480 x 1069 ~ 9:20).
   ================================================================= */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 480 / 1069;
  padding: 10px;
  background: linear-gradient(145deg, #2A2A38 0%, #0A0A0F 100%);
  border-radius: 34px;
  border: 1px solid var(--border-card);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 60px -20px rgba(91, 156, 245, 0.18);
}
.phone > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: #0A0A0F;
}
.phone-lead {
  max-width: 320px;
  transform: rotate(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.phone-sm { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
.showcase-item:hover .phone-sm {
  transform: translateY(-6px);
  box-shadow:
    0 30px 60px -20px rgba(91, 156, 245, 0.3),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.phone-sm {
  max-width: 220px;
  border-radius: 26px;
  padding: 7px;
}
.phone-sm > img { border-radius: 19px; }

/* =================================================================
   SHOWCASE (four-phone flow strip)
   ================================================================= */
.showcase { padding-top: 40px; padding-bottom: 80px; }
.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: 10px;
}
.showcase-sub {
  font-family: var(--font-prose);
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 56px;
  font-style: italic;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
@media (max-width: 960px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; } }
@media (max-width: 480px) { .showcase-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; } }
.showcase-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.showcase-item.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .showcase-item { opacity: 1; transform: none; transition: none; }
  .manifesto::before { background-attachment: scroll; }
}
.showcase-item figcaption {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
  max-width: 220px;
}
.showcase-item .step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}
