/* ── Brahmi marketing site ─────────────────────────────────
 *
 * Neo-brutalist, dual-theme — a direct port of the app's design system
 * (`constants/theme.ts` in the app repo). Same palette, same rules:
 *
 *   - 2px ink borders (3px on hero surfaces)
 *   - offset shadows with ZERO blur, 2/4/6px
 *   - small radii (6px), never pill except chips
 *   - Space Grotesk for display/labels, Manrope for body copy
 *   - snappy motion: 90ms press, the surface travels 2px into its shadow
 *
 * Dark mode is not an inversion. Borders become bone rather than ink (a black
 * border is invisible on a dark ground) and the accent fills desaturate so a
 * flat block does not glow. Both of those come straight from the app.
 *
 * This sheet also styles privacy.html / terms.html / delete-account.html —
 * they share the navbar, footer and .legal-* classes. Don't drop a class
 * without grepping those three first.
 * ─────────────────────────────────────────────────────────── */

/* ── Tokens: light ("ink on parchment") ─────────────────── */

:root {
  color-scheme: light;

  --bg: #FFF8F7;
  --surface: #FFFFFF;
  --surface-container: #FFF0EF;
  --surface-high: #FBEAE8;

  --ink: #141010;          /* borders + hard shadows */
  --shadow: #141010;
  --on-surface: #141010;
  --muted: #554241;
  --outline-variant: #C4ADAC;

  --primary: #541012;
  --primary-container: #B5434E;
  --on-primary: #FFFFFF;
  --secondary: #B6180C;

  --clay: #E8A08D;
  --sand: #F2D07E;
  --moss: #A8C69F;
  --slate: #9DB4C8;
  --on-accent: #141010;
  --brand-skin: #FBE7DC;

  --inverse-surface: #241C1C;
  --inverse-on-surface: #FFF0EF;

  --radius: 6px;
  --radius-sm: 4px;
  --border: 2px;
  --border-thick: 3px;
  --shadow-sm: 2px 2px 0 var(--shadow);
  --shadow-md: 4px 4px 0 var(--shadow);
  --shadow-lg: 6px 6px 0 var(--shadow);

  --display: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Tokens: dark ("chalk on slate") ────────────────────── */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #141010;
    --surface: #1D1717;
    --surface-container: #241C1C;
    --surface-high: #2E2424;

    --ink: #F5EAE9;
    --shadow: #000000;
    --on-surface: #F5EAE9;
    --muted: #C4ADAC;
    --outline-variant: #5C4949;

    --primary: #FFB2B6;
    --primary-container: #C4525D;
    --on-primary: #3A0A0C;
    --secondary: #FF8A7A;

    --clay: #8C5245;
    --sand: #8A7233;
    --moss: #4E6647;
    --slate: #4A5D6E;
    --on-accent: #F5EAE9;

    --inverse-surface: #F5EAE9;
    --inverse-on-surface: #241C1C;
  }
}

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

  --bg: #141010;
  --surface: #1D1717;
  --surface-container: #241C1C;
  --surface-high: #2E2424;

  --ink: #F5EAE9;
  --shadow: #000000;
  --on-surface: #F5EAE9;
  --muted: #C4ADAC;
  --outline-variant: #5C4949;

  --primary: #FFB2B6;
  --primary-container: #C4525D;
  --on-primary: #3A0A0C;
  --secondary: #FF8A7A;

  --clay: #8C5245;
  --sand: #8A7233;
  --moss: #4E6647;
  --slate: #4A5D6E;
  --on-accent: #F5EAE9;

  --inverse-surface: #F5EAE9;
  --inverse-on-surface: #241C1C;
}

/* ── Base ───────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(38px, 8.5vw, 60px); }
h2 { font-size: clamp(28px, 5.5vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }

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

:focus-visible {
  outline: var(--border-thick) solid var(--primary-container);
  outline-offset: 2px;
}

/* Uppercase eyebrow — the workhorse of the brutalist look. */
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--sand);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--on-surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease;
}

