/* ─── DocuDistill Design System ─────────────────────────────
   Tan + Green palette. No dark backgrounds.
   Playfair Display headlines, Inter body, IBM Plex Mono data.
───────────────────────────────────────────────────────────── */

:root {
    --green-accent: hsl(143, 66%, 25%);
    --green-light: hsl(143, 66%, 35%);
    --green-bright: hsl(143, 66%, 45%);
    --green-soft: hsla(143, 50%, 40%, 0.08);
    --green-glow: hsla(143, 66%, 35%, 0.25);
    --green-bg: hsl(143, 30%, 95%);

    --tan: hsl(30, 30%, 90%);
    --tan-warm: hsl(30, 28%, 86%);
    --cream: hsl(38, 40%, 96%);
    --white: #fafaf9;

    --text-dark: #1c1917;
    --text-mid: #57534e;
    --text-muted: #a8a29e;

    --border: hsl(30, 15%, 82%);
    --border-green: hsla(143, 40%, 40%, 0.2);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", system-ui, sans-serif;
    --mono: "IBM Plex Mono", monospace;

    --page-px: clamp(24px, 4vw, 80px);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text-dark); background: var(--cream); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ─── Nav ───── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--page-px); background: hsla(38, 40%, 96%, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; }
.brand-logo.small { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 1.3rem; color: var(--text-dark); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 0.86rem; font-weight: 500; color: var(--text-mid); transition: color 0.2s; }
.nav-link:hover { color: var(--text-dark); }
.nav-upload-btn { padding: 9px 18px; border-radius: 50px; background: var(--green-accent); color: #fff; font-weight: 600; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; opacity: 0; transform: translateY(-6px); }
.nav-upload-btn.visible { display: inline-flex !important; opacity: 1; transform: translateY(0); }
.nav-upload-btn:hover { background: var(--green-light); }

/* ─── Hero ───── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px var(--page-px) 80px; background: linear-gradient(180deg, var(--cream) 0%, var(--tan) 100%); }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-content { max-width: 560px; }
.section-label { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-accent); margin-bottom: 18px; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-dark); }
.accent-text { color: var(--green-accent); }
.hero-sub { margin: 20px 0 0; font-size: 1.02rem; line-height: 1.75; color: var(--text-mid); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ─── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 50px; font-size: 0.84rem; font-weight: 600; transition: all 0.25s; border: none; cursor: pointer; }
.btn-primary { background: var(--green-accent); color: #fff; box-shadow: 0 6px 18px var(--green-glow); }
.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--green-accent); border: 2px solid var(--green-accent); }
.btn-secondary:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; color: var(--text-mid); }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }
.btn-lg { padding: 16px 32px; font-size: 0.92rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ─── Pipeline Demo (Hero) ───── */
.pipeline-demo { padding: 32px 20px; border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; align-items: center; }
.pipe-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; opacity: 0; transform: scale(0.85); transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pipe-stage.active { opacity: 1; transform: scale(1); }
.pipe-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--green-accent); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px var(--green-glow); }
.pipe-stage span { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pipe-stage.active span { color: var(--green-accent); }
.pipe-connector { width: 36px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; flex-shrink: 0; margin-bottom: 28px; }
.pipe-flow { width: 0; height: 100%; background: var(--green-accent); border-radius: 2px; transition: width 0.5s; }
.pipe-flow.active { width: 100%; }

/* ─── Stats Strip ───── */
.stats-strip { padding: 40px var(--page-px); background: var(--green-bg); border-top: 1px solid var(--border-green); border-bottom: 1px solid var(--border-green); }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat strong { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--green-accent); }
.stat span { display: block; margin-top: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── Sections ───── */
.section { padding: 90px var(--page-px); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tan { background: var(--tan); }
.section-green { background: var(--green-bg); }
.section-cta { background: var(--tan-warm); text-align: center; padding: 70px var(--page-px); }
.cta-inner { max-width: 560px; }
.section-title { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-dark); }
.section-sub { margin: 0 0 32px; font-size: 0.98rem; line-height: 1.75; color: var(--text-mid); max-width: 580px; }

/* ─── Steps Grid ───── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step-card { padding: 28px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border-green); box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.step-card:hover { transform: translateY(-3px); }
.step-number { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--green-accent); margin-bottom: 14px; }
.step-card h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }
.step-card p { margin: 0; font-size: 0.9rem; line-height: 1.7; color: var(--text-mid); }

/* ─── Capabilities Grid ───── */
.capabilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.capability-card { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border-green); transition: transform 0.25s; }
.capability-card:hover { transform: translateY(-3px); }
.capability-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--green-accent); display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.capability-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.capability-card p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-mid); }

