/* Verkle public pages: homepage, privacy policy, terms. Same brand tokens as the app. */
:root {
    --ink: #161614; --graphite: #3D3C37; --stone: #76746C; --sand: #E4E0D4;
    --ivory: #F5F3EC; --paper: #FBFAF6; --white: #FFFFFF;
    --clay: #D97757; --clay-deep: #B55A3C; --clay-text: #A34B2F; --clay-soft: #F4DFD3;
    --moss: #4F7A5B; --moss-soft: #E4EEE6;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --shadow: 0 30px 60px -44px rgba(70,45,25,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--clay-text); }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
mark.todo { background: #FFF1B8; color: #5A4500; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(245,243,236,.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--sand); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.site-head .logo img { height: 28px; display: block; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--graphite); text-decoration: none; font-size: 14.5px; }
.site-nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--ivory) !important; }
.btn-primary:hover { background: #2B2A26; }
.btn-ghost { background: var(--white); color: var(--ink) !important; border-color: var(--sand); font-weight: 500; }
.btn-ghost:hover { border-color: #CFC9BA; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin: 0; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--clay); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding: 72px 0 88px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -.035em; margin: 20px 0 22px; }
.hero h1 em { font-style: italic; color: var(--clay-deep); }
.lede { font-size: 18px; line-height: 1.6; color: var(--graphite); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13.5px; color: var(--stone); margin: 16px 0 0; }
.demo { background: var(--paper); border: 1px solid var(--sand); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.demo-head, .demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.demo-head { border-bottom: 1px solid var(--sand); }
.demo-foot { border-top: 1px solid var(--sand); }
.demo-foot strong { font: 400 22px var(--serif); color: var(--ink); text-transform: none; letter-spacing: 0; }
.demo ul { list-style: none; margin: 0; padding: 0; }
.demo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #EEEBE2; font-size: 13.5px; }
.demo li:last-child { border-bottom: none; }
.demo .name { font: 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo .src { display: block; font: 12px var(--sans); color: var(--stone); margin-top: 2px; }
.demo .tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--sand); white-space: nowrap; }
.demo .dup .tag { background: var(--clay-soft); border-color: transparent; color: var(--clay-text); font-weight: 500; }
.demo .dup .name, .demo .junk .name { color: var(--stone); text-decoration: line-through; }
.demo .junk .tag { background: #ECE9E0; border-color: transparent; }

/* Sections */
section.band { padding: 80px 0; border-top: 1px solid var(--sand); }
section.band.alt { background: var(--paper); }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 14px; }
.band .intro { color: var(--graphite); max-width: 640px; margin: 0 0 40px; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--sand); padding-top: 18px; }
.steps .num { font: 500 11.5px var(--mono); color: var(--clay-text); }
.steps h3 { font: 400 22px var(--serif); margin: 8px 0 8px; }
.steps p { color: var(--graphite); margin: 0; font-size: 15px; }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.src-card { background: var(--white); border: 1px solid var(--sand); border-radius: 16px; padding: 20px; }
.src-card h3 { font: 600 16px var(--sans); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.src-card h3::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.src-card p { margin: 0; color: var(--graphite); font-size: 14.5px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; list-style: none; padding: 0; margin: 0 0 28px; }
.promises li { padding-left: 30px; position: relative; color: var(--graphite); }
.promises li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--moss-soft); color: var(--moss); font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.promises strong { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; }
.plan { background: var(--white); border: 1px solid var(--sand); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--ink); box-shadow: var(--shadow); }
.plan h3 { font: 600 15px var(--sans); margin: 0; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.plan .price { font: 400 38px var(--serif); margin: 10px 0 4px; letter-spacing: -.02em; }
.plan .per { color: var(--stone); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0; border-bottom: 1px solid #EEEBE2; font-size: 15px; color: var(--graphite); }
.plan li:last-child { border-bottom: none; }
.fine { font-size: 13.5px; color: var(--stone); margin: 18px 0 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--sand); padding: 36px 0 48px; font-size: 14px; color: var(--stone); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-foot a { color: var(--graphite); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 56px 0 80px; align-items: start; }
.legal .toc { position: sticky; top: 96px; font-size: 14px; }
.legal .toc p { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 0 0 10px; }
.legal .toc ol { list-style: none; padding: 0; margin: 0; }
.legal .toc a { display: block; padding: 5px 0; color: var(--graphite); text-decoration: none; }
.legal .toc a:hover { color: var(--clay-text); }
.legal article { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; margin: 14px 0 10px; }
.legal .meta { color: var(--stone); font-size: 14.5px; margin: 0 0 28px; }
.legal .summary { background: var(--paper); border: 1px solid var(--sand); border-radius: 16px; padding: 20px 24px; margin: 0 0 36px; }
.legal .summary h2 { margin-top: 0; font-size: 18px; }
.legal h2 { font: 600 20px var(--sans); margin: 40px 0 10px; scroll-margin-top: 90px; }
.legal h3 { font: 600 16px var(--sans); margin: 22px 0 6px; }
.legal p, .legal li { color: var(--graphite); }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--sand); }
.legal th { font-weight: 600; color: var(--ink); background: var(--paper); }
.legal .callout { border-left: 3px solid var(--clay); background: var(--white); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 14px 0; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; }
    .steps, .promises, .plans { grid-template-columns: 1fr; }
    .site-nav a.hide-sm { display: none; }
    .legal { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
    .legal .toc { display: none; }
    section.band { padding: 56px 0; }
}
@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .site-nav { gap: 12px; }
    .site-head .logo img { height: 24px; }
    .legal table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Long words, links and wide tables never push legal pages wider than a phone */
.legal article { min-width: 0; overflow-wrap: anywhere; }
.legal table td, .legal table th { overflow-wrap: anywhere; }