.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }

.btn-primary { background: var(--primary); color: var(--on-primary); }

.btn-lg { font-size: 18px; padding: 16px 32px; }

/* ── Navbar ─────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: var(--border) solid var(--ink);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--on-surface); }
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 34px;
  height: 34px;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--brand-skin);
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--on-surface);
}

.nav-menu a:hover { color: var(--primary); text-decoration: none; }
.nav-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.nav-cta { padding: 9px 16px; font-size: 13px; box-shadow: var(--shadow-sm); }
.nav-cta:hover { color: var(--on-primary); }

/* Theme toggle — injected by script.js, mirrors the app's light/dark switch */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  font-size: 16px;
  line-height: 1;
  background: var(--surface-container);
  color: var(--on-surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.theme-toggle:hover { background: var(--surface-high); }

/* Hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 9px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-container);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 120ms ease, opacity 120ms ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-menu {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: var(--border) solid var(--ink);
    padding-top: 8px;
    margin-top: 12px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 2px; border-bottom: 1px solid var(--outline-variant); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  /* Keep the menu on its own row below; the toggle rides beside the burger. */
  .nav-menu { order: 3; }
  .nav-toggle { order: 2; margin-left: 0; }
  .theme-toggle { order: 1; margin-left: auto; }
}

/* ── Layout ─────────────────────────────────────────────── */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 20px;
}

/* Full-bleed band. The column is held by padding rather than auto margins on
   the children — auto margins re-centre anything with its own max-width
   (.section-sub), which left the sub-heading floating away from its h2. */
.section-alt {
  max-width: none;
  background: var(--surface-container);
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  padding-left: max(20px, calc((100% - 1080px) / 2));
  padding-right: max(20px, calc((100% - 1080px) / 2));
}

.section-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 62ch;
  margin-top: 14px;
}

.section > h2 + .section-sub { margin-bottom: 8px; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 20px 64px;
  text-align: center;
}

.hero-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  background: var(--brand-skin);
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero .eyebrow { background: var(--clay); }

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  color: var(--muted);
  font-size: 19px;
  max-width: 58ch;
  margin: 0 auto;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 90ms ease, box-shadow 90ms ease;
}

.store-badge:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.store-badge:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }

.store-badge span {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-align: left;
}

