/* Wanbooks landing page (index.html). Ledger-book motif: ruled lines, a margin
   line, figures set in tabular mono. Brand: indigo #3B2FC9, orange #FF7A1A. */
:root {
    --bg: #F7F6FC; --surface: #FFFFFF; --surface-2: #F0EEFA; --ink: #16123A; --muted: #5B577A; --line: #E4E1F1;
    --indigo: #3B2FC9; --indigo-strong: #2E23A8; --indigo-soft: #ECEAFE; --on-indigo: #FFFFFF;
    --orange: #FF7A1A; --orange-soft: #FFF1E6; --green: #0E8A5F; --green-soft: #E3F5EE; --red: #C8321E;
    --shadow: 0 1px 2px rgba(22, 18, 58, .06), 0 18px 40px -18px rgba(22, 18, 58, .25);
    --radius: 14px;
    --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
    --logo-on-light: block; --logo-on-dark: none;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0C0A1F; --surface: #15123A; --surface-2: #1B1747; --ink: #EEEDFB; --muted: #A6A2C8; --line: #2A2660;
        --indigo: #8C83FF; --indigo-strong: #A7A0FF; --indigo-soft: #221D55; --on-indigo: #0C0A1F;
        --orange: #FF8A33; --orange-soft: #2E1C10; --green: #3DD6A0; --green-soft: #0F2E26; --red: #FF7A6B;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
        --logo-on-light: none; --logo-on-dark: block;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0C0A1F; --surface: #15123A; --surface-2: #1B1747; --ink: #EEEDFB; --muted: #A6A2C8; --line: #2A2660;
    --indigo: #8C83FF; --indigo-strong: #A7A0FF; --indigo-soft: #221D55; --on-indigo: #0C0A1F;
    --orange: #FF8A33; --orange-soft: #2E1C10; --green: #3DD6A0; --green-soft: #0F2E26; --red: #FF7A6B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --logo-on-light: none; --logo-on-dark: block;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
.logo-on-light { display: var(--logo-on-light); }
.logo-on-dark { display: var(--logo-on-dark); }
a { color: var(--indigo); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: var(--on-indigo); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 13px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px;
    font: 700 15px/1 var(--font-body); white-space: nowrap; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn-primary { background: var(--indigo); color: var(--on-indigo); }
.btn-primary:hover { background: var(--indigo-strong); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-logo { height: 26px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.nav-panel { display: contents; }
@media (max-width: 1080px) {
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .nav-panel { display: none; }
    .site-header.is-open .nav-panel { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface);
        border-bottom: 1px solid var(--line); padding: 4px 20px 18px; box-shadow: var(--shadow); }
    .nav-panel .site-nav { flex-direction: column; gap: 0; margin: 0; }
    .nav-panel .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-panel .header-actions { margin: 16px 0 0; }
    .nav-panel .header-actions .btn { flex: 1; }
}

/* Hero: a ledger page */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--line) 39px 40px);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%); opacity: .8; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy { border-left: 3px solid var(--indigo); padding-left: 28px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 58ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.hero-note span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.speed { display: inline-flex; flex-direction: column; gap: 5px; vertical-align: middle; margin-right: 10px; }
.speed i { display: block; height: 4px; border-radius: 4px; background: var(--orange); }
.speed i:nth-child(1) { width: 22px; } .speed i:nth-child(2) { width: 28px; margin-left: -6px; } .speed i:nth-child(3) { width: 18px; margin-left: 4px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 32px; } }
@media (max-width: 560px) { .hero-copy { padding-left: 18px; } .hero-ctas .btn { flex: 1 1 100%; } }

