:root {
  color-scheme: dark;
  --ink: #f7f8f4;
  --muted: #a7aca4;
  --line: #2c312f;
  --panel: #161a19;
  --panel-2: #1c211f;
  --accent: #b9f34a;
  --accent-ink: #11150d;
  --danger: #ff8074;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #0d100f;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: auto;
  padding: 28px 24px;
}
.brand { font-weight: 900; letter-spacing: .16em; text-decoration: none; }
.status { color: var(--accent); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 80px; }
.hero { padding: 72px 0 52px; }
.eyebrow, .step { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 8px 0 20px; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .93; letter-spacing: -.065em; }
.lede { max-width: 720px; color: #c6cbc3; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border: 1px solid var(--line); }
.trust-grid div { display: flex; flex-direction: column; gap: 2px; padding: 24px; border-right: 1px solid var(--line); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { color: var(--accent); font-size: 1.4rem; }
.trust-grid span { color: var(--muted); font-size: .84rem; }
.panel { margin: 24px 0; padding: clamp(24px, 5vw, 52px); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.section-heading { display: grid; grid-template-columns: 52px 1fr; gap: 12px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.section-heading p:not(.step) { color: var(--muted); margin: 6px 0 0; }
.step { margin: 8px 0; }
.form-grid, .judgments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; color: #d9ddd7; font-size: .88rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #3a413e;
  border-radius: 10px;
  padding: 13px 14px;
  background: #0f1311;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-row { flex-direction: row; align-items: flex-start; margin-top: 20px; color: var(--muted); font-weight: 500; }
.check-row input { width: 18px; margin-top: 3px; accent-color: var(--accent); }
.progress-shell { margin: 24px 0; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; background: #303632; border-radius: 99px; }
.progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .2s ease; }
.case-card { padding: clamp(20px, 4vw, 36px); background: var(--panel-2); border: 1px solid #353b38; border-radius: 16px; }
.case-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.case-card h3 { margin: 22px 0; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.3; }
.document { margin: 14px 0; overflow: hidden; border: 1px solid #343a37; border-radius: 12px; }
.document summary { cursor: pointer; padding: 14px 16px; background: #121614; font-weight: 750; }
.document pre { margin: 0; padding: 18px; overflow-x: auto; white-space: pre-wrap; color: #d2d6cf; font: .82rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.document a { display: inline-block; padding: 0 18px 18px; color: var(--accent); font-size: .8rem; }
.judgments { margin-top: 26px; }
.wide { grid-column: 1 / -1; }
.navigation, .export-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
button { border: 0; border-radius: 10px; padding: 13px 20px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 850; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .4; }
button.secondary { background: #303633; color: var(--ink); }
button.danger { background: transparent; color: var(--danger); border: 1px solid #5c3733; }
.digest { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .82rem; }
.digest code { color: var(--ink); overflow-wrap: anywhere; }
.validation-message { min-height: 26px; margin-top: 18px; color: var(--accent); }
.validation-message.error { color: var(--danger); }
pre { overflow-x: auto; }
footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 0 0 56px; color: var(--muted); font-size: .82rem; }

@media (max-width: 680px) {
  .status { display: none; }
  .hero { padding-top: 42px; }
  .trust-grid, .form-grid, .judgments { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid div:last-child { border-bottom: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .navigation, .export-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-bar { transition: none; }
}
