:root {
    --ink: #132033;
    --ink-soft: #34445a;
    --muted: #66778c;
    --canvas: #f4f8fb;
    --paper: #ffffff;
    --line: #d9e4ec;
    --brand: #0a718d;
    --brand-deep: #075a72;
    --brand-pale: #e6f4f7;
    --green: #17734d;
    --green-pale: #e9f7ee;
    --gold: #9b671d;
    --gold-pale: #fff5e2;
    --red: #ad332c;
    --red-pale: #fff0ef;
    --shadow: 0 18px 42px rgba(25, 49, 76, .1);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, select { font: inherit; }
.site { display: flex; min-height: 100vh; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
.shell { width: min(1180px, calc(100% - 64px)); margin: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 720; letter-spacing: 0; }
h1 { max-width: 710px; font-size: 47px; line-height: 1.12; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.35; }
p { color: var(--muted); }
.lead { max-width: 610px; font-size: 17px; line-height: 1.75; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 18px; font-weight: 760; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 6px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 850; }
.links { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav-link { border-radius: 5px; padding: 8px 10px; color: var(--ink-soft); font-weight: 650; }
.nav-link:hover { background: #eef5f8; color: var(--ink); }
.language-link { margin-right: 6px; border: 1px solid var(--line); padding: 6px 9px; font-size: 12px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; border: 1px solid var(--brand); border-radius: 6px; background: var(--brand); padding: 10px 16px; color: #fff; font-size: 14px; font-weight: 760; line-height: 1.1; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.button:hover { border-color: var(--brand-deep); background: var(--brand-deep); color: #fff; }
.button-small { min-height: 36px; padding: 7px 11px; }
.button-quiet, .button.secondary { border-color: #c4d2de; background: #fff; color: var(--ink-soft); }
.button-quiet:hover, .button.secondary:hover { border-color: #b2c4d1; background: #f5f9fb; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; color: var(--brand); font-size: 14px; font-weight: 750; }
.text-link:after { content: "→"; margin-left: 7px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; border: 1px solid #c4d2de; border-radius: 6px; padding: 8px 11px; color: var(--ink-soft); font-size: 14px; font-weight: 750; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-menu { position: absolute; top: 44px; right: 0; display: grid; min-width: 232px; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px; box-shadow: var(--shadow); }
.mobile-nav-menu form { margin: 4px; }

.hero { display: grid; min-height: 560px; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); align-items: center; gap: clamp(54px, 7vw, 108px); padding: 82px 0 76px; }
.hero-copy { padding: 18px 0; }
.hero h1 { margin-bottom: 19px; }
.hero-copy .lead { margin-bottom: 29px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 38px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.trust-list li { border-left: 2px solid #9dcfda; padding-left: 10px; }
.upload-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 28px; box-shadow: var(--shadow); }
.upload-panel h2 { margin-bottom: 6px; font-size: 22px; }
.upload-help { margin-bottom: 21px; font-size: 14px; }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.file-drop { display: flex; min-height: 182px; align-items: center; justify-content: center; border: 2px dashed #b7cad8; border-radius: 6px; background: #f8fbfc; padding: 22px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.file-drop:hover, .file-drop:focus-within, .file-drop.is-dragging { border-color: var(--brand); background: var(--brand-pale); }
.file-drop strong, .file-drop span { display: block; }
.file-drop strong { color: var(--ink); font-size: 16px; }
.file-drop span { max-width: 100%; margin-top: 7px; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.upload-actions { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.upload-note { margin: 0; font-size: 13px; line-height: 1.5; }

.proof-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 24px 0; }
.proof-grid div { display: flex; align-items: baseline; gap: 12px; }
.proof-grid strong { color: var(--brand); font-size: 15px; }
.proof-grid span { color: var(--muted); font-size: 13px; }
.content-section { padding: 102px 0; }
.section-heading { max-width: 730px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 13px; }
.section-heading p:last-child { margin-bottom: 0; }

.product-section { padding-bottom: 108px; }
.product-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 338px; align-items: stretch; gap: 28px; }
.preview-window { overflow: hidden; border: 1px solid #c8d9e4; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.preview-toolbar { display: flex; min-height: 49px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: #f8fbfc; padding: 0 17px; color: var(--ink-soft); font-size: 13px; font-weight: 680; }
.preview-toolbar .status { margin-left: auto; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #a9bbc9; }
.ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #fcfeff; }
.ledger-summary div { min-height: 95px; padding: 18px; }
.ledger-summary div + div { border-left: 1px solid var(--line); }
.ledger-summary span, .ledger-summary strong { display: block; }
.ledger-summary span { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.ledger-summary strong { color: var(--ink); font-size: 20px; line-height: 1.2; }
.amount-positive { color: var(--green) !important; font-weight: 750; }
.amount-review { color: var(--gold) !important; }
.preview-table th, .preview-table td { white-space: nowrap; }
.review-row { background: #fffaf0; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 14px 18px; color: var(--muted); font-size: 13px; }
.preview-footer .text-link { font-size: 13px; }
.validation-panel { display: flex; flex-direction: column; border: 1px solid #b8dce5; border-radius: var(--radius); background: var(--brand-pale); padding: 26px; }
.validation-panel h3 { margin-bottom: 19px; }
.balance-card { border: 1px solid #b7d8e1; border-radius: 6px; background: #fff; padding: 15px; }
.balance-card span, .balance-card strong, .balance-card small { display: block; }
.balance-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.balance-card strong { margin: 3px 0; color: var(--green); font-size: 22px; }
.balance-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.check-list { display: grid; gap: 18px; margin: 24px 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; }
.check-mark { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.review-mark { background: var(--gold); }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: 14px; }
.check-list small { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.validation-action { width: 100%; margin-top: auto; }

.workflow-band { background: #e7f1f5; padding: 86px 0; }
.workflow-band .section-heading { margin-bottom: 38px; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: flex; gap: 14px; }
.process-list li + li { border-left: 1px solid #c4d7e0; padding-left: 33px; }
.process-list span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.process-list strong { display: block; color: var(--ink); font-size: 16px; }
.process-list p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.feature-section { padding-bottom: 108px; }
.feature-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { display: flex; gap: 16px; min-height: 180px; padding: 29px 27px 29px 0; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 27px; }
.feature h2, .feature h3 { margin: 4px 0 9px; font-size: 19px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.7; }
.feature-number { color: var(--brand); font-size: 13px; font-weight: 800; }

.security-band { background: #123242; padding: 90px 0; color: #e9f4f7; }
.security-band h2 { color: #fff; }
.security-band p { color: #c7dbe1; }
.security-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr); gap: 100px; }
.security-layout .eyebrow { color: #8ccad9; }
.security-layout .text-link { color: #c4e8ef; }
.security-points { display: grid; gap: 22px; margin: 0; padding: 4px 0; list-style: none; }
.security-points li { border-left: 2px solid #569aab; padding: 5px 0 5px 17px; }
.security-points strong, .security-points span { display: block; }
.security-points strong { color: #fff; font-size: 15px; }
.security-points span { margin-top: 5px; color: #c7dbe1; font-size: 14px; }

.faq-section { padding-top: 104px; }
.faq-list { display: grid; max-width: 800px; gap: 10px; }
.faq-list details { border-bottom: 1px solid var(--line); background: #fff; padding: 0 21px; }
.faq-list summary { position: relative; padding: 20px 30px 20px 0; color: var(--ink); font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary:after { position: absolute; right: 2px; content: "+"; color: var(--brand); font-size: 21px; font-weight: 400; }
.faq-list details[open] summary:after { content: "−"; }
.faq-list p { padding-bottom: 18px; font-size: 14px; }

.page-hero { padding: 82px 0 42px; }
.page-hero h1 { margin-bottom: 17px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--brand); font-weight: 700; }
.tool-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .82fr); align-items: center; gap: 86px; padding: 43px 0 94px; }
.tool-intro h2 { max-width: 480px; margin-bottom: 13px; }
.tool-intro p { max-width: 500px; }
.tool-kicker { display: inline-block; margin-bottom: 16px; border-radius: 999px; background: var(--brand-pale); padding: 4px 9px; color: var(--brand); font-size: 12px; font-weight: 800; }
.compact-list { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; }
.compact-list li { position: relative; padding-left: 16px; }
.compact-list li:before { position: absolute; left: 0; content: "•"; color: var(--brand); }
.public-page .feature-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-grid .feature { display: block; min-height: 190px; border-top: 3px solid #b9dbe3; background: #fff; padding: 25px; }
.feature-grid .feature + .feature { border-left: 0; }

.flash { margin-top: 24px; }
.notice, .errors { border-radius: 6px; padding: 13px 15px; font-size: 14px; }
.notice { border: 1px solid #abd8e3; background: #edf9fc; color: #13576c; }
.errors { border: 1px solid #efbdb8; background: var(--red-pale); color: #90251f; }
.errors ul { margin: 8px 0 0; padding-left: 18px; }
.page { padding: 62px 0 80px; }
.card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card { padding: 27px; }
.auth-card { width: min(100%, 440px); margin: 42px auto; padding: 30px; box-shadow: 0 8px 24px rgba(25,49,76,.05); }
.auth-card h1 { font-size: 34px; }
.form { display: grid; gap: 15px; }
.form label { color: var(--ink-soft); font-size: 14px; font-weight: 750; }
.form input, .form select, .transaction-form input, .transaction-form select { width: 100%; min-height: 43px; border: 1px solid #c4d2de; border-radius: 6px; background: #fff; padding: 9px 11px; color: var(--ink); }
.form input:focus, .form select:focus, .transaction-form input:focus, .transaction-form select:focus { outline: 2px solid #a4d4df; outline-offset: 1px; border-color: var(--brand); }
.auth-card .button { width: 100%; margin-top: 5px; }
.auth-prompt { margin: 20px 0 0; font-size: 14px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 58px auto 34px; }
.page-heading h1 { margin-bottom: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 395px); align-items: start; gap: 32px; padding-bottom: 82px; }
.panel { padding: 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; vertical-align: top; }
th { color: #66768c; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.status, .status-verified { background: var(--green-pale); color: var(--green); }
.status.failed { background: var(--red-pale); color: var(--red); }
.status.needs_review, .status-review { background: var(--gold-pale); color: var(--gold); }
.status.uploaded, .status.extracting, .status.parsing { background: var(--brand-pale); color: var(--brand); }
.empty { border: 1px dashed #b8c8d5; border-radius: var(--radius); padding: 42px; color: var(--muted); text-align: center; }
.job-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.transaction-form { display: grid; grid-template-columns: 125px minmax(130px, 1fr) auto; gap: 6px; min-width: 360px; }
.transaction-form input, .transaction-form select { min-height: 34px; padding: 5px 7px; font-size: 13px; }
.transaction-form button { min-height: 34px; border: 0; border-radius: 5px; background: var(--brand); padding: 5px 9px; color: #fff; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 5px; font-size: 28px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-content { display: grid; grid-template-columns: 1.2fr auto 1fr; gap: 40px; padding: 43px 0; color: var(--muted); font-size: 13px; }
.footer-brand { margin-bottom: 10px; font-size: 16px; }
.footer-content p { margin: 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 13px 18px; color: var(--ink-soft); font-weight: 650; }
.footer-note { text-align: right; }

@media (max-width: 930px) {
    .shell { width: min(100% - 44px, 1180px); }
    .links { display: none; }
    .mobile-nav { display: block; }
    .hero { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 62px 0; }
    .hero-copy { max-width: 720px; padding: 0; }
    .hero h1 { font-size: 44px; }
    .upload-panel { max-width: 640px; }
    .product-showcase, .security-layout, .tool-section { grid-template-columns: 1fr; gap: 30px; }
    .validation-panel { min-height: 0; }
    .process-list { gap: 24px; }
    .process-list li + li { padding-left: 22px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-content > div:first-child { grid-column: 1 / -1; }
    .footer-note { text-align: left; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .page-heading { width: min(100% - 44px, 1180px); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .shell { width: calc(100% - 32px); }
    h1 { font-size: 35px; line-height: 1.16; }
    h2 { font-size: 27px; }
    .nav { min-height: 66px; }
    .hero { gap: 37px; padding: 45px 0 50px; }
    .hero h1 { font-size: 37px; }
    .lead { font-size: 16px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
    .trust-list { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
    .upload-panel { padding: 21px; }
    .file-drop { min-height: 156px; }
    .upload-actions { align-items: stretch; flex-direction: column; }
    .upload-actions .button { width: 100%; }
    .proof-grid { grid-template-columns: 1fr; gap: 13px; padding: 22px 0; }
    .content-section { padding: 70px 0; }
    .section-heading { margin-bottom: 31px; }
    .product-section { padding-bottom: 76px; }
    .preview-toolbar { padding: 0 13px; }
    .preview-toolbar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ledger-summary { grid-template-columns: 1fr; }
    .ledger-summary div { min-height: 0; padding: 14px 16px; }
    .ledger-summary div + div { border-top: 1px solid var(--line); border-left: 0; }
    .preview-footer { align-items: flex-start; flex-direction: column; }
    .validation-panel { padding: 22px; }
    .workflow-band { padding: 65px 0; }
    .process-list { grid-template-columns: 1fr; gap: 22px; }
    .process-list li + li { border-top: 1px solid #c4d7e0; border-left: 0; padding-top: 22px; padding-left: 0; }
    .feature-section { padding-bottom: 76px; }
    .feature-rail { grid-template-columns: 1fr; }
    .feature { min-height: 0; padding: 24px 0; }
    .feature + .feature { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
    .security-band { padding: 68px 0; }
    .security-layout { gap: 36px; }
    .page-hero { padding: 52px 0 27px; }
    .tool-section { padding: 34px 0 66px; }
    .feature-grid { grid-template-columns: 1fr; gap: 15px; }
    .feature-grid .feature { min-height: 0; padding: 23px; }
    .faq-section { padding-top: 70px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-top: 39px; }
    .page-heading h1 { font-size: 33px; }
    .stats { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 21px; }
    .footer-content > div:first-child { grid-column: auto; }
    .footer-note { text-align: left; }
    .mobile-nav-menu { right: -2px; }
    .transaction-form { grid-template-columns: 105px minmax(130px, 1fr) auto; }
    .auth-card { margin: 28px auto; padding: 23px; }
}
