/* IQRAX launch page. Colours, type and spacing follow brand_tokens.json (light theme). */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #FFFFFF;
  --surface-tint: #EEF1F5;
  --ink: #1F2A36;
  --muted: #52514E;
  --link: #1F4E9A;
  --teal: #0096B4;
  --hairline: #ECEAE6;
  --border-strong: #898781;
  --tint-blue: #E6F0FB;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --gutter: 24px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 27px;
}
img, svg { display: block; }
a { color: var(--link); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.cta a:focus-visible { outline-color: var(--surface); }
h1, h2, h3, p, ol, figure { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-nav a {
  font-size: 15px; line-height: 20px; font-weight: 700; text-decoration: none; color: var(--ink);
  padding: 10px 0;
}
.site-nav a:hover { color: var(--link); }
.site-nav .nav-button { border: 1px solid var(--border-strong); border-radius: 4px; padding: 10px 16px; }

/* Hero */
.hero { padding-top: var(--section); padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.02em; max-width: 920px;
  text-wrap: balance;
}
.lead { font-size: 20px; line-height: 31px; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; line-height: 20px; font-weight: 700; text-decoration: none;
  border-radius: 4px; padding: 14px 22px;
}
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { color: var(--surface); text-decoration: underline; }
.button-ghost { color: var(--ink); border: 1px solid var(--border-strong); padding: 13px 22px; }
.pill {
  font-size: 13px; line-height: 16px; background: var(--tint-blue); color: var(--ink);
  border-radius: 4px; padding: 3px 8px;
}

/* Bento */
.band { padding-bottom: var(--section); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.panel {
  background: var(--surface-tint); border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.panel-large { grid-row: 1 / 3; justify-content: flex-end; }
.panel h2 { font-size: 20px; line-height: 26px; font-weight: 700; }
.metric { font-size: 44px; line-height: 48px; font-weight: 700; color: var(--teal); letter-spacing: -0.01em; }
.panel-large .metric { font-size: 56px; line-height: 60px; letter-spacing: -0.02em; }
.panel p.body { color: var(--muted); }

/* Section headings */
.section-title { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; }
.rule { width: 40px; height: 4px; background: var(--teal); border-radius: 2px; }

/* Chart */
.chart {
  background: var(--surface-tint); border-radius: 12px; padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.chart-rows { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 24px; align-items: center; }
.chart-label { font-size: 15px; line-height: 20px; font-weight: 700; }
.chart-bar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chart-bar svg { flex: 1 1 auto; min-width: 0; width: 100%; height: 36px; }
.chart-value { font-size: 15px; line-height: 20px; white-space: nowrap; }
.chart figcaption { color: var(--muted); max-width: 760px; }

/* Ladders */
.ladders-section { display: flex; flex-direction: column; gap: 32px; }
.ladders-head { display: flex; flex-direction: column; gap: 12px; }
.ladders { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ladder {
  background: var(--surface-tint); border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.ladder .kicker { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.ladder h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
.ladder .outcomes { font-size: 15px; line-height: 23px; font-weight: 700; }
.ladder .rungs { font-size: 14px; line-height: 21px; color: var(--muted); }

/* Papers */
.papers { border-top: 1px solid var(--hairline); }
.papers .wrap { padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-direction: column; gap: 24px; }
.paper-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.paper-list li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.paper-list a { font-size: 17px; line-height: 27px; font-weight: 700; }
.paper-meta { font-size: 14px; line-height: 21px; color: var(--muted); overflow-wrap: anywhere; }
.paper-list li.brief { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.brief-title { font-size: 17px; line-height: 27px; font-weight: 700; }

/* Call to action */
.cta { background: var(--ink); color: var(--surface); }
.cta .wrap {
  padding-top: var(--section); padding-bottom: var(--section);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.cta h2 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.01em; }
.cta p { font-size: 20px; line-height: 31px; color: var(--hairline); max-width: 640px; }
.button-light { background: var(--surface); color: var(--ink); }
.button-light:hover { color: var(--ink); text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 21px; color: var(--muted);
}

@media (max-width: 1023px) {
  .bento { grid-template-columns: 1fr; }
  .panel-large { grid-row: auto; }
  .ladders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --section: 64px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .site-nav .navlink { display: none; }
  .ladders { grid-template-columns: 1fr; }
  .panel, .chart { padding: 24px; }
  .panel-large .metric { font-size: 44px; line-height: 48px; }
  .chart-rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chart-bar + .chart-label { margin-top: 8px; }
  .section-title { font-size: 28px; line-height: 34px; }
  .cta h2 { font-size: 32px; line-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
