:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #302d28;
    background: #fbf8f2;
    font-synthesis: none;
    --ink: #302d28;
    --muted: #70695f;
    --canvas: #fbf8f2;
    --paper: #fffdf9;
    --sand: #eee4d5;
    --linen: #f4ede2;
    --sage: #52695c;
    --sage-soft: #e6ece5;
    --clay: #aa765a;
    --line: #ded4c5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--canvas); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 540px; pointer-events: none; background: radial-gradient(circle at 88% 10%, #e9ddcb 0, transparent 31rem), radial-gradient(circle at 12% 0, #f5eddf 0, transparent 26rem); opacity: .72; z-index: -1; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8fa095; outline-offset: 3px; }
.site-header { width: min(1180px, calc(100% - 2.5rem)); min-height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; font-size: 1.08rem; font-weight: 780; letter-spacing: -.02em; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 50% 50% 50% 16%; background: var(--sage); box-shadow: 0 8px 22px #52695c2b; font-family: Georgia, serif; }
.brand-mark b { transform: translateX(-3px); font-size: 1.05rem; }
.brand-mark i { position: absolute; right: 8px; bottom: 7px; color: #ddd1bf; font-size: .62rem; font-style: normal; }
.desktop-nav { display: flex; align-items: center; gap: 1.7rem; font-size: .9rem; font-weight: 650; }
.desktop-nav > a:not(.button) { color: #5f5a52; }
.desktop-nav > a:hover { color: var(--sage); }
main, footer { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }
.hero { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr); align-items: center; gap: clamp(3rem, 7vw, 6.5rem); padding: 4.6rem 0 7rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; color: var(--sage); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow > span { width: 25px; height: 1px; background: var(--clay); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 720px; margin: 1.15rem 0 1.5rem; font-size: clamp(3rem, 6.25vw, 5.7rem); line-height: .97; letter-spacing: -.047em; text-wrap: balance; }
h1:focus { outline: none; }
h2 { margin: .75rem 0 1.4rem; font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
h3 { margin: .9rem 0 .6rem; font-size: 1.2rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.68; }
.lead { max-width: 610px; font-size: clamp(1.06rem, 2vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 2.1rem; }
.button { min-height: 48px; padding: .8rem 1.25rem; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; font-weight: 720; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--sage); box-shadow: 0 13px 28px #52695c2d; }
.button-primary:hover { background: #43594d; box-shadow: 0 16px 34px #52695c3b; }
.button-secondary, .button-quiet { color: var(--ink); background: #fffaf2; border: 1px solid var(--line); }
.button:disabled { opacity: .7; cursor: default; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .1rem; color: var(--sage); border-bottom: 1px solid #839487; font-weight: 720; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; margin: 1.6rem 0 0; padding: 0; color: #6a645b; font-size: .8rem; list-style: none; }
.hero-facts span { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: .35rem; color: var(--sage); border-radius: 50%; background: var(--sage-soft); font-size: .68rem; font-weight: 900; }
.workflow-preview { position: relative; padding: 1.4rem 0 1.8rem; }
.preview-window { position: relative; overflow: hidden; border: 1px solid #ddd2c2; border-radius: 28px; background: rgb(255 253 249 / 94%); box-shadow: 0 32px 85px #4e433421; }
.preview-head { min-height: 68px; padding: 0 1.45rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ebe3d7; }
.mini-brand { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; border-radius: 50% 50% 50% 10px; background: var(--sage); font-family: Georgia, serif; font-size: .72rem; }
.step-label { color: #81796e; font-size: .72rem; font-weight: 680; }
.preview-progress { height: 3px; background: #ece5dc; }
.preview-progress span { display: block; width: 34%; height: 100%; background: var(--clay); }
.preview-body { padding: clamp(1.7rem, 4vw, 2.6rem); }
.soft-label, .trust-kicker { color: #8a7f70; font-size: .72rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.preview-body h2 { margin: .55rem 0 1.65rem; font-family: inherit; font-size: 1.45rem; font-weight: 730; letter-spacing: -.03em; }
.upload-choice, .manual-choice { width: 100%; display: flex; align-items: center; gap: 1rem; color: var(--ink); border: 1px solid #ddd2c2; border-radius: 16px; background: #fffdf9; text-align: left; }
.upload-choice { min-height: 82px; padding: 1rem; }
.upload-choice > span:nth-child(2) { flex: 1; display: grid; gap: .24rem; }
.upload-choice small { color: #827a70; }
.file-symbol { display: grid; place-items: center; width: 45px; height: 45px; color: var(--sage); border-radius: 13px; background: var(--sage-soft); font-size: 1.35rem; }
.choice-divider { height: 42px; display: flex; align-items: center; color: #9a9288; font-size: .7rem; }
.choice-divider::before, .choice-divider::after { content: ""; height: 1px; flex: 1; background: #ebe3d7; }
.choice-divider span { padding: 0 .65rem; }
.manual-choice { min-height: 49px; padding: .75rem 1rem; justify-content: center; color: var(--sage); font-weight: 700; }
.preview-privacy { margin: 1.25rem 0 0; color: #827a70; font-size: .72rem; text-align: center; }
.preview-privacy span { color: #789080; }
.floating-note { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border: 1px solid #dfd5c7; border-radius: 12px; background: #fffdf9; box-shadow: 0 14px 32px #4e433419; color: #5e584f; font-size: .73rem; font-weight: 690; }
.floating-note b { color: var(--sage); }
.note-one { right: -2.2rem; top: 7rem; }
.note-two { left: -2.3rem; bottom: .1rem; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.trust-strip div { min-height: 112px; padding: 1.55rem 2rem; display: grid; align-content: center; gap: .36rem; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong { font-family: Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.section { padding: 8rem 0; }
.section-heading { max-width: 790px; margin-bottom: 3rem; }
.section-heading > p { max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps article { position: relative; min-height: 305px; padding: 1.7rem; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.steps article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #574c3d13; }
.step-number { position: absolute; right: 1.5rem; top: 1.5rem; color: #9c9183; font-family: Georgia, serif; font-size: .9rem; }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 2.2rem; color: var(--sage); border-radius: 17px; background: var(--sage-soft); font-size: 1.35rem; }
.steps article p { font-size: .92rem; }
.steps article small { position: absolute; left: 1.7rem; bottom: 1.6rem; color: #8a8277; }
.calm-panel { margin: 1rem 0 8rem; padding: clamp(2rem, 7vw, 5.2rem); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(3rem, 8vw, 7rem); border-radius: 34px; background: #ece3d5; }
.calm-copy h2 { max-width: 620px; }
.calm-copy p { max-width: 590px; }
.fact-card { padding: 1.8rem; border: 1px solid #d7cbbb; border-radius: 22px; background: #fffdf9; box-shadow: 0 22px 55px #65533c16; }
.fact-card > strong { display: block; margin: .85rem 0 .2rem; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.fact-card p { margin: .2rem 0 1.5rem; font-size: .78rem; }
.fact-card div { display: flex; gap: .7rem; }
.fact-example-action { padding: .65rem 1rem; color: var(--sage); border: 1px solid #cfdbd1; border-radius: 999px; background: var(--sage-soft); font-weight: 700; }
.fact-example-action.secondary { color: #71695f; border-color: #ddd4c7; background: transparent; }
.final-cta { max-width: 850px; margin: 0 auto; padding: 1rem 0 8rem; text-align: center; }
.final-cta .eyebrow { justify-content: center; }
.final-cta .button { margin-top: .7rem; }
.auth-shell { min-height: calc(100vh - 190px); display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(3rem, 9vw, 8rem); align-items: center; padding: 5rem 0 7rem; }
.auth-copy h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.back-link { display: block; margin-bottom: 3rem; color: var(--sage); font-weight: 720; }
.auth-card, .profile-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 70px #4e433415; }
.field { display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.field label { font-size: .88rem; font-weight: 720; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; color: var(--ink); border: 1px solid #d8cec0; border-radius: 12px; background: #fffdf9; font: inherit; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: var(--sage); outline: 3px solid #52695c1c; }
.field label span, .field small { color: #7c756b; font-weight: 500; }
.submit-button { width: 100%; margin-top: .6rem; }
.form-error { padding: .8rem; color: #8f3b45; border-radius: 10px; background: #faecea; font-size: .88rem; }
.form-success { padding: .8rem; color: #3f604f; border-radius: 10px; background: var(--sage-soft); font-size: .88rem; }
.auth-note { margin: 1rem 0 0; font-size: .76rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; color: var(--sage); font-size: .83rem; font-weight: 720; }
.success-card h2 { margin-bottom: .5rem; font-size: 2rem; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border-radius: 15px; background: var(--sage); font-size: 1.35rem; font-weight: 900; }
.compact-auth { min-height: 680px; }
.profile-shell { min-height: calc(100vh - 190px); padding: clamp(3rem, 7vw, 6rem) 0; }
.profile-heading { max-width: 760px; margin-bottom: 2.5rem; }
.profile-heading h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
.profile-card { max-width: 900px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.profile-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.profile-actions span { color: #827a70; font-size: .78rem; }
.documents-shell { min-height: calc(100vh - 190px); padding: clamp(3rem, 7vw, 6rem) 0; }
.upload-guide { max-width: 920px; margin: 1.5rem 0; padding: 1.25rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: #fbf7f0; }
.upload-guide h2 { margin: .35rem 0 .7rem; font-size: 1.35rem; }
.upload-guide ul { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.65; }
.upload-guide aside { padding: 1rem; border-radius: 14px; background: #f8e8df; }
.upload-guide aside p, .upload-guide aside a { color: #6d5847; font-size: .8rem; line-height: 1.5; }
.processing-summary { margin-bottom: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.processing-summary div { padding: .8rem; display: grid; gap: .15rem; border-radius: 13px; background: var(--sage-soft); text-align: center; }
.processing-summary strong { font-size: 1.3rem; }
.processing-summary span { color: var(--muted); font-size: .72rem; }
.document-card { max-width: 920px; padding: clamp(1.35rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: 0 24px 70px #4e433415; }
.upload-zone { position: relative; min-height: 150px; padding: 1.5rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.15rem; border: 1px dashed #b9ad9d; border-radius: 19px; background: #fbf7f0; }
.upload-zone p { margin: .3rem 0 0; font-size: .82rem; }
.upload-zone input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.selected-document { margin-top: 1rem; padding: 1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.selected-document > div { min-width: 0; display: grid; gap: .25rem; }
.selected-document strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-document small { color: var(--muted); }
.document-list-heading { margin-top: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.document-list-heading > div { display: grid; gap: .2rem; }
.document-list-heading small { color: var(--muted); }
.document-entry { align-items: flex-start; }
.document-entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.document-entry-actions button { border: 0; background: transparent; cursor: pointer; }
.document-entry-message { margin-top: .25rem; color: #53645a; font-size: .8rem; line-height: 1.45; }
.document-progress { margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.document-progress li { padding: .22rem .48rem; border-radius: 999px; background: #eee8df; color: var(--muted); font-size: .66rem; }
.document-progress li.done { background: var(--sage-soft); color: #315e50; }
.document-progress li.active { background: #faf0df; color: #7b5c34; }
.document-entry-error { color: #9e4650; }
.empty-document-list { margin-top: 1.2rem; padding: 1.25rem; border-radius: 16px; background: #f7f1e8; }
.empty-document-list p { margin: .35rem 0 0; color: var(--muted); font-size: .84rem; }
.upload-status { margin-top: 1rem; padding: 1rem 1.15rem; display: flex; align-items: flex-start; gap: .85rem; border-radius: 16px; background: var(--sage-soft); }
.upload-status p { margin: .2rem 0 0; font-size: .84rem; }
.upload-status-error { background: #faecea; }
.status-dot { width: 12px; height: 12px; margin-top: .35rem; flex: 0 0 auto; border: 3px solid #b7c6bc; border-top-color: var(--sage); border-radius: 50%; animation: status-spin 1s linear infinite; }
.upload-status-error .status-dot { border-color: #dcaeb2; border-top-color: #9e4650; }
.upload-actions { margin-top: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; color: var(--muted); font-size: .78rem; }
.upload-actions span { margin-right: auto; }
.upload-actions button { border: 0; background: transparent; cursor: pointer; }
.danger-link { color: #934851; border-bottom-color: #c99b9f; }
.classification-card { margin-top: 1rem; padding: 1.15rem; border: 1px solid #cbd6cf; border-radius: 16px; background: #f4f7f3; }
.classification-result { margin: .45rem 0 .65rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.classification-result p { margin: .25rem 0 0; font-size: .84rem; }
.classification-result > span { padding: .3rem .55rem; color: #315b48; border-radius: 999px; background: #dcebe2; font-size: .76rem; font-weight: 760; }
.classification-card > small { color: var(--muted); line-height: 1.5; }
.document-notes { max-width: 920px; margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.document-notes article { padding: 1rem; display: flex; align-items: flex-start; gap: .8rem; border: 1px solid var(--line); border-radius: 16px; background: #f7f1e8; }
.document-notes article > strong { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; color: var(--sage); border-radius: 50%; background: var(--sage-soft); font-size: .75rem; }
.document-notes h2 { margin: .1rem 0 .3rem; font-family: inherit; font-size: .9rem; font-weight: 760; letter-spacing: 0; }
.document-notes p { margin: 0; font-size: .75rem; line-height: 1.55; }
.legal-shell { min-height: calc(100vh - 190px); padding: clamp(3rem, 7vw, 6rem) 0; }
.legal-heading { max-width: 820px; margin-bottom: 2rem; }
.legal-heading h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.legal-heading .lead { max-width: 760px; }
.legal-notice { max-width: 900px; margin: 0 0 1.3rem; padding: 1rem 1.15rem; border: 1px solid #ddc8aa; border-radius: 16px; background: #faf0df; color: #654f3d; line-height: 1.55; }
.legal-card { max-width: 900px; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 70px #4e433410; }
.legal-card section + section { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal-card h2 { margin: 0 0 .8rem; font-family: inherit; font-size: 1.35rem; font-weight: 760; letter-spacing: -.02em; }
.legal-card h3 { margin-top: 1.4rem; font-size: 1rem; }
.legal-card p, .legal-card li, .legal-card address { color: var(--muted); line-height: 1.68; }
.legal-card address { font-style: normal; }
.legal-card ul { padding-left: 1.3rem; }
.legal-card a { color: var(--sage); text-decoration: underline; text-underline-offset: .2rem; }
.legal-meta { color: #82796e; font-size: .8rem; }
.legal-form-example { padding: 1rem 1.15rem; border-left: 4px solid var(--sage); background: var(--sage-soft); }
@keyframes status-spin { to { transform: rotate(360deg); } }
footer { min-height: 118px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; border-top: 1px solid var(--line); color: #756e64; font-size: .76rem; }
footer > :last-child { justify-self: end; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.valid.modified:not([type=checkbox]) { outline: 2px solid #6d8a76; }
.invalid { outline: 2px solid #bd6570; }
.validation-message { color: #a94955; }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 4rem; }
    .hero-copy { max-width: 760px; }
    .workflow-preview { width: min(590px, 100%); margin-inline: auto; }
    .note-one { right: -1rem; } .note-two { left: -1rem; }
    .steps { grid-template-columns: 1fr; }
    .steps article { min-height: 240px; }
    .calm-panel, .auth-shell { grid-template-columns: 1fr; }
    footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .site-header, main, footer { width: min(100% - 1.3rem, 1180px); }
    .site-header { min-height: 70px; }
    .desktop-nav { display: none; }
    .text-link { min-height: 44px; align-items: center; }
    .hero { min-height: auto; padding: 3.2rem .35rem 5.5rem; }
    h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .floating-note { display: none; }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-strip div { min-height: 92px; padding: 1.2rem .7rem; }
    .trust-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
    .section { padding: 5.5rem .35rem; }
    .calm-panel { margin-bottom: 6rem; padding: 2rem 1.25rem; border-radius: 24px; }
    .actions .button { width: 100%; }
    .actions .text-link { margin-inline: auto; }
    .hero-facts { display: grid; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-actions { align-items: stretch; flex-direction: column; }
    .upload-guide, .processing-summary { grid-template-columns: 1fr; }
    .upload-zone { grid-template-columns: auto 1fr; }
    .upload-zone .button { grid-column: 1 / -1; }
    .selected-document { align-items: stretch; flex-direction: column; }
    .document-notes { grid-template-columns: 1fr; }
    footer { min-height: 130px; grid-template-columns: 1fr; padding: 1.5rem .35rem; }
    footer > :last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
