@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fbf8f2;
  --paper-2: #f2ede3;
  --card: #ffffff;
  --ink: #10231d;
  --ink-soft: #3d4f48;
  --ink-muted: #6b7a74;
  --line: #e2dccf;
  --accent: #1f6b53;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --warn: #9a3b2a;
  --d1: #c9853a;
  --d2: #6f5aa8;
  --d3: #2f7ea1;
  --d4: #9a6b4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 35 29 / 6%), 0 12px 32px -12px rgb(16 35 29 / 18%);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1714;
    --paper-2: #13211c;
    --card: #172822;
    --ink: #eef3ef;
    --ink-soft: #c3cfc9;
    --ink-muted: #8fa099;
    --line: #26392f;
    --accent: #5cc49b;
    --accent-ink: #0b1a14;
    --accent-soft: #173a2d;
    --warn: #f09a85;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: 0.85rem; color: var(--ink-muted); }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; color: var(--accent); }
.top-cta { font-weight: 600; font-size: 0.95rem; text-decoration: none; }

.button {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--sans); padding: 16px 26px; border-radius: 999px;
  text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: default; transform: none; }

.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.lede-sub { color: var(--ink-muted); margin-bottom: 1.8em; }

.ledger { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 14px; font-variant-numeric: tabular-nums; }
.ledger-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.97rem; }
.ledger-row span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.ledger-total { font-weight: 600; color: var(--ink); border-bottom-style: solid; }
.ledger-free { border-bottom: 0; margin-top: 6px; padding: 14px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-weight: 650; font-size: 1.1rem; }
.ledger-free .amt { color: var(--accent); }
.amt.minus::before { content: '− '; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.d1 { background: var(--d1); } .d2 { background: var(--d2); } .d3 { background: var(--d3); } .d4 { background: var(--d4); }
.ledger figcaption { text-align: right; font-size: 0.75rem; color: var(--ink-muted); margin-top: 10px; }

.problem { padding: 72px 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.problem p { font-size: 1.1rem; color: var(--ink-soft); }

.how { padding: 80px 0 40px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.steps p { color: var(--ink-soft); margin: 0; }

.benefits { padding: 40px 0 80px; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px; }
.benefit-grid > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.benefit-grid p { color: var(--ink-soft); margin: 0; }

.name { padding: 64px 0; background: var(--ink); color: var(--paper); text-align: center; }
.name p { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); font-size: 1.1rem; margin: 0; }
.name .definition { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--paper); margin-bottom: 0.6em; }
.name dfn { font-style: normal; font-weight: 650; }
.name .pos { font-style: italic; font-size: 0.7em; opacity: 0.7; margin: 0 0.4em; }
@media (prefers-color-scheme: dark) { .name { background: var(--card); color: var(--ink); } .name .definition { color: var(--ink); } .name p { color: var(--ink-soft); } }

.join { padding: 88px 0; }
.join > .wrap > p { color: var(--ink-soft); font-size: 1.1rem; }
.join-form { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field em { font-weight: 400; color: var(--ink-muted); font-style: normal; }
.field input, .field select {
  font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.join-form .button { justify-self: start; }
.turnstile:empty { display: none; }
.form-status { margin: 0; font-weight: 600; min-height: 0; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--warn); }
.join-form .small { margin: 0; }

.faq { padding: 24px 0 88px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; color: var(--ink-muted); }
.foot p { margin: 0 0 6px; }

.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .top-cta { display: none; }
  .join-form { padding: 20px; }
  .join-form .button { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

.wordmark .by { color: var(--accent); font-weight: 420; }
