/* ============================================
   BONBLICK V2 — Brutalist Editorial Landing Page
   Mobile-first, Custom Properties, wartbar.
   ============================================ */

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --bg:      oklch(96% 0.004 100);
  --surface: oklch(100% 0 0);
  --fg:      oklch(15% 0.02 100);
  --muted:   oklch(40% 0.02 100);
  --border:  oklch(15% 0.02 100);
  --accent:  oklch(60% 0.22 25);
  --grid:    color-mix(in oklch, var(--fg) 6%, transparent);

  /* Typography */
  --font-display: 'Times New Roman', 'Iowan Old Style', Georgia, serif;
  --font-body:    ui-monospace, 'IBM Plex Mono', 'JetBrains Mono', Menlo, monospace;

  /* Font sizes — corrected, mobile-first */
  --fs-hero:    clamp(42px, 10vw, 120px);
  --fs-h2:      clamp(36px, 7vw, 92px);
  --fs-h3:      clamp(28px, 5vw, 62px);
  --fs-statement: clamp(38px, 8vw, 110px);
  --fs-insight: clamp(42px, 6vw, 84px);
  --fs-body-lg: clamp(16px, 2vw, 22px);
  --fs-body:    clamp(14px, 1.4vw, 16px);
  --fs-body-sm: clamp(13px, 1.2vw, 14px);
  --fs-caption: clamp(11px, 1vw, 12px);

  /* Spacing */
  --space-xs:  0.25rem;  /* 4px */
  --space-sm:  0.5rem;   /* 8px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2.5rem;   /* 40px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Layout */
  --grid-size: 42px;
  --radius: 0;

  /* Motion */
  --duration: 300ms;
  --ease: ease-out;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: var(--grid-size) var(--grid-size);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: 0;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ─── Buttons ─── */
button,
.button {
  appearance: none;
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font: 700 var(--fs-caption)/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.button.secondary {
  background: var(--surface);
  color: var(--fg);
}

.button:hover,
button:hover {
  background: var(--accent);
  color: var(--fg);
}

/* ─── Page ─── */
.page {
  min-height: 100vh;
}

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 2px solid var(--border);
  background: color-mix(in oklch, var(--bg) 88%, var(--surface));
  padding: 12px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 2px solid var(--fg);
  transform: rotate(-4deg);
}

.brand-mark::after {
  content: "";
  display: block;
  width: 8px;
  height: 100%;
  margin: 0 auto;
  background: var(--fg);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 3px;
}

.lang-switcher button {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--muted);
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  min-height: auto;
}

.lang-switcher button:hover {
  color: var(--fg);
}

.lang-switcher button.lang-active {
  background: var(--fg);
  color: var(--surface);
}

/* Theme Toggle */
.theme-toggle {
  appearance: none;
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 8px 10px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  min-height: auto;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.theme-toggle:hover {
  background: var(--fg);
  color: var(--surface);
}

.theme-toggle .theme-label-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-label-light {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-label-dark {
  display: inline;
}

/* ─── Hero ─── */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 2px solid var(--border);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 72px);
  min-height: auto;
}

.kicker {
  width: fit-content;
  border: 2px solid var(--fg);
  background: var(--surface);
  padding: 8px 10px;
  color: var(--fg);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

h1, h2, h3, .statement {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  max-width: 920px;
  margin: 24px 0 20px;
  font-size: var(--fs-hero);
  line-height: 0.86;
}

.hero-lede {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
}

.lede-de {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.35;
}

.lede-en {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
  max-width: 860px;
  padding: 0;
  list-style: none;
}

.proof-cell {
  padding: 18px;
  border-bottom: 2px solid var(--border);
}

.proof-cell:last-child {
  border-bottom: 0;
}

.proof-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* ─── Hero Visual ─── */
.hero-visual {
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--border);
  background: var(--surface);
  min-height: auto;
  padding: 20px;
}

.receipt-stack {
  position: relative;
  top: auto;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.scan-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 0.62;
  border: 2px solid var(--fg);
  background: var(--bg);
  transform: rotate(2deg);
}

.scan-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px dashed var(--fg);
  pointer-events: none;
}

.scan-line {
  position: absolute;
  inset-inline: 0;
  top: 24%;
  height: 14px;
  background: var(--fg);
  opacity: 0.12;
  animation: scan 4.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(330px); }
}

.receipt {
  position: absolute;
  inset: 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border: 2px solid var(--fg);
  background: var(--surface);
  padding: 20px 16px;
  transform: rotate(-4deg);
  /* Crumpled paper look */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 2px rgba(0,0,0,0.04),
    2px 4px 12px rgba(0,0,0,0.08);
}

.receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0,0,0,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(0,0,0,0.025) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0,0,0,0.02) 0%, transparent 40%);
}

.receipt-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 14px;
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.line-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  font-size: var(--fs-body-sm);
  line-height: 1.25;
}

.memory-tag {
  width: fit-content;
  margin-top: 8px;
  border: 2px solid var(--fg);
  background: var(--surface);
  padding: 8px 10px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.insight-note {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(210px, 58%);
  border: 2px solid var(--fg);
  background: var(--accent);
  padding: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  transform: rotate(-6deg);
}

/* ─── Sections ─── */
.section {
  border-bottom: 2px solid var(--border);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 56px);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
}

