@font-face {
    font-family: 'DocuRoute Sans';
    src: local('Inter'), local('Aptos'), local('Arial');
    font-display: swap;
}

:root {
    --navy: #171f30;
    --navy-light: #222e43;
    --red: #d50032;
    --red-hover: #b9002b;
    --text: #171f30;
    --muted: #596273;
    --border: #e5e8ee;
    --surface: #f5f7fa;
    --white: #ffffff;
    --green: #197653;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font-family: 'DocuRoute Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
button, select, input, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, select, a { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #397cf4; outline-offset: 5px; }
::selection { background: #f5c3cf; color: var(--navy); }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: white; padding: 16px; border: 2px solid var(--navy); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 188px; }
.navigation { display: flex; align-items: center; gap: 30px; font-size: .9rem; font-weight: 550; }
.navigation > a:not(.button) { padding-block: 15px; transition: color .2s; }
.navigation > a:not(.button):hover, .text-link:hover { color: var(--red); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 16px 24px; border: 0; border-radius: 7px; font-size: .95rem; line-height: 1.4; font-weight: 650; transition: background .2s, transform .2s; text-align: center; }
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--red-hover); }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: #303e57; }
.button-small { min-height: 46px; padding: 12px 19px; font-size: .875rem; }
.button .icon { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.hero { position: relative; padding-top: 88px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 46px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .75rem; line-height: 1.6; letter-spacing: .15em; font-weight: 700; color: var(--muted); }
.eyebrow-line { height: 2px; width: 23px; background: var(--red); }
h1 { margin-top: 24px; font-size: clamp(3.4rem, 5.2vw, 4.75rem); font-weight: 750; letter-spacing: -.058em; line-height: 1.09; }
.red-word { color: var(--red); }
.hero-description { margin-top: 30px; font-size: 1.3rem; line-height: 1.5; font-weight: 500; letter-spacing: -.015em; }
.hero-detail { margin-top: 14px; max-width: 440px; color: var(--muted); line-height: 1.75; font-size: 1rem; }
.hero-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 29px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 600; min-height: 44px; }
.text-link .icon { width: 17px; height: 17px; }
.hero-platforms { display: flex; align-items: center; gap: 23px; margin-top: 31px; color: var(--muted); font-size: .8rem; }
.hero-platforms span { display: inline-flex; align-items: center; gap: 6px; }
.hero-platforms .icon { width: 17px; height: 17px; }
.hero-visual { position: relative; padding: 22px 0 4px; min-width: 0; }
.hero-visual::before { content: ''; position: absolute; z-index: -1; inset: -18px -30px 54px 38px; background: var(--surface); border-radius: 20px; transform: rotate(3deg); }
.demo-shell { background: white; border: 1px solid #dfe3eb; border-radius: 12px; box-shadow: 0 25px 65px -25px rgb(23 31 48 / .2); scroll-margin-top: 125px; }
.demo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 23px; border-bottom: 1px solid var(--border); }
.demo-topbar img { width: 108px; }
.demo-label, .example-label { color: #697386; letter-spacing: .08em; font-size: .625rem; font-weight: 650; }
.demo-label { font-size: .75rem; letter-spacing: .045em; }
.demo-toolbar { padding: 16px 22px 0; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 550; }
.demo-toolbar > span:first-child { display: flex; align-items: center; gap: 7px; }
.demo-toolbar .icon { width: 16px; height: 16px; }
.file-extension { font-size: .75rem; border: 1px solid var(--border); border-radius: 4px; padding: 3px 6px; color: var(--muted); }
.demo-body { display: grid; grid-template-columns: .98fr 1fr; gap: 19px; padding: 18px 22px 20px; }
.document-preview { position: relative; min-width: 0; padding: 20px 17px 35px; border: 1px solid #e0e5eb; border-radius: 3px; background: #fff; box-shadow: 0 5px 12px rgb(23 31 48 / .04); min-height: 260px; }
.invoice-top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .055em; line-height: 1.25; }
.invoice-top b { font-size: .95rem; letter-spacing: .1em; }
.invoice-top .icon { width: 20px; height: 20px; }
.invoice-type { display: block; margin-top: 25px; letter-spacing: .18em; font-size: .75rem; font-weight: 600; }
.invoice-meta { display: grid; gap: 4px; margin-top: 8px; font-size: .625rem; color: var(--muted); }
.invoice-divider { height: 1px; background: var(--border); margin: 14px 0 12px; }
.invoice-row { display: flex; justify-content: space-between; gap: 7px; font-size: .625rem; line-height: 1.6; margin-top: 5px; }
.invoice-row > span:last-child { white-space: nowrap; }
.invoice-muted { color: var(--muted); }
.invoice-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; font-size: .7rem; }
.invoice-total strong { font-size: .85rem; white-space: nowrap; }
.sample-tag { position: absolute; bottom: 10px; left: 17px; color: #6b7380; font-size: .55rem; letter-spacing: .12em; }
.scan-outline { pointer-events: none; position: absolute; inset: 8px; border: 1px solid rgb(213 0 50 / .25); border-radius: 3px; }
.scan-outline span { position: absolute; inset: 0 0 auto; height: 1px; background: var(--red); box-shadow: 0 5px 12px 3px rgb(213 0 50 / .07); animation: scanning 3.5s ease-in-out 1; }
@keyframes scanning { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 80% { top: 95%; opacity: 1; } 100% { top: 95%; opacity: 0; } }
.scan-outline span { opacity: 0; }
.recognition-panel { min-width: 0; }
.panel-heading { display: flex; align-items: center; gap: 7px; font-size: .73rem; font-weight: 650; margin: 2px 0 13px; }
.square-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--red); }
.square-icon .icon { width: 18px; height: 18px; }
.field-display { margin-top: 10px; }
.field-display > span { display: block; font-size: .65rem; color: var(--muted); margin-bottom: 5px; }
.field-display > strong { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 34px; border: 1px solid var(--border); border-radius: 4px; padding: 7px 9px; font-size: .73rem; font-weight: 550; }
.field-display .icon { width: 14px; height: 14px; color: var(--green); }
.demo-shell[data-stage='1'] .field-display > strong,
.demo-shell[data-stage='2'] .field-display > strong { background: #f1f9f5; border-color: #c6e2d5; }
.demo-shell[data-stage='1'] .demo-field-value,
.demo-shell[data-stage='1'] [data-demo-check] { animation: reveal-suggestion .32s ease-out both; }
.demo-shell[data-stage='1'] .field-display + .field-display .demo-field-value,
.demo-shell[data-stage='1'] .field-display + .field-display [data-demo-check] { animation-delay: .08s; }
.demo-shell[data-stage='1'] .field-display + .field-display + .field-display .demo-field-value,
.demo-shell[data-stage='1'] .field-display + .field-display + .field-display [data-demo-check] { animation-delay: .16s; }
@keyframes reveal-suggestion { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.recognition-note { color: var(--muted); font-size: .68rem; line-height: 1.6; margin-top: 13px; }
.demo-edit { margin-top: 12px; }
.demo-edit label { display: block; font-size: .75rem; margin-bottom: 5px; color: var(--muted); }
.demo-edit select { width: 100%; min-height: 38px; font-size: .8rem; border: 1px solid #bdc6d4; border-radius: 4px; padding: 6px; background: white; color: var(--navy); }
.demo-destination { display: flex; align-items: center; gap: 11px; background: #f4f6f9; padding: 15px 19px; border: 1px solid #e4e8ee; border-radius: 7px; margin: 0 20px 19px; transition: background .25s; }
.destination-icon { width: 35px; height: 35px; display: inline-flex; justify-content: center; align-items: center; background: white; color: var(--navy); border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; }
.destination-icon .icon { width: 19px; height: 19px; }
.demo-destination > div { min-width: 0; }
.demo-destination > div > span { display: block; font-size: .6rem; letter-spacing: .055em; color: var(--muted); margin-bottom: 5px; }
.demo-destination strong { font-size: .73rem; line-height: 1.5; display: block; font-weight: 550; overflow-wrap: anywhere; }
.destination-check { margin-left: auto; width: 18px; height: 18px; color: var(--green); opacity: 0; }
.demo-controls { border-top: 1px solid var(--border); padding: 16px 20px; }
.demo-steps { display: flex; align-items: center; justify-content: space-between; }
.demo-steps button { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; min-height: 44px; background: none; color: var(--muted); border: 0; padding: 5px 3px; border-radius: 4px; }
.demo-steps button span { display: inline-flex; align-items: center; justify-content: center; height: 23px; width: 23px; border: 1px solid #ccd2de; border-radius: 50%; font-size: .7rem; }
.demo-steps button b { font-size: .77rem; font-weight: 550; }
.demo-steps button[aria-pressed='true'] { color: var(--red); }
.demo-steps button[aria-pressed='true'] span { background: var(--red); border-color: var(--red); color: white; }
.demo-steps button:hover { background: #f8f0f2; }
.step-connector { height: 1px; background: #dbe0e8; flex: 1; max-width: 25px; margin: 0 7px; }
.demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy); color: white; padding: 10px 13px 10px 20px; border-radius: 0 0 10px 10px; }
.demo-footer > span { font-size: .75rem; line-height: 1.5; }
.demo-next { background: #354157; color: white; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 5px; }
.demo-next:hover { background: var(--red); }
.demo-next .icon { width: 18px; height: 18px; }
.demo-disclaimer { text-align: center; margin-top: 16px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.demo-shell[data-stage='1'] .scan-outline, .demo-shell[data-stage='2'] .scan-outline { display: none; }
.demo-shell[data-stage='2'] .demo-destination { background: #edf8f2; border-color: #c6e2d5; }
.demo-shell[data-stage='2'] .destination-check { opacity: 1; }
.signature-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 70px; padding-top: 25px; padding-bottom: 27px; border-top: 1px solid var(--border); }
.signature-row span:first-child { font-size: .875rem; font-weight: 650; }
.signature-row span:last-child { font-size: .8rem; color: var(--muted); }
.section { padding-block: 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 53px; }
h2 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 700; margin-top: 17px; }
.section-heading > p { color: var(--muted); font-size: 1rem; line-height: 1.75; padding-bottom: 3px; }
.workflow { background: var(--surface); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.workflow-step { padding: 0 38px; border-left: 1px solid #dce1e9; }
.workflow-step:first-child { border: 0; padding-left: 0; }
.workflow-step:last-child { padding-right: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step-number { color: #737d8f; font-size: .875rem; font-weight: 500; }
.feature-icon { display: inline-flex; width: 45px; height: 45px; align-items: center; justify-content: center; border: 1px solid #dce1e8; border-radius: 9px; color: var(--navy); background: white; }
.feature-icon .icon { width: 23px; height: 23px; }
h3 { font-size: 1.5rem; line-height: 1.24; letter-spacing: -.027em; font-weight: 650; }
.workflow-step h3 { font-size: 1.85rem; }
.workflow-step p { color: var(--muted); line-height: 1.8; margin-top: 17px; font-size: 1rem; }
.step-outcome { display: block; margin-top: 27px; font-size: .8rem; font-weight: 550; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; overflow: hidden; }
.feature-card h3 { margin-top: 23px; }
.feature-card p { margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.custom-card { grid-column: span 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; padding: 36px; }
.form-example { background: white; border: 1px solid #e0e5ec; box-shadow: 0 10px 25px -17px rgb(23 31 48 / .2); border-radius: 8px; padding: 20px; min-width: 0; }
.example-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 18px; }
.category-badge { color: #ad123b; background: #fbeaf0; padding: 5px 9px; font-size: .7rem; border-radius: 4px; }
.example-label { font-size: .75rem; }
.form-example > strong { font-size: .95rem; font-weight: 650; }
.example-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 12px; margin-top: 23px; }
.example-fields > div { min-width: 0; }
.example-fields span { font-size: .75rem; color: var(--muted); display: block; margin-bottom: 6px; }
.example-fields b { display: block; border-bottom: 1px solid var(--border); padding-bottom: 9px; font-size: .8rem; font-weight: 500; overflow-wrap: anywhere; }
.form-file { display: flex; align-items: center; gap: 7px; background: var(--surface); border-radius: 5px; margin-top: 22px; padding: 10px; color: #4f596b; font-size: .65rem; line-height: 1.6; overflow-wrap: anywhere; }
.form-file .icon { width: 15px; height: 15px; }
.smart-card { background: var(--navy); border-color: var(--navy); color: white; }
.smart-card .feature-icon { border-color: #455065; background: #2d374b; color: white; }
.smart-card p { color: #c4cbd7; }
.extraction-example { border-top: 1px solid #3c4659; margin-top: 25px; padding-top: 21px; display: grid; }
.extraction-example > span:first-child { color: #c4cbd7; font-size: .8rem; }
.extraction-example > strong { font-size: 2rem; letter-spacing: -.04em; font-weight: 500; margin-top: 6px; }
.validation-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; color: #bbdbcc; font-size: .75rem; }
.validation-tag .icon { width: 16px; height: 16px; }
.platform-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 25px; }
.platform-pills span { font-size: .75rem; background: white; border: 1px solid #dce2ea; padding: 6px 9px; border-radius: 5px; }
.organization-card { grid-column: span 2; display: grid; grid-template-columns: 45px 1fr; gap: 0 24px; padding: 38px; }
.organization-card h3 { margin-top: 0; }
.organization-card p { max-width: 485px; }
.category-list { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 2; margin-top: 24px; }
.category-list span { font-size: .8rem; padding: 8px 12px; border: 1px solid #dce2ea; background: white; border-radius: 5px; }
.category-list span:first-child { color: #b70e3b; border-color: #edd8df; background: #fdf4f7; }
.microsoft-section { background: var(--navy); color: white; padding-block: 87px; }
.microsoft-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 90px; align-items: center; }
.microsoft-copy .eyebrow { color: #c1cad8; }
.microsoft-copy h2 { font-size: clamp(2.2rem, 3.3vw, 3rem); }
.microsoft-copy > p:not(.eyebrow) { margin-top: 23px; font-size: 1.05rem; color: #c4cbd7; line-height: 1.8; max-width: 460px; }
.integration-pills { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.integration-pills span { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.integration-pills .icon { width: 21px; height: 21px; color: #b6c8ec; }
.route-example { background: #212b3e; border: 1px solid #3b4558; border-radius: 10px; padding: 23px; }
.route-example-header { display: flex; align-items: center; gap: 9px; font-size: .85rem; padding-bottom: 22px; border-bottom: 1px solid #3b4558; margin-bottom: 20px; }
.route-example-header .example-label { margin-left: auto; color: #b6c0d1; font-size: .65rem; }
.route-example-header .icon { width: 19px; height: 19px; }
.folder-row { display: flex; align-items: center; gap: 9px; color: #c6cfdd; font-size: .875rem; min-height: 38px; }
.folder-row .icon { width: 19px; height: 19px; color: #a0b0c8; }
.folder-branch { margin-left: 8px; padding-left: 16px; border-left: 1px solid #4a566c; }
.routed-file { display: flex; align-items: center; gap: 10px; background: #303b51; border: 1px solid #576176; padding: 14px 12px; border-radius: 5px; margin-top: 6px; font-size: .8rem; line-height: 1.65; overflow-wrap: anywhere; }
.routed-file .icon { width: 18px; height: 18px; }
.routed-file .icon:last-child { margin-left: auto; color: #a7dbbf; }
.route-example-footer { font-size: .75rem; margin-top: 24px; color: #b8c3d5; }
.trial-section { background: var(--surface); }
.trial-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 70px; }
.trial-copy { padding-top: 24px; }
.trial-copy h2 { font-size: clamp(2rem, 3.1vw, 2.7rem); }
.trial-copy > p:not(.eyebrow) { margin-top: 23px; font-size: 1rem; color: var(--muted); line-height: 1.8; }
.trial-benefits { margin-top: 30px; display: grid; gap: 17px; }
.trial-benefits p { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.6; }
.trial-benefits .icon { color: var(--red); width: 19px; height: 19px; margin-top: 3px; }
.trial-copy .trial-contact-note { border-top: 1px solid #dce2ea; padding-top: 24px; margin-top: 30px; font-size: .875rem; }
.trial-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 34px; box-shadow: 0 15px 35px -28px rgb(23 31 48 / .25); min-width: 0; }
.trial-card h3 { font-size: 1.5rem; }
.form-intro { margin-top: 11px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.trial-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 18px; margin-top: 28px; }
.trial-field { min-width: 0; }
.trial-field-wide { grid-column: 1 / -1; }
.trial-field label { display: block; font-size: .875rem; font-weight: 550; line-height: 1.6; margin-bottom: 8px; }
.trial-field label > span:not(.optional-label), .trial-consent label > span { color: var(--red); }
.optional-label { color: var(--muted); font-weight: 400; font-size: .875rem; }
.trial-field input, .trial-field textarea { width: 100%; min-height: 48px; padding: 11px 12px; background: white; color: var(--navy); border: 1px solid #bac3d1; border-radius: 6px; font-size: 1rem; line-height: 1.6; transition: border-color .2s; }
.trial-field textarea { display: block; min-height: 120px; resize: vertical; }
.trial-field input:hover, .trial-field textarea:hover { border-color: #79869b; }
.trial-field input[aria-invalid='true'], .trial-field textarea[aria-invalid='true'] { border-color: var(--red); }
.trial-field textarea::placeholder { color: #687284; opacity: 1; }
.field-help { display: block; margin-top: 8px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.field-error { display: block; color: #a00026; font-size: .875rem; line-height: 1.6; margin-top: 6px; }
.trial-consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 25px; }
.trial-consent input { appearance: auto; width: 19px; height: 19px; accent-color: var(--red); flex-shrink: 0; margin: 4px 0 0; cursor: pointer; }
.trial-consent label { font-size: .875rem; line-height: 1.7; cursor: pointer; }
.form-privacy { color: var(--muted); font-size: .875rem; line-height: 1.7; margin-top: 17px; }
.trial-submit { width: 100%; margin-top: 25px; font-size: 1rem; }
.trial-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.form-submit-status { font-size: .875rem; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.form-submit-status:empty { margin: 0; }
.form-feedback { margin-top: 21px; padding: 13px 15px; border-radius: 6px; font-size: 1rem; line-height: 1.65; }
.form-feedback-error { background: #fff1f4; border: 1px solid #edc5ce; color: #8d1230; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trial-success { padding-block: 40px; }
.trial-success-icon { display: flex; width: 57px; height: 57px; align-items: center; justify-content: center; color: var(--green); background: #edf8f2; border-radius: 50%; margin-bottom: 23px; }
.trial-success h3 { font-size: 1.65rem; }
.trial-success p { margin-top: 17px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.trial-success strong { color: var(--navy); font-weight: 550; overflow-wrap: anywhere; }
.trial-success .text-link { margin-top: 21px; font-size: .875rem; }
.closing-section { padding-block: 80px; background: var(--surface); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.closing-inner h2 { font-size: clamp(2rem, 3vw, 2.65rem); margin-top: 12px; }
.closing-inner p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.site-footer { background: white; }
.footer-main { display: flex; align-items: center; gap: 35px; padding-block: 40px; }
.footer-main .brand img { width: 164px; }
.footer-main > span { font-size: .85rem; color: var(--muted); }
.footer-main > a:last-child { display: flex; align-items: center; gap: 9px; margin-left: auto; font-size: .8rem; min-height: 44px; }
.footer-main > a:last-child .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 23px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; line-height: 1.6; }

/* Interface text stays readable independently of the compact sample document. */
.panel-heading, .field-display > span, .field-display > strong, .recognition-note,
.demo-destination strong, .demo-steps button b { font-size: .875rem; }
.demo-destination > div > span { font-size: .75rem; }
.invoice-meta, .invoice-row, .invoice-total, .sample-tag { font-size: .75rem; }
.invoice-type, .invoice-top, .form-file { font-size: .75rem; }
.demo-body { grid-template-columns: 1fr 1fr; }
.document-preview { padding-inline: 14px; }
.sample-tag { left: 14px; font-size: .75rem; letter-spacing: .025em; }
.invoice-row { flex-wrap: wrap; }
.invoice-row > span:first-child { max-width: 115px; }
.category-badge { font-size: .75rem; }

@media (min-width: 1600px) {
    .hero { padding-top: 100px; }
    .hero-grid { gap: 70px; }
}
@media (max-width: 1150px) {
    .container { width: calc(100% - 72px); }
    .navigation { gap: 20px; font-size: .85rem; }
    .brand img { width: 168px; }
    .hero-grid { gap: 30px; grid-template-columns: .9fr 1.1fr; }
    h1 { font-size: 3.7rem; }
    .hero-actions { gap: 12px; }
    .hero-actions .button { padding-inline: 19px; }
    .demo-body { padding: 16px 15px; gap: 12px; }
    .document-preview { padding-inline: 12px; }
    .demo-destination { margin-inline: 15px; padding: 12px; }
    .demo-steps button { gap: 5px; }
    .step-connector { margin-inline: 3px; }
    .custom-card { padding: 28px; gap: 20px; }
    .feature-card { padding: 28px; }
    .custom-card { grid-template-columns: 1fr; }
    .feature-card-copy h3 br { display: none; }
    .form-example { max-width: 100%; }
    .smart-card { display: flex; flex-direction: column; }
    .extraction-example { margin-top: auto; padding-top: 25px; }
    .microsoft-grid { gap: 50px; }
    .trial-grid { gap: 36px; }
    .trial-card { padding: 28px; }
    .trial-fields { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .container { width: calc(100% - 48px); }
    .header-inner { min-height: 78px; }
    .navigation { gap: 17px; }
    .navigation > a:not(.button) { font-size: .8rem; }
    .navigation > a:nth-child(3) { display: none; }
    .hero { padding-top: 55px; }
    .hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .hero-copy { max-width: 610px; }
    h1 { font-size: clamp(3.5rem, 7.5vw, 4.8rem); }
    .hero-detail { max-width: 490px; }
    .hero-visual { width: min(100%, 650px); justify-self: center; }
    .hero-visual::before { inset: 0 -6px 55px 22px; }
    .demo-body { gap: 28px; padding: 22px 28px; }
    .document-preview { min-height: 290px; padding: 22px 20px 35px; }
    .invoice-row > span:first-child { max-width: 150px; }
    .invoice-top b { font-size: 1.1rem; }
    .invoice-type { margin-top: 27px; }
    .sample-tag { left: 20px; }
    .recognition-panel { padding-top: 7px; }
    .panel-heading { margin-bottom: 19px; }
    .field-display { margin-top: 13px; }
    .field-display > strong { min-height: 39px; }
    .demo-destination { margin-inline: 28px; padding: 16px; }
    .demo-controls { padding-inline: 40px; }
    .demo-steps button b { font-size: .875rem; }
    .step-connector { max-width: 60px; }
    .signature-row { margin-top: 37px; }
    .section { padding-block: 72px; }
    .section-heading { gap: 22px; }
    .section-heading > p { max-width: 250px; }
    .workflow-step { padding-inline: 23px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .custom-card { grid-column: span 2; grid-template-columns: 1fr 1.1fr; }
    .feature-card-copy h3 br { display: initial; }
    .organization-card { grid-column: span 2; }
    .smart-card .extraction-example { margin-top: 25px; }
    .microsoft-grid { gap: 30px; grid-template-columns: 1fr 1fr; }
    .microsoft-copy h2 { font-size: 2.2rem; }
    .route-example { padding: 18px; }
    .route-example-header { flex-wrap: wrap; }
    .folder-branch { padding-left: 11px; }
    .footer-main { gap: 24px; }
    .trial-grid { grid-template-columns: 1fr; gap: 35px; }
    .trial-copy { padding-top: 0; }
    .trial-copy > p:not(.eyebrow) { max-width: 600px; }
    .trial-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
    html { scroll-padding-top: 95px; }
    .container { width: calc(100% - 40px); }
    .header-inner { min-height: 74px; }
    .brand img { width: 158px; }
    .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--border); background: white; border-radius: 6px; }
    .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--navy); transition: transform .2s; }
    .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
    .navigation { display: none; position: absolute; top: 74px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 15px 20px 23px; box-shadow: 0 15px 20px rgb(23 31 48 / .05); }
    .navigation.is-open { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
    .navigation > a:not(.button), .navigation > a:nth-child(3) { display: block; font-size: 1rem; padding: 14px 5px; }
    .navigation > .button { margin-top: 10px; }
    .hero { padding-top: 44px; }
    .hero-grid { gap: 32px; }
    .eyebrow { font-size: .75rem; letter-spacing: .1em; }
    h1 { margin-top: 20px; font-size: clamp(2.75rem, 9.9vw, 3.9rem); letter-spacing: -.055em; line-height: 1.12; }
    .hero-description { font-size: 1.12rem; margin-top: 25px; }
    .hero-detail { font-size: 1rem; margin-top: 12px; line-height: 1.7; }
    .hero-actions { gap: 7px 21px; margin-top: 25px; }
    .hero-actions .button { padding-inline: 18px; min-height: 54px; font-size: .9rem; }
    .hero-platforms { gap: 23px; margin-top: 20px; font-size: .8rem; }
    .hero-visual { padding-top: 13px; }
    .hero-visual::before { inset: 2px -9px 64px 15px; transform: rotate(2deg); }
    .demo-topbar { padding: 15px; }
    .demo-topbar img { width: 97px; }
    .demo-label { font-size: .75rem; letter-spacing: 0; }
    .demo-toolbar { padding: 15px 15px 0; }
    .demo-body { padding: 17px 14px; gap: 12px; grid-template-columns: 1fr; }
    .document-preview { min-height: 0; padding: 16px 18px 34px; }
    .invoice-top { float: left; margin-right: 16px; }
    .invoice-top .icon { display: none; }
    .invoice-top b { font-size: 1rem; }
    .invoice-type { margin-top: 0; text-align: right; }
    .invoice-meta { text-align: right; gap: 3px; }
    .invoice-divider { clear: both; margin-top: 12px; margin-bottom: 9px; }
    .invoice-row { font-size: .75rem; }
    .invoice-row > span:first-child { max-width: none; }
    .invoice-total { margin-top: 8px; padding-top: 8px; font-size: .8rem; }
    .sample-tag { bottom: 8px; left: 18px; }
    .recognition-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 3px; }
    .panel-heading { grid-column: span 2; margin: 0; font-size: .8rem; }
    .field-display { margin-top: 0; }
    .field-display > span { font-size: .75rem; }
    .field-display > strong { font-size: .8rem; min-height: 37px; }
    .recognition-note { margin: 0; font-size: .75rem; align-self: center; }
    .demo-edit { margin: 0; }
    .demo-edit select { font-size: 1rem; }
    .demo-shell[data-stage='1'] .recognition-note { grid-column: span 2; }
    .demo-destination { margin: 0 14px 15px; padding: 12px 10px; gap: 8px; }
    .destination-icon { width: 29px; height: 33px; }
    .demo-destination > div > span { font-size: .75rem; letter-spacing: 0; line-height: 1.5; }
    .demo-destination strong { font-size: .8rem; }
    .demo-controls { padding: 11px 12px; }
    .demo-steps button { gap: 5px; flex-direction: column; padding: 4px; }
    .demo-steps button b { font-size: .8rem; }
    .step-connector { margin-top: -19px; max-width: 45px; }
    .demo-footer { padding-left: 13px; }
    .demo-footer > span { font-size: .75rem; max-width: 245px; }
    .demo-disclaimer { font-size: .75rem; padding-inline: 7px; }
    .signature-row { display: block; padding-block: 23px; }
    .signature-row span { display: block; }
    .signature-row span:last-child { margin-top: 9px; font-size: .8rem; line-height: 1.7; }
    .section { padding-block: 57px; }
    .section-heading { display: block; margin-bottom: 35px; }
    h2 { font-size: 2rem; letter-spacing: -.045em; margin-top: 14px; line-height: 1.2; }
    .section-heading > p { max-width: none; margin-top: 19px; font-size: 1rem; }
    .desktop-only { display: none; }
    .workflow-grid { grid-template-columns: 1fr; gap: 28px; }
    .workflow-step, .workflow-step:first-child, .workflow-step:last-child { padding: 0 0 26px; border: 0; border-bottom: 1px solid #dce1e9; }
    .workflow-step:last-child { border-bottom: 0; padding-bottom: 0; }
    .step-head { margin-bottom: 13px; }
    .workflow-step h3 { font-size: 1.65rem; }
    .workflow-step p { margin-top: 12px; }
    .step-outcome { margin-top: 16px; font-size: .85rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card, .custom-card, .organization-card { grid-column: auto; padding: 25px; display: block; }
    .feature-card h3 { margin-top: 20px; font-size: 1.5rem; }
    .feature-card p { font-size: 1rem; line-height: 1.75; }
    .form-example { margin-top: 26px; padding: 17px; }
    .example-fields { gap: 15px 10px; }
    .example-fields b { font-size: .8rem; }
    .category-list { margin-top: 22px; }
    .microsoft-section { padding-block: 57px; }
    .microsoft-grid { grid-template-columns: 1fr; gap: 37px; }
    .microsoft-copy h2 { font-size: 2rem; }
    .microsoft-copy > p:not(.eyebrow) { font-size: 1rem; margin-top: 20px; }
    .route-example { padding: 20px; }
    .route-example-header { font-size: .8rem; }
    .route-example-header .example-label { font-size: .75rem; }
    .folder-branch { padding-left: 15px; }
    .routed-file { font-size: .8rem; }
    .closing-section { padding-block: 56px; }
    .trial-grid { gap: 28px; }
    .trial-card { padding: 23px 20px; }
    .trial-fields { grid-template-columns: 1fr; gap: 20px; }
    .trial-copy h2 { font-size: 2rem; }
    .trial-copy h2 br { display: none; }
    .trial-copy .trial-contact-note { margin-top: 24px; padding-top: 20px; }
    .trial-benefits { margin-top: 24px; }
    .trial-success { padding-block: 20px; }
    .closing-inner { display: block; }
    .closing-inner .button { margin-top: 27px; }
    .footer-main { padding-block: 31px; flex-wrap: wrap; gap: 16px; }
    .footer-main > span { order: 3; width: 100%; }
    .footer-main .brand img { width: 155px; }
    .footer-bottom { flex-wrap: wrap; gap: 14px; font-size: .75rem; }
    .footer-bottom span:nth-child(2) { order: 3; width: 100%; }
    .footer-bottom span:last-child { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Confirmation page for the portable hosting export. */
.confirmation-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--surface); }
.confirmation-main { flex: 1; padding-block: clamp(36px, 7vw, 90px); display: grid; place-items: center; }
.confirmation-card { width: min(100%, 660px); padding: clamp(24px, 5vw, 64px); border: 1px solid var(--border); border-radius: 22px; background: var(--white); text-align: center; }
.confirmation-card .trial-success-icon { margin: 0 auto 26px; }
.confirmation-card h1 { margin: 20px 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.05em; }
.confirmation-description { color: var(--muted); line-height: 1.8; max-width: 440px; margin-inline: auto; }
.confirmation-card > .button { margin-top: 30px; }
.confirmation-contact { margin-top: 28px; font-size: .9rem; color: var(--muted); line-height: 1.9; }
.confirmation-page .site-footer { background: var(--white); }
@media (max-width: 650px) {
    .confirmation-page .header-inner { flex-wrap: wrap; padding-block: 18px; }
    .confirmation-page .header-inner > .text-link { font-size: .8rem; }
    .confirmation-card > .button { width: 100%; padding-inline: 14px; font-size: .86rem; }
}