/* ─── Templates ───── */
.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.template-card { padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.25s; }
.template-card:hover { transform: translateY(-3px); }
.tc-header { margin-bottom: 14px; }
.tc-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--green-soft); color: var(--green-accent); margin-bottom: 10px; }
.tc-header h4 { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--text-dark); }
.template-card p { margin: 0 0 16px; font-size: 0.88rem; line-height: 1.7; color: var(--text-mid); }
.tc-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-fields span { padding: 4px 10px; border-radius: 999px; background: var(--tan); font-family: var(--mono); font-size: 0.7rem; font-weight: 600; color: var(--text-mid); }
.template-note { margin-top: 28px; font-size: 0.92rem; line-height: 1.7; }

/* ─── Pricing ───── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pricing-card { padding: 32px 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.25s; }
.pricing-card:hover { transform: translateY(-3px); }
.pricing-featured { border-color: var(--green-accent); box-shadow: 0 8px 28px var(--green-glow); }
.pc-header { margin-bottom: 20px; }
.pc-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--green-soft); color: var(--green-accent); margin-bottom: 12px; }
.pricing-featured .pc-tag { background: var(--green-accent); color: #fff; }
.pc-header h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.pc-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--green-accent); }
.pc-price span { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.pc-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.pc-features li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.04); font-size: 0.9rem; color: var(--text-mid); }
.pc-features li:last-child { border-bottom: none; }
.pc-btn { width: 100%; text-align: center; }

/* ─── Contact ───── */
.contact-inner { text-align: center; max-width: 560px; }
.contact-email { margin-top: 16px; font-family: var(--mono); font-size: 0.88rem; color: var(--text-mid); }