.section-label {
  position: static;
  align-self: start;
  display: inline-block;
  width: fit-content;
  border: 2px solid var(--fg);
  background: var(--surface);
  padding: 9px 10px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 20px;
  font-size: var(--fs-h2);
  line-height: 0.9;
}

.body-large {
  max-width: 780px;
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.35;
}

/* ─── Demo Panel ─── */
.demo-panel {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
}

.demo-column {
  min-height: auto;
  padding: clamp(18px, 3vw, 32px);
}

.demo-column:first-child {
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}

.mini-receipt {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  border: 2px solid var(--fg);
  background: var(--surface);
  padding: 22px 18px;
  transform: rotate(-2deg);
  /* Crumpled paper look */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 2px rgba(0,0,0,0.04),
    2px 4px 12px rgba(0,0,0,0.08);
}

.mini-receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0,0,0,0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(0,0,0,0.025) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0,0,0,0.02) 0%, transparent 40%);
}

.mini-receipt h3 {
  margin: 0 0 18px;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 0.95;
}

.receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--fg);
  font-size: var(--fs-body-sm);
}

.receipt-row:last-child {
  border-bottom: 0;
}

/* ─── Understood ─── */
.understood {
  display: grid;
  gap: 14px;
}

.understood-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  border-bottom: 2px solid var(--border);
  padding: 0 0 16px;
}

.understood-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.understood-item span {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.understood-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* ─── Manifesto ─── */
.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--border);
  background: var(--surface);
}

.no-card {
  min-height: auto;
  padding: clamp(20px, 3vw, 32px);
  border-bottom: 2px solid var(--border);
}

.no-card:last-child {
  border-bottom: 0;
}

.no-card .no {
  display: inline-block;
  margin-bottom: 14px;
  background: var(--fg);
  color: var(--surface);
  padding: 5px 8px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.no-card h3 {
  margin: 0 0 12px;
  font-size: var(--fs-h3);
  line-height: 0.92;
}

.no-card p {
  max-width: 45ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-sm);
}

/* ─── Insight Strip ─── */
.insight-strip {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.insight {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  border: 2px solid var(--border);
  background: var(--surface);
}

.insight-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 2px solid var(--border);
}

.insight-title h3 {
  margin: 0;
  font-size: var(--fs-insight);
  line-height: 0.9;
}

.insight-title small {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-copy {
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  color: var(--muted);
  font-size: var(--fs-body);
}

/* ─── Privacy ─── */
.privacy {
  background: var(--fg);
  color: var(--surface);
}

.privacy .section-label,
.privacy .kicker {
  border-color: var(--surface);
  background: var(--fg);
  color: var(--surface);
}

.privacy .body-large {
  color: color-mix(in oklch, var(--surface) 82%, var(--fg));
}

.privacy-board {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 32px;
  border: 2px solid var(--surface);
}

.privacy-cell {
  min-height: auto;
  padding: 22px;
  border-bottom: 2px solid var(--surface);
}

.privacy-cell:last-child {
  border-bottom: 0;
}

.privacy-cell h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 0.9;
}

.privacy-cell p {
  margin: 0;
  color: color-mix(in oklch, var(--surface) 72%, var(--fg));
  font-size: var(--fs-body-sm);
}

/* ─── Quote Band ─── */
.quote-band {
  padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 56px);
  border-bottom: 2px solid var(--border);
  background: var(--surface);
}

.statement {
  max-width: 1250px;
  margin: 0 auto;
  font-size: var(--fs-statement);
  line-height: 0.88;
  text-align: start;
}

.statement em {
  color: var(--accent);
  font-style: normal;
}

/* ─── Final / Waitlist ─── */
.final {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: auto;
  background: var(--bg);
}

.final-copy {
  padding: clamp(36px, 6vw, 80px) clamp(20px, 5vw, 72px);
}

.final h2 {
  max-width: 860px;
}

.final p {
  max-width: 58ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.signup {
  border-top: 2px solid var(--border);
  background: var(--surface);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signup-form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  padding: 0 14px;
  font: var(--fs-body)/1 var(--font-body);
}

input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
}

.signup-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* ─── Footer ─── */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 2px solid var(--border);
  padding: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* ─── Legal Pages ─── */
