:root {
  --paper: #f3f6fc;
  --paper-2: #e6eef8;
  --ink: #031752;
  --ink-2: #2c3d6e;
  --muted: #6a7898;
  --line: #d5e0f0;
  --line-strong: #b7c6de;
  --card: #ffffff;
  --accent: #0249ed;
  --accent-2: #03d8b8;
  --sky: #1ca2fb;
  --lead: #08766c;
  --gap: #b4232c;
  --shadow: 0 20px 50px -28px rgba(3, 23, 82, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(3, 23, 82, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --sans: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --grid: rgba(3, 23, 82, 0.055);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.04em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.lead { color: var(--lead); }
.gap { color: var(--gap); }
.mono { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-right: auto;
}
.brand img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; gap: 22px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--black { background: var(--ink); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line-strong); }
.btn--gold { background: var(--accent-2); color: var(--ink); }

/* HERO */
.hero { padding: 72px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lead);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }
h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin-top: 18px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  max-width: 48ch;
}

.window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.dots i:nth-child(1) { background: var(--accent); }
.dots i:nth-child(2) { background: var(--sky); }
.dots i:nth-child(3) { background: var(--accent-2); }
.window__url {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.window__live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--lead);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.window__tools {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.seg {
  display: flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  color: var(--muted);
}
.seg button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi { background: #fff; padding: 14px 16px; }
.kpi b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.kpi span { font-size: 11px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }

.ladder { padding: 6px 0 4px; }
.rrow {
  display: grid;
  grid-template-columns: 28px 1fr 64px 64px;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  position: relative;
}
.rrow__fill {
  position: absolute;
  inset: 4px auto 4px 16px;
  background: #d8f7f2;
  border-radius: 8px;
  width: 0;
  transition: width 0.7s cubic-bezier(.2,.75,.2,1);
}
.rrow > *:not(.rrow__fill) { position: relative; z-index: 1; }
.rrow__n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.rrow__b { font-weight: 700; font-size: 14px; }
.rrow__v { font-family: var(--mono); font-size: 12px; text-align: right; }
.rrow__v.dim { color: var(--muted); }
.window__foot {
  padding: 10px 16px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.strip {
  border-block: 1px solid var(--line);
  background: #fff;
}
.strip__in {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat { padding: 22px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.05em;
}
.stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }

.section { padding: 88px 0; }
.section--tight { padding-top: 64px; }
.kicker {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
h2 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  max-width: 18ch;
}
.h2-wide { max-width: 28ch; }
.sub {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 62ch;
  font-size: 17px;
}

.cards-3, .cards-4 {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 18px; margin: 8px 0 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.problem li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.problem li b { color: var(--ink); }

.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-top: 28px;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
caption {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
th, td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); font-size: 13.5px; }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
tbody td:first-child { font-weight: 750; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f3f7fd; }
.bar {
  display: inline-block;
  height: 7px;
  background: var(--accent-2);
  border-radius: 99px;
  margin-right: 8px;
  vertical-align: middle;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
  counter-reset: s;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.step h3 { margin: 10px 0 8px; font-size: 17px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--accent);
  font-size: 20px;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 74ch; }

.cta {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
}
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
}
.field textarea { min-height: 80px; resize: vertical; }
.form .btn { justify-content: center; }
.form__note { font-size: 12px; color: var(--muted); }
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.contact a:hover { text-decoration: underline; }
.credits a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__done { color: var(--lead); font-size: 13px; font-weight: 650; }

.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 48px 0 28px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.foot a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.foot a:hover { color: var(--accent); }
.foot ul { display: grid; gap: 8px; }
.foot__base {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* REPORT */
.report-page { background: #eef3fb; }
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: color-mix(in srgb, #fff 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
}
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.report {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 18px;
  padding: 22px 0 64px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--paper);
}
.metric b { display: block; font-size: 22px; letter-spacing: -0.04em; }
.metric span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.heat {
  display: grid;
  gap: 6px;
  overflow: auto;
}
[hidden] { display: none !important; }
.heat-row {
  display: grid;
  grid-template-columns: 170px repeat(5, minmax(64px, 1fr));
  gap: 6px;
  align-items: center;
  min-width: 680px;
}
.heat-cell {
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
}
.insight {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--paper);
}
.insight b { display: block; margin-bottom: 4px; }
.insight p { font-size: 13.5px; color: var(--ink-2); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

@media (max-width: 980px) {
  .hero__grid, .problem, .cta, .report, .cards-3, .cards-4, .steps, .strip__in, .foot__grid, .kpis, .metric-grid {
    grid-template-columns: 1fr;
  }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 64px 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
  }
  .menu-btn { display: grid; place-items: center; }
  .hero { padding-top: 36px; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .brand img { height: 28px; }
  .nav__in { gap: 10px; }
  .nav__cta .btn--ghost { display: none; }
  .nav__cta .btn { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
