@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600.woff2") format("woff2"); }

:root {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #101828;
    background: #fff;
    line-height: 1.5;
    color-scheme: light;
    --color-primary: #5c752e;
    --color-primary-lighter: #466625;
    --color-primary-darker: #36501c;
    --color-logo: #7a9a01;
    --muted: #475467;
    --border: #d0d5dd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--color-primary-lighter); }
.site-header, main, .site-footer { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.site-header { min-height: 6rem; display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid #98a2b3; margin-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; color: var(--color-logo); line-height: 1; text-decoration: none; }
.brand-logo { display: block; height: 2.3rem; width: auto; }
.product-name { border-left: 1px solid var(--border); padding-left: 1.5rem; font-weight: 600; }
.product-name span { color: var(--color-primary); margin-inline: .35rem; }
.preview-badge { margin-left: auto; border: 1px solid #dce5ce; border-radius: 2rem; padding: .35rem .8rem; background: #f4f7ee; color: var(--color-primary-lighter); font-size: .8rem; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-primary); border-radius: .75rem; overflow: hidden; }
.hero-copy { padding: clamp(2rem, 4vw, 4rem); color: white; }
.eyebrow { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; margin: 0 0 1.5rem; }
h1 { font-size: clamp(3rem, 5.5vw, 5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; margin: 0 0 1.75rem; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; font-weight: 600; }
.hero-description { font-size: 1.25rem; max-width: 30rem; }
.hero-detail { font-size: .95rem; max-width: 28rem; }
.document-preview { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.paper { width: 6.5rem; height: 8rem; padding: 1rem; background: #fff; color: var(--color-primary-lighter); border-radius: .3rem 1.3rem .3rem .3rem; box-shadow: 0 6px 14px #24351220; transform: rotate(-6deg); }
.paper.output { transform: rotate(6deg); background: #f0f5e8; }
.paper-label { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.paper-line { display: block; height: .3rem; background: #ccd7be; margin-top: .55rem; border-radius: 1rem; }
.paper-line.short { width: 65%; }
.document-arrow { font-size: 2rem; }
.workspace { background: #f9fafb; margin: .75rem .75rem .75rem 0; padding: clamp(1.5rem, 3vw, 3rem); border-radius: .5rem; min-width: 0; }
.workspace > .eyebrow { color: var(--color-primary-lighter); }
.section-intro { color: var(--muted); margin: 0 0 1.5rem; }
label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .95rem; }
input[type="password"], input[type="file"] { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .4rem; padding: .8rem; font: inherit; background: white; color: #101828; }
input[type="file"] { font-size: .875rem; padding: .5rem; }
input::file-selector-button { font: inherit; font-weight: 600; padding: .6rem .75rem; margin-right: .75rem; border: 1px solid var(--border); border-radius: .25rem; color: var(--color-primary-lighter); background: #f4f7ee; cursor: pointer; }
.hint { color: var(--muted); font-size: .8rem; }
.checkbox { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; font-weight: 400; }
.checkbox input { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--color-primary); }
button, .download { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 2.75rem; font: inherit; font-size: .95rem; font-weight: 600; border-radius: .35rem; padding: .75rem 1.1rem; border: 1px solid var(--color-primary); background: var(--color-primary); color: white; cursor: pointer; }
button:hover, .download:hover { background: var(--color-primary-lighter); border-color: var(--color-primary-lighter); }
button:active, .download:active { background: var(--color-primary-darker); }
button:disabled { opacity: .55; cursor: wait; }
.secondary { color: var(--color-primary-lighter); background: white; border-color: var(--border); }
.secondary:hover { background: #edf2e5; }
.actions, .section-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.actions { margin-top: 1.5rem; }
.section-heading { justify-content: space-between; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.upload-field { border: 1px dashed #8b9e72; background: #f4f7ee; border-radius: .5rem; padding: 1.25rem; }
.upload-field .hint { margin-top: 0; }
.download { margin-top: 1.5rem; text-decoration: none; }
progress { width: 100%; height: .7rem; margin-top: 1.5rem; accent-color: var(--color-primary); }
#status { min-height: 1.5rem; color: var(--muted); font-size: .875rem; margin-top: 1.5rem; }
#error { color: #912018; background: #fff1f1; border: 1px solid #e8b4b7; padding: 1rem; border-radius: .4rem; overflow-wrap: anywhere; }
.prototype-note { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }
.prototype-note strong { display: block; color: #344054; margin-bottom: .25rem; }
.workflow { padding: 3rem 0; }
.workflow > h2 { margin-bottom: 2rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 0; margin: 0; }
.steps li { display: flex; gap: 1rem; }
.step-number { color: var(--color-primary-lighter); background: #f0f5e8; border-radius: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; flex-shrink: 0; font-size: .875rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }
.site-footer { border-top: 1px solid #eaecf0; padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .8rem; }
:focus-visible { outline: 3px solid #101828; outline-offset: 4px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .75rem 1rem; background: white; z-index: 1; }
.skip-link:focus { top: 1rem; }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 2.5rem; }
    .hero-description, .hero-detail { max-width: 38rem; }
    .document-preview { display: none; }
    .workspace { margin: 0 .75rem .75rem; padding: 2rem; }
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
    .site-header, main, .site-footer { width: calc(100% - 2rem); }
    .site-header { flex-wrap: wrap; gap: .75rem; padding-block: 1rem; margin-bottom: 1rem; }
    .brand-logo { height: 1.9rem; }
    .product-name { padding-left: .75rem; font-size: .85rem; }
    .preview-badge { margin-left: 0; }
    .hero-copy { padding: 1.75rem 1.5rem; }
    .workspace { padding: 1.5rem 1rem; }
    .upload-field { padding: .75rem; }
    .actions { align-items: stretch; flex-direction: column; }
    .download { width: 100%; }
    .workflow { padding-block: 2rem; }
}
