/* Approach - SQUAKE licensed typeface */
@font-face{font-family:'Approach';font-weight:300;font-style:normal;font-display:swap;src:url('../fonts/approach-300.woff2') format('woff2');}
@font-face{font-family:'Approach';font-weight:400;font-style:normal;font-display:swap;src:url('../fonts/approach-400.woff2') format('woff2');}
@font-face{font-family:'Approach';font-weight:500;font-style:normal;font-display:swap;src:url('../fonts/approach-500.woff2') format('woff2');}
@font-face{font-family:'Approach';font-weight:700;font-style:normal;font-display:swap;src:url('../fonts/approach-700.woff2') format('woff2');}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-muted: #F2F3F8;
  --bg-faint: #EEEFFC;
  --band: #15182B;
  --band-line: #2E3350;
  --ink: #15182B;
  --body: #4B5065;
  --muted: #7C8195;
  --accent: #5C68D3;
  --accent-soft: #A7ADE9;
  --brand: #5C68D3;
  --brand-deep: #434CB5;
  --brand-faint: #EEEFFC;
  --border: #E1E2EB;
  --border-brand: #D7D9F6;
  --on-band: #FFFFFF;
  --on-band-muted: #A4A9BF;
  --cta: #5C68D3;
  --cta-hover: #434CB5;

  --measure: 66ch;
  --pad: clamp(20px, 5vw, 48px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121525;
    --bg-muted: #1B1F33;
    --bg-faint: #1E2140;
    --band: #0C0F1C;
    --band-line: #2E3350;
    --ink: #FFFFFF;
    --body: #BDC1D6;
    --muted: #8A8FA6;
    --accent: #9AA1EA;
    --accent-soft: #A7ADE9;
    --brand: #7C86E4;
    --brand-deep: #A9AFF2;
    --brand-faint: #1E2140;
    --border: #2C3048;
    --border-brand: #343A63;
    --on-band: #FFFFFF;
    --on-band-muted: #A4A9BF;
    --cta: #5C68D3;
    --cta-hover: #6F79DC;
  }
}
:root[data-theme="dark"] {
  --bg: #121525;
  --bg-muted: #1B1F33;
  --bg-faint: #1E2140;
  --band: #0C0F1C;
  --band-line: #2E3350;
  --ink: #FFFFFF;
  --body: #BDC1D6;
  --muted: #8A8FA6;
  --accent: #9AA1EA;
  --accent-soft: #A7ADE9;
  --brand: #7C86E4;
  --brand-deep: #A9AFF2;
  --brand-faint: #1E2140;
  --border: #2C3048;
  --border-brand: #343A63;
  --on-band: #FFFFFF;
  --on-band-muted: #A4A9BF;
  --cta: #5C68D3;
  --cta-hover: #6F79DC;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Approach', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 18px; max-width: var(--measure); }
a { color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--border-brand); }
a:hover { border-bottom-color: var(--brand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--border); }
.section--plain { border-top: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--body); }
.eyebrow { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; margin: 0 0 10px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--cta); color: #fff; font-size: 15px;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- header ---------- */
.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.mark { display: flex; align-items: baseline; gap: 10px; border: 0; margin-right: auto; }
.mark { align-items: center; }
.logo { display: block; height: 38px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.site nav { display: flex; gap: 22px; }
.site nav a { color: var(--body); border: 0; font-size: 15px; }
.site nav a:hover { color: var(--ink); }
.btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px;
  background: var(--cta); color: #fff; font-size: 15px; font-weight: 500;
}
.btn:hover { background: var(--cta-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn--ghost:hover { background: var(--bg-muted); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-soft); }
@media (max-width: 900px) { .site nav { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 22px; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.version-note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- resolver ---------- */
.resolver {
  margin-top: 48px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg); overflow: hidden;
}
.resolver__head { padding: 20px 24px 0; }
.resolver__head h3 { font-size: 17px; font-weight: 500; }
.resolver__head p { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.resolver__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; }
@media (max-width: 820px) { .resolver__body { grid-template-columns: 1fr; } }
.controls { padding: 20px 24px 26px; }
.control + .control { margin-top: 22px; }
.control > p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt {
  text-align: left; font: inherit; font-size: 15px; color: var(--body);
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; cursor: pointer; transition: background .15s, border-color .15s;
}
.opt:hover { border-color: var(--accent-soft); }
.opt[aria-pressed="true"] { background: var(--bg-faint); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.opts--row { flex-direction: row; flex-wrap: wrap; }
.opts--row .opt { flex: 1 1 auto; }

.result { background: var(--bg-muted); padding: 22px 24px 26px; border-left: 1px solid var(--border); }
@media (max-width: 820px) { .result { border-left: 0; border-top: 1px solid var(--border); } }
.result__top { display: flex; align-items: center; gap: 12px; }
.tierpill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; padding: 5px 12px; border-radius: 9999px;
  background: var(--brand); color: #fff; font-weight: 500; font-size: 14px;
}
.result__top strong { color: var(--ink); font-weight: 500; font-size: 17px; }
.result p { font-size: 15px; margin: 12px 0 0; }
.fields { margin: 18px 0 0; border-top: 1px solid var(--border); }
.fields div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fields dt { flex: 0 0 132px; color: var(--muted); }
.fields dd { margin: 0; color: var(--ink); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }

/* ---------- figures band ---------- */
.band { background: var(--band); color: var(--on-band); }
.band h2, .band h3 { color: var(--on-band); }
.figures { display: grid; grid-template-columns: repeat(5, 1fr); }
.figures div { padding: 34px 20px 34px 0; }
.figures div + div { border-left: 1px solid var(--band-line); padding-left: 24px; }
.figures b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.02em; color: var(--on-band); }
.figures span { display: block; font-size: 13px; line-height: 1.4; color: var(--on-band-muted); margin-top: 6px; }
@media (max-width: 880px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div { padding: 22px 16px 22px 0; }
  .figures div + div { border-left: 0; padding-left: 0; }
  .figures div:nth-child(even) { border-left: 1px solid var(--band-line); padding-left: 20px; }
}

/* ---------- two column prose ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.cols h2 { position: sticky; top: 104px; }
@media (max-width: 860px) { .cols h2 { position: static; } }

/* ---------- ladder ---------- */
.ladder { margin-top: 38px; }
.rung {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px;
  gap: 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--border);
}
.rung:last-child { border-bottom: 1px solid var(--border); }
.rung__n { display: flex; align-items: baseline; gap: 10px; }
.rung__n i {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 500;
  color: #fff; background: var(--brand);
}
.rung__n em { font-style: normal; font-size: 13px; color: var(--muted); }
.rung h3 { font-size: 18px; font-weight: 500; }
.rung p { font-size: 15px; margin: 6px 0 0; max-width: 54ch; }
.rung__u { font-size: 14px; color: var(--muted); text-align: right; }
.rung--t1 i { background: #262C7A; }
.rung--t2 i { background: #434CB5; }
.rung--t3 i { background: #5C68D3; }
.rung--t4 i { background: #9BA2E7; }
.rung--t5 i { background: #D4D7F5; color: #15182B; }
.rung--t0 { opacity: 0.72; }
.rung--t0 i { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
@media (max-width: 760px) {
  .rung { grid-template-columns: 1fr; gap: 8px; }
  .rung__u { text-align: left; }
}
.ladder-note { font-size: 15px; color: var(--muted); margin-top: 22px; max-width: 62ch; }

/* ---------- uses ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; }
.uses > div { padding: 0 28px; border-left: 1px solid var(--border); }
.uses > div:first-child { padding-left: 0; border-left: 0; }
.uses h3 { font-size: 17px; font-weight: 500; }
.uses p { font-size: 15px; margin-top: 10px; }
@media (max-width: 820px) {
  .uses { grid-template-columns: 1fr; gap: 28px; }
  .uses > div { padding: 0 0 0 20px; border-left: 1px solid var(--border); }
  .uses > div:first-child { padding-left: 20px; border-left: 1px solid var(--border); }
}

/* ---------- review list ---------- */
.review { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: r; }
.review li {
  position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--border);
  font-size: 15px; max-width: 70ch;
}
.review li:last-child { border-bottom: 1px solid var(--border); }
.review li::before {
  counter-increment: r; content: counter(r);
  position: absolute; left: 0; top: 14px; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; color: var(--accent); background: var(--bg-faint);
}
.review b { color: var(--ink); font-weight: 500; }
.tag { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--brand-deep); background: var(--bg-faint); border-radius: 9999px; padding: 2px 9px; }

/* ---------- limits panel ---------- */
.limits { background: var(--band); border-radius: 14px; padding: clamp(28px, 4vw, 44px); margin-top: 40px; }
.limits h2, .limits h3 { color: var(--on-band); }
.limits p, .limits li { color: var(--on-band-muted); }
.limits ul { margin: 18px 0 0; padding: 0; list-style: none; }
.limits li { padding: 12px 0; border-top: 1px solid var(--band-line); font-size: 15px; max-width: 72ch; }
.limits li b { color: var(--on-band); font-weight: 500; }
.limits a { color: var(--accent-soft); border-bottom-color: var(--band-line); }

/* ---------- standards ---------- */
.std { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 36px; }
.std > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.std h3 { font-size: 16px; font-weight: 500; }
.std p { font-size: 15px; margin-top: 8px; }

/* ---------- adopt ---------- */
.adopt { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 38px; }
.adopt > div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; }
.adopt h3 { font-size: 17px; font-weight: 500; }
.adopt p { font-size: 15px; margin: 10px 0 16px; }
.adopt .who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.adopt .who b { color: var(--ink); font-weight: 500; }

/* ---------- partners ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 34px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.partners > div { flex: 1 1 200px; min-height: 108px; display: flex; align-items: center; justify-content: center; padding: 24px 20px; border-right: 1px solid var(--border); }
.partners > div:last-child { border-right: 0; }
.partners { background: #FFFFFF; border-color: #E2E6E8; }
.partners > div { border-right-color: #E2E6E8; }
.partners img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }
.partners img.p-sq { max-height: 32px; }
.partners img.p-bta { max-height: 58px; }
@media (hover: hover) {
  .partners img { filter: grayscale(1); opacity: 0.68; transition: filter .25s ease, opacity .25s ease; }
  .partners > div:hover img { filter: grayscale(0); opacity: 1; }
}
.partners .more { font-size: 15px; color: #79868F; flex: 0 1 170px; }
@media (max-width: 720px) {
  .partners > div { flex: 1 1 50%; border-bottom: 1px solid #E2E6E8; }
  .partners > div:nth-child(even) { border-right: 0; }
}

/* ---------- faq ---------- */
.faq { margin-top: 12px; max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  color: var(--ink); font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 27px;
  width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 30px; }
.faq details > div { padding: 0 0 20px; }
.faq p { font-size: 15px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 36px; }
.routes > div { border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.routes h3 { font-size: 17px; font-weight: 500; }
.routes p { font-size: 15px; margin: 10px 0 16px; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal .back { display: inline-block; font-size: 14px; color: var(--muted); border: 0; margin-bottom: 28px; }
.legal .back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(30px, 4vw, 46px); }
.legal .meta { font-size: 14px; color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; max-width: 72ch; }
.legal ul { margin: 0 0 18px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; margin: 0 0 18px; }
.legal .lead { font-size: 18px; }

/* ---------- footer ---------- */
footer { background: var(--band); color: var(--on-band-muted); padding: 56px 0 44px; }
footer .foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
footer .logo-foot { display: block; height: 44px; width: auto; }
footer p { font-size: 14px; max-width: 46ch; margin: 12px 0 0; }
footer a { color: var(--on-band); border-bottom-color: var(--band-line); }
footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-line); font-size: 13px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

/* ---------- utilities (formerly inline styles) ---------- */
.lede--intro { margin-top: 16px; }
.cols--sub { margin-top: 56px; }
.h2--sub { font-size: 24px; }
.h2--panel { font-size: 26px; }
.result .result__note { color: var(--muted); font-size: 14px; }
.limits__foot { margin-top: 20px; font-size: 15px; }
