:root {
  --bg: #fffaf3;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #d97706;
  --accent-soft: #fed7aa;
  --card: #fff5e1;
  --border: #f3e3c2;
  --max-w: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1611;
    --fg: #f5efe3;
    --muted: #a39e91;
    --accent: #f6c177;
    --accent-soft: #4a3a22;
    --card: #221c14;
    --border: #3a2f1e;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue',
    Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
}

header.page {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
}

@media (prefers-color-scheme: dark) {
  /* SVG wordmark text is dark — invert in dark mode for legibility. */
  .logo-img {
    filter: invert(0.92) hue-rotate(180deg);
  }
}

.hero {
  padding: 32px 0 16px;
}

.hero h1 {
  font-size: clamp(36px, 8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
}

.lead {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--fg);
  margin: 0 0 28px;
  max-width: 38em;
}

.lead strong {
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--fg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.how,
.why {
  padding: 32px 0 8px;
}

h2 {
  font-size: clamp(22px, 4vw, 26px);
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
}

.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.why p {
  color: var(--muted);
  max-width: 38em;
  margin: 0;
}

footer.page {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px 20px 48px;
}

.footer-line {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.footer-line a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-line a:hover {
  color: var(--accent);
}

/* Legal pages */
.legal h1 {
  font-size: clamp(28px, 5vw, 38px);
  margin: 16px 0 8px;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-size: 19px;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.4em;
}

.legal .effective {
  color: var(--muted);
  font-size: 14px;
}

.legal .back {
  margin-top: 40px;
}
