/* ==========================================================================
   Unplug — marketing site
   Dark, premium, emerald. Hand-crafted CSS (no framework).
   Brand: Accountable / Restoring / Together.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Surfaces: dark depth scale, faintly tinted toward the emerald hue (165). */
  --bg:          oklch(0.145 0.012 165);
  --surface-1:   oklch(0.175 0.014 165);
  --surface-2:   oklch(0.210 0.016 165);
  --surface-3:   oklch(0.255 0.016 165);
  --border:      oklch(0.300 0.014 165);
  --border-soft: oklch(0.240 0.013 165);

  /* Text: near-white tinted emerald, stepping down in lightness. */
  --text:   oklch(0.965 0.006 165);
  --text-2: oklch(0.770 0.013 165);
  --text-3: oklch(0.610 0.013 165);

  /* Brand accent (emerald) — the rare 10%. */
  --emerald:        oklch(0.78 0.150 162);
  --emerald-bright: oklch(0.86 0.160 162);
  --emerald-dim:    oklch(0.56 0.110 162);
  --on-emerald:     oklch(0.18 0.030 162);

  /* Stakes / cost accent (amber) — reserved for the "what it costs you" moments. */
  --amber:        oklch(0.83 0.150 78);
  --amber-bright: oklch(0.90 0.140 82);

  /* Type families */
  --font-display: "Bricolage Grotesque", "Bricolage-fallback", system-ui, sans-serif;
  --font-body:    "Nunito Sans", "Nunito-fallback", system-ui, sans-serif;

  /* Fluid type scale (~1.28 ratio); headings fluid, body fixed. */
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   clamp(1.2rem, 0.9rem + 1.1vw, 1.55rem);
  --text-xl:   clamp(1.55rem, 1.1rem + 1.9vw, 2.2rem);
  --text-2xl:  clamp(2.1rem, 1.4rem + 3vw, 3.2rem);
  --text-3xl:  clamp(2.7rem, 1.5rem + 5.4vw, 5rem);

  /* 4pt spacing scale */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs:  12px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 140ms;
  --dur-mid:  280ms;
  --dur-slow: 560ms;

  --measure: 64ch;
  --maxw: 1120px;
  --glow: radial-gradient(60% 60% at 50% 0%, oklch(0.78 0.15 162 / 0.16), transparent 70%);
}

/* Fallback metrics to limit layout shift while webfonts load. */
@font-face {
  font-family: "Bricolage-fallback";
  src: local("Arial");
  ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; size-adjust: 100%;
}
@font-face {
  font-family: "Nunito-fallback";
  src: local("Arial");
  ascent-override: 101%; descent-override: 35%; line-gap-override: 0%; size-adjust: 100%;
}

/* ------------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;            /* generous: light text on dark */
  font-weight: 400;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- Primitives */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-md); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1.2; }
p { max-width: var(--measure); }
strong { color: var(--text); font-weight: 700; }
.lead { font-size: var(--text-lg); color: var(--text-2); line-height: 1.55; }
.tabnum { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--emerald);
  color: var(--on-emerald);
  box-shadow: 0 1px 0 oklch(0.86 0.16 162 / 0.5) inset, 0 8px 30px -12px oklch(0.78 0.15 162 / 0.7);
}
.btn-primary:hover { background: var(--emerald-bright); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: oklch(0.20 0.014 165 / 0.4);
}
.btn-ghost:hover { border-color: var(--emerald-dim); background: var(--surface-2); }
.btn-lg { padding: 17px 28px; font-size: var(--text-lg); }

/* Google Play store button (custom; swap official badge asset before store launch) */
.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: oklch(0.16 0.01 165);
  font-family: var(--font-body); font-weight: 700;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) ease;
  box-shadow: 0 10px 34px -16px oklch(0 0 0 / 0.9);
}
.play-btn:hover { transform: translateY(-1px); }
.play-btn .play-glyph { width: 22px; height: 24px; flex: none; }
.play-btn small { display: block; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.45 0.01 165); line-height: 1; margin-bottom: 3px; }
.play-btn span { font-size: 1.15rem; line-height: 1; letter-spacing: -0.01em; }

