:root {
  --bg: #f6f4f0;
  --surface: #fffcf9;
  --ink: #1b2433;
  --soft: #3e4a5d;
  --muted: #667084;
  --faint: #8b93a1;
  --line: #e5dfd6;
  --green: #1b7f56;
  --green-soft: #e7f4ee;
  --navy: #1b2433;
  --amber: #8a5a12;
  --amber-soft: #f8f1e3;
  --risk: #8d3b32;
  --risk-soft: #f8ece9;
  --shadow: 0 24px 60px rgba(27, 36, 51, 0.07);
  --sans: "Avenir Next", "Segoe UI", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(27, 127, 86, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
button, textarea, input { font: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.site-header, .site-footer, main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.hero { padding: 54px 0 28px; max-width: 760px; margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}
h1 span { color: var(--green); }
.hero-copy, .lede { color: var(--soft); font-size: 18px; max-width: 640px; margin-inline: auto; }
.fine { color: var(--muted); font-size: 14px; }

.check-card {
  margin-top: 28px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.check-card textarea {
  display: block;
  width: 100%;
  min-height: 148px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  padding: 16px 16px 8px;
  font-size: 17px;
  outline: none;
}
.check-card textarea::placeholder { color: #9aa3b2; }
.composer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px;
}
.composer-left, .examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ghost, .examples button, .text-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.ghost:hover, .examples button:hover, .text-button:hover { background: white; color: var(--ink); }
.primary {
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  padding: 13px 18px;
  min-width: 118px;
  cursor: pointer;
}
.primary:hover { transform: translateY(-1px); }
.primary:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hint { color: var(--faint); font-size: 12px; padding-left: 8px; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 8px; }
.preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 36, 51, 0.78);
  color: white;
  cursor: pointer;
}
.drop-active { outline: 2px dashed var(--green); }

.stages, .status-line { margin: 16px 4px 0; }
.stages { list-style: none; padding: 0; display: grid; gap: 8px; }
.stages li, .status-line {
  color: var(--muted);
  font-size: 14px;
}
.stages li { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  flex: none;
}
.is-done .dot { background: var(--green); }
.is-active .dot { background: var(--navy); box-shadow: 0 0 0 4px rgba(27, 36, 51, 0.08); }
.examples { margin: 16px 0 8px; justify-content: center; }
.error { color: var(--risk); }

.feature-grid, .steps, .report-grid { display: grid; gap: 14px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); width: min(760px, 100%); margin: 28px auto 64px; }
.card, .step, .result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.feature-number, .result-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card { text-align: center; }
.card h2, .result-card h2 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.card p, .step p, .result-card p, .page p { color: var(--soft); }
.page { padding: 48px 0 72px; max-width: 760px; margin-inline: auto; }
.page > .eyebrow, .page > h1, .page > p:first-of-type { text-align: center; }
.page h1 { font-size: clamp(36px, 6vw, 60px); }
.steps { margin-top: 28px; }
.step strong { display: block; margin-bottom: 6px; }

.site-footer {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}
.site-footer a { color: var(--muted); }

.report { width: min(760px, calc(100% - 32px)); padding: 28px 0 64px; margin-inline: auto; overflow-wrap: anywhere; }
.answer {
  margin: 0 0 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}
.answer-label {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.share-row { margin: 16px 0 4px; }
.share {
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.share-note {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.status-pill, .pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #eef1f6;
  color: var(--navy);
  white-space: nowrap;
}
.status-high-risk { background: var(--risk-soft); color: var(--risk); }
.status-unverified { background: #eef1f6; color: var(--navy); }
.status-insufficient-data { background: #f1efe9; color: #5c6570; }
.report h1 { font-size: clamp(28px, 5vw, 40px); margin: 14px 0 10px; text-align: left; }
.report header { text-align: left; }
.summary { font-size: 18px; color: var(--soft); }
.evidence-note, .disclaimer { color: var(--muted); font-size: 14px; }
.report-grid { margin-top: 18px; }
.result-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--soft); }
.result-card li { margin: 8px 0; }
.conflict { border-left: 3px solid #c4a15a; }
.independent { border-left: 3px solid var(--green); }
.user-evidence { border-left: 3px solid #c5ccd6; }
.before { background: #f3faf6; }
.source-list { list-style: none; padding: 0; margin: 8px 0 0; }
.source-list li { margin: 12px 0; }
.source-list a { color: var(--ink); }
.source-meta { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.back { display: inline-block; margin-top: 18px; color: var(--muted); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 800px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; padding-top: 16px; }
  .brand-logo { height: 30px; }
  .nav { gap: 14px; font-size: 13px; }
  .hero { padding-top: 28px; }
  .composer { flex-direction: column; align-items: stretch; }
  .primary, .ghost { width: 100%; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