/* ─── Demo: Extraction ───── */
.demo-frame { position: relative; margin-top: 36px; }
.demo-window { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f5f5f4; border-bottom: 1px solid var(--border); }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.r { background: #fca5a5; }
.demo-dot.y { background: #fcd34d; }
.demo-dot.g { background: #86efac; }
.demo-titlebar-text { margin-left: 8px; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.demo-body { display: grid; grid-template-columns: 0.6fr 0.4fr; min-height: 560px; }

.demo-doc-preview { position: relative; background: #f3f4f6; border-right: 1px solid var(--border); overflow: hidden; }
.demo-doc-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.demo-scan-line { position: absolute; left: 0; right: 0; height: 4px; background: var(--green-bright); box-shadow: 0 0 16px var(--green-glow), 0 0 6px var(--green-bright), 0 0 40px hsla(143, 66%, 45%, 0.15); opacity: 0; top: 0; pointer-events: none; border-radius: 2px; }
.demo-scan-line.scanning { opacity: 1; transition: top 7s linear; top: 100%; }

.demo-results { padding: 18px 22px; display: flex; flex-direction: column; }
.demo-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.demo-results-label { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.demo-status-badge { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s; }
.demo-status-badge.queued { background: #f3f4f6; color: var(--text-muted); }
.demo-status-badge.processing { background: #fef3c7; color: #b45309; }
.demo-status-badge.complete { background: hsla(143, 50%, 45%, 0.12); color: var(--green-light); }

.demo-fields { flex: 1; display: grid; gap: 5px; align-content: start; overflow: hidden; }
.demo-field { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; border-radius: var(--radius-sm); background: #f9fafb; border: 1px solid #f3f4f6; opacity: 0; transform: translateX(14px); transition: all 0.3s; }
.demo-field.visible { opacity: 1; transform: translateX(0); }
.demo-field-key { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.demo-field-value { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }
.demo-field-hw { font-size: 0.6rem; padding: 2px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 600; margin-left: 6px; }

.demo-results-footer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f3f4f6; opacity: 0; transition: opacity 0.4s; }
.demo-results-footer.visible { opacity: 1; }
.demo-stat { text-align: center; }
.demo-stat span { display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 3px; }
.demo-stat strong { font-size: 0.9rem; color: var(--text-dark); }

/* ─── Database Import Demo ───── */

#demoDatabase .demo-window {
    max-width: 780px;
    margin: 0 auto;
}

.db-step2 {
    padding: 18px 22px;
    position: relative;
    transition: all 0.5s ease;
}

.db-step2.fading {
    opacity: 0;
    transform: scale(0.97);
}

.db-step3 {
    padding: 16px;
    animation: fadeUp 0.4s ease;
}

.db-table-scroll {
    overflow-x: auto;
}

.db-import-btn {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.db-import-btn.clicked {
    background: var(--green-light);
    transform: scale(0.98);
}

.db-ripple {
    position: absolute;
    bottom: 24px;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: hsla(143, 60%, 45%, 0.25);
    transform: translate(-50%, 0) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.db-ripple.animate {
    animation: ripplePop 0.5s ease forwards;
}

@keyframes ripplePop {
    0% { transform: translate(-50%, 0) scale(0); opacity: 0.6; }
    100% { transform: translate(-50%, 0) scale(4); opacity: 0; }
}

/* Database table */
.db-table-container {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.db-table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.db-table-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.db-table-count {
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--green-accent);
}

.db-table {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
}

.db-table {
    min-width: 900px;
}

.db-table-head {
    display: grid;
    grid-template-columns: 56px 110px 30px 30px 30px 68px 90px 80px 52px 56px 76px 50px 76px 60px;
    gap: 4px;
    padding: 9px 12px;
    background: #f5f5f4;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid #e5e7eb;
}

.db-table-row {
    display: grid;
    grid-template-columns: 56px 110px 30px 30px 30px 68px 90px 80px 52px 56px 76px 50px 76px 60px;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.72rem;
    color: var(--text-mid);
    border-bottom: 1px solid #f5f5f4;
    transition: all 0.3s;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.db-table-row span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-table-row:last-child { border-bottom: none; }

.db-id {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--green-accent);
}

.db-badge-done {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--green-light);
}

.db-badge-new {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: hsla(143, 60%, 45%, 0.12);
    color: var(--green-accent);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.db-new-row {
    opacity: 0;
    transform: translateY(8px);
    background: hsla(143, 50%, 96%, 1);
    transition: all 0.5s ease;
}

.db-new-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated cursor for DB demo */
.db-cursor {
    position: absolute;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── Modal ───── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeOverlay 0.2s; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); text-align: center; animation: slideModal 0.25s; }
.modal-wide { max-width: 560px; text-align: left; }
@keyframes slideModal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.modal-close:hover { color: var(--text-dark); }
.modal-icon { display: inline-flex; margin-bottom: 14px; color: var(--green-accent); }
.modal h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.modal p { margin: 0 0 18px; color: var(--text-mid); font-size: 0.9rem; }
.modal .text-input { text-align: center; letter-spacing: 0.04em; }
.modal-error { margin-top: 10px; padding: 9px; border-radius: var(--radius-sm); background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: 0.84rem; }
.modal-submit { margin-top: 18px; width: 100%; }
.modal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.modal-header .modal-icon { margin-bottom: 0; }
.modal-header h3 { margin: 0; }
.modal-actions { display: flex; gap: 12px; margin-top: 18px; }

/* ─── Upload Zone ───── */
.upload-zone { width: 100%; padding: 36px 24px; border-radius: var(--radius-lg); border: 2px dashed var(--border); background: #fafaf9; text-align: center; cursor: pointer; transition: all 0.25s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--green-accent); background: var(--green-soft); }
.upload-zone-icon { display: inline-block; color: var(--green-accent); margin-bottom: 10px; }
.upload-zone strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.upload-zone span { font-size: 0.84rem; color: var(--text-muted); }

.upload-queue { margin-top: 14px; }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.queue-header h4 { margin: 0; font-size: 0.88rem; font-weight: 600; }
.queue-count { font-family: var(--mono); font-size: 0.76rem; font-weight: 600; color: var(--green-accent); }
.queue-list { display: grid; gap: 5px; max-height: 180px; overflow-y: auto; }
.queue-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: var(--radius-sm); background: #f5f5f4; border: 1px solid #e5e7eb; gap: 10px; }
.queue-item-name { font-size: 0.84rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.queue-item-size { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; }
.queue-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; font-size: 1rem; }
.queue-item-remove:hover { color: #dc2626; }

.upload-status { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: #f9fafb; border: 1px solid #e5e7eb; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }
.status-icon { color: var(--green-accent); display: inline-flex; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-status p { margin: 0; font-size: 0.88rem; color: var(--text-mid); }
.upload-status.success { border-color: var(--border-green); background: hsla(143,50%,96%,1); }
.upload-status.error { border-color: #fecaca; background: #fef2f2; }
.upload-status.error .status-icon { color: #dc2626; }

.submitter-info { margin-top: 14px; display: grid; gap: 8px; }
.field-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.text-input, .text-area { width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); color: var(--text-dark); font-size: 0.88rem; transition: border-color 0.2s, box-shadow 0.2s; }
.text-input:focus, .text-area:focus { outline: none; border-color: var(--green-accent); box-shadow: 0 0 0 3px hsla(143,60%,40%,0.08); }
.text-input::placeholder, .text-area::placeholder { color: var(--text-muted); }
.text-area { resize: vertical; min-height: 52px; }

/* ─── Footer ───── */
.footer { padding: 36px var(--page-px); background: var(--cream); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.footer-note { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* ─── Animations ───── */
.anim-fade { opacity: 0; transform: translateY(12px); }
.anim-fade.active { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.5s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── Responsive ───── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .capabilities-grid, .templates-grid, .pricing-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-body { grid-template-columns: 1fr; }
    .demo-doc-preview { max-height: 300px; }
}
@media (max-width: 640px) {
    .hero { padding-top: 100px; min-height: auto; }
    .hero h1 { font-size: 1.7rem; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .section { padding: 60px var(--page-px); }
    .nav-links .nav-link:not(.nav-upload-btn) { display: none; }
    .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
    .modal { padding: 24px; }
}
