:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --ink: #1e2b3a;
  --muted: #7b8794;
  --line: #e4e8ee;
  --card: #ffffff;
  --green: #74c044;
  --green-dark: #62a838;
  --shadow: 0 10px 30px rgba(30, 43, 58, 0.06);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--green-dark); }
button, input { font: inherit; }

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-mark { display: flex; flex: none; }
.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav a {
  color: #8b95a1;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--green); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 3px;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.head {
  min-height: 445px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(90% 80% at 12% 100%, rgba(74, 96, 104, 0.34), transparent 52%),
    radial-gradient(70% 70% at 88% 110%, rgba(92, 118, 108, 0.28), transparent 50%),
    linear-gradient(180deg, #f4f7f7 0%, #e3eaeb 36%, #c5d3d6 70%, #8ea3a8 100%);
}
.hero-inner { padding: 72px 0 80px; }
.kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  color: var(--ink);
}
h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}
.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #3d4c5c;
  font-size: 1.12rem;
}
.rule {
  display: block;
  width: 46px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--green);
}

.primary, .ghost, .file-btn {
  display: inline-block;
  border-radius: 3px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
}
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-dark); }
.primary:disabled { opacity: 0.55; cursor: not-allowed; }
.ghost { background: #fff; border-color: #d5dbe3; color: var(--ink); }
.ghost:hover { border-color: var(--green); color: var(--green-dark); }
.file-btn { margin-top: 16px; background: var(--green); color: #fff; }
.file-btn:hover { background: var(--green-dark); }

.section { padding: 78px 0; scroll-margin-top: 78px; }
.head { scroll-margin-top: 78px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .kicker { margin-bottom: 10px; }

.stat-band { text-align: center; }
.stat-num {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.stat-band p:last-child {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
}

.prose p { margin: 0 0 16px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature { text-align: center; }
.icon-ring {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
.feature h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.upload-card { text-align: center; }
.drop {
  border: 1.5px dashed #c9d2dc;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: #fff;
  cursor: pointer;
}
.section-alt .drop, .drop { background: #fff; }
.drop.is-over { border-color: var(--green); background: #f4fbee; }
.drop strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.drop p { margin: 0; color: var(--muted); }
.preview {
  display: none;
  margin-top: 18px;
  gap: 16px;
  align-items: center;
  text-align: left;
}
.preview.is-on { display: flex; justify-content: center; scroll-margin-top: 90px; }
.preview img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  background: #eef1f4;
}
.preview-name { margin: 0; font-weight: 700; word-break: break-word; }
.preview-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.actions.is-hidden { display: none; }
.fine { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }

.status {
  display: none;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  text-align: left;
}
.status.is-on { display: flex; }
.status-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 36rem;
}
.status-note { font-size: 0.92rem; }
.spinner {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #d9efc8;
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff4f2;
  color: #8a3328;
  text-align: left;
}
.alert.is-on { display: block; }

.results { display: none; margin-top: 22px; text-align: left; }
.results.is-on { display: grid; gap: 14px; }
.pdf-row { margin: 0; text-align: center; }
.reality {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.1;
}
.reality--red { color: #c0392b; }
.reality--yellow { color: #c5920a; }
.reality--light { color: #7cb342; }
.reality--green { color: #2e8b57; }
.elapsed {
  margin: 8px 0 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.block {
  padding: 18px 18px 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.block h3 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.muted { color: var(--muted); }
.comment, .finding {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.comment:first-of-type, .finding:first-of-type { border-top: 0; }
.gen-prompt { margin: 0 0 12px; line-height: 1.45; word-break: break-word; }
.gen-prompt b { display: block; margin-bottom: 2px; }
.review { font-size: 1rem; line-height: 1.6; }
.review p { margin: 0 0 0.75em; }
.review ul, .review ol { margin: 0 0 0.75em; padding-left: 1.25em; }
.review li + li { margin-top: 0.25em; }
.comment pre, .report {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
  background: var(--bg-alt);
  padding: 10px;
}
.tag {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #eef2f6;
}
.tag.ai { background: #fde8e6; color: #c0392b; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.disclaimer { font-size: 0.95rem; color: var(--muted); text-align: center; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink);
}
.faq details p { margin: 0 0 16px; color: var(--muted); }

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.footer p { margin: 0 auto; max-width: 760px; }

dialog {
  border: 0;
  padding: 28px;
  width: min(480px, calc(100% - 28px));
  box-shadow: 0 20px 50px rgba(30, 43, 58, 0.18);
}
dialog::backdrop { background: rgba(30, 43, 58, 0.45); }
dialog h2 { margin-top: 0; font-size: 1.15rem; }
dialog p { color: var(--muted); }
dialog .actions { justify-content: flex-start; }

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .grid-2, .features { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
