:root {
  --bg: #fffdf7;
  --surface: #fff8e9;
  --ink: #1b1614;
  --muted: #6b6259;
  --accent: #c0202f;
  --accent-ink: #fff;
  --line: #e8dfcc;
  --radius: 12px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100f;
    --surface: #1e1917;
    --ink: #f3ece2;
    --muted: #a89e93;
    --accent: #e2394a;
    --accent-ink: #fff;
    --line: #2f2925;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

/* --- nav ---------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--accent);
}

.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}

.nav-cta:hover { color: var(--ink); }

/* --- layout ------------------------------------------------------------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2.25rem;
}

.hero { border-bottom: 1px solid var(--line); }

.fineprint {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- button ------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 650;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* --- steps -------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cta {
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta h2 { margin-bottom: 1.75rem; }

/* --- legal pages -------------------------------------------------------- */

.legal {
  max-width: var(--measure);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.legal h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }

.legal h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.75rem;
}

.legal p, .legal li { color: var(--muted); }

.legal a { color: var(--accent); }

.updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: -0.5rem;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

/* --- footer ------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 5vw, 3rem);
  text-align: center;
}

.foot-brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.foot-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.foot-links a:hover { color: var(--ink); }

.foot-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