/* Real brand wordmark */
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 34px; }

/* App store badges */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.store-badge { display: inline-block; border-radius: 10px; transition: transform var(--dur-fast) var(--ease-out-quart); }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge--soon { position: relative; }
.store-badge--soon img { opacity: 0.5; }
.store-badge--soon .soon {
  position: absolute; top: -7px; right: -6px;
  font-family: var(--font-body); font-size: 10px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: oklch(0.20 0.04 78); background: var(--amber);
  padding: 3px 8px; border-radius: 99px;
  box-shadow: 0 4px 12px -4px oklch(0 0 0 / 0.6);
}
.final-card .store-badges { margin-top: var(--space-lg); }

/* Small button + inline link */
.btn-sm { padding: 10px 16px; font-size: var(--text-sm); }
.inline-link { color: var(--emerald-bright); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--emerald-dim); }
.inline-link:hover { text-decoration-color: var(--emerald-bright); }

/* Personal vs group challenge cards */
.ptype-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.ptype { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-lg); }
.ptype:nth-child(2) { background: var(--surface-2); }
.ptype-tag { display: inline-block; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); margin-bottom: var(--space-sm); }
.ptype h3 { color: var(--text); }
.ptype p { margin-top: 10px; color: var(--text-2); font-size: var(--text-base); }
.visual { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: var(--space-lg); display: grid; gap: var(--space-xs); margin-top: var(--space-md); }

/* Free vs premium comparison (two-tier, premium column highlighted) */
.compare { margin: var(--space-xl) auto 0; max-width: 1000px; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { padding: 15px var(--space-md); border-bottom: 1px solid var(--border-soft); text-align: center; }
.compare-table .feat { width: 46%; border-bottom-color: var(--border); }
.compare-table thead th { width: 27%; vertical-align: bottom; border-bottom: 1px solid var(--border); }
.compare-table tbody th { text-align: left; font-weight: 600; color: var(--text-2); font-size: var(--text-base); }
.compare-table tbody td { font-size: 1.3rem; }
.compare-table td.yes { color: var(--emerald-bright); }
.compare-table td.no { color: var(--text-3); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.tier-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--text); letter-spacing: -0.01em; }
.tier-price { display: block; margin-top: 5px; font-size: var(--text-xs); color: var(--text-3); font-weight: 600; }
.tier-badge { display: inline-block; margin-bottom: 9px; font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-emerald); background: var(--emerald); padding: 3px 9px; border-radius: 99px; }
.compare-table .col-prem { background: oklch(0.78 0.15 162 / 0.12); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.compare-table td.prem { background: oklch(0.78 0.15 162 / 0.06); }
.compare-table tbody tr:last-child td.prem { border-radius: 0 0 var(--radius-md) var(--radius-md); }

@media (min-width: 760px) { .ptype-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Sections */
section { padding-block: clamp(var(--space-2xl), 9vw, var(--space-4xl)); }
.section-head { max-width: 52ch; margin-bottom: var(--space-xl); }
.section-head h2 + p { margin-top: var(--space-sm); }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: oklch(0.145 0.012 165 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) ease, background var(--dur-mid) ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--space-md); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.brand .mark { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links { display: flex; gap: var(--space-md); }
.nav-links a { font-size: var(--text-sm); font-weight: 600; color: var(--text-2); transition: color var(--dur-fast) ease; }
.nav-links a:hover { color: var(--text); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--emerald); color: var(--on-emerald);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
  transition: top var(--dur-fast) var(--ease-out-quart);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: clamp(var(--space-2xl), 8vw, var(--space-4xl)); padding-bottom: clamp(var(--space-2xl), 8vw, var(--space-3xl)); }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 600px; z-index: -1;
  background: var(--glow); pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(var(--space-xl), 5vw, var(--space-3xl)); grid-template-columns: 1fr; align-items: center; }
