:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --navy: #0e2a47; --navy-2: #173a5e; --navy-3: #0a2038;
  --blue: #1c7dc2; --accent: #e8a33d; --accent-ink: #9a5f0c;
  --bg: #ffffff; --bg-alt: #eaf2fa; --surface: #ffffff; --surface-2: #f5f7fa;
  --text: #1f2937; --heading: #0e2a47; --muted: #4b5a6b; --line: #dce3eb; --track: #e6ecf2;
  --link: #1c7dc2; --on-dark: #d6e4f2;
  --serif: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1180px; --gutter: clamp(20px, 4vw, 32px); --section-y: clamp(64px, 8vw, 96px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1724; --bg-alt: #10233a; --surface: #132a44; --surface-2: #10233a;
    --text: #dbe5ef; --heading: #f2f6fa; --muted: #a8b7c7; --line: #24405f; --track: #1d3653;
    --link: #7cc0f0; --accent-ink: #f0b659;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1724; --bg-alt: #10233a; --surface: #132a44; --surface-2: #10233a;
  --text: #dbe5ef; --heading: #f2f6fa; --muted: #a8b7c7; --line: #24405f; --track: #1d3653;
  --link: #7cc0f0; --accent-ink: #f0b659;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.tm { font-family: var(--sans); font-size: 0.45em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: 0.05em; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* logo per theme */
.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; }