/* Product composition (sample data) */
.showcase { position: relative; padding-bottom: 250px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ledger-card { padding: 18px 18px 8px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-title { font: 700 15px/1.2 var(--font-display); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--font-body); padding: 5px 9px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--orange-soft); color: var(--orange); }
.sample { font-size: 11px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.kpis div { background: var(--surface); padding: 10px 12px; }
.kpis small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.kpis strong { font: 600 16px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.rows .code { font: 600 11px/1 var(--font-mono); background: var(--surface-2); color: var(--indigo); padding: 5px 7px; border-radius: 6px; }
.rows .who { font-weight: 700; }
.rows .what { grid-column: 2; color: var(--muted); font-size: 12px; }
.rows .amt { grid-row: 1 / span 2; grid-column: 3; text-align: right; font: 600 13px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.rows .amt .chip { margin-top: 5px; }
.phone { position: absolute; right: 8px; bottom: 0; width: 232px; padding: 10px; border-radius: 30px; background: var(--ink); box-shadow: var(--shadow); }
.phone-screen { background: var(--surface); border-radius: 22px; padding: 14px 12px 12px; font-size: 12px; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.phone-bar strong { font: 700 13px/1.2 var(--font-display); }
.order-line { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); }
.order-line span:first-child { font-weight: 700; }
.order-line small { display: block; font-weight: 500; color: var(--muted); }
.order-total { display: flex; justify-content: space-between; padding: 9px 0 10px; border-top: 1px solid var(--line); font-weight: 800; }
.phone-btn { display: block; text-align: center; background: var(--indigo); color: var(--on-indigo); border-radius: 10px; padding: 9px; font-weight: 800; }
.card-foot { display: flex; align-items: center; gap: 8px; margin: 4px -18px 0; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.card-foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.toast { position: absolute; left: 0; bottom: 64px; width: min(250px, calc(100% - 260px)); padding: 14px 16px; display: grid; gap: 4px; font-size: 13px; }
.toast strong { display: flex; align-items: center; gap: 8px; color: var(--green); }
.toast strong svg { width: 18px; height: 18px; flex: none; }
.toast span { color: var(--muted); }
@media (max-width: 560px) { .phone { position: relative; right: auto; bottom: auto; margin: 20px 0 0 auto; } .showcase { padding-bottom: 0; } .toast { display: none; } .kpis strong { font-size: 14px; } }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--indigo-soft); }
.facts strong { font: 700 22px/1.2 var(--font-display); }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Differentiators: hairline grid, not heavy cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why-grid article { padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid h3 { font-size: 19px; margin: 14px 0 8px; }
.why-grid p { color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); }
.icon svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* Flow: a real sequence */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow li { position: relative; padding: 20px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.flow li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--indigo); color: var(--on-indigo); font: 700 13px/1 var(--font-display); margin-bottom: 12px; }
.flow h3 { font-size: 17px; margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--muted); }
.flow .who { display: block; font-size: 12px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Booker section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li { position: relative; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--indigo-soft); }
.ticks li::after { content: ""; position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; background: var(--indigo);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 15px; }
.receipt { max-width: 380px; margin-inline: auto; padding: 22px; font-size: 14px; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 14px; margin-bottom: 12px; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-weight: 700; }
.confirm-box { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.confirm-box svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Module list */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.modules h3 { font-size: 17px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--indigo-soft); }
.modules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* Reports */
.report-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.report-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.report-table th { text-align: left; font: 700 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); background: var(--indigo-soft); padding: 12px 16px; }
.report-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.report-table td:first-child { font-weight: 700; white-space: nowrap; }
.report-table td:nth-child(2) { font-family: var(--font-mono); text-align: right; width: 64px; }
.report-table td:last-child { color: var(--muted); }
.report-note { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* Control & safety + desktop comparison */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.box h3 { font-size: 20px; margin-bottom: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--indigo); }
.compare td:nth-child(2) { font-weight: 700; }
.compare td:nth-child(3) { color: var(--muted); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Pricing */
.price-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 36px; }
.price-card h3 { font-size: 26px; margin-bottom: 10px; }
.price-card p { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 800px) { .price-card { grid-template-columns: 1fr; padding: 26px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 700 17px/1.4 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Demo form */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.demo-aside p { color: var(--muted); margin: 14px 0 22px; }
.contact-line { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.form { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: 500 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status.is-error { color: var(--red); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-actions small { color: var(--muted); }
.done { padding: 36px 28px; text-align: left; }
.done h3 { font-size: 24px; margin: 14px 0 10px; }
.done p { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 20px; } }

/* Closing band + footer */
.band { background: var(--indigo); color: var(--on-indigo); padding: 64px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 20ch; }
.band .btn-primary { background: var(--on-indigo); color: var(--indigo); }
.band .btn-outline { color: var(--on-indigo); border-color: color-mix(in srgb, var(--on-indigo) 45%, transparent); }
.band .btn-outline:hover { border-color: var(--on-indigo); color: var(--on-indigo); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { padding: 48px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.footer-grid h4 { font: 700 13px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--indigo); }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