.hero h1 {
  font-size: var(--text-3xl);
  max-width: 16ch;
  margin-top: var(--space-md);
}
.hero h1 .accent { color: var(--emerald); }
.hero-sub { margin-top: var(--space-md); font-size: var(--text-lg); color: var(--text-2); max-width: 46ch; }
.hero-cta { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.hero-note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--text-3); }
.hero-note b { color: var(--emerald); font-weight: 700; }

/* The signature interaction: time-reclaim calculator */
.reclaim {
  position: relative;
  background:
    linear-gradient(180deg, oklch(0.20 0.016 165 / 0.9), oklch(0.165 0.014 165 / 0.9));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-md), 3vw, var(--space-xl));
  box-shadow: 0 40px 90px -50px oklch(0 0 0 / 0.9);
  overflow: hidden;
}
.reclaim::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 90% -10%, oklch(0.83 0.15 78 / 0.10), transparent 60%);
}
.reclaim-label { font-size: var(--text-sm); color: var(--text-2); font-weight: 600; }
.reclaim-hours { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.reclaim-hours output { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4vw, 3.4rem); color: var(--text); line-height: 1; letter-spacing: -0.02em; }
.reclaim-hours .unit { font-size: var(--text-base); color: var(--text-3); font-weight: 600; }

/* Range slider */
.slider { margin-top: var(--space-md); }
.slider input[type="range"] { width: 100%; height: 30px; background: transparent; appearance: none; cursor: grab; }
.slider input[type="range"]:active { cursor: grabbing; }
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background:
    linear-gradient(90deg, var(--emerald) 0 var(--fill, 33%), var(--surface-3) var(--fill, 33%) 100%);
}
.slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-3); }
.slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--emerald); }
.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none; margin-top: -9px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--text);
  border: 5px solid var(--emerald);
  box-shadow: 0 4px 14px -2px oklch(0 0 0 / 0.7);
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 5px solid var(--emerald);
}
.slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.slider-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--text-xs); color: var(--text-3); }

/* The reveal */
.reveal { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-soft); }
.reveal-line { font-size: var(--text-base); color: var(--text-2); }
.reveal-big { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.reveal-big output { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 1.6rem + 5vw, 4.2rem); color: var(--amber); line-height: 1; letter-spacing: -0.03em; }
.reveal-big .unit { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--amber-bright); }
.reveal-sub { margin-top: 10px; font-size: var(--text-base); color: var(--text-2); }
.reveal-sub b { color: var(--text); }
.reclaim-foot { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--text-3); }
.reclaim-foot b { color: var(--emerald); font-weight: 700; }

/* ------------------------------------------------------------ How it works */
.steps { display: grid; gap: var(--space-md); grid-template-columns: 1fr; counter-reset: step; margin-top: var(--space-xl); }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: start; padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--border-soft); }
.step:nth-child(2) { background: var(--surface-2); }
.step-num { counter-increment: step; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--emerald); line-height: 1; min-width: 2ch; }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { color: var(--text); }
.step p { margin-top: 8px; color: var(--text-2); font-size: var(--text-base); }
.step .tag { display: inline-block; margin-top: 12px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 99px; }
.tag-free { color: var(--emerald-bright); background: oklch(0.78 0.15 162 / 0.12); }
.tag-stake { color: var(--amber-bright); background: oklch(0.83 0.15 78 / 0.12); }

/* ---------------------------------------------------------------- Honest */
.honest { background: linear-gradient(180deg, var(--bg), oklch(0.16 0.014 165)); border-block: 1px solid var(--border-soft); }
.honest-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
.honest-list { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.honest-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm); align-items: start; }
.honest-item .ic { width: 26px; height: 26px; flex: none; color: var(--emerald); margin-top: 2px; }
.honest-item h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; color: var(--text); }
.honest-item p { margin-top: 2px; font-size: var(--text-sm); color: var(--text-2); }