.legal-main {
  padding: clamp(36px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.legal-article {
  max-width: 860px;
}

.legal-article h1 {
  margin: 0 0 28px;
}

.legal-article h2 {
  margin: 38px 0 14px;
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.legal-article p,
.legal-article li {
  max-width: 72ch;
}

.legal-article ul {
  margin: 0 0 20px;
  padding-left: 1.2rem;
}

.legal-updated {
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Scroll Reveal ─── */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   TABLET (min-width: 720px)
   ============================================ */
@media (min-width: 720px) {
  :root {
    --grid-size: 64px;
  }

  body {
    background-size: var(--grid-size) var(--grid-size);
  }

  .nav {
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
    padding: 16px 24px;
  }

  .brand {
    font-size: 28px;
  }

  .nav-links {
    display: flex;
  }

  .language {
    font-size: 12px;
    padding: 8px 10px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw);
  }

  .hero-copy {
    padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 88px) clamp(28px, 4vw, 56px);
    min-height: inherit;
  }

  h1 {
    margin: 34px 0 28px;
  }

  .hero-lede {
    grid-template-columns: minmax(0, 56ch) minmax(180px, 260px);
    gap: clamp(24px, 5vw, 64px);
    align-items: end;
  }

  .hero-actions {
    margin-top: 42px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 52px;
  }

  .proof-cell {
    border-inline-end: 2px solid var(--border);
    border-bottom: 0;
  }

  .proof-cell:last-child {
    border-inline-end: 0;
  }

  .hero-visual {
    border-inline-start: 2px solid var(--border);
    border-top: 0;
    min-height: inherit;
    padding: clamp(28px, 4vw, 52px);
  }

  .receipt-stack {
    position: sticky;
    top: 112px;
    min-height: 680px;
  }

  .scan-frame {
    width: min(100%, 430px);
  }

  .receipt {
    inset: 44px 52px;
    padding: 26px 22px;
  }

  .insight-note {
    right: 16px;
    bottom: 44px;
    width: min(220px, 45%);
    font-size: clamp(22px, 3vw, 34px);
  }

  .section {
    padding: clamp(56px, 8vw, 112px) clamp(20px, 5vw, 72px);
  }

  .section-grid {
    grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 88px);
  }

  .section-label {
    position: sticky;
    top: 102px;
  }

  h2 {
    margin: 0 0 28px;
  }

  .demo-panel {
    grid-template-columns: 0.75fr 1fr;
  }

  .demo-column {
    min-height: 430px;
  }

  .demo-column:first-child {
    border-inline-end: 2px solid var(--border);
    border-bottom: 0;
  }

  .understood-item {
    grid-template-columns: 132px 1fr;
    gap: 18px;
  }

  .manifesto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .no-card {
    min-height: 230px;
    border-inline-end: 2px solid var(--border);
  }

  .no-card:nth-child(2n) {
    border-inline-end: 0;
  }

  .no-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .no-card:last-child {
    border-bottom: 0;
  }

  .insight {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 180px;
  }

  .insight:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .insight-title {
    border-inline-end: 2px solid var(--border);
    border-bottom: 0;
  }

  .insight:nth-child(even) .insight-title {
    border-inline-end: 0;
    border-inline-start: 2px solid var(--border);
    order: 2;
  }

  .privacy-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-cell {
    min-height: 220px;
    padding: 26px;
    border-inline-end: 2px solid var(--surface);
    border-bottom: 0;
  }

  .privacy-cell:last-child {
    border-inline-end: 0;
  }

  .quote-band {
    padding: clamp(56px, 9vw, 118px) clamp(20px, 5vw, 72px);
  }

  .final {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    min-height: 620px;
  }

  .final-copy {
    padding: clamp(46px, 8vw, 112px) clamp(24px, 7vw, 96px);
  }

  .signup {
    border-inline-start: 2px solid var(--border);
    border-top: 0;
  }

  footer {
    padding: 24px;
    gap: 18px;
  }
}

/* ============================================
   DESKTOP (min-width: 980px)
   ============================================ */
@media (min-width: 980px) {
  .section-inner {
    padding: 0 clamp(24px, 3vw, 48px);
  }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] :root,
[data-theme="dark"] {
  --bg:      oklch(18% 0.02 100);
  --surface: oklch(22% 0.015 100);
  --fg:      oklch(92% 0.01 100);
  --muted:   oklch(60% 0.015 100);
  --border:  oklch(55% 0.015 100);
  --accent:  oklch(70% 0.24 30);
  --grid:    color-mix(in oklch, var(--fg) 4%, transparent);
}

[data-theme="dark"] .nav {
  background: color-mix(in oklch, var(--bg) 92%, var(--surface));
}

[data-theme="dark"] .lang-switcher {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .lang-switcher button.lang-active {
  background: var(--fg);
  color: var(--bg);
}

[data-theme="dark"] .theme-toggle {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--fg);
  color: var(--bg);
}

[data-theme="dark"] .receipt,
[data-theme="dark"] .mini-receipt {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 2px rgba(0,0,0,0.15),
    2px 4px 12px rgba(0,0,0,0.25);
}

/* ─── Paper Burn Transition Overlay ─── */
body {
  --theme-origin-x: 50%;
  --theme-origin-y: 50%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
  clip-path: circle(0% at var(--theme-origin-x) var(--theme-origin-y));
  transition: none;
}

body.theme-transitioning::after {
  opacity: 1;
  clip-path: circle(150% at var(--theme-origin-x) var(--theme-origin-y));
  transition: clip-path 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SVG Noise Filter for Paper Texture ─── */
.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  transition: opacity 600ms ease-out;
}

body.theme-transitioning .paper-noise {
  opacity: 0.04;
}

[data-theme="dark"] .paper-noise {
  opacity: 0.03;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body::after {
    transition: none !important;
  }
}
