/* Mission R tokens (MR / Semantic, light and dark). One copy for every page. */
:root {
  --canvas: #F7F8F6;
  --surface: #FFFFFF;
  --subtle: #111412;
  --text: #080A09;
  --text-2: #55615A;
  --border: #D7DFDA;
  --border-subtle: #E6ECE8;
  --accent: #39E58C;
  --accent-subtle: #E8F9EF;
  --brand-green: #39E58C;
  --growth: #123D2B;
  --warning: #8a5200;
  --accent-strong: #123D2B;
  --text-3: #8D9690;
  --danger: #c0392b;
  --action: #080A09;
  --action-text: #ffffff;
  --action-hover: #123D2B;
  --focus: #39E58C;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #08090b;
    --surface: #111318;
    --subtle: #20242d;
    --text: #f6f7f9;
    --text-2: #c8cdd3;
    --border: #333842;
    --border-subtle: #20242d;
    --accent: #8b98ff;
    --accent-subtle: #232b50;
    --growth: #6ee7a6;
    --warning: #fbc76d;
    --accent-strong: #a5b0ff;
    --text-3: #9ca5b5;
    --action: #eef0f3;
    --action-text: #08090b;
    --action-hover: #c8cdd3;
    --focus: #a5b0ff;
    --danger: #ff8a80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 80;
  padding: 10px 14px; border-radius: 8px;
  background: var(--action); color: var(--action-text);
  text-decoration: none; font-weight: 600; font-size: 14px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, 5vw); }

header.top {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}
header.top .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  position: relative;
  display: inline-block;
  flex: 0 0 auto; order: 1;
  height: 31px; width: 144px;
  text-decoration: none; color: var(--text);
}
.brand picture { display: block; width: 100%; height: 100%; }
.brand img, .brand svg {
  position: absolute; left: 0; top: 0;
  display: block; height: 31px; width: auto;
}
.brand .brand-logo--on-dark { display: none; }
.footer-brand {
  display: inline-flex; align-items: center; color: inherit; text-decoration: none;
  height: 24px;
}
.footer-brand img, .footer-brand svg { display: block; height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px 22px; margin-left: auto; order: 2; }
.nav a { font-size: 15px; color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle {
  display: none; order: 3;
  padding: 8px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.top-cta {
  display: inline-flex; align-items: center; order: 4;
  padding: 8px 14px; border-radius: 9px;
  background: var(--action); color: var(--action-text);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.top-cta:hover { background: var(--action-hover); color: var(--action-text); }
.top-cta .cta-short { display: none; }

@media (max-width: 720px) {
  header.top .wrap { display: grid; grid-template-columns: 1fr auto auto; align-items: center; }
  .brand { grid-column: 1; grid-row: 1; }
  .nav-toggle { display: inline-flex; order: 2; grid-column: 2; grid-row: 1; }
  .top-cta { order: 3; grid-column: 3; grid-row: 1; }
  .nav {
    display: none; order: 4; margin-left: 0;
    grid-column: 1 / -1; grid-row: 2;
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 4px 0 16px;
  }
  .nav.is-open { display: flex; }
}

@media (max-width: 430px) {
  .top-cta .cta-full { display: none; }
  .top-cta .cta-short { display: inline; }
}

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 16px;
  text-decoration: none; background: var(--action); color: var(--action-text); border: 1px solid var(--action);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--subtle); }

footer { padding-block: 40px 56px; color: var(--text-2); font-size: 14px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a, footer button.linklike { color: inherit; text-decoration: none; }
footer a:hover, footer button.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
footer button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  header.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--canvas); }
  header.top.mr-header { transition: none; }
}

/* Mission R v2 homepage direction.
   Header chrome follows data-header-theme (same hook for logo, nav, and CTA).
   header.top.mr-header must beat header.top so the dark state is not translucent canvas. */
