:root {
    --ink: #12161f;
    --muted: #667085;
    --line: #e4e7ec;
    --paper: #ffffff;
    --soft: #f6f7f9;
    --brand: #2457f5;
    --brand-dark: #1746d8;
    --accent: #eef3ff;
    --danger: #c9362b;
    --warning: #8a5200;
    --success: #1b7f5a;
    --danger-bg: #fff0ee;
    --warning-bg: #fff4dc;
    --success-bg: #eaf7f1;
    --radius: 20px;
    --radius-control: 12px;
    --ease-standard: cubic-bezier(.22, 1, .36, 1);
    --shadow: 0 16px 42px rgba(16, 24, 40, .07);
    --shadow-raised: 0 24px 64px rgba(16, 24, 40, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
main { background: var(--paper); }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.container { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.container.narrow { max-width: 820px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(228,231,236,.92); backdrop-filter: blur(9px); }
.nav-wrap { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--brand); color: white; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.main-nav, .account-nav, .cabinet-links { display: flex; align-items: center; gap: 22px; }
.main-nav { justify-content: center; }
.main-nav a, .account-nav a, .cabinet-links a { color: var(--ink); font-size: 14px; font-weight: 650; }
.account-nav form { margin: 0; }
.mobile-menu-toggle, .mobile-menu-shell { display: none; }
.link-button { border: 0; padding: 0; background: none; color: var(--ink); cursor: pointer; font-weight: 650; }
.cabinet-bar { position: sticky; top: 78px; z-index: 18; background: var(--ink); color: white; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.cabinet-links { min-height: 48px; overflow-x: auto; scrollbar-width: thin; }
.cabinet-links a, .cabinet-links span { color: white; white-space: nowrap; font-size: 13px; }
.cabinet-links span { opacity: .66; margin-right: auto; }
.cabinet-links a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 4px; text-decoration: none; transition: color 180ms ease, background-color 180ms ease; }
.cabinet-links a:hover { color: #c7d4ff; }

h1, h2, h3 { margin: 0 0 .6em; font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 5vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.52; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.hero { padding: 94px 0 78px; background: radial-gradient(circle at 85% 20%, #d9f0ea 0, rgba(217,240,234,0) 32%), linear-gradient(180deg, #fbfdfd 0, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 70px; align-items: center; }
.hero-card { padding: 34px; border: 1px solid #cbe1dc; border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.hero-card h2 { font-size: 34px; }
.hero-card-label { color: var(--brand); font-weight: 800; }
.impact-band { padding: 42px 0; background: var(--brand); color: white; }
.impact-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: center; }
.impact-grid > strong { font-size: clamp(44px, 7vw, 82px); line-height: .98; letter-spacing: -.06em; }
.impact-grid h2 { margin-bottom: 8px; }
.impact-grid p { margin-bottom: 8px; color: #d9f5ef; font-size: 18px; }
.impact-grid small { color: #bce0da; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--brand); border-radius: var(--radius-control); background: var(--brand); color: white; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 200ms var(--ease-standard), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.button:hover { transform: translateY(-1px); background: var(--brand-dark); color: white; text-decoration: none; box-shadow: 0 8px 20px rgba(36, 87, 245, .17); }
.button:active { transform: translateY(0); box-shadow: none; }
.button-secondary { border-color: #d0d5dd; background: white; color: var(--ink); }
.button-secondary:hover { background: var(--accent); color: var(--brand-dark); }
.button-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.button-danger { border-color: var(--danger); background: var(--danger); }
.button-light { border-color: white; background: white; color: var(--ink); }
.button-light:hover { border-color: var(--accent); background: var(--accent); color: var(--brand-dark); }
.nav-cta { color: white !important; white-space: nowrap; }
.button[disabled], .button.is-disabled, [aria-disabled="true"].button { transform: none; border-color: #98a2b3; background: #98a2b3; box-shadow: none; cursor: not-allowed; pointer-events: none; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { border-color: #d0d5dd; background: #f2f4f7; color: #667085; cursor: not-allowed; }
::placeholder { color: #667085; opacity: 1; }
.final-cta :focus-visible, .speed-section :focus-visible, .cabinet-bar :focus-visible, .auth-aside :focus-visible { outline-color: white; }

.home-hero { padding: 104px 0 88px; background: radial-gradient(circle at 83% 14%, #d9f0ea 0, rgba(217,240,234,0) 34%), linear-gradient(180deg, #fbfdfd 0, #fff 100%); }
.home-hero-content { max-width: 1040px; }
.home-hero h1 { max-width: 900px; }
.home-hero .lead { max-width: 940px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; list-style: none; }
.hero-proof li { display: flex; align-items: center; }
.hero-proof li:not(:last-child)::after { content: "·"; margin: 0 14px; color: var(--brand); font-size: 20px; }
.hero-proof sup { margin-left: 2px; }
.home-section-head { max-width: 780px; margin-bottom: 34px; }
.home-section-head > :last-child { margin-bottom: 0; }
.direction-grid, .help-grid { margin-top: 0; }
.direction-card, .help-card { position: relative; overflow: hidden; }
.direction-card { min-height: 245px; padding-top: 72px; }
.direction-code, .service-number { position: absolute; top: 26px; right: 28px; color: #a8b5c3; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.direction-card h3 { font-size: 30px; }
.direction-card p, .help-card p { margin-bottom: 0; }
.help-card { min-height: 260px; padding-top: 68px; }
.home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-steps li { min-height: 230px; }

.value-section { padding: 86px 0; background: var(--ink); color: white; }
.value-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.value-section .eyebrow { color: #78d5c7; }
.value-section h2 { margin-bottom: 0; }
.value-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.value-list li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid rgba(255,255,255,.14); color: #e5edf5; font-weight: 650; }
.value-list li::before { content: "✓"; position: absolute; top: 18px; left: 0; color: #78d5c7; font-weight: 900; }

.package-layout { display: grid; gap: 46px; }
.package-copy { max-width: 860px; }
.package-copy > :last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.package-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); list-style: none; }
.package-flow li { position: relative; padding: 30px; }
.package-flow li:not(:last-child) { border-right: 1px solid var(--line); }
.package-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -15px; display: grid; width: 30px; height: 30px; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--brand); font-weight: 900; }
.package-flow strong, .package-flow span { display: block; }
.package-flow strong { font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.package-flow span { margin-top: 9px; color: var(--muted); }

.result-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.deliverables-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; list-style: none; }
.deliverables-list li { position: relative; padding: 17px 0 17px 30px; border-bottom: 1px solid var(--line); font-weight: 650; }
.deliverables-list li::before { content: "✓"; position: absolute; top: 17px; left: 0; color: var(--brand); font-weight: 900; }

.home-cta { padding: 84px 0; }
.home-cta-box { padding: 54px; border-radius: 28px; background: var(--ink); color: white; }
.home-cta-box > div:first-child { max-width: 840px; }
.home-cta-box .eyebrow { color: #78d5c7; }
.home-cta-box p { color: #c8d2df; }
.home-cta-box .actions { margin-top: 28px; }

.section { padding: 88px 0 96px; }
.section-muted { background: var(--soft); }
.page-head { padding: 88px 0 72px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 980px; }
.page-head .actions { margin-top: 32px; }
.card-grid { display: grid; gap: 20px; margin-top: 34px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: none; transition: transform 210ms var(--ease-standard), border-color 210ms ease, box-shadow 210ms ease; }
.card:hover { transform: translateY(-3px); border-color: #c7d4ff; box-shadow: 0 14px 34px rgba(16,24,40,.055); }
.card h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.card .number { display: block; margin-bottom: 25px; color: var(--brand); font-size: 13px; font-weight: 800; }
.card p { color: var(--muted); }
.tag, .status { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--brand-dark); font-size: 12px; font-weight: 700; line-height: 1.35; }
.status-error, .status-changes_required, .status-rejected_security, .status-cancelled, .status-refunded, .status-failed { background: var(--danger-bg); color: var(--danger); }
.status-warning, .status-warnings, .status-manual_review, .status-ambiguous, .status-awaiting_client, .status-awaiting_payment, .status-partial_success { background: var(--warning-bg); color: var(--warning); }
.status-ready, .status-completed, .status-paid, .status-success { background: var(--success-bg); color: var(--success); }
.status-pending, .status-draft, .status-skipped, .status-not_billed, .status-not_required { background: #f2f4f7; color: #475467; }
.status-queued, .status-running, .status-quote_preparing, .status-paid_queued, .status-operator_review, .status-ready_for_work, .status-in_progress { background: var(--accent); color: var(--brand-dark); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; counter-reset: steps; list-style: none; }
.steps li { min-height: 180px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.steps li::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 26px; color: var(--brand); font-weight: 800; }
.steps strong, .steps span { display: block; }
.steps span { margin-top: 8px; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.metric-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line); }
.metric-card div { padding: 28px; background: white; }
.metric-card span, .metric-card small { display: block; }
.metric-card span { font-size: 38px; font-weight: 850; letter-spacing: -.05em; }
.metric-card small { color: var(--muted); }
.cta-section { padding: 0 0 84px; }
.cta-box { display: flex; justify-content: space-between; gap: 40px; align-items: center; padding: 44px; border-radius: 26px; background: var(--ink); color: white; }
.cta-box .eyebrow { color: #78d5c7; }
.cta-box p { color: #c8d2df; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(28px, 3vw, 34px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #344054; }
.wide-prose { max-width: 980px; }
.wide-prose > h2, .wide-prose > h3, .wide-prose > p, .wide-prose > ul, .wide-prose > ol, .wide-prose > .callout { max-width: 820px; }
.callout { margin: 0 0 34px; padding: 24px 28px; border: 1px solid #d7e1ff; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--accent); }
pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #101c2b; color: #e8f4f1; }
code { padding: 2px 6px; border-radius: 5px; background: var(--soft); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
table { width: 100%; margin: 28px 0; border: 1px solid var(--line); border-spacing: 0; border-radius: 14px; background: white; font-size: 14px; }
th, td { min-height: 56px; padding: 17px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f2f4f7; color: var(--ink); font-size: 13px; font-weight: 700; }
.prose th { position: sticky; top: 78px; z-index: 2; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 180ms ease; }
tbody tr:hover { background: #f7f9ff; }

.form-card { max-width: 720px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 36px rgba(16,24,40,.055); }
.form-card:not(:has(input[type="file"])) { max-width: 560px; }
.form-card:has(input[type="file"]) { max-width: 820px; }
.form-card h2 { font-size: clamp(26px, 3vw, 32px); }
form p { margin: 0 0 18px; }
label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="url"], select, textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid #b8c2cf; border-radius: var(--radius-control); background: white; color: var(--ink); transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
textarea { min-height: 128px; resize: vertical; }
input[type="file"] { width: 100%; min-height: 180px; padding: 52px 24px; border: 1px dashed #98a2b3; border-radius: var(--radius-control); background: #fbfcfe; color: var(--muted); cursor: pointer; }
input[type="file"]::file-selector-button { min-height: 42px; margin-right: 16px; padding: 0 16px; border: 1px solid #d0d5dd; border-radius: 10px; background: white; color: var(--ink); font-weight: 600; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: #8593a6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36,87,245,.12); }
.helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.errorlist { padding: 10px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: 13px; list-style: none; }

/* Compact account access flow */
.auth-page { display: flex; min-height: 100vh; flex-direction: column; background: var(--soft); }
.auth-page main { display: flex; flex: 1; background: var(--soft); }
.auth-stage { display: flex; width: 100%; padding: 58px 0 72px; align-items: flex-start; }
.auth-container { display: flex; justify-content: center; }
.auth-container-compact { max-width: 520px; }
.auth-container-wide { max-width: 900px; }
.auth-card { position: relative; width: 100%; padding: 38px; overflow: hidden; border: 1px solid #d8dee8; border-radius: 20px; background: rgba(255,255,255,.99); box-shadow: 0 16px 42px rgba(16,24,40,.08); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }
.auth-card-wide { padding: 40px 44px; }
.auth-card-head { position: relative; padding: 0 58px 24px 0; border-bottom: 1px solid var(--line); }
.auth-card-head .eyebrow { margin-bottom: 8px; }
.auth-card-head h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 38px); }
.auth-card-head > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.auth-mark { position: absolute; top: 0; right: 0; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--accent); color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.auth-form { margin-top: 26px; }
.auth-form > .auth-field + .auth-field { margin-top: 18px; }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.auth-field { min-width: 0; }
.auth-field-wide { grid-column: 1 / -1; }
.auth-field label { margin-bottom: 7px; font-size: 14px; line-height: 1.35; }
.auth-field input, .auth-field select, .auth-field textarea { min-height: 52px; border-color: #c6cfda; border-radius: var(--radius-control); background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.auth-field input:hover, .auth-field select:hover, .auth-field textarea:hover { border-color: #98a7b9; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36,87,245,.1); }
.auth-field.has-error input, .auth-field.has-error select, .auth-field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.auth-help { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-help ul { margin: 6px 0 0; padding-left: 18px; }
.auth-optional { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.auth-alert { margin-bottom: 18px; }
.auth-alert .errorlist, .auth-field-errors .errorlist { margin: 0; padding: 9px 11px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.auth-field-errors { margin-top: 7px; }
.auth-consents { display: grid; gap: 10px; margin-top: 22px; }
.auth-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 11px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.auth-check:hover { border-color: #c6cfda; background: #f8faff; }
.auth-check.has-error { border-color: rgba(201,54,43,.46); background: #fffafa; }
.auth-check input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.auth-check label { margin: 0; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.55; }
.auth-check .auth-field-errors { grid-column: 2; }
.auth-submit { width: 100%; margin-top: 24px; }
.auth-card-wide .auth-submit { width: auto; min-width: 250px; }
.auth-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-links a { font-size: 13px; font-weight: 650; line-height: 1.4; }
.auth-links a:last-child { text-align: right; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { font-weight: 750; }
.auth-card-state { text-align: center; }
.auth-card-state .auth-form { margin-top: 18px; }
.auth-card-head-state { padding-right: 0; border-bottom: 0; }
.auth-state-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: #eaf7f1; color: var(--success); font-size: 22px; font-weight: 900; }
.auth-state-icon-warning { background: #fff5e5; color: var(--warning); }
.auth-state-icon-error { background: #fef0ef; color: var(--danger); }
.auth-card-state .auth-submit { margin-top: 8px; }

/* Shared B2B access shell for login and registration */
.auth-container-access { width: min(100% - 64px, 1040px); }
.auth-container-login, .auth-container-register { max-width: 1040px; }
.auth-card-access, .auth-card-access.auth-card-wide { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-width: 0; padding: 0; overflow: hidden; border-color: #d9e0ea; border-radius: 20px; background: white; box-shadow: 0 18px 48px rgba(16, 24, 40, .09); }
.auth-card-access::before { display: none; }
.auth-card-access-wide { grid-template-columns: 280px minmax(0, 1fr); }
.auth-main { min-width: 0; padding: 40px 44px 34px; background: rgba(255,255,255,.99); }
.auth-card-access-wide .auth-main { padding: 40px 44px 34px; }
.auth-card-access .auth-card-head { min-height: 128px; padding: 0 0 25px; }
.auth-card-access .auth-card-head h1 { max-width: 680px; margin-bottom: 10px; font-size: clamp(30px, 3.2vw, 38px); }
.auth-card-access .auth-form { margin-top: 26px; }
.auth-container-login .auth-card-head, .auth-container-login .auth-form, .auth-container-login .auth-links, .auth-container-login .auth-switch { width: 100%; max-width: 520px; margin-right: auto; margin-left: auto; }
.auth-card-access .auth-submit, .auth-card-access.auth-card-wide .auth-submit { width: 100%; min-width: 0; min-height: 52px; }
.auth-card-access-wide .auth-consents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-card-access-wide .auth-check { min-height: 70px; }

.auth-aside { position: relative; isolation: isolate; display: flex; min-width: 0; flex-direction: column; padding: 34px 28px 28px; overflow: hidden; background: #101828; color: white; }
.auth-aside::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%); }
.auth-aside::after { display: none; }
.auth-aside-brand { display: flex; gap: 11px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.auth-aside-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 11px; background: rgba(255,255,255,.1); color: white; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.auth-aside-content { margin-top: 44px; }
.auth-aside-eyebrow { margin: 0 0 12px; color: #9db6ff; font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.auth-aside-title { margin: 0 0 16px; color: white; font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(25px, 2.4vw, 30px); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; }
.auth-aside-copy { margin: 0; color: #c9d4e5; font-size: 14px; line-height: 1.65; }
.auth-aside-points { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.auth-aside-points li { position: relative; padding: 13px 0 13px 25px; border-top: 1px solid rgba(255,255,255,.12); color: #e6edf7; font-size: 13px; font-weight: 650; line-height: 1.45; }
.auth-aside-points li::before { content: ""; position: absolute; top: 20px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #78d5c7; box-shadow: 0 0 0 4px rgba(120,213,199,.12); }
.auth-aside-modules { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: auto 0 0; padding-top: 36px; color: #b8c5d8; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.auth-aside-modules i { width: 3px; height: 3px; border-radius: 50%; background: #6f91ff; }

.auth-card-access .auth-field input, .auth-card-access .auth-field select, .auth-card-access .auth-field textarea { min-height: 52px; padding: 13px 14px; border-radius: var(--radius-control); }
.auth-card-access .auth-field.has-error input, .auth-card-access .auth-field.has-error select, .auth-card-access .auth-field.has-error textarea { box-shadow: 0 0 0 3px rgba(201,54,43,.08); }
.auth-card-access .auth-field-errors .errorlist { padding: 0; background: transparent; color: var(--danger); }
.auth-card-access .auth-field-errors .errorlist li { position: relative; padding-left: 13px; }
.auth-card-access .auth-field-errors .errorlist li::before { content: ""; position: absolute; top: .62em; left: 1px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.auth-card-access .auth-check { padding: 14px 15px; border-radius: 12px; background: #f8fafc; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.auth-card-access .auth-check:hover { border-color: #aebbd0; background: #f6f8ff; }
.auth-card-access .auth-check:focus-within { border-color: rgba(36,87,245,.48); box-shadow: 0 0 0 3px rgba(36,87,245,.1); }
.auth-card-access .auth-check input[type="checkbox"] { width: 19px; height: 19px; }
.auth-card-access .auth-check label { padding-top: 1px; }
.auth-card-access .auth-links { align-items: start; }
.auth-card-access .auth-switch { margin-top: 22px; }

@media (max-width: 920px) {
    .auth-container-access { max-width: 760px; }
    .auth-card-access, .auth-card-access.auth-card-wide { grid-template-columns: 1fr; }
    .auth-aside { padding: 25px 30px 24px; }
    .auth-aside-content { margin-top: 25px; }
    .auth-aside-title { max-width: 620px; font-size: 24px; }
    .auth-aside-copy { max-width: 650px; }
    .auth-aside-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
    .auth-aside-points li { padding: 12px 10px 12px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; }
    .auth-aside-points li::before { top: 18px; left: 10px; width: 5px; height: 5px; box-shadow: none; }
    .auth-aside-modules { margin-top: 22px; padding-top: 0; }
}
.messages { padding-top: 18px; }
.message { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-control); background: white; }
.message-success { border-color: #b7dfce; background: var(--success-bg); color: var(--success); }
.message-error { border-color: #efc0ba; background: var(--danger-bg); color: var(--danger); }
.empty-state { max-width: 780px; padding: 48px; border: 1px dashed #98a2b3; border-radius: var(--radius); background: white; }
.price { color: var(--ink) !important; font-size: 25px; font-weight: 850; }
.container.narrow.faq-list { max-width: 880px; }
.faq-list details { padding: 0; border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; font-size: 19px; font-weight: 600; line-height: 1.4; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); font-size: 21px; font-weight: 500; transition: transform 300ms var(--ease-standard), background-color 300ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq-list details::details-content { overflow: clip; block-size: 0; opacity: 0; transition: block-size 300ms var(--ease-standard), content-visibility 300ms allow-discrete, opacity 260ms ease; }
.faq-list details[open]::details-content { block-size: auto; opacity: 1; }
.faq-list details p { margin: 0 48px 22px 0; color: var(--muted); }

.is-authenticated main { background: var(--soft); }
.is-authenticated .page-head { padding: 56px 0 44px; background: white; }
.is-authenticated .page-head h1 { font-size: clamp(38px, 4.5vw, 48px); }
.is-authenticated .section { padding: 56px 0 72px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dashboard-grid > .card { min-height: 220px; }
.summary-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.summary-strip div { padding: 22px; border-right: 1px solid var(--line); }
.summary-strip div:last-child { border-right: 0; }
.summary-strip strong, .summary-strip span { display: block; }
.summary-strip strong { font-family: Manrope, Inter, sans-serif; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.summary-strip span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.list-table { width: 100%; border-radius: 14px; background: white; }
.list-table th { position: sticky; top: 126px; z-index: 2; }
.list-table td:first-child, .list-table th:first-child { padding-left: 20px; }
.list-table td:last-child, .list-table th:last-child { padding-right: 20px; }
.file-list, .message-list { padding: 0; list-style: none; }
.file-list, .message-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.file-list li, .message-list li { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.file-list li:last-child, .message-list li:last-child { border-bottom: 0; }
.order-code { display: inline-block; padding: 12px 16px; border: 1px dashed var(--brand); border-radius: 10px; background: var(--accent); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.is-authenticated .result-grid { align-items: stretch; gap: 24px; }
.is-authenticated .result-grid > div:not(.form-card) { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.is-authenticated .result-grid h2 { font-size: clamp(26px, 3vw, 32px); }

.site-footer { padding: 56px 0; border-top: 1px solid var(--line); background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.footer-brand p { max-width: 520px; margin-top: 18px; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; align-content: start; }
.footer-links a { font-size: 14px; font-weight: 650; }

@media (max-width: 900px) {
    .nav-wrap { gap: 18px; }
    .main-nav, .account-nav { gap: 14px; }
    .main-nav a, .account-nav a { font-size: 13px; }
    .hero-grid, .impact-grid, .result-grid, .footer-grid { grid-template-columns: 1fr; }
    .card-grid.four, .card-grid.three, .card-grid.two, .steps, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .home-steps, .value-grid, .result-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-grid { gap: 48px; }
    .value-list { grid-template-columns: 1fr; }
    .summary-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .main-nav { display: none; }
}
@media (max-width: 620px) {
    .container { width: min(100% - 24px, 1180px); }
    .account-nav > a:first-child { display: none; }
    .auth-page .account-nav > a.auth-context-action { display: inline-flex; }
    .account-nav form { display: none; }
    .nav-wrap { gap: 14px; }
    .brand > span:last-child { display: none; }
    h1 { font-size: 38px; }
    .hero { padding-top: 58px; }
    .home-hero { padding: 64px 0 58px; }
    .section { padding: 60px 0; }
    .card-grid.four, .card-grid.three, .card-grid.two, .steps, .dashboard-grid { grid-template-columns: 1fr; }
    .home-steps, .value-grid, .value-list, .result-layout, .deliverables-list, .package-flow { grid-template-columns: 1fr; }
    .hero-proof { display: grid; gap: 8px; }
    .hero-proof li:not(:last-child)::after { display: none; }
    .value-section, .home-cta { padding: 60px 0; }
    .value-grid { gap: 34px; }
    .package-flow li:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
    .package-flow li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -15px; left: 28px; transform: none; }
    .home-cta-box { padding: 32px 24px; }
    .home-cta-box .actions .button { width: 100%; }
    .cta-box { display: block; }
    .cta-box .button { margin-top: 16px; }
    .footer-links { grid-template-columns: 1fr; }
    .summary-strip { grid-template-columns: 1fr; }
}

/* Product-led B2B homepage */
.home-page { background: var(--soft); }
.home-page main { overflow: hidden; background: var(--paper); font-size: 17px; }
.home-page .container { width: min(1280px, calc(100% - 96px)); }
.home-page .section { padding: 112px 0; }
.home-page h2 { font-size: clamp(38px, 4vw, 48px); }
.home-page h3 { font-size: clamp(22px, 2.2vw, 26px); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading > p:last-child:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.home-page .eyebrow { margin-bottom: 14px; font-size: 13px; letter-spacing: .13em; }

.product-hero { position: relative; padding: 104px 0 30px; overflow: hidden; background: var(--soft); }
.product-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(36,87,245,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(36,87,245,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 82%); pointer-events: none; }
.product-hero::after { content: ""; position: absolute; top: -240px; right: -180px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(36,87,245,.12), rgba(36,87,245,0) 68%); pointer-events: none; }
.product-hero > .container { position: relative; z-index: 1; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 720px; }
.product-hero h1 { max-width: 720px; font-size: clamp(48px, 5.3vw, 72px); }
.product-hero .lead { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.product-hero .actions { margin-top: 32px; }
.hero-copy > .eyebrow { animation: hero-copy-enter 680ms var(--ease-standard) both; }
.hero-copy > h1 { animation: hero-copy-enter 680ms 70ms var(--ease-standard) both; }
.hero-copy > .lead { animation: hero-copy-enter 680ms 140ms var(--ease-standard) both; }
.hero-copy > .actions { animation: hero-copy-enter 680ms 210ms var(--ease-standard) both; }
.hero-copy > .hero-proof { animation: hero-copy-enter 680ms 240ms var(--ease-standard) both; }
.product-hero .hero-proof { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 750; list-style: none; }
.product-hero .hero-proof li { display: flex; align-items: center; }
.product-hero .hero-proof li:not(:last-child)::after { content: "·"; margin: 0 13px; color: var(--brand); font-size: 20px; }
.product-hero .hero-proof sup { margin-left: 2px; }

.result-preview { position: relative; min-height: 390px; padding: 30px; border: 1px solid rgba(36,87,245,.18); border-radius: 20px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-raised); animation: interface-enter 820ms 120ms var(--ease-standard) both; }
.preview-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.preview-head > div { display: grid; gap: 4px; }
.preview-head > .status { min-width: 104px; justify-content: center; transition: color 300ms var(--ease-standard), background-color 300ms var(--ease-standard); }
.preview-kicker { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.preview-head strong { font-size: 17px; }
.preview-status-row { display: flex; gap: 14px; align-items: center; padding: 22px 0; animation: interface-item 650ms 160ms var(--ease-standard) both; }
.preview-status-row div { display: grid; gap: 2px; }
.preview-status-row small { color: var(--muted); font-size: 12px; }
.status-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; font-weight: 900; }
.status-icon-success { background: #eaf7f1; color: var(--success); }
.preview-package { margin-top: 20px; animation: interface-item 650ms 230ms var(--ease-standard) both; }
.preview-package-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; font-size: 13px; }
.preview-package-head span { color: var(--muted); }
.preview-package-count { width: 13ch; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9edf3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.preview-progress-track span { width: 100%; transform: scaleX(.85); transform-origin: left center; will-change: transform; }
.preview-package.is-complete .preview-progress-track span { will-change: auto; }
.preview-order { display: flex; min-height: 84px; justify-content: space-between; gap: 18px; align-items: center; margin-top: 22px; padding: 16px 18px; border: 1px solid transparent; border-radius: 14px; background: var(--accent); transition: border-color 320ms var(--ease-standard), background-color 320ms var(--ease-standard), box-shadow 320ms var(--ease-standard); animation: interface-item 650ms 300ms var(--ease-standard) both; }
.preview-order.is-visible { border-color: #c8e7d9; background: #edf8f3; box-shadow: inset 3px 0 0 var(--success); }
.preview-order div { display: grid; gap: 3px; }
.preview-order span:first-child { color: var(--muted); font-size: 12px; }
.preview-order strong { display: flex; min-height: 2.7em; align-items: center; font-size: 14px; line-height: 1.35; }
.order-check { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 2px solid rgba(36,87,245,.2); border-top-color: var(--brand); border-radius: 50%; color: white !important; animation: order-spinner 1.25s linear 3; }
.preview-order.is-visible .order-check { border-color: var(--success); background: var(--success); animation: none; }
.preview-order.is-visible .order-check::after { content: "✓"; font-size: 15px; font-weight: 900; line-height: 1; }

.directions-section { background: var(--paper); }
.directions-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.direction-item { position: relative; min-width: 0; padding: 36px; transition: background-color 210ms ease, transform 210ms var(--ease-standard); }
.direction-item::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; transform: scaleX(0); transform-origin: left center; background: var(--brand); transition: transform 210ms var(--ease-standard); }
.direction-item:not(:last-child) { border-right: 1px solid var(--line); }
.direction-item:hover { background: #f9faff; }
.direction-item:hover::before { transform: scaleX(1); }
.direction-abbr { display: block; margin-bottom: 30px; color: var(--brand); font-family: Manrope, Inter, sans-serif; font-size: clamp(30px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.direction-item h3 { margin-bottom: 14px; font-weight: 500; }
.direction-item p { min-height: 84px; color: var(--muted); }
.direction-result { display: block; min-height: 52px; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.direction-item a { font-size: 14px; font-weight: 800; }
.direction-item a span { display: inline-block; margin-left: 4px; transition: transform 180ms ease; }
.direction-item a:hover span { transform: translateX(4px); }

.scenarios-section { background: var(--soft); }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.scenario-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; transition: transform 210ms var(--ease-standard), border-color 210ms ease, box-shadow 210ms ease; }
.scenario-card:hover { transform: translateY(-3px); border-color: rgba(36,87,245,.42); box-shadow: 0 14px 36px rgba(16,24,40,.065); }
.scenario-label { align-self: flex-start; margin-bottom: 42px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.scenario-card p { max-width: 570px; color: var(--muted); }
.scenario-outcome { display: block; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; }
.scenario-card-audit { border-top: 4px solid var(--brand); background: #f8faff; }
.scenario-card-audit .scenario-label { color: var(--brand-dark); }
.scenario-card-expert { border-top: 4px solid #c68a2c; }
.scenario-card-expert .scenario-label { color: var(--warning); }
.scenario-card-prepare { border-top: 4px solid #98a2b3; }
.scenario-card-upload { border-color: #101828; border-top: 4px solid var(--brand); background: #101828; color: white; }
.scenario-card-upload p, .scenario-card-upload .scenario-label { color: #aeb8c8; }
.scenario-card-upload .scenario-outcome { border-color: rgba(255,255,255,.14); color: white; }
.scenario-card-upload:hover { border-color: #4d75f7; box-shadow: 0 20px 50px rgba(16,24,40,.2); }

.speed-section { padding: 112px 0; background: linear-gradient(135deg, #101828 0%, #142750 100%); color: white; }
.speed-grid { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 80px; align-items: center; }
.speed-value { font-family: Manrope, Inter, sans-serif; font-size: clamp(112px, 15vw, 190px); font-weight: 850; line-height: .76; letter-spacing: -.09em; }
.speed-value span { color: #6f91ff; }
.speed-copy { max-width: 720px; }
.speed-copy .eyebrow { color: #9bb1ff; }
.speed-copy h2 { margin-bottom: 18px; }
.speed-copy p { color: #d0d5dd; font-size: 19px; }
.speed-copy small { display: block; margin-top: 24px; color: #98a2b3; font-size: 12px; }

.process-section { background: white; }
.process-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.process-track::before { content: ""; position: absolute; top: 25px; right: 9%; left: 9%; height: 1px; background: var(--line); }
.process-track li { position: relative; z-index: 1; min-width: 0; padding-right: 12px; }
.process-number { display: grid; width: 52px; height: 52px; margin-bottom: 28px; place-items: center; border: 1px solid #b9c7f8; border-radius: 50%; background: white; color: var(--brand); font-size: 13px; font-weight: 850; box-shadow: 0 0 0 8px white; }
.process-track strong { display: block; min-height: 52px; font-size: 18px; line-height: 1.4; }
.process-track p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.billing-section { background: var(--soft); }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.package-card { display: flex; min-width: 0; min-height: 430px; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: none; transition: transform 210ms var(--ease-standard), border-color 210ms ease, box-shadow 210ms ease; }
.package-card:hover { transform: translateY(-3px); border-color: #c7d4ff; box-shadow: 0 14px 36px rgba(16,24,40,.06); }
.package-card-featured { border-color: rgba(36,87,245,.5); box-shadow: 0 12px 32px rgba(36,87,245,.08); }
.package-card-head { display: flex; min-height: 28px; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 34px; }
.package-module { color: var(--brand-dark); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.package-badge { padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--brand-dark); font-size: 10px; font-weight: 800; line-height: 1.3; text-align: right; text-transform: uppercase; letter-spacing: .04em; }
.package-card h3 { min-height: 58px; margin-bottom: 12px; }
.package-description { min-height: 82px; color: var(--muted); font-size: 15px; }
.package-price { display: flex; gap: 10px; align-items: baseline; margin: 14px 0 26px; }
.package-price strong { font-family: Manrope, Inter, sans-serif; font-size: clamp(38px, 4vw, 48px); line-height: 1; letter-spacing: -.05em; }
.package-price span { color: var(--muted); font-size: 13px; font-weight: 700; }
.package-details { display: grid; gap: 0; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.package-details li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.package-details li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.package-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; margin-top: 20px; padding: 24px 28px; border: 1px solid #cbd5f8; border-radius: 18px; background: #f8faff; }
.package-actions > div:first-child { display: grid; gap: 3px; }
.package-actions > div:first-child span { color: var(--muted); font-size: 14px; }
.package-actions .actions { margin: 0; flex-wrap: nowrap; }
.billing-example { margin-top: 72px; }
.billing-example-heading { max-width: 720px; margin-bottom: 28px; }
.billing-example-heading h3 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 34px); }
.billing-example-heading p { margin-bottom: 0; color: var(--muted); }
.billing-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(16,24,40,.06); list-style: none; }
.billing-flow li { position: relative; padding: 34px; }
.billing-flow li:not(:last-child) { border-right: 1px solid var(--line); }
.billing-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -15px; display: grid; width: 30px; height: 30px; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--brand); font-weight: 900; }
.billing-flow strong, .billing-flow span { display: block; }
.billing-flow strong { font-family: Manrope, Inter, sans-serif; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.05em; }
.billing-flow span { margin-top: 10px; color: var(--muted); }
.billing-flow .billing-success { background: #edf8f3; }
.billing-flow .billing-success strong { color: var(--success); }

.product-section { background: white; }
.product-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(520px, 1.25fr); gap: clamp(54px, 7vw, 96px); align-items: center; }
.product-copy { max-width: 520px; }
.product-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.product-benefits { display: grid; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; }
.product-benefits li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-weight: 700; }
.product-benefits li::before { content: "✓"; position: absolute; top: 14px; left: 0; color: var(--success); font-weight: 900; }
.dashboard-mockup { overflow: hidden; border: 1px solid #d8dce3; border-radius: 20px; background: white; box-shadow: var(--shadow-raised); }
.mockup-topbar { display: flex; min-height: 66px; justify-content: space-between; gap: 20px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.mockup-brand { display: flex; min-width: 0; gap: 11px; align-items: center; }
.mockup-brand > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--brand); color: white; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.mockup-brand > div { display: grid; min-width: 0; gap: 2px; }
.mockup-brand strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mockup-brand small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mockup-sync { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.mockup-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(27,127,90,.1); }
.mockup-body { padding: 18px; background: #f4f6f9; }
.mockup-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.mockup-tab { display: flex; min-width: 0; min-height: 52px; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 13px; border: 1px solid #dfe4eb; border-radius: 11px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; text-align: left; transition: border-color 280ms ease, background-color 280ms ease, color 280ms ease, box-shadow 280ms ease; }
.mockup-tab:hover { border-color: #b8c7f5; color: var(--ink); }
.mockup-tab.is-active { border-color: rgba(36,87,245,.45); background: #f7f9ff; color: var(--brand-dark); box-shadow: inset 3px 0 0 var(--brand); }
.mockup-tab span { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mockup-tab small { flex: 0 0 auto; color: inherit; font-size: 11px; font-weight: 700; }
.mockup-order-panel { min-height: 500px; padding: 20px; border: 1px solid #e0e4ea; border-radius: 14px; background: white; }
.mockup-title-row { display: flex; min-height: 48px; justify-content: space-between; gap: 20px; align-items: flex-start; }
.mockup-title-row > div { display: grid; min-width: 0; gap: 3px; }
.mockup-title-row small { color: var(--muted); font-size: 11px; }
.mockup-title-row strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.mockup-title-row > .status { flex: 0 0 auto; }
.mockup-progress-block { margin-top: 16px; padding: 15px 16px; border: 1px solid #d9e2ff; border-radius: 12px; background: #f3f6ff; }
.mockup-progress-block > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; font-size: 12px; }
.mockup-progress-block strong { font-variant-numeric: tabular-nums; }
.mockup-progress-fill { width: 100%; transform: scaleX(var(--mockup-progress, 1)); transform-origin: left center; background: var(--brand) !important; }
.mockup-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mockup-summary > div { display: grid; min-width: 0; min-height: 92px; align-content: start; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fcfcfd; }
.mockup-summary span, .mockup-summary small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mockup-summary strong { margin: 7px 0 3px; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.mockup-status-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fcfcfd; }
.mockup-step { position: relative; display: grid; min-width: 0; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; padding-right: 13px; }
.mockup-step:not(:last-child)::after { content: ""; position: absolute; top: 10px; right: 4px; width: 7px; height: 1px; background: #bdc7d5; }
.mockup-step i { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #a8d7c2; border-radius: 50%; background: #eaf7f1; color: var(--success); font-style: normal; }
.mockup-step i::after { content: "✓"; font-size: 10px; font-weight: 900; }
.mockup-step span { display: grid; min-width: 0; gap: 3px; }
.mockup-step strong, .mockup-step small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-step strong { font-size: 11px; }
.mockup-step small { color: var(--muted); font-size: 10px; }
.mockup-results { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.mockup-results-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 11px 13px; background: #f8fafc; }
.mockup-results-head strong { font-size: 12px; }
.mockup-results-head span { color: var(--muted); font-size: 11px; }
.mockup-file-row { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 13px; border-top: 1px solid var(--line); background: white; }
.mockup-file-row > i { display: grid; width: 32px; height: 30px; place-items: center; border-radius: 7px; background: #eaf7f1; color: var(--success); font-size: 7px; font-style: normal; font-weight: 900; }
.mockup-file-row > span { display: grid; min-width: 0; gap: 2px; }
.mockup-file-row strong, .mockup-file-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-file-row strong { font-size: 12px; }
.mockup-file-row small { color: var(--muted); font-size: 10px; }
.mockup-file-row em { min-width: 64px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.mockup-file-row em.is-ready { background: #eaf7f1; color: var(--success); }
.mockup-file-row em.is-attention { background: #fff5e5; color: var(--warning); }

.dashboard-mockup.is-playing .mockup-progress-fill { animation: mockup-progress-run 3000ms var(--ease-standard) both; }
.dashboard-mockup.is-playing .mockup-summary > div,
.dashboard-mockup.is-playing .mockup-step,
.dashboard-mockup.is-playing .mockup-results-head,
.dashboard-mockup.is-playing .mockup-file-row { animation: mockup-item-settle 620ms var(--ease-standard) backwards; }
.dashboard-mockup.is-playing .mockup-summary > div:nth-child(1) { animation-delay: 700ms; }
.dashboard-mockup.is-playing .mockup-summary > div:nth-child(2) { animation-delay: 850ms; }
.dashboard-mockup.is-playing .mockup-summary > div:nth-child(3) { animation-delay: 1000ms; }
.dashboard-mockup.is-playing .mockup-summary > div:nth-child(4) { animation-delay: 1150ms; }
.dashboard-mockup.is-playing .mockup-step:nth-child(1) { animation-delay: 1400ms; }
.dashboard-mockup.is-playing .mockup-step:nth-child(2) { animation-delay: 1610ms; }
.dashboard-mockup.is-playing .mockup-step:nth-child(3) { animation-delay: 1820ms; }
.dashboard-mockup.is-playing .mockup-results-head { animation-delay: 2880ms; }
.dashboard-mockup.is-playing .mockup-file-row:nth-child(2) { animation-delay: 3120ms; }
.dashboard-mockup.is-playing .mockup-file-row:nth-child(3) { animation-delay: 3380ms; }

.final-cta { padding: 96px 0; background: var(--brand); color: white; }
.final-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.final-cta .eyebrow { color: #eef3ff; }
.final-cta h2 { max-width: 760px; margin-bottom: 16px; font-size: clamp(40px, 4.4vw, 54px); }
.final-cta p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #e4eaff; font-size: 18px; }
.final-cta-action { display: grid; gap: 12px; justify-items: start; }
.final-cta-action .button { min-width: 260px; }
.final-cta-action small { max-width: 300px; color: #dbe4ff; font-size: 12px; }

/*
 * Progressive scroll reveals. The head guard hides known targets before the
 * first paint; data-reveal takes over as soon as JS registers each element.
 * This prevents the visible -> hidden -> visible flash on fast scrolling.
 */
html.reveal-pending :where(
    .home-page .section-heading,
    .home-page .directions-panel .direction-item,
    .home-page .scenario-grid .scenario-card,
    .home-page .speed-section .speed-value,
    .home-page .speed-section .speed-copy,
    .home-page .process-track li,
    .home-page .package-grid .package-card,
    .home-page .package-actions,
    .home-page .billing-example,
    .home-page .product-copy,
    .home-page .dashboard-mockup,
    .home-page .final-cta-inner > *,
    body:not(.is-authenticated):not(.auth-page):not(.home-page) main > .section .card-grid .card,
    body:not(.is-authenticated):not(.auth-page):not(.home-page) main > .section .prose,
    body:not(.is-authenticated):not(.auth-page):not(.home-page) main > .section .faq-list details,
    body:not(.is-authenticated):not(.auth-page):not(.home-page) main > .section .form-card
):not(.is-revealed) {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
}

[data-reveal]:not(.is-revealed) { opacity: 0; transform: translate3d(0, 20px, 0); }
[data-reveal="left"]:not(.is-revealed) { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"]:not(.is-revealed) { transform: translate3d(32px, 0, 0); }
[data-reveal].is-revealed { animation: site-reveal-up 680ms var(--ease-standard) backwards; animation-delay: var(--reveal-delay, 0ms); }
[data-reveal="left"].is-revealed { animation-name: site-reveal-left; animation-duration: 800ms; }
[data-reveal="right"].is-revealed { animation-name: site-reveal-right; animation-duration: 800ms; }
.direction-item[data-reveal].is-revealed, .scenario-card[data-reveal].is-revealed, .package-card[data-reveal].is-revealed { animation-name: site-reveal-up; }

.dashboard-mockup.is-animation-ready:not(.is-playing) .mockup-progress-fill { transform: scaleX(0); }
.dashboard-mockup.is-animation-ready:not(.is-playing) .mockup-summary > div,
.dashboard-mockup.is-animation-ready:not(.is-playing) .mockup-step,
.dashboard-mockup.is-animation-ready:not(.is-playing) .mockup-results-head,
.dashboard-mockup.is-animation-ready:not(.is-playing) .mockup-file-row { opacity: 0; transform: translateY(8px); }

/* Public contact launcher */
.contact-launcher { position: fixed; z-index: 80; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); display: grid; gap: 12px; justify-items: end; pointer-events: none; }
.contact-launcher > * { pointer-events: auto; }
.contact-launcher-button { display: inline-flex; width: 56px; height: 56px; min-height: 56px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: white; box-shadow: 0 16px 38px rgba(16, 24, 40, .2); cursor: pointer; font-weight: 800; transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.contact-launcher-button:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 20px 44px rgba(16, 24, 40, .24); }
.contact-launcher-button svg { width: 21px; height: 21px; fill: currentColor; }
.contact-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.contact-panel { width: min(360px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .99); box-shadow: var(--shadow-raised); opacity: 0; transform: translateY(12px) scale(.985); transform-origin: right bottom; transition: opacity 200ms ease, transform 240ms var(--ease-standard); }
.contact-panel[hidden] { display: none; }
.contact-panel:not(.is-open) { pointer-events: none; }
.contact-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.contact-panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.contact-panel-kicker { margin: 0 0 5px; color: var(--brand-dark); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-panel h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.contact-panel-copy { margin: 13px 0 17px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-panel-close { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; transition: border-color 180ms ease, background-color 180ms ease; }
.contact-panel-close:hover { border-color: #c6cfda; background: var(--accent); }
.contact-options { display: grid; gap: 9px; }
.contact-option { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.contact-option-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--accent); color: var(--brand-dark); }
.contact-option-icon svg { width: 21px; height: 21px; fill: currentColor; }
.contact-option > span:last-child { display: grid; gap: 2px; }
.contact-option strong { font-size: 14px; }
.contact-option small { color: var(--muted); font-size: 12px; }

@keyframes site-reveal-up {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes site-reveal-left {
    from { opacity: 0; transform: translate3d(-32px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes site-reveal-right {
    from { opacity: 0; transform: translate3d(32px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-copy-enter {
    from { opacity: 0; transform: translate3d(0, 22px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes interface-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes interface-item {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes order-spinner {
    to { transform: rotate(360deg); }
}
@keyframes mockup-progress-run {
    from { transform: scaleX(0); }
    to { transform: scaleX(var(--mockup-progress, 1)); }
}
@keyframes mockup-item-settle {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
    .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .package-card:last-child { grid-column: 1 / -1; min-height: 0; }
    .package-actions { grid-template-columns: 1fr; gap: 20px; }
    .product-layout { grid-template-columns: 1fr; }
    .product-copy { max-width: 720px; }
    .dashboard-mockup { max-width: 820px; }
}

@media (max-width: 900px) {
    .home-page .container { width: min(100% - 40px, 1280px); }
    .home-page .section { padding: 88px 0; }
    .home-page .nav-wrap { gap: 14px; }
    .home-page .main-nav, .home-page .account-nav { gap: 10px; }
    .home-page .main-nav a, .home-page .account-nav a { white-space: nowrap; }
    .home-page .brand { font-size: 13px; }
    .home-page.is-authenticated .account-nav form { display: none; }
    .product-hero { padding-top: 62px; }
    .product-hero-grid { gap: 28px; }
    .product-hero h1 { font-size: clamp(44px, 6vw, 58px); }
    .result-preview { padding: 24px; }
    .direction-item { padding: 28px; }
    .direction-item p { min-height: 108px; }
    .speed-grid { grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: 52px; }
    .process-track { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
    .process-track::before { top: 25px; bottom: 25px; left: 33px; width: 1px; height: auto; }
    .process-track li { display: grid; grid-template-columns: 52px 1fr; column-gap: 26px; padding: 0 0 36px; }
    .process-track li:last-child { padding-bottom: 0; }
    .process-number { grid-row: 1 / 3; margin-bottom: 0; }
    .process-track strong { min-height: 0; padding-top: 5px; }
    .process-track p { grid-column: 2; }
    .final-cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 800px) {
    .product-hero-grid, .speed-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 720px; }
    .result-preview { max-width: 620px; }
    .directions-panel { grid-template-columns: 1fr; }
    .direction-item:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
    .direction-item p, .direction-result { min-height: 0; }
    .speed-grid { gap: 46px; }
    .speed-value { font-size: 120px; }
    .billing-flow { grid-template-columns: 1fr; }
    .billing-flow li:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); }
    .billing-flow li:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -15px; left: 34px; transform: none; }
}

@media (max-width: 680px) {
    .home-page .container { width: min(100% - 24px, 1280px); }
    .home-page main { font-size: 16px; }
    .home-page .section { padding: 72px 0; }
    .product-hero { padding: 64px 0 24px; }
    .product-hero h1 { font-size: 42px; }
    .product-hero .lead { font-size: 17px; }
    .product-hero .actions { display: grid; }
    .product-hero .actions .button { width: 100%; }
    .product-hero .hero-proof { display: grid; gap: 8px; }
    .product-hero .hero-proof li:not(:last-child)::after { display: none; }
    .section-heading { margin-bottom: 34px; }
    .scenario-grid { grid-template-columns: 1fr; }
    .package-grid { grid-template-columns: 1fr; }
    .package-card, .package-card:last-child { grid-column: auto; min-height: 0; padding: 26px; }
    .package-card h3, .package-description { min-height: 0; }
    .package-actions { padding: 24px; }
    .package-actions .actions { display: grid; width: 100%; }
    .package-actions .button { width: 100%; }
    .billing-example { margin-top: 56px; }
    .scenario-card { min-height: 280px; padding: 28px; }
    .scenario-label { margin-bottom: 34px; }
    .speed-section, .final-cta { padding: 72px 0; }
    .preview-head, .mockup-title-row { align-items: center; }
    .mockup-order-panel { min-height: 0; padding: 16px; }
    .mockup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mockup-status-flow { grid-template-columns: 1fr; gap: 12px; }
    .mockup-step { padding-right: 0; }
    .mockup-step:not(:last-child)::after { top: 22px; right: auto; bottom: -12px; left: 10px; width: 1px; height: 12px; }
    .product-layout { gap: 44px; }
    .mockup-body { padding: 16px; }
    .final-cta h2 { font-size: 40px; }
    .final-cta-action, .final-cta-action .button { width: 100%; }
}

@media (max-width: 480px) {
    .result-preview { min-height: 400px; padding: 21px; }
    .preview-head { gap: 10px; }
    .preview-head > .status { min-width: 92px; }
    .preview-package-head { gap: 8px; }
    .preview-package-count { width: 12ch; }
    .mockup-topbar { min-height: 60px; padding: 12px; }
    .mockup-sync span { display: none; }
    .mockup-body { padding: 10px; }
    .mockup-tabs { gap: 6px; }
    .mockup-tab { min-height: 56px; flex-direction: column; gap: 2px; align-items: flex-start; justify-content: center; padding: 9px 10px; }
    .mockup-order-panel { padding: 13px; }
    .mockup-title-row { gap: 10px; }
    .mockup-title-row strong { font-size: 14px; }
    .mockup-summary > div { min-height: 86px; padding: 11px; }
    .mockup-file-row { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 10px; }
    .mockup-file-row > i { width: 30px; }
    .mockup-file-row em { grid-column: 2; justify-self: start; }
    .contact-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
    .contact-launcher-button { width: 52px; padding: 0; justify-content: center; }
    .contact-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .contact-panel { width: calc(100vw - 24px); padding: 19px; }
}

@media (max-width: 700px) {
    .auth-stage { padding: 30px 0 46px; }
    .auth-card, .auth-card-wide { padding: 28px 22px; border-radius: 17px; }
    .auth-card-head { padding-right: 50px; }
    .auth-card-head-state { padding-right: 0; }
    .auth-card-head h1 { font-size: 30px; }
    .auth-form-grid { grid-template-columns: 1fr; gap: 18px; }
    .auth-field-wide { grid-column: auto; }
    .auth-card-wide .auth-submit { width: 100%; min-width: 0; }
    .auth-links { grid-template-columns: 1fr; gap: 9px; }
    .auth-links a:last-child { text-align: left; }
    .auth-container-access { width: min(100% - 24px, 760px); }
    .auth-card-access, .auth-card-access.auth-card-wide { padding: 0; border-radius: 18px; }
    .auth-aside { padding: 22px; }
    .auth-aside-content { margin-top: 20px; }
    .auth-aside-title { margin-bottom: 0; font-size: 22px; }
    .auth-aside-copy, .auth-aside-points { display: none; }
    .auth-aside-modules { margin-top: 20px; }
    .auth-main, .auth-card-access-wide .auth-main { padding: 28px 22px 26px; }
    .auth-card-access .auth-card-head { min-height: 0; padding-right: 0; }
    .auth-card-access-wide .auth-consents { grid-template-columns: 1fr; }
    .auth-card-access-wide .auth-check { min-height: 0; }
}

/* Unified responsive rhythm from the visual system. */
@media (max-width: 1023px) {
    .container, .home-page .container { width: min(1280px, calc(100% - 64px)); }
    .section { padding: 80px 0; }
    .page-head { padding: 72px 0 60px; }
    .home-page .section { padding: 88px 0; }
    .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
    body.mobile-menu-open { overflow: hidden; overscroll-behavior: none; }
    .site-header { z-index: 100; }
    .nav-wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
    .main-nav, .account-nav { display: none; }
    .cabinet-bar { display: none; }
    .mobile-menu-toggle { position: relative; display: inline-grid; width: 48px; height: 48px; place-content: center; gap: 5px; justify-self: end; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease; }
    .mobile-menu-toggle:hover { border-color: #c6cfda; background: var(--soft); }
    .mobile-menu-toggle[aria-expanded="true"] { border-color: #ccd7ff; background: var(--accent); box-shadow: 0 8px 20px rgba(36, 87, 245, .12); }
    .mobile-menu-toggle span { display: block; width: 21px; height: 2px; border-radius: 999px; background: currentColor; transform-origin: center; transition: transform 260ms var(--ease-standard), opacity 180ms ease; }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.35); }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-menu-shell { position: fixed; z-index: 90; inset: 78px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) min(88vw, 420px); overflow: hidden; }
    .mobile-menu-shell[hidden] { display: none; }
    .mobile-menu-backdrop { grid-area: 1 / 1 / 2 / 3; padding: 0; border: 0; background: rgba(18, 22, 31, .28); opacity: 0; cursor: default; transition: opacity 280ms ease; }
    .mobile-menu-panel { position: relative; grid-area: 1 / 2; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: white; box-shadow: -20px 0 55px rgba(16, 24, 40, .16); transform: translateX(100%); transition: transform 340ms var(--ease-standard); }
    .mobile-menu-shell.is-open .mobile-menu-backdrop { opacity: 1; }
    .mobile-menu-shell.is-open .mobile-menu-panel { transform: translateX(0); }
    .mobile-menu-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 28px 24px max(32px, env(safe-area-inset-bottom)); }
    .mobile-menu-head { display: flex; min-height: 48px; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
    .mobile-menu-title { margin: 8px 0 0; font-size: 25px; letter-spacing: -.025em; }
    .mobile-menu-close { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); cursor: pointer; font-size: 25px; line-height: 1; transition: border-color 180ms ease, background-color 180ms ease; }
    .mobile-menu-close:hover { border-color: #c6cfda; background: var(--accent); }
    .mobile-menu-links { display: grid; }
    .mobile-menu-links a { display: flex; min-height: 48px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 650; text-decoration: none; }
    .mobile-menu-links a:hover { color: var(--brand-dark); }
    .mobile-menu-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
    .mobile-menu-label { margin: 0 0 8px; color: var(--brand-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
    .mobile-menu-organization { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
    .mobile-menu-actions { display: grid; gap: 10px; margin-top: 28px; }
    .mobile-menu-actions .button, .mobile-menu-logout .button { width: 100%; }
    .mobile-menu-logout { margin: 0; }
    .list-table th { top: 78px; }
}

@media (max-width: 767px) {
    .container, .home-page .container, .auth-container-access { width: min(1280px, calc(100% - 40px)); }
    .nav-wrap { min-height: 72px; }
    .mobile-menu-shell { inset: 72px 0 0; }
    h1 { font-size: clamp(36px, 10vw, 40px); line-height: 1.12; }
    h2 { font-size: clamp(30px, 8vw, 34px); line-height: 1.16; }
    h3 { font-size: clamp(22px, 6vw, 24px); }
    .lead { font-size: 17px; line-height: 1.55; }
    .section, .home-page .section { padding: 64px 0; }
    .page-head { padding: 64px 0 56px; }
    .page-head .actions, .actions { display: grid; width: 100%; }
    .page-head .actions .button, .actions .button { width: 100%; }
    .product-hero { padding: 64px 0 32px; }
    .product-hero h1 { font-size: clamp(40px, 11vw, 44px); line-height: 1.08; }
    .card-grid.four, .card-grid.three, .card-grid.two, .steps, .dashboard-grid, .result-grid { grid-template-columns: 1fr; }
    .card, .steps li { padding: 28px; }
    .form-card { max-width: 100%; padding: 28px 24px; }
    input[type="file"] { min-height: 160px; padding: 44px 18px; }
    .auth-stage { padding: 32px 0 48px; }
    .auth-card-access, .auth-card-access.auth-card-wide { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main, .auth-card-access-wide .auth-main { padding: 30px 24px 28px; }
    .auth-card-access .auth-card-head { min-height: 0; }
    .auth-form-grid { grid-template-columns: 1fr; }
    .auth-field-wide { grid-column: auto; }
    .auth-card-access-wide .auth-consents { grid-template-columns: 1fr; }
    .auth-card-access-wide .auth-check { min-height: 0; }
    .is-authenticated .page-head { padding: 48px 0 36px; }
    .is-authenticated .section { padding: 48px 0 56px; }
    .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-strip div:nth-child(2n) { border-right: 0; }
    .list-table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .list-table th { top: 72px; }
    .faq-list summary { gap: 16px; padding: 20px 0; font-size: 18px; }
    .faq-list details p { margin-right: 0; }
    [data-reveal].is-revealed { animation-duration: 520ms; }
    [data-reveal="left"].is-revealed, [data-reveal="right"].is-revealed { animation-name: site-reveal-up; animation-duration: 520ms; }
    .footer-grid { gap: 36px; }
}

@media (max-width: 480px) {
    .summary-strip { grid-template-columns: 1fr; }
    .summary-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
    .summary-strip div:last-child { border-bottom: 0; }
    .mockup-summary { grid-template-columns: 1fr; }
    .mockup-summary > div { min-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
