:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #14233a;
  --muted: #55657a;
  --line: #dde3ea;
  --brand: #0e6b72;
  --brand-dark: #0a4f55;
  --brand-soft: #e3f2f2;
  --major: #b3261e;      --major-bg: #fdeceb;
  --minor: #a35f00;      --minor-bg: #fff3df;
  --obs: #1f5fae;        --obs-bg: #e8f0fb;
  --na: #566274;         --na-bg: #eceff3;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--brand); }

/* Hero */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; max-width: 760px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin-top: 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { font: inherit; font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn-disabled { background: #e6eaef; color: #66758a; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.soon { font-size: 12px; font-weight: 700; background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); border-radius: 999px; padding: 1px 9px; white-space: nowrap; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.2; }
.section-lead { color: var(--muted); margin-top: 8px; max-width: 640px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 1.3; }
.steps p, .card p, .roadmap p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Chips */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.c-major { color: var(--major); background: var(--major-bg); }
.c-minor { color: var(--minor); background: var(--minor-bg); }
.c-obs { color: var(--obs); background: var(--obs-bg); }
.c-na { color: var(--na); background: var(--na-bg); }

/* Report */
.report { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(20,35,58,.06); }
.sample-banner { background: #fff7d6; color: #5c4600; border-bottom: 1px solid #ecd98a; padding: 12px 20px; font-size: 15px; }
.report-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.meta-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.meta-value { font-weight: 600; font-size: 15px; }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }
.t { border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; }
.t span { font-size: 28px; line-height: 1.1; font-weight: 700; }
.t-major { background: var(--major-bg); color: var(--major); }
.t-minor { background: var(--minor-bg); color: var(--minor); }
.t-obs { background: var(--obs-bg); color: var(--obs); }
.t-na { background: var(--na-bg); color: var(--na); }

.findings { padding: 0 20px 8px; display: grid; gap: 14px; }
.finding { background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: 18px 20px; }
.f-major { border-left-color: var(--major); }
.f-minor { border-left-color: var(--minor); }
.f-obs { border-left-color: var(--obs); }
.f-na { border-left-color: var(--na); }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.clause { font-size: 14px; color: var(--muted); font-weight: 600; }
.finding p { margin-top: 8px; font-size: 16px; }
.evidence { font-size: 14px !important; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px !important; }
.evidence span { font-weight: 700; color: var(--ink); margin-right: 6px; }
.plain { margin-top: 8px; display: grid; gap: 4px; }
.plain li { position: relative; padding-left: 18px; font-size: 16px; }
.plain li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ok-box { margin: 6px 20px 20px; padding: 16px 20px; border-radius: 10px; background: var(--brand-soft); border: 1px solid #c3e0e0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--brand); }

/* Roadmap */
.roadmap { margin-top: 28px; display: grid; gap: 12px; max-width: 760px; }
.roadmap li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.roadmap .soon { margin-top: 3px; min-width: 88px; text-align: center; }
.roadmap p { margin-top: 2px; }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--muted); }
.site-footer .small { font-size: 14px; margin-top: 6px; max-width: 640px; }

/* Mobile */
@media (max-width: 800px) {
  .steps, .cards, .report-head { grid-template-columns: 1fr; }
  .tally { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 44px 0; }
  .btn { width: 100%; justify-content: center; }
  nav { gap: 14px; }
  .roadmap li { flex-direction: column; gap: 8px; }
  .roadmap .soon { align-self: flex-start; }
}
