:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f3f1ec;
    --text: #1b1d21;
    --muted: #5d636e;
    --line: #e3e0d8;
    --rule: #dfe7f5;
    --accent: #1f4fd1;
    --accent-ink: #ffffff;
    --accent-soft: #e8eefc;
    --margin: #e0624f;
    --ok: #1d7a4c;
    --warn: #a35a00;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 8px 24px rgba(20, 22, 30, 0.06);
    --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121418;
        --surface: #1a1d23;
        --surface-2: #20242b;
        --text: #eceef2;
        --muted: #a2a9b5;
        --line: #2e333c;
        --rule: #232a38;
        --accent: #7c9cff;
        --accent-ink: #0d1120;
        --accent-soft: #1f2a48;
        --margin: #f07a68;
        --ok: #5cc98f;
        --warn: #f0b05a;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--sans);
}

a { color: var(--accent); text-underline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow b { color: var(--margin); font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Notebook card (example result) */
.sheet {
    position: relative;
    background:
        linear-gradient(to right, transparent 46px, var(--margin) 46px, var(--margin) 47px, transparent 47px),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px 16px 64px;
    font-size: 14px;
    line-height: 1.5;
}
.sheet h3 { margin: 0; font-size: 17px; }
.sheet .url { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; }
.sheet dt, .sheet dd { padding: 7px 0; border-top: 1px solid var(--rule); }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; min-width: 0; overflow-wrap: anywhere; padding-left: 10px; }
.tag { display: inline-block; font-size: 12.5px; line-height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); margin: 1px 3px 1px 0; }
.src { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.sheet .note { color: var(--muted); font-size: 12.5px; padding-top: 8px; border-top: 1px solid var(--rule); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 44em; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 26px; }
.steps .card::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -14px; left: 22px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

/* Field table */
.fields { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.fields th, .fields td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fields th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.fields td:first-child { font-weight: 600; white-space: nowrap; }
.fields td { color: var(--text); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.price .big { font-size: 44px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.price .big small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--text); font-size: 15.5px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks.no li::before { width: 12px; height: 12px; top: 6px; border: 0; transform: none; background: linear-gradient(45deg, transparent 45%, var(--muted) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--muted) 45% 55%, transparent 55%); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

/* Final CTA */
.final { text-align: center; }
.final .sub { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Prose pages (privacy) */
.prose { max-width: 720px; padding: 48px 20px 64px; margin: 0 auto; }
.prose h1 { font-size: 36px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); }

@media (max-width: 880px) {
    .hero { padding: 48px 0 40px; }
    .hero .wrap, .price, .grid.two { grid-template-columns: 1fr; }
    .grid.three { grid-template-columns: 1fr; }
    .top nav a:not(.btn) { display: none; }
}

@media (max-width: 420px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .sheet { padding-left: 50px; background: linear-gradient(to right, transparent 36px, var(--margin) 36px, var(--margin) 37px, transparent 37px), var(--surface); }
    .sheet dl { grid-template-columns: 80px 1fr; }
    .fields td:first-child { white-space: normal; }
}
