/* Flipsum. Tokens from DESIGN.md. */
:root {
  --bg: #F5F2EA;
  --surface: #FFFFFF;
  --text: #16130F;
  --muted: #5E574D;
  --line: #DDD6C8;
  --accent: #1E6B48;
  --accent-contrast: #FFFFFF;
  --warn: #A1540A;
  --alert: #B3261E;
  --radius: 16px;
  --shadow: 0 1px 0 rgba(22, 19, 15, .04), 0 12px 32px -20px rgba(22, 19, 15, .35);
  --font-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --surface: #1C1A18; --text: #F2EEE6; --muted: #ADA597; --line: #34302B;
    --accent: #5CC48F; --accent-contrast: #0E1F16; --warn: #F0A85A; --alert: #FF8A80;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1C1A18; --text: #F2EEE6; --muted: #ADA597; --line: #34302B;
  --accent: #5CC48F; --accent-contrast: #0E1F16; --warn: #F0A85A; --alert: #FF8A80;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 9vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
section { padding: 64px 0; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } section { padding: 112px 0; } }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.wordmark { font: 800 24px/1 var(--font-head); letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark .tag { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-contrast);
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { color: var(--accent-contrast); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn.secondary:hover { color: var(--text); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding-top: 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }

/* Receipt (signature) */
.receipt {
  background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  padding: 24px 20px 36px; font-family: var(--font-mono); font-size: 15px;
  box-shadow: var(--shadow); position: relative; max-width: 420px; width: 100%;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 12px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 12px repeat-x;
}
.receipt-head { text-align: center; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head strong { font: 800 22px/1 var(--font-head); letter-spacing: -0.02em; display: block; margin-bottom: 4px; }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.receipt .row span:last-child { text-align: right; white-space: nowrap; }
.receipt .rule { border-top: 1px dashed var(--line); margin: 10px 0; }
.receipt .total { font-weight: 600; font-size: 16px; }
.receipt .note { color: var(--muted); font-size: 13px; margin-top: 10px; font-family: var(--font-body); }
.stamp {
  display: inline-block; margin: 16px auto 0; padding: 6px 14px; border: 3px solid currentColor; border-radius: 8px;
  font: 800 20px/1 var(--font-head); letter-spacing: .04em; transform: rotate(-4deg); text-transform: uppercase;
}
.stamp.ok { color: var(--accent); }
.stamp.warn { color: var(--warn); }
.stamp.alert { color: var(--alert); }
.stamp-wrap { text-align: center; }
.receipt .line { animation: print .28s ease both; }
@keyframes print { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .receipt .line { animation: none; } .btn { transition: none; } }
.example-label { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Facts strip */
.facts { display: grid; gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { border-top: 2px solid var(--text); padding-top: 16px; }
.fact .big { font: 800 clamp(36px, 8vw, 52px)/1 var(--font-head); letter-spacing: -0.03em; display: block; margin-bottom: 8px; }

/* Feature list (till-roll style, not icon cards) */
.features { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px dashed var(--line); }
.features li { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
@media (min-width: 760px) { .features li { grid-template-columns: 56px 1fr 1.4fr; align-items: baseline; } }
.features .num { font-family: var(--font-mono); color: var(--muted); font-size: 14px; }
.features h3 { margin: 0; }
.features p { margin: 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.plan .price { font: 800 40px/1 var(--font-head); letter-spacing: -0.03em; margin: 8px 0 4px; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { padding-left: 20px; margin: 16px 0 0; }
.plan li { margin-bottom: 6px; }
.plan.featured { border: 2px solid var(--accent); }
.badge { display: inline-block; font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); }
.founding { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* Forms */
form { display: grid; gap: 16px; }
label, legend { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 400; }
input[type="email"], input[type="number"], input[type="text"], select {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 0 14px; font: 400 17px var(--font-body);
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); pointer-events: none; }
.money input { padding-left: 32px; font-family: var(--font-mono); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 15px; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.inline { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.inline input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-msg { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--alert); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tool */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 760px) { .step { padding: 32px; } }
.step-title { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.step-title::before { counter-increment: step; content: counter(step); font: 500 14px/1 var(--font-mono); color: var(--accent-contrast); background: var(--accent); width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.q { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.q:last-of-type { border-bottom: 0; }
.q p { margin: 0; font-weight: 600; }
.yn { display: flex; gap: 8px; }
.yn .chip span { min-width: 72px; justify-content: center; }
.result-box { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.result-box h3 { margin-bottom: 6px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.receipt-slot { display: flex; justify-content: center; margin-top: 24px; }
.receipt-slot .receipt { max-width: 460px; }

/* Meters */
.platform { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.platform:last-child { border-bottom: 0; }
.platform h3 { margin-bottom: 10px; }
.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.meter.near i { background: var(--warn); }
.meter.reported i { background: var(--alert); }
.meter-label { font-size: 14px; margin-top: 8px; font-weight: 600; }
.meter-label.near { color: var(--warn); }
.meter-label.reported { color: var(--alert); }

/* FAQ */
details { border-bottom: 1px dashed var(--line); padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Callouts and footer */
.callout { border-left: 4px solid var(--accent); padding: 12px 16px; background: var(--surface); border-radius: 0 12px 12px 0; }
.callout.warn { border-color: var(--warn); }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose li { margin-bottom: 8px; }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt32 { margin-top: 32px; } .mb4 { margin-bottom: 4px; } .m0 { margin: 0; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
fieldset.q legend { margin: 0 0 10px; font-size: 16px; }
[hidden] { display: none !important; }
.wordmark { min-height: 44px; }