.store-badge small {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-note {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Stat strip ─────────────────────────────────────────── */

.stat-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Quote band ─────────────────────────────────────────── */

.quote-band {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  border-top: var(--border) solid var(--ink);
  border-bottom: var(--border) solid var(--ink);
  padding: 68px 20px;
  text-align: center;
}

.quote-band blockquote {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.quote-sub {
  max-width: 60ch;
  margin: 22px auto 0;
  opacity: 0.85;
  font-size: 17px;
}

/* ── Feature cards ──────────────────────────────────────── */

.cards {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 90ms ease, box-shadow 90ms ease;
}

.card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  background: var(--clay);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

/* Rotate the accent fills so a grid reads as blocks, not a wall of one hue. */
.card:nth-child(4n+2) .card-icon { background: var(--sand); }
.card:nth-child(4n+3) .card-icon { background: var(--moss); }
.card:nth-child(4n+4) .card-icon { background: var(--slate); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 10px; }

.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ── The ladder (progressive unlock) ────────────────────── */

.ladder {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rung {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 18px;
}

.rung-day {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--moss);
  color: var(--on-accent);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  margin-bottom: 14px;
}

.rung h3 { font-size: 17px; margin-bottom: 8px; }
.rung p { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* ── Milestone badges ───────────────────────────────────── */

.badge-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.badge-block {
  background: var(--sand);
  color: var(--on-accent);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: transform 90ms ease, box-shadow 90ms ease;
}

.badge-block:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }

.badge-block:nth-child(4n+2) { background: var(--clay); }
.badge-block:nth-child(4n+3) { background: var(--moss); }
.badge-block:nth-child(4n+4) { background: var(--slate); }

.badge-day {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.badge-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}

.badge-sans {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.85;
}

/* ── Phases ─────────────────────────────────────────────── */

.phase-list {
  margin-top: 40px;
  list-style: none;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  overflow: hidden;
}

.phase {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: var(--border) solid var(--ink);
}

.phase:last-child { border-bottom: none; }

.phase-range {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: start;
  background: var(--surface-high);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  text-align: center;
}

.phase h3 { margin-bottom: 6px; }
.phase p { color: var(--muted); font-size: 15.5px; }

@media (max-width: 640px) {
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase-range { justify-self: start; }
}

/* ── Practices & sound ──────────────────────────────────── */

.practice-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}

.practice {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.practice b {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.practice .deva {
  display: block;
  font-size: 15px;
  color: var(--primary);
  margin: 2px 0 8px;
}

.practice p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 900px) { .practice-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .practice-list { grid-template-columns: 1fr; } }

.note-band {
  margin-top: 26px;
  background: var(--surface-high);
  border: var(--border) solid var(--ink);
  border-left: 8px solid var(--primary-container);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  margin-top: 44px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  background: var(--primary);
  color: var(--on-primary);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq-list { margin-top: 40px; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: box-shadow 90ms ease;
}

.faq-item[open] { box-shadow: var(--shadow-md); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 1;
  background: var(--surface-high);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  transition: transform 120ms ease;
}

.faq-item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }

.faq-item p {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15.5px;
}

.faq-item[open] summary { border-bottom: 1px solid var(--outline-variant); margin-bottom: 16px; }

/* ── Closing CTA ────────────────────────────────────────── */

.cta-band {
  text-align: center;
}

.cta-band > * { margin-left: auto; margin-right: auto; }

.cta-inner {
  background: var(--primary);
  color: var(--on-primary);
  border: var(--border-thick) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 56px 28px;
}

.cta-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: var(--brand-skin);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.cta-inner .section-sub { color: inherit; opacity: 0.9; margin-bottom: 30px; }

.cta-inner .btn { background: var(--surface); color: var(--on-surface); }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  border-top: var(--border) solid var(--ink);
  padding: 56px 20px 40px;
}

.footer-inner { max-width: 1120px; margin: 0 auto; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.footer-icon {
  width: 32px;
  height: 32px;
  background: var(--brand-skin);
  border: var(--border) solid currentColor;
  border-radius: var(--radius-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0;
  padding: 20px 0;
  /* currentColor, not a fixed white: in dark mode the footer inverts to a
     light plate and a white rule would vanish on it. */
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.footer-links a {
  color: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-links a:hover { opacity: 1; }

.footer-disclaimer {
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.75;
  max-width: 90ch;
}

.footer-copy {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Legal pages (privacy / terms / delete-account) ─────── */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.legal-main h1 { margin-bottom: 10px; }

.legal-main h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: var(--border) solid var(--ink);
}

.legal-main h3 { margin: 26px 0 8px; }

.legal-main p { margin-bottom: 14px; }

.legal-main ul, .legal-main ol { margin: 0 0 16px 22px; }
.legal-main li { margin-bottom: 8px; }

.legal-updated {
  font-family: var(--display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px !important;
}

.legal-intro {
  background: var(--surface);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  font-size: 17px;
  margin-bottom: 32px !important;
}

.legal-disclaimer {
  margin-top: 40px;
  background: var(--surface-high);
  border: var(--border) solid var(--ink);
  border-left: 8px solid var(--primary-container);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ── Motion ─────────────────────────────────────────────── */

/* Staggered reveal, mirroring the app's Reveal component. Applied by
   script.js only — with JS off, everything stays visible. */
.js-reveal { opacity: 0; transform: translateY(14px); }

.js-reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js-reveal { opacity: 1; transform: none; }
}
