:root {
  color-scheme: light;
  --surface: #f8f2e8;
  --surface-raised: #fffcf7;
  --surface-sunken: #ede5d6;
  --ink: #2b221a;
  --ink-muted: #7a6d5f;
  --ink-faint: #b8ac9d;
  --signal: #ea7a3a;
  --signal-strong: #c95f24;
  --divider: #e4dbc9;
  --shadow: 0 24px 70px rgb(43 34 26 / 0.14);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #1a1510;
    --surface-raised: #25201a;
    --surface-sunken: #100d08;
    --ink: #f5eedf;
    --ink-muted: #a69686;
    --ink-faint: #5f574b;
    --signal: #f0935c;
    --signal-strong: #ffad7d;
    --divider: #352e26;
    --shadow: 0 24px 70px rgb(0 0 0 / 0.34);
  }
}

* { box-sizing: border-box; }
html {
  background: var(--surface);
  color: var(--ink);
  scroll-padding-top: 24px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", system-ui, sans-serif;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--signal) 28%, transparent);
}
img {
  display: block;
  height: auto;
  max-width: 100%;
}
a {
  color: inherit;
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 70%, transparent);
  outline-offset: 4px;
}

.site-shell { min-height: 100vh; overflow-x: hidden; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 14px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: translateY(0); }
.nav,
.section,
.footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}
.brand,
.actions {
  display: inline-flex;
  align-items: center;
}
.brand {
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-muted);
  font-size: 15px;
}
.nav-links a,
.footer a {
  text-decoration: none;
}
.nav-links a:hover,
.footer a:hover { color: var(--signal-strong); }

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2 { text-wrap: balance; }
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}
.lede {
  max-width: 630px;
  margin-bottom: 32px;
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1.42;
}
.actions {
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--signal);
  color: #2b1608;
}
.button-secondary {
  background: var(--surface-sunken);
  color: var(--ink);
}
.section {
  padding: 84px 0;
  scroll-margin-top: 24px;
}
.section-narrow { max-width: 820px; }
.section h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
}
.section-lede {
  max-width: 680px;
  color: var(--ink-muted);
  font-size: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.card,
.faq details {
  border: 1px solid var(--divider);
  background: var(--surface-raised);
}
.card {
  border-radius: var(--radius-md);
  padding: 24px;
}
.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.card p,
.step p,
.faq p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

.privacy-band {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--surface);
  padding: 44px;
}
.privacy-band p { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.privacy-band .button-secondary {
  background: color-mix(in srgb, var(--surface) 14%, transparent);
  color: var(--surface);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--divider);
  padding: 32px 0 48px;
  color: var(--ink-muted);
  font-size: 14px;
}
.footer a { color: var(--ink-muted); }
.doc-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}
.doc-page h1 { font-size: 44px; }
.doc-page h2 {
  margin-top: 42px;
  font-size: 25px;
  line-height: 1.2;
}
.doc-page h3 { margin-top: 28px; }
.doc-page p,
.doc-page li { color: var(--ink-muted); }
.doc-card {
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  padding: 22px;
}
code {
  border-radius: 6px;
  background: var(--surface-sunken);
  padding: 2px 6px;
  color: var(--ink);
  font-size: 0.9em;
}

@media (max-width: 860px) {
  .nav { align-items: flex-start; }
  .nav-links { display: none; }
  h1 { font-size: 46px; }
  .lede { font-size: 19px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 34px; }
  .privacy-band { padding: 28px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