/* type */
.h1 { margin: 0; font: 700 clamp(40px, 5.2vw, 62px)/1.06 var(--serif); letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
.h2 { margin: 0; font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--serif); letter-spacing: -0.015em; color: var(--heading); text-wrap: balance; }
.h3 { margin: 0; font: 600 20px/1.3 var(--serif); color: var(--heading); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.kicker { font-weight: 600; color: var(--accent-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn-accent { background: var(--accent); color: #0e2a47; }
.btn-accent:hover { background: #f0b659; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line); color: var(--heading); background: transparent; }
.btn-outline:hover { border-color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; color: var(--link); text-underline-offset: 3px; }

/* header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header .hbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { color: var(--heading); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a.link:hover { color: var(--link); }
.nav a.link[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--heading); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.link[aria-current="page"] { border-bottom-color: var(--line); color: var(--link); }
  .nav .btn { margin-top: 16px; }
}

/* layout */
.section { padding-block: var(--section-y); }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy .h2, .section.navy .h3 { color: #fff; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 880px) { .split, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* home hero */
.hero { padding-block: clamp(48px, 7vw, 88px); }
.hero .split { align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }

/* calculator */
.calc { background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.calc h2 { margin: 0; font: 700 24px/1.25 var(--serif); }
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; color: var(--on-dark); }
.calc input[type="number"] { font: 600 20px/1.2 var(--sans); color: #0e2a47; background: #fff; border: 0; border-radius: 10px; padding: 10px 14px; min-height: 48px; width: 100%; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.calc .years-val { color: #fff; font-size: 20px; }
.result { display: flex; flex-direction: column; gap: 6px; }
.result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.result .name { font-size: 15px; color: var(--on-dark); }
.result .num { font: 700 34px/1 var(--serif); }
.result.ours .num { color: var(--accent); }
.bar { height: 14px; border-radius: 99px; background: #23466c; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: #9aa8b8; transition: width .35s ease; }
.result.ours .bar span { background: var(--accent); }
.calc .delta { background: var(--navy-2); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
.calc .delta strong { color: var(--accent); }
.calc .note { font-size: 13px; color: #a9bdd2; }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }

/* teaser milestones */
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--accent); }
.milestones li { padding: 20px 20px 0 0; position: relative; }
.milestones li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.milestones .when { font-weight: 700; color: var(--accent-ink); }
@media (max-width: 760px) { .milestones { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

.door { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--text); }
.door:hover { border-color: var(--blue); }
.door .text-link { margin-top: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { border: 1.5px solid var(--blue); color: var(--heading); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* page intro */
.intro { padding-block: clamp(48px, 6vw, 72px) clamp(32px, 4vw, 48px); }
.intro .h1 { max-width: 18ch; }
.intro .lead { margin-top: 18px; }

/* journey */
.journey-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.journey-hero img { border-radius: 20px; height: 420px; width: 100%; object-fit: cover; object-position: 40% center; }
@media (max-width: 880px) { .journey-hero { grid-template-columns: 1fr; } .journey-hero img { height: 300px; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 110px; top: 8px; bottom: 8px; width: 2px; background: var(--accent); }
.step { display: grid; grid-template-columns: 96px 1fr; gap: 0 48px; padding-bottom: 48px; position: relative; }
.step::before { content: ""; position: absolute; left: 104px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.step .when { font: 700 18px/1.3 var(--serif); color: var(--accent-ink); text-align: right; }
.step .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: start; }
.step .body.noimg { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
.step .text { display: flex; flex-direction: column; gap: 8px; }
.step .shot { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.step .shot.phone { background: transparent; border: 0; padding: 0; max-width: 170px; }
.step .shot.phone img { border-radius: 18px; box-shadow: 0 10px 28px rgba(14,42,71,.18); }
.backstage { margin-top: 8px; font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.backstage b { color: var(--heading); }
@media (max-width: 760px) {
  .timeline::before { left: 7px; }
  .step { grid-template-columns: 1fr; padding-left: 36px; }
  .step::before { left: 1px; }
  .step .when { text-align: left; margin-bottom: 6px; }
  .step .body { grid-template-columns: 1fr; }
}

/* platform explorer */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 8px; }
.tab { text-align: left; display: flex; gap: 12px; align-items: center; background: var(--surface); color: var(--heading); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 600 17px/1.3 var(--sans); cursor: pointer; min-height: 56px; }
.tab small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.tab[aria-selected="true"] { border-color: var(--blue); background: var(--bg-alt); box-shadow: inset 4px 0 0 var(--blue); }
.tab svg { flex: none; color: var(--blue); }
.panel { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.panel dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.panel dt { font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.panel dd { margin: 0; }
.panel ul { margin: 0; padding-left: 18px; }
@media (max-width: 880px) { .explorer { grid-template-columns: 1fr; } .tablist { flex-direction: row; overflow-x: auto; padding-bottom: 6px; } .tab { flex: none; } .panel dl { grid-template-columns: 1fr; } }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.caps li { background: var(--navy-2); color: #fff; border-radius: 12px; padding: 14px 16px; }
@media (max-width: 880px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--accent); color: #0e2a47; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; }

/* sponsors */
.wont { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.wont li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.wont svg { color: var(--blue); margin-top: 3px; }
.wont b { color: var(--heading); display: block; }
@media (max-width: 760px) { .wont { grid-template-columns: 1fr; } }
.faq { max-width: 820px; display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 700 19px/1.35 var(--serif); color: var(--heading); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 22px; max-width: 70ch; }
.stats-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stats-line .n { font: 700 44px/1 var(--serif); color: var(--accent); }
.stats-line p { color: var(--on-dark); margin-top: 6px; }
@media (max-width: 760px) { .stats-line { grid-template-columns: 1fr; } }

/* about */
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.team li { display: flex; gap: 20px; align-items: center; }
.team img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

/* contact */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--bg-alt); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--heading); }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--surface); border: 1.5px solid #9aabbd; border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form .btn { align-self: flex-start; }

/* cta + footer */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta .h2 { max-width: 24ch; }
.footer { background: var(--navy-3); color: #c3d2e2; }
.footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 44px; }
.footer img { height: 38px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer nav a { color: #c3d2e2; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: #fff; }
.footer .legal { width: 100%; font-size: 14px; border-top: 1px solid #1f3b5b; padding-top: 18px; }