/* The mandate / disclosure card */
.mandate { margin-top: var(--space-xl); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.mandate h3 { font-family: var(--font-body); font-weight: 800; font-size: var(--text-base); color: var(--text); letter-spacing: 0; }
.mandate dl { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.mandate div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.mandate dt { font-size: var(--text-sm); font-weight: 700; color: var(--emerald); }
.mandate dd { font-size: var(--text-sm); color: var(--text-2); }

/* --------------------------------------------------------------- Together */
.together-grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: center; }
.together .visual { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: var(--space-lg); display: grid; gap: var(--space-xs); }
.friend-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--surface-2); border-radius: var(--radius-md); }
.friend-row .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); color: var(--on-emerald); }
.friend-row .nm { font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.friend-row .st { font-size: var(--text-xs); color: var(--text-3); }
.friend-row .badge { font-size: var(--text-xs); font-weight: 700; color: var(--emerald-bright); }
.friend-row.miss .badge { color: var(--amber-bright); }

/* -------------------------------------------------------------------- FAQ */
.faq-list { display: grid; gap: var(--space-xs); margin-top: var(--space-xl); }
.faq { background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--text); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex: none; color: var(--text-3); transition: transform var(--dur-mid) var(--ease-out-expo), color var(--dur-fast) ease; }
.faq[open] summary .chev { transform: rotate(180deg); color: var(--emerald); }
.faq summary:hover { color: var(--emerald-bright); }
.faq summary:focus-visible { outline: 2px solid var(--emerald-bright); outline-offset: -3px; border-radius: var(--radius-md); }
.faq-body { padding: 0 var(--space-lg) var(--space-lg); }
.faq-body p { color: var(--text-2); font-size: var(--text-base); max-width: 68ch; }
.faq-body p + p { margin-top: var(--space-sm); }

/* --------------------------------------------------------------- Final CTA */
.final { text-align: left; }
.final-card { position: relative; overflow: hidden; background: linear-gradient(135deg, oklch(0.22 0.04 162), oklch(0.17 0.02 165)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(var(--space-xl), 5vw, var(--space-3xl)); }
.final-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0%, oklch(0.78 0.15 162 / 0.18), transparent 55%); pointer-events: none; }
.final-card h2 { max-width: 18ch; }
.final-card p { margin-top: var(--space-sm); color: var(--text-2); }
.final-card .hero-cta { margin-top: var(--space-lg); }

/* ----------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: var(--space-2xl); color: var(--text-3); }
.footer-top { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
.footer-cols { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer-col h4 { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-family: var(--font-body); font-weight: 800; margin-bottom: var(--space-sm); }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--text-3); padding-block: 5px; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: var(--emerald-bright); }
.footer-legal { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); justify-content: space-between; align-items: center; font-size: var(--text-xs); color: var(--text-3); }
.footer-legal p { max-width: none; }

/* ------------------------------------------------------------- Reveal anim */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- Responsive */
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .honest-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .honest-grid { grid-template-columns: 0.9fr 1.1fr; }
  .together-grid { grid-template-columns: 1fr 1fr; }
  .mandate dl { grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-xl); }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Legal / prose pages  (terms · privacy · support · delete-account)
   Long-form documents that reuse the global tokens, header and footer.
   ========================================================================== */

/* Intro band */
.legal-hero { position: relative; padding-top: clamp(var(--space-xl), 6vw, var(--space-3xl)); padding-bottom: var(--space-lg); }
.legal-hero::before {
  content: ""; position: absolute; inset: -10% 0 auto 0; height: 360px; z-index: -1;
  background: var(--glow); pointer-events: none;
}
.legal-hero h1 { font-size: var(--text-2xl); max-width: 22ch; margin-top: var(--space-xs); }
.legal-hero .lead { margin-top: var(--space-md); max-width: 60ch; }
.legal-meta { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px var(--space-md); }
.legal-meta strong { color: var(--text-2); font-weight: 700; }

/* Layout: sticky table of contents + prose column */
.legal-layout { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: start; padding-top: var(--space-md); padding-bottom: var(--space-3xl); }
@media (min-width: 940px) { .legal-layout { grid-template-columns: 232px minmax(0, 1fr); gap: var(--space-3xl); } }

