:root {
  --ink: #15231f;
  --muted: #61706a;
  --paper: #f4f2eb;
  --surface: #fffdf8;
  --green: #0e5a48;
  --lime: #d9f05b;
  --line: #d8ddd7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw, 24px); border-bottom: 1px solid var(--line); background: rgba(244,242,235,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: .08em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); color: white; font: 700 22px Georgia, serif; border-radius: 4px 14px 4px 14px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #eaa847; box-shadow: 0 0 0 4px #eaa84722; }
main { width: min(1180px, 90vw); margin: 0 auto; }
.hero { min-height: 570px; display: grid; grid-template-columns: 1.45fr .75fr; gap: 70px; align-items: center; padding: 80px 0; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; margin: 0 0 18px; }
h1 { font: 500 clamp(44px, 6vw, 80px)/.98 Georgia, serif; max-width: 820px; margin: 0; letter-spacing: -.045em; }
.intro { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 28px 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 0; border-radius: 7px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; cursor: pointer; font-size: 14px; }
.primary { background: var(--green); color: white; box-shadow: 0 8px 22px #0e5a4822; }
.primary:hover { background: #0a493a; }
.secondary { border: 1px solid var(--line); background: transparent; }
.hero-panel { position: relative; padding: 22px; background: var(--green); color: white; border-radius: 6px 50px 6px 50px; min-height: 320px; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; width: 180px; height: 180px; border: 42px solid var(--lime); border-radius: 50%; right: -100px; bottom: -100px; opacity: .8; }
.metric { padding: 18px 14px; display: flex; gap: 20px; align-items: center; border-bottom: 1px solid #ffffff2c; }
.metric strong { color: var(--lime); font: 500 28px Georgia, serif; }
.metric span { font-size: 14px; }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 22px 70px #1b2a2410; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
h2 { font: 500 38px Georgia, serif; margin: 0; }
.phase { font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 8px 12px; }
.upload { border: 1.5px dashed #aebbb3; border-radius: 10px; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; transition: .2s ease; }
.upload:hover, .upload.dragging, .upload:focus { background: #f3f7ed; border-color: var(--green); outline: none; }
.upload-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green); font-size: 28px; margin-bottom: 16px; }
.upload h3 { margin: 0; font-size: 20px; }
.upload p { color: var(--muted); margin: 8px 0 22px; }
.upload .file-name { color: var(--green); font-weight: 700; margin: 18px 0 0; }
.progress { width: min(520px, 90%); height: 7px; background: var(--line); border-radius: 999px; margin-top: 18px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s ease; }
.results { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 36px; scroll-margin-top: 100px; }
.results-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.summary-grid div { background: var(--green); color: white; padding: 20px; border-radius: 8px; }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { color: var(--lime); font: 500 30px Georgia, serif; }
.summary-grid span { font-size: 12px; margin-top: 6px; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.report-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: white; }
.report-grid h3 { margin: 0 0 14px; font-size: 16px; }
.report-grid ul { margin: 0; padding-left: 20px; }
.report-grid li { margin: 0 0 9px; color: #34443e; line-height: 1.45; }
.report-grid li.empty { color: var(--muted); font-style: italic; }
.report-grid .risks { border-left: 4px solid #eaa847; }
.extracted { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.extracted summary { cursor: pointer; font-weight: 700; }
.extracted pre { white-space: pre-wrap; max-height: 420px; overflow: auto; font: 12px/1.55 ui-monospace, Consolas, monospace; color: #34443e; }
.disclaimer { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 70px 0; }
.features article { background: var(--paper); padding: 38px 30px; min-height: 250px; }
.features span { color: var(--green); font: 500 28px Georgia, serif; }
.features h3 { margin: 50px 0 12px; font-size: 18px; }
.features p { color: var(--muted); line-height: 1.6; margin: 0; }
footer { min-height: 100px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; width: min(1180px, 90vw); margin: 0 auto; }
@media (max-width: 780px) { .status { display: none; } .hero { grid-template-columns: 1fr; gap: 25px; padding: 56px 0; } .hero-panel { min-height: 260px; } .features, .report-grid { grid-template-columns: 1fr; } .summary-grid { grid-template-columns: repeat(2, 1fr); } .section-heading, .results-header, footer { align-items: flex-start; flex-direction: column; } footer { justify-content: center; gap: 8px; } }
