:root {
  color-scheme: dark;
  --night: #0b0d12;
  --night-2: #141821;
  --night-3: #191e29;
  --line: #262b36;
  --ink: #eef0f4;
  --ink-2: #b6bdc9;
  --ink-3: #9098a8;
  --blue: #a6b5ff;
  --blue-strong: #263c9e;
  --green: #a4d8b8;
  --red: #ffb5ae;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #d5ddff; }
button, input { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid #465078; border-radius: 5px; background: #283b8e; color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #354aa7; color: white; }
button:disabled { cursor: not-allowed; opacity: .55; }
input[type="email"], input[type="password"], input[type="text"], input[type="file"] { width: 100%; max-width: 44rem; min-height: 2.8rem; padding: .6rem .75rem; border: 1px solid #3a4150; border-radius: 4px; background: #0f1219; color: var(--ink); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: #93a6ff; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
code { color: #d4dcff; font-size: .93em; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 4px; background: #090b10; color: #e3e7f0; font-size: .87rem; line-height: 1.55; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid #b6c4ff; outline-offset: 3px; }

.page-shell { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 4.8rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 720; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.15rem; }
.nav a, .site-header nav a, .site-footer nav a { color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.nav a:hover, .site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: .4em; }
.eyebrow { margin: 0 0 .7rem; color: var(--blue); font: 600 .75rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { max-width: 18ch; margin: .25rem 0 1.2rem; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 510; letter-spacing: -.055em; }
h2 { margin: 0 0 .7rem; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 560; letter-spacing: -.035em; }
h3 { font-size: 1.08rem; font-weight: 650; }
p, ul, ol { color: var(--ink-2); }
p { margin: .55rem 0 1rem; }
li + li { margin-top: .4rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.6rem, 8vw, 7.3rem); }
.hero-copy > p { max-width: 62ch; font-size: 1.12rem; }
.hero-copy .promise { color: var(--ink); font-size: 1.25rem; }
.panel { min-width: 0; margin: 1.2rem 0; padding: clamp(1.1rem, 2.8vw, 2rem); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, rgb(255 255 255 / .035), rgb(255 255 255 / .012)); box-shadow: 0 18px 50px rgb(0 0 0 / .12); }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.drop-zone { display: grid; gap: .9rem; padding: 1.2rem; border: 1px dashed #535d73; border-radius: 5px; background: #10141c; }
.drop-zone.dragging { border-color: var(--blue); background: #161d31; }
.field-label { display: block; margin-bottom: .35rem; color: var(--ink); font-weight: 600; }
.consent { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-2); font-size: .9rem; }
.muted, .fine-print { color: var(--ink-3); font-size: .87rem; }
.callout { padding: .85rem 1rem; border-left: 3px solid var(--blue); background: #111723; color: var(--ink-2); }
.notice-error { color: var(--red); }
.notice-ok { color: var(--green); }
.status-line { min-height: 1.6em; }
.metric-grid, .three-pane, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.metric-grid article, .result-pane, .feature-card { padding: 1rem; border: 1px solid var(--line); border-radius: 4px; background: #10141b; }
.metric-grid strong { display: block; color: var(--ink); font-size: 1.35rem; }
.metric-grid p { margin-bottom: 0; font-size: .9rem; }
.result-pane h3 { margin-top: 0; }
.result-pane ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.result-pane li { overflow-wrap: anywhere; }
.status-chip { display: inline-block; margin: .15rem .25rem .15rem 0; padding: .15rem .45rem; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); font: 500 .75rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.status-chip.pass { border-color: #31583e; color: var(--green); }
.status-chip.fail { border-color: #77433f; color: var(--red); }
.section { padding-block: 1.2rem 3.5rem; }
.section-intro { max-width: 66ch; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
caption { padding: .7rem 0; color: var(--ink-3); text-align: left; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 3rem; padding: 1.4rem 0 2.2rem; border-top: 1px solid var(--line); color: var(--ink-3); }
.site-footer p { margin: 0; font-size: .86rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .page-shell { width: min(var(--max), 100% - 1.4rem); }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: .9rem; }
  .nav { justify-content: flex-start; gap: .45rem 1rem; }
  .hero { grid-template-columns: 1fr; padding-block: 3.2rem; }
  .three-pane, .metric-grid, .feature-grid, .split { grid-template-columns: 1fr; }
  .panel { margin-block: .75rem; }
  th, td { min-width: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