header.top.mr-header {
  transition: background .2s ease, border-color .2s ease;
}
header.top.mr-header[data-header-theme="dark"] {
  background: #080A09;
  border-bottom: 1px solid #123D2B;
}
header.top.mr-header[data-header-theme="dark"] .nav a { color: #A8BAAF; }
header.top.mr-header[data-header-theme="dark"] .nav a:hover { color: #F7F8F6; }
header.top.mr-header[data-header-theme="dark"] .nav-toggle {
  background: #111412;
  border-color: #123D2B;
  color: #F7F8F6;
}
header.top.mr-header[data-header-theme="dark"] .brand-logo--on-light { display: none; }
header.top.mr-header[data-header-theme="dark"] .brand-logo--on-dark { display: block; }
header.top.mr-header[data-header-theme="light"] {
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}
header.top.mr-header[data-header-theme="light"] .nav a { color: var(--text-2); }
header.top.mr-header[data-header-theme="light"] .nav a:hover,
header.top.mr-header[data-header-theme="light"] .nav a[aria-current] { color: var(--text); }
header.top.mr-header[data-header-theme="light"] .nav-toggle {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
header.top.mr-header[data-header-theme="light"] .brand-logo--on-light { display: block; }
header.top.mr-header[data-header-theme="light"] .brand-logo--on-dark { display: none; }
.mr-header .top-cta { background: #39E58C; color: #080A09; }
.mr-header .top-cta:hover { background: #A8BAAF; }
.mr-dark { background: #080A09; color: #F7F8F6; border-top: 1px solid #123D2B; }
.mr-dark h2, .mr-dark h3 { color: #F7F8F6; }
.mr-dark .lede, .mr-dark .section-lede, .mr-dark p { color: #A8BAAF; }
.mr-green { color: #39E58C !important; }
.mr-deep { color: #123D2B !important; }
.mr-hero { padding-block: clamp(72px,10vw,144px); }
.mr-hero-grid, .mr-split, .mr-founder { display: grid; gap: clamp(48px,8vw,120px); grid-template-columns: minmax(0,1fr); }
.mr-hero-grid, .mr-split { align-items: center; }
@media (min-width: 900px) { .mr-hero-grid, .mr-split, .mr-founder { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.mr-hero-copy { display: grid; gap: 24px; }
.mr-hero h1 { max-width: 12ch; font-size: clamp(48px,6.5vw,82px); font-weight: 700; }
.mr-hero .lede { max-width: 34em; }
.mr-btn-green { background: #39E58C; border-color: #39E58C; color: #080A09; }
.mr-btn-green:hover { background: #A8BAAF; border-color: #A8BAAF; color: #080A09; }
/* Lock fill + label to the homepage palette. .btn uses OS --action/--action-text,
   so dark scheme would paint a light chip while this class forced near-white type. */
.mr-btn-ghost { background: #F7F8F6; color: #080A09; border-color: #F7F8F6; }
.mr-btn-ghost:hover { background: #A8BAAF; border-color: #A8BAAF; color: #080A09; }
.mr-light .mr-btn-ghost,
.mr-cta-band .mr-btn-ghost { border-color: #D7DFDA; }
.mr-roic { margin: 20px 0 0; color: #F7F8F6 !important; font-size: 22px; font-weight: 600; }
.mr-hero-signal { min-height: 360px; border: 1px solid #123D2B; border-radius: 24px; display: grid; place-items: center; position: relative; overflow: hidden; background: #111412; }
.mr-signal-ring { width: 250px; height: 250px; border: 1px solid #123D2B; border-radius: 50%; box-shadow: 0 0 0 48px rgba(57,229,140,.05), 0 0 0 96px rgba(57,229,140,.03); }
.mr-signal-card { position: absolute; inset-inline: 12%; bottom: 36px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px; border: 1px solid #123D2B; border-radius: 12px; background: #080A09; color: #F7F8F6; font-size: 13px; }
.mr-signal-card strong { color: #39E58C; font-size: 20px; }
.mr-light { background: #F7F8F6; color: #080A09; }
.mr-section-head { display: grid; gap: 20px; align-items: end; margin-bottom: 48px; }
.mr-section-head .eyebrow,
.mr-split > div > .eyebrow { margin-bottom: 16px; }
.mr-dark > .wrap > .eyebrow,
.mr-light > .wrap > .eyebrow { margin-bottom: 16px; }
h2 + .lede { margin-top: 16px; }
@media (min-width: 880px) { .mr-section-head { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; } }
.mr-grid { display: grid; gap: 24px; }
.mr-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.mr-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 760px) { .mr-grid-3, .mr-grid-2 { grid-template-columns: 1fr; } }
.mr-card { min-height: 180px; padding: 28px; border: 1px solid #D7DFDA; border-radius: 12px; background: #FFFFFF; }
.mr-card h3 { margin: 22px 0 12px; font-size: 22px; }
.mr-card p:last-child { margin: 0; color: #8D9690; }
.mr-num { margin: 0; color: #123D2B; font-size: 12px; font-weight: 700; }
.mr-return { padding-block: clamp(72px,10vw,128px); }
.mr-metrics { display: grid; gap: 24px; }
.mr-metric { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-top: 22px; border-top: 1px solid #123D2B; }
.mr-metric > span { color: #39E58C; font-size: 12px; font-weight: 700; }
.mr-metric h3 { margin: 0 0 6px; font-size: 24px; }
.mr-metric p { margin: 0; }
.mr-steps article { padding-top: 20px; border-top: 1px solid #D7DFDA; }
.mr-steps h3 { margin: 26px 0 12px; font-size: 22px; }
.mr-steps p:last-child { margin: 0; color: #8D9690; }
.mr-dark .mr-steps article { border-top-color: #123D2B; }
.mr-dark .mr-steps p:last-child { color: #A8BAAF; }
.mr-note { margin: 64px 0 0; color: #123D2B; font-weight: 600; }
.mr-dark .mr-note { color: #39E58C; }
.mr-light .mr-metric { border-top-color: #D7DFDA; }
.mr-light .mr-metric > span { color: #123D2B; }
.mr-build-grid { margin-top: 48px; }
.mr-build-card { position: relative; min-height: 170px; padding: 28px; background: #111412; border: 1px solid #123D2B; border-radius: 12px; }
a.mr-build-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.mr-build-card:hover, a.mr-build-card:focus-visible { border-color: #39E58C; }
a.mr-build-card:hover span, a.mr-build-card:focus-visible span { color: #39E58C; }
.mr-build-card p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mr-build-card h3 { margin: 28px 0 0; max-width: 18ch; font-size: 24px; }
.mr-build-card span { position: absolute; right: 28px; bottom: 24px; color: #A8BAAF; font-size: 24px; }
.mr-page-hero { padding-block: clamp(80px,9vw,128px) clamp(48px,6vw,80px); border-top: 0; }
.mr-page-hero .mr-hero-grid { align-items: start; }
.mr-page-hero .mr-hero-signal { min-height: 300px; }
.mr-page-hero h1 { max-width: 14ch; letter-spacing: -0.035em; }
.mr-page-hero .lede { max-width: 36em; line-height: 1.55; }
.mr-page-hero .cta { margin-top: 8px; }
.mr-page-hero .mr-crumb + .eyebrow { margin-top: -8px; }
.mr-prose { max-width: 42em; }
.mr-prose p { margin: 0 0 18px; line-height: 1.65; }
.mr-prose p:last-child { margin-bottom: 0; }
.mr-light a:not(.btn):not(.mr-build-card) { color: #123D2B; text-underline-offset: 3px; }
.mr-dark a:not(.btn):not(.mr-build-card) { color: #39E58C; text-underline-offset: 3px; }
.mr-crumb { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: #A8BAAF; }
.mr-crumb a { color: inherit; text-underline-offset: 3px; }
.mr-crumb a:hover { color: #F7F8F6; }
.mr-build-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) { .mr-build-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .mr-hero-signal { min-height: 280px; border-radius: 16px; }
  .mr-signal-ring { width: 180px; height: 180px; box-shadow: 0 0 0 32px rgba(57,229,140,.05), 0 0 0 64px rgba(57,229,140,.03); }
  .mr-signal-card { inset-inline: 12px; bottom: 16px; padding: 12px 14px; font-size: 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  a.mr-build-card { transition: none; }
}
.mr-platform { padding-block: clamp(72px,10vw,128px); }
.mr-proof { padding-block: clamp(72px,10vw,128px); }
.mr-proof h2 { margin: 0 0 16px; }
.mr-proof .section-lede { margin-bottom: 48px; }
.mr-proof .mr-card h3 { margin-top: 0; }
.mr-layers { display: grid; gap: 16px; }
.mr-layer { padding: 22px 28px; border: 1px solid #D7DFDA; border-radius: 8px; background: #F7F8F6; }
.mr-layer p { margin: 0 0 10px; color: #123D2B; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.mr-layer strong { font-size: 18px; }
.mr-layer-active { background: #123D2B; border-color: #123D2B; color: #F7F8F6; }
.mr-layer-active p { color: #39E58C; }
.mr-layer a { color: inherit; text-underline-offset: 3px; }
.mr-layer-active a { color: #39E58C; }
.mr-founder { align-items: start; padding-block: 24px; }
.mr-founder h2 { font-size: clamp(34px,4vw,52px); }
.mr-founder-lead { display: grid; justify-items: start; gap: 0; }
.mr-founder-photo {
  display: block; width: 200px; height: 240px; margin-top: 40px;
  aspect-ratio: 5 / 6;
  object-fit: cover; object-position: center 18%;
  border-radius: 12px; border: 1px solid #123D2B; background: #121512;
}
.mr-founder-signal { margin-top: 24px; color: #F7F8F6 !important; font-weight: 600; }
.mr-founder-name { margin: 48px 0 4px; color: #F7F8F6 !important; font-size: 13px; font-weight: 700; }
.mr-founder-role { margin: 0; }
@media (max-width: 899px) {
  .mr-founder-photo { width: 160px; height: 192px; margin-top: 28px; }
}

.mr-faq-list { display: grid; gap: 16px; }
.mr-faq-item {
  background: #FFFFFF;
  border: 1px solid #D7DFDA;
  border-radius: 16px;
  overflow-anchor: none;
}
.mr-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  cursor: pointer;
  list-style: none;
  padding: 24px 28px;
}
.mr-faq-item summary::-webkit-details-marker,
.mr-faq-item summary::marker { display: none; content: ""; }
.mr-faq-item summary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #080A09;
}
.mr-faq-item summary::after {
  content: "+";
  flex: none;
  color: #123D2B;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.mr-faq-item[open] summary::after { content: "−"; }
.mr-faq-item .mr-faq-a {
  margin: 0;
  padding: 0 28px 24px;
  color: #55615A;
  font-size: 15px;
  line-height: 1.55;
  max-width: 72ch;
}
.mr-faq-item .mr-faq-a a { color: #123D2B; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .mr-faq-item summary { padding: 20px; }
  .mr-faq-item .mr-faq-a { padding: 0 20px 20px; }
}
.mr-cta-band { background: #39E58C; color: #080A09; border-top: 0; }
.mr-cta-band h2 { color: #080A09; font-size: clamp(42px,6vw,72px); }
.mr-cta-band .eyebrow, .mr-cta-band .contact-copy p:not(.eyebrow) { color: #123D2B; }
.mr-cta-band .contact-form { margin-top: 42px; max-width: 760px; }
.mr-cta-band .lead-form input, .mr-cta-band .lead-form textarea { border-color: rgba(18,61,43,.35); background: rgba(247,248,246,.8); }
.mr-cta-band .form-status.ok { color: #123D2B; }
.mr-cta-band .form-alt { color: #123D2B; }
.mr-cta-band .lead-success p { color: #123D2B; }
.mr-btn-black { background: #080A09; border-color: #080A09; color: #F7F8F6; }
.mr-btn-black:hover { background: #123D2B; border-color: #123D2B; }
.mr-footer { padding-block: 48px 56px; background: #080A09; border-top: 1px solid #123D2B; color: #A8BAAF; }
.mr-footer .wrap { display: flex; justify-content: space-between; gap: 40px; align-items: start; }
.mr-footer .footer-brand { height: 48px; width: 222px; }
.mr-footer .footer-brand img { height: 48px; width: auto; }
.mr-footer p { margin: 0 0 18px; color: #39E58C; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.mr-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.mr-footer nav a { color: #A8BAAF; font-size: 13px; text-decoration: none; }
.mr-footer nav a:hover { color: #F7F8F6; }
@media (max-width: 620px) { .mr-footer .wrap { flex-direction: column; } .mr-footer nav { flex-direction: column; gap: 10px; } }