.legal-toc { display: none; }
@media (min-width: 940px) {
  .legal-toc { display: block; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.legal-toc h2 { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; color: var(--text-2); margin-bottom: var(--space-sm); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.legal-toc a { display: block; font-size: var(--text-sm); line-height: 1.35; color: var(--text-3); padding: 7px 12px; border-radius: var(--radius-sm); border-left: 2px solid transparent; transition: color var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.legal-toc a:hover { color: var(--text); background: var(--surface-1); }
.legal-toc a.active { color: var(--emerald-bright); border-left-color: var(--emerald); background: oklch(0.78 0.15 162 / 0.07); }

/* The prose body */
.prose { max-width: 74ch; }
.prose > section { margin-bottom: var(--space-2xl); scroll-margin-top: 88px; }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--text-xl); line-height: 1.15; margin-bottom: var(--space-sm); display: flex; gap: 12px; align-items: baseline; }
.prose h2 .num { font-family: var(--font-display); font-size: var(--text-base); color: var(--emerald); font-weight: 800; flex: none; min-width: 1.6em; }
.prose h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 800; color: var(--text); margin-top: var(--space-lg); margin-bottom: var(--space-2xs); }
.prose p { margin-bottom: var(--space-sm); color: var(--text-2); max-width: 70ch; }
.prose ul, .prose ol { margin: 0 0 var(--space-sm); padding-left: 1.35em; color: var(--text-2); max-width: 70ch; }
.prose li { margin-bottom: var(--space-2xs); }
.prose li::marker { color: var(--emerald-dim); }
.prose a { color: var(--emerald-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--emerald-dim); }
.prose a:hover { text-decoration-color: var(--emerald-bright); }
/* Buttons inside prose must not inherit the underlined link styling. */
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: var(--on-emerald); }
.prose a.btn-ghost, .prose a.btn-ghost:hover { color: var(--text); }
.prose dl { display: grid; gap: var(--space-sm); margin: 0 0 var(--space-sm); }
.prose dt { font-weight: 700; color: var(--text); font-size: var(--text-base); }
.prose dd { margin: 2px 0 0; color: var(--text-2); }

/* Key-clause note — understated for legal text: a quiet left rule, no filled
   card. A subtle amber rule marks the one "please read" note. */
.callout { border-left: 2px solid var(--border); padding: 2px 0 2px var(--space-md); margin: var(--space-md) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }
.callout.amber { border-left-color: var(--amber); }
.callout-label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }

/* Help-category cards (support page) */
.help-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; margin: var(--space-lg) 0 var(--space-2xl); }
@media (min-width: 680px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.help-card { display: block; background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-lg); transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) ease; }
.help-card:hover { border-color: var(--emerald-dim); transform: translateY(-2px); background: var(--surface-2); }
.help-card h3 { color: var(--text); font-size: var(--text-base); font-family: var(--font-body); font-weight: 800; }
.help-card p { margin-top: 6px; font-size: var(--text-sm); color: var(--text-2); }

/* FAQ groups (support page reuses .faq from the homepage) */
.faq-group { margin-top: var(--space-2xl); }
.faq-group > h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); scroll-margin-top: 88px; }

/* Contact card */
.contact-card { background: linear-gradient(135deg, oklch(0.22 0.04 162), oklch(0.17 0.02 165)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(var(--space-lg), 4vw, var(--space-2xl)); margin-top: var(--space-2xl); }
.contact-card h2 { font-size: var(--text-xl); }
.contact-card p { margin-top: var(--space-sm); color: var(--text-2); max-width: 56ch; }
.contact-card .btn { margin-top: var(--space-lg); }

/* Numbered route steps (delete-account page) reuse .steps/.step from homepage */
.route-list { counter-reset: step; display: grid; gap: var(--space-md); margin: var(--space-md) 0 var(--space-sm); }

/* Back-home link — sits at the very top of the page, above the eyebrow. */
.legal-back { margin-bottom: var(--space-lg); }
.legal-back a { font-size: var(--text-sm); font-weight: 700; color: var(--text-3); }
.legal-back a:hover { color: var(--emerald-bright); }
