:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1c3038;
    background: #f6f8f7;
    -webkit-font-smoothing: antialiased;
    --green: #285e4e;
    --muted: #5f716a;
    --border: #dde5e1;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); }
a:focus-visible, summary:focus-visible { outline: 3px solid #3876b6; outline-offset: 5px; }
.container { width: min(100% - 48px, 1080px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 22px; color: #1c3038; text-decoration: none; font-weight: 700; font-size: 28px; letter-spacing: -1px; }
.brand span { border-left: 1px solid var(--border); padding-left: 22px; color: var(--muted); font-size: 14px; font-weight: 450; letter-spacing: 0; }
.demo-tag { border: 1px solid var(--border); padding: 6px 12px; border-radius: 30px; font-size: 12px; color: var(--muted); }
.intro { padding: 62px 0 34px; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; color: var(--green); }
h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 560; line-height: 1.08; letter-spacing: -2.4px; margin: 0; }
.intro-copy { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 625px; margin: 22px 0 0; }
.demo-notice { display: flex; align-items: baseline; gap: 10px; color: #6c5d38; background: #f4f0e5; border: 1px solid #e9e2d0; padding: 12px 16px; border-radius: 6px; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.notice-dot { flex: 0 0 6px; width: 6px; height: 6px; background: #938052; border-radius: 50%; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr); gap: 24px; scroll-margin-top: 24px; }
.document-card, .qr-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.document-card { display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; gap: 15px; padding: 28px 30px; border-bottom: 1px solid var(--border); }
.card-top .eyebrow { margin-bottom: 5px; font-size: 9px; letter-spacing: 1.2px; }
h2 { font-size: 21px; letter-spacing: -0.5px; font-weight: 600; margin: 0; }
.file-icon { width: 40px; height: 48px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #b5c9c0; color: var(--green); border-radius: 4px; background: #f2f7f4; font-weight: 700; font-size: 11px; }
.document-tag { margin-left: auto; padding: 5px 9px; font-size: 10px; font-weight: 600; border-radius: 4px; background: #eef4f1; color: var(--green); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 18px; padding: 30px; }
.route > div { display: flex; flex-direction: column; gap: 5px; }
.label { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.route strong { font-size: 26px; font-weight: 550; letter-spacing: -0.7px; }
.route div > span:last-child { font-size: 12px; line-height: 1.5; color: var(--muted); }
.route-arrow { font-size: 27px; color: #93aa9f; }
.document-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin: 0 30px; padding: 24px 0 30px; border-top: 1px solid var(--border); }
dt { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
dd { margin: 0; font-size: 14px; font-weight: 550; }
.document-actions { margin-top: auto; border-top: 1px solid var(--border); padding: 24px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.button { display: inline-flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 5px; background: var(--green); color: white; text-decoration: none; font-size: 14px; font-weight: 550; min-height: 48px; }
.button:hover { background: #1b473a; }
.button span { font-size: 19px; }
.file-note { color: var(--muted); font-size: 11px; }
.qr-card { text-align: center; padding: 30px 24px; display: flex; align-items: center; flex-direction: column; }
.qr-card .eyebrow { font-size: 10px; }
.qr-card p:not(.eyebrow) { margin: 12px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.qr-link { display: block; margin: 4px 0 8px; }
.qr-link img { display: block; width: 216px; max-width: 100%; height: auto; image-rendering: pixelated; }
.qr-note { color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; gap: 8px; padding-block: 13px; margin-top: 12px; font-size: 12px; text-underline-offset: 4px; }
.how-it-works { padding-top: 42px; }
.how-it-works h2 { font-size: 18px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 23px; }
.steps > div { display: flex; gap: 16px; }
.step-number { color: #879d91; font-size: 13px; font-weight: 600; padding-top: 2px; }
h3 { font-size: 13px; font-weight: 600; margin: 0; }
.steps p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 380px; }
.direct-link { margin-top: 32px; color: var(--muted); font-size: 12px; }
summary { cursor: pointer; width: fit-content; padding-block: 8px; }
.direct-link a { display: block; padding-block: 12px; overflow-wrap: anywhere; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-block: 26px; margin-top: 42px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.skip-link { position: absolute; top: 10px; left: 10px; padding: 12px; background: white; transform: translateY(-200%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #3876b6; outline-offset: 3px; }
button.button { border: 0; }
.session-actions { display: flex; align-items: center; gap: 16px; }
.session-user { color: var(--muted); font-size: 13px; }
.logout-button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 5px; background: white; color: var(--green); font-size: 13px; }
.logout-button:hover { background: #f2f7f4; }
.login-panel { max-width: 420px; margin: 72px auto; padding: 32px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.login-panel h1 { font-size: 32px; letter-spacing: -1px; }
.login-copy { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 16px 0 28px; }
.login-form { display: grid; gap: 22px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 550; }
.form-field input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #a5b8ae; border-radius: 5px; background: white; color: #1c3038; }
.form-field .input-validation-error { border-color: #9f3030; }
.validation-error { color: #9f3030; font-size: 13px; line-height: 1.5; }
.validation-error ul { margin: 0; padding-left: 20px; }
.validation-summary-valid, .field-validation-valid { display: none; }

@media (max-width: 760px) {
    .session-actions { gap: 8px; }
    .session-user { display: none; }
    .login-panel { margin: 36px auto; padding: 24px; }
    .container { width: min(100% - 32px, 560px); }
    .header-inner { min-height: 76px; gap: 10px; }
    .brand { gap: 12px; font-size: 24px; }
    .brand span { padding-left: 12px; font-size: 12px; }
    .demo-tag { padding: 5px 8px; font-size: 10px; }
    .intro { padding-top: 38px; }
    h1 { letter-spacing: -1.6px; }
    .intro-copy { font-size: 15px; }
    .demo-grid, .steps { grid-template-columns: 1fr; }
    .card-top { padding: 22px; gap: 12px; }
    .card-top h2 { font-size: 18px; }
    .route { padding: 26px 22px; gap: 10px; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); }
    .route strong { font-size: 23px; }
    .document-details { margin-inline: 22px; gap: 22px 16px; }
    .document-actions { padding: 22px; }
    .button { width: 100%; padding-inline: 14px; }
    .steps { gap: 24px; }
}
