:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c1d21;
  background: #f5f5fa;
  font-synthesis: none;
  line-height: 1.55;
  --ink: #1c1d21;
  --muted: #62627d;
  --blue: #3554ba;
  --blue-bright: #5e81f4;
  --line: #dddde8;
  --surface: #ffffff;
  --lavender: #e8e7f8;
  --mint: #d8f6e5;
  --amber: #fff0cf;
  --shadow: 0 8px 30px rgba(35, 37, 63, 0.07), 0 2px 6px rgba(35, 37, 63, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 6%, rgba(94, 129, 244, 0.10), transparent 24rem),
    #f5f5fa;
}

button, a { font: inherit; }

a { color: var(--blue); text-underline-offset: 4px; }

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: -80px;
  left: 20px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 16px; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  font-size: 19px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-bright);
  border-radius: 9px;
  box-shadow: 0 5px 12px rgba(53, 84, 186, 0.25);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status,
.complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.status { color: #4f4f79; background: var(--lavender); }
.status span { width: 7px; height: 7px; border-radius: 50%; background: #6e6bc5; }
.complete-badge { color: #24603e; background: var(--mint); }

.text-link { font-size: 13px; font-weight: 700; text-decoration: none; }

.hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  padding-block: 74px 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5.4vw, 61px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 em { color: var(--blue); font-style: normal; }

h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 610px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  appearance: none;
  border: 1px solid var(--blue);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 48px;
  padding: 11px 20px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(53, 84, 186, 0.18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: #29469f; }

.button-secondary {
  color: var(--blue);
  background: #fff;
  box-shadow: none;
}

.button-secondary:hover { background: #f1f3fc; }

.disclosure,
.sample-note,
.section-intro,
.limit-note,
.next-step p,
.noscript {
  color: var(--muted);
  font-size: 13px;
}

.disclosure { margin: 15px 0 0; }

.sample-card,
.panel,
.evidence-thread,
.next-step,
.metric {
  border: 1px solid rgba(221, 221, 232, 0.95);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sample-card { padding: 30px; transform: rotate(0.35deg); }

.sample-heading,
.panel-heading,
.results-header,
.next-step {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.sample-heading h2 { margin: 0; font-size: 25px; }

.file-badge,
.panel-index {
  color: var(--blue);
  background: #eef1ff;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

blockquote {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue-bright);
  border-radius: 0 8px 8px 0;
  background: var(--lavender);
  color: #3d3d58;
  font-size: 14px;
}

.sample-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.sample-stats div {
  min-width: 0;
  padding: 12px;
  border-radius: 7px;
  background: #f7f7fb;
}

.sample-stats dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.sample-stats dd { margin: 3px 0 0; font-size: 13px; font-weight: 750; }
.sample-note { margin: 18px 0 0; }

.results {
  padding-block: 74px 80px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.results[hidden] { display: none; }
.results.revealed { animation: reveal 420ms ease-out both; }

@keyframes reveal {
  from { transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-header { margin-bottom: 28px; }
.results-header .section-intro { max-width: 650px; margin-bottom: 0; font-size: 15px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-top-width: 4px;
}

.metric-blue { border-top-color: var(--blue-bright); }
.metric-lavender { border-top-color: #9698d6; }
.metric-mint { border-top-color: #61cc91; }
.metric-amber { border-top-color: #e5b855; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.metric strong { margin: 6px 0 2px; color: var(--blue); font-size: 31px; line-height: 1; }
.metric > span:last-child { color: var(--muted); font-size: 12px; }

.report-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.panel { padding: 26px; }
.panel-heading { margin-bottom: 24px; }

.theme-list { display: grid; gap: 17px; }
.theme-row > div { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: 13px; }
.theme-row strong { color: var(--muted); font-size: 11px; }
.bar { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #eeeef5; }
.bar i { display: block; width: var(--size); height: 100%; border-radius: inherit; background: var(--blue-bright); }
.theme-row:nth-child(2) .bar i { background: #9698d6; }
.theme-row:nth-child(3) .bar i { background: #61cc91; }
.theme-row:nth-child(4) .bar i { background: #e5b855; }

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.comparison-value {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 9px;
  background: #f4f4f9;
}

.comparison-value.emphasis { background: var(--mint); }
.comparison-value > span { color: var(--muted); font-size: 11px; }
.comparison-value strong { margin: 8px 0 2px; color: var(--blue); font-size: 33px; line-height: 1; }
.comparison-value small { color: #4c4d61; font-size: 10px; }
.delta { align-self: center; color: #24603e; background: #eefaf3; border-radius: 999px; padding: 8px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }

.evidence-thread { margin-top: 22px; overflow: hidden; }
.thread-heading { padding: 26px 26px 20px; }
.evidence-thread ol { list-style: none; margin: 0; padding: 0 26px 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.evidence-thread li { min-width: 0; display: flex; gap: 13px; padding: 18px; border-radius: 9px; }
.thread-observed { background: var(--lavender); }
.thread-hypothesis { background: var(--amber); }
.thread-recommendation { background: var(--mint); }
.thread-number { color: var(--muted); font-size: 10px; font-weight: 800; }
.evidence-thread li strong { display: block; margin-bottom: 5px; font-size: 13px; }
.evidence-thread li p { margin: 0; color: #4c4d61; font-size: 12px; }
.limit-note { margin: 0; padding: 14px 26px; border-top: 1px solid var(--line); background: #fafafc; }

.next-step {
  align-items: center;
  margin-top: 22px;
  padding: 28px;
  border-left: 5px solid var(--blue-bright);
}
.next-step h2 { margin-bottom: 7px; font-size: 26px; }
.next-step p { max-width: 720px; margin: 0; }
.next-step .button { flex: 0 0 auto; }

.site-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a { font-weight: 750; text-decoration: none; }
.noscript { margin-bottom: 28px; padding: 16px; border-radius: 8px; background: var(--amber); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 64px; }
  .sample-card { transform: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .evidence-thread ol { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 74px; }
  .desktop-link { display: none; }
  .hero { min-height: 0; padding-block: 44px 52px; }
  h1 { font-size: 39px; }
  .lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .button { width: 100%; }
  .sample-card, .panel, .evidence-thread, .next-step { border-radius: 10px; }
  .sample-card { padding: 22px; }
  .sample-stats { grid-template-columns: 1fr; }
  .results { padding-block: 54px 60px; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 138px; padding: 17px; }
  .metric strong { font-size: 27px; }
  .panel { padding: 22px; }
  .comparison { grid-template-columns: 1fr; }
  .delta { justify-self: start; }
  .evidence-thread ol { padding-inline: 20px; }
  .thread-heading { padding-inline: 20px; }
  .next-step { align-items: stretch; flex-direction: column; }
  .next-step .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .results.revealed { animation: none; }
}
