:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    --background: #090909;
    --surface: #101010;
    --line: #30302e;
    --text: #f4f4f1;
    --muted: #c4c4bf;
    --quiet: #b0b0ab;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }

.site-header, footer { width: min(100% - 40px, 1440px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { font-size: 18px; font-weight: 650; letter-spacing: -.045em; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); color: #d0d0cc; font-size: 13px; }
nav a:not(.nav-cta):hover, footer a:hover { color: var(--text); }
.nav-cta { padding: 10px 13px; border: 1px solid #898985; border-radius: 3px; color: var(--text); white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.nav-cta:hover { background: var(--text); color: var(--background); }

main { width: min(100% - 40px, 1280px); margin: 0 auto; }
.hero { display: grid; align-items: center; gap: 44px; padding: clamp(64px, 10vw, 112px) 0 86px; }
.hero-copy-block { max-width: 680px; }
.eyebrow { margin: 0 0 16px; color: var(--quiet); font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(40px, 8vw, 72px); font-weight: 540; letter-spacing: -.065em; line-height: 1.04; }
.hero-copy { max-width: 620px; margin: 23px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.primary-cta { display: inline-flex; align-items: center; gap: 20px; min-height: 50px; margin-top: 27px; padding: 0 17px; border: 1px solid #eee; border-radius: 3px; background: #f1f1ed; color: #101010; font-size: 14px; font-weight: 650; transition: background-color 160ms ease, transform 160ms ease; }
.primary-cta:hover { transform: translateY(-2px); background: #fff; }
.primary-cta span { font-size: 17px; }

/* The animated ledger stays self-contained and uses only CSS plus landing.js. */
.ledger-demo { position: relative; overflow: hidden; width: 100%; max-width: 560px; margin: 0 auto; border: 1px solid #393936; border-radius: 5px; background: var(--surface); box-shadow: 0 24px 70px rgb(0 0 0 / 24%); }
.ledger-topline { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.fictional-label { color: var(--quiet); }
.ledger-scroll-area { position: relative; }
.ledger-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.ledger-table th, .ledger-table td { overflow: hidden; padding: 10px 12px; border-bottom: 1px solid #222220; text-overflow: ellipsis; white-space: nowrap; }
.ledger-table th { color: var(--quiet); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ledger-table td { color: #d5d5d0; font-size: 11px; }
.ledger-table th:first-child, .ledger-table td:first-child { width: 20%; color: var(--muted); }
.ledger-table th:last-child, .ledger-table td:last-child { width: 26%; text-align: right; }
.ledger-table tbody tr { transition: background-color 450ms ease, color 450ms ease; }
.ledger-demo.is-playing .ledger-table tbody tr { animation: row-enter 500ms ease both; animation-delay: calc(var(--row-index) * 140ms); }
.ledger-table tbody tr.is-flagged { background: #292927; }
.ledger-table tbody tr.is-flagged td { color: #fff; }
.target-row td:nth-child(2) { position: relative; }
.row-flag-tag { display: none; margin-left: 7px; padding: 3px 5px; border: 1px solid #8c8c87; border-radius: 2px; color: #f4f4f1; font-size: 8px; letter-spacing: 0; text-transform: none; }
.target-row.is-flagged .row-flag-tag { display: inline-block; animation: fade-in 500ms ease both; }
.scan-line { position: absolute; z-index: 1; top: 38px; left: 0; width: 100%; height: 1px; background: #f4f4f1; opacity: 0; pointer-events: none; }
.scan-line.is-sweeping { animation: scan-sweep 2200ms cubic-bezier(.4, 0, .2, 1) both; }
.ledger-flag { display: flex; align-items: center; gap: 8px; padding: 0 13px; max-height: 0; overflow: hidden; color: var(--text); font-size: 11px; opacity: 0; transition: max-height 500ms ease, opacity 500ms ease, padding 500ms ease; }
.ledger-flag.is-visible { max-height: 45px; padding-top: 11px; padding-bottom: 11px; opacity: 1; }
.flag-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #f1f1ed; }
.ledger-reason { max-height: 0; overflow: hidden; margin: 0; padding: 0 13px; border-top: 0 solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.55; opacity: 0; transition: max-height 500ms ease, opacity 500ms ease, padding 500ms ease, border-width 500ms ease; }
.ledger-reason.is-visible { max-height: 80px; padding: 0 13px 13px; border-top-width: 1px; opacity: 1; }

.story-section { padding: 72px 0 78px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(28px, 5vw, 42px); font-weight: 530; letter-spacing: -.05em; line-height: 1.12; }
.problem-cards { display: grid; gap: 12px; margin-top: 28px; }
.story-card { min-height: 150px; padding: 19px; border: 1px solid #383835; border-radius: 4px; background: #0e0e0e; transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.story-card:hover { transform: translateY(-3px); border-color: #777773; background: #141414; }
.card-index { color: var(--quiet); font-size: 10px; letter-spacing: .1em; }
.story-card h3 { margin: 19px 0 8px; font-size: 17px; font-weight: 570; letter-spacing: -.02em; }
.story-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mini-visual { position: relative; display: flex; align-items: center; min-height: 78px; margin-top: 20px; padding: 10px 12px; overflow: hidden; border: 1px solid #333330; border-radius: 3px; background: #111; color: #e8e8e3; }
.mini-row { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 0 8px; border: 1px solid #3c3c38; border-radius: 2px; color: #c9c9c4; font-size: 11px; }
.mini-row + .mini-row { margin-top: 5px; }
.mini-row i, .vendor-line, .payment-row i { display: block; height: 5px; border-radius: 4px; background: #777772; }
.mini-row i:first-child { width: 35px; }
.mini-row i:nth-child(2) { width: 20px; background: #4d4d49; }
.mini-row b { margin-left: auto; font-weight: 500; }
.duplicate-visual { display: block; padding: 10px 12px; }
.duplicate-mark { position: absolute; right: 12px; top: 50%; padding: 4px 6px; transform: translateY(-50%); border: 1px solid #aaa9a3; border-radius: 2px; background: #111; color: #f0f0eb; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; animation: duplicate-pulse 2.8s ease-in-out infinite; }
.duplicate-visual .mini-row { width: 72%; animation: duplicate-row 2.8s ease-in-out infinite; }
.duplicate-visual .mini-row:nth-child(2) { animation-delay: 220ms; }
.vendor-visual { display: grid; grid-template-columns: 20px 1fr; align-content: center; column-gap: 10px; row-gap: 8px; }
.vendor-icon { grid-column: 1; grid-row: 1 / 4; width: 20px; height: 20px; border: 1px solid #aaa9a3; border-radius: 50%; }
.vendor-line { grid-column: 2; grid-row: 1; width: 68%; height: 7px; }
.history-label { grid-column: 2; grid-row: 2; color: var(--quiet); font-size: 9px; letter-spacing: .1em; }
.history-empty { position: relative; display: block; height: 10px; border: 1px solid #64645f; border-radius: 2px; animation: empty-pulse 3s ease-in-out infinite; }
.history-empty { grid-column: 2; grid-row: 3; }
.history-empty::after { content: "NO HISTORY"; position: absolute; right: 5px; top: -4px; padding: 0 4px; background: #111; color: var(--muted); font-size: 8px; letter-spacing: .04em; }
.invoice-visual { display: grid; grid-template-columns: minmax(0, 1fr) 22px 72px; align-items: center; gap: 8px; }
.payment-row { display: flex; align-items: center; gap: 6px; color: #d8d8d3; font-size: 8px; letter-spacing: .05em; }
.payment-row i { width: 14px; height: 14px; border: 1px solid #aaa9a3; border-radius: 50%; background: transparent; }
.payment-row strong { margin-left: auto; font-size: 10px; font-weight: 500; }
.invoice-gap { height: 1px; background: #aaa9a3; }
.invoice-slot { display: grid; min-height: 44px; place-items: center; border: 1px dashed #92928c; border-radius: 2px; color: var(--muted); font-size: 8px; letter-spacing: .08em; animation: empty-pulse 3s ease-in-out infinite; }
.invoice-slot i { width: 14px; height: 17px; border: 1px solid #777772; border-radius: 1px; }
.section-note { margin: 21px 0 0; color: #d0d0cc; font-size: 14px; }
.steps-list { position: relative; display: grid; gap: 0; margin: 29px 0 0; padding: 0; list-style: none; }
.steps-list::before { content: ""; position: absolute; z-index: 0; top: 40px; bottom: 40px; left: 17px; width: 1px; background: #d2d2cc; transform: scaleY(0); transform-origin: top; transition: transform 1300ms cubic-bezier(.2, .7, .25, 1); }
.steps-list.is-active::before { transform: scaleY(1); }
.step-item { display: flex; align-items: center; gap: 18px; min-height: 80px; border-bottom: 1px solid #222220; }
.step-number { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #64645f; border-radius: 50%; background: var(--background); color: var(--quiet); font-size: 13px; transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, box-shadow 400ms ease; }
.step-item.is-lit .step-number { border-color: #f1f1ed; background: #f1f1ed; color: #090909; box-shadow: 0 0 0 5px rgb(241 241 237 / 8%); }
.step-item p { margin: 0; color: #deded9; font-size: 15px; line-height: 1.5; }
.section-heading { margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 11px; }
.review-card { overflow: hidden; border: 1px solid #393936; border-radius: 5px; background: var(--surface); }
.review-topline { min-height: 52px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.flag-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.review-card table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; }
.review-card th, .review-card td { padding: 15px 16px; border-bottom: 1px solid #242422; white-space: nowrap; }
.review-card th { color: var(--quiet); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.review-card td { color: #e1e1dc; font-size: 12px; }
.explanation { display: flex; align-items: flex-start; gap: 11px; padding: 16px; }
.explanation-mark { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border: 1px solid #bdbdb7; border-radius: 50%; color: var(--text); font-size: 12px; }
.explanation p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.explanation strong { color: var(--text); font-weight: 600; }
.disclaimer { margin: 12px 0 0; color: var(--quiet); font-size: 11px; }
.audience-list { margin-top: 25px; border-top: 1px solid #343431; }
.audience-list p { display: grid; gap: 6px; margin: 0; padding: 18px 0; border-bottom: 1px solid #343431; }
.audience-list strong { font-size: 15px; font-weight: 600; }
.audience-list span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.final-cta { padding: 66px 0 78px; border-top: 1px solid var(--line); }
.final-cta h2 { max-width: 610px; }
.final-cta .primary-cta { margin-top: 23px; }
.contact-section { padding-bottom: 74px; }
.contact-section p { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-section p a { color: var(--text); text-decoration: underline; text-decoration-color: #888883; text-underline-offset: 4px; }
.contact-section p a:hover { text-decoration-color: var(--text); }

footer { min-height: 78px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
footer .brand { color: var(--muted); font-size: 14px; }

.motion-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .25, 1); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes scan-sweep { 0% { top: 38px; opacity: 0; } 12% { opacity: .9; } 88% { opacity: .9; } 100% { top: calc(100% - 1px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes row-enter { from { opacity: .12; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes duplicate-row { 0%, 100% { transform: translateX(0); } 45%, 60% { transform: translateX(5px); } }
@keyframes duplicate-pulse { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
@keyframes empty-pulse { 0%, 100% { border-color: #64645f; box-shadow: 0 0 0 0 rgb(241 241 237 / 0%); } 50% { border-color: #c4c4bf; box-shadow: 0 0 0 3px rgb(241 241 237 / 6%); } }

@media (min-width: 760px) {
    main { width: min(100% - 64px, 1280px); }
    .hero { grid-template-columns: minmax(0, 1.16fr) minmax(0, .95fr); gap: 48px; }
    .hero-copy-block { max-width: none; }
    h1 { font-size: clamp(48px, 6vw, 68px); }
    .ledger-demo { max-width: none; }
    nav { font-size: 15px; }
    .eyebrow { font-size: 15px; }
    .primary-cta { font-size: 17px; }
    .hero-copy { font-size: 20px; }
    .ledger-topline { min-height: 54px; padding: 0 18px; font-size: 15px; }
    .ledger-table th, .ledger-table td { padding: 13px 15px; font-size: 15px; }
    .ledger-table th { font-size: 15px; }
    .target-row td:nth-child(2) { white-space: normal; }
    .row-flag-tag { margin: 5px 0 0; font-size: 15px; }
    .target-row.is-flagged .row-flag-tag { display: block; width: max-content; max-width: 100%; }
    .ledger-flag, .ledger-reason { font-size: 15px; }
    .ledger-reason.is-visible { max-height: 100px; }
    .story-section { padding-top: 86px; padding-bottom: 90px; }
    .problem-cards { gap: 18px; }
    .story-card { display: flex; min-height: 330px; flex-direction: column; padding: 27px; }
    .card-index { font-size: 22px; }
    .story-card h3 { min-height: 0; margin-top: 22px; margin-bottom: 10px; font-size: 24px; }
    .story-card p, .section-note, .step-item p, .audience-list span, .explanation p { font-size: 18px; }
    .section-note { margin-top: 27px; }
    .mini-visual { min-height: 96px; margin-top: auto; padding: 13px 15px; }
    .duplicate-visual { padding: 11px 15px; }
    .mini-row { min-height: 28px; gap: 10px; padding: 0 10px; font-size: 13px; }
    .mini-row { font-size: 15px; }
    .duplicate-mark { font-size: 15px; }
    .history-label { font-size: 15px; }
    .history-empty::after { font-size: 15px; }
    .payment-row, .invoice-slot { font-size: 15px; }
    .payment-row strong { font-size: 14px; }
    .invoice-slot { min-height: 54px; }
    .steps-list { margin-top: 38px; }
    .step-item { min-height: 96px; }
    .step-number { width: 44px; height: 44px; flex-basis: 44px; font-size: 17px; }
    .steps-list::before { top: 48px; bottom: 48px; left: 21px; }
    .review-topline { min-height: 58px; padding: 0 20px; font-size: 15px; }
    .review-card th, .review-card td { padding: 19px 20px; font-size: 15px; }
    .review-card th { font-size: 15px; }
    .review-card table { min-width: 0; }
    .explanation { padding: 20px; }
    .disclaimer { font-size: 15px; }
    .audience-list { margin-top: 32px; }
    .audience-list p { grid-template-columns: minmax(220px, .55fr) 1fr; align-items: baseline; padding: 23px 0; }
    .audience-list strong { font-size: 20px; }
    .final-cta { padding-top: 82px; padding-bottom: 98px; }
    .contact-section p { font-size: 18px; }
    footer { font-size: 15px; }
    .problem-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .site-header, footer { width: calc(100% - 32px); gap: 12px; }
    .site-header { min-height: 68px; }
    .brand { font-size: 16px; }
    nav { gap: 11px; font-size: 11px; }
    .nav-cta { padding: 9px 9px; }
    main { width: calc(100% - 32px); }
    .hero { padding-top: 72px; padding-bottom: 64px; }
    .ledger-table th, .ledger-table td { padding: 9px 7px; font-size: 10px; }
    .ledger-table th:first-child, .ledger-table td:first-child { width: 18%; }
    .ledger-table th:last-child, .ledger-table td:last-child { width: 29%; }
    .row-flag-tag { display: none !important; }
    .ledger-flag.is-visible { max-height: 40px; }
    .story-section { padding: 58px 0 62px; }
    .story-card { min-height: 0; }
    .review-topline { align-items: flex-start; flex-direction: column; justify-content: center; padding: 12px 14px; }
    footer { flex-wrap: wrap; padding: 19px 0; }
    footer span { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .motion-ready .reveal { opacity: 1; transform: none; }
    .steps-list::before { transform: scaleY(1); }
    .step-number { border-color: #f1f1ed; background: #f1f1ed; color: #090909; }
}
