/* M3TRL — layout concept: a TRL 1→9 scale runs through the site as its spine;
   every offer is drawn as a bar on that scale so visitors self-select by stage. */
:root {
  --bg: #f3f4f5;
  --surface: #ffffff;
  --ink: #15202b;           /* logo ink */
  --muted: #586472;
  --line: #d8dde3;
  --accent: #d9681c;        /* M3TRL orange: the Market gear and the "3" */
  --accent-ink: #ffffff;
  --gold: #a87a24;          /* investor track */
  --steel: #6b7784;         /* logo gear steel */
  --tint: #fbeee4;
  --brand: #d9681c;         /* primary buttons */
  --brand-ink: #ffffff;
  --logo: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151b; --surface: #172029; --ink: #e9edf1; --muted: #a2adb8;
    --line: #2b3742; --accent: #f08a3c; --accent-ink: #1a0e04; --gold: #d6a84c;
    --steel: #8b97a3; --tint: #2a1d13; --brand: #f08a3c; --brand-ink: #1a0e04; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151b; --surface: #172029; --ink: #e9edf1; --muted: #a2adb8;
  --line: #2b3742; --accent: #f08a3c; --accent-ink: #1a0e04; --gold: #d6a84c;
  --steel: #8b97a3; --tint: #2a1d13; --brand: #f08a3c; --brand-ink: #1a0e04; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; font-stretch: 108%; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { height: 30px; width: auto; display: block; }
.brand-mark { font-family: var(--logo); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1; }
.brand-mark span { color: var(--accent); }
.brand-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.nav-links a:hover { color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 6px 12px; font: inherit; font-size: 0.95rem; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 8px; margin-left: 0; }
  .nav-links.open { display: flex; }
  .brand-sub { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 12px 20px; border-radius: var(--radius); border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* hero */
.hero { padding-block: clamp(48px, 7vw, 84px) 56px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.proof-line { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.proof-line b { color: var(--ink); font-weight: 600; }

/* TRL ladder */
.ladder { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow-x: auto; }
.ladder-grid { display: grid; grid-template-columns: 150px repeat(9, minmax(34px, 1fr)); gap: 6px 4px; min-width: 520px; align-items: center; }
.ladder-grid .lvl { font-family: var(--mono); font-size: 0.72rem; text-align: center; color: var(--muted); padding: 6px 0; border-bottom: 2px solid var(--line); }
.ladder-grid .lvl b { display: block; font-size: 1.05rem; color: var(--ink); }
.ladder-grid .row-label { font-size: 0.88rem; font-weight: 600; line-height: 1.2; }
.ladder-grid .row-label a { color: var(--ink); text-decoration: none; }
.ladder-grid .row-label a:hover { color: var(--accent); }
.bar { height: 22px; border-radius: 3px; background: var(--accent); }
.bar.gold { background: var(--gold); }
.bar.steel { background: var(--steel); }
.bar.outline { background: transparent; border: 2px dashed var(--accent); }
.ladder-key { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 10px; min-width: 520px; padding-left: 154px; }

/* doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.door {
  display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  border-top: 4px solid var(--accent); transition: transform .15s ease, border-color .15s ease;
}
.door:hover { transform: translateY(-2px); }
.door.gold { border-top-color: var(--gold); }
.door.steel { border-top-color: var(--steel); }
.door .who { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.door p { color: var(--muted); font-size: 0.98rem; }
.door .go { font-weight: 600; color: var(--accent); font-size: 0.95rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.price { font-family: var(--display); font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.98rem; }
.plan .fine { font-size: 0.85rem; color: var(--muted); }
.note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); max-width: 80ch; }

/* two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 600; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 0.98rem; }

table.fees { width: 100%; border-collapse: collapse; font-size: 0.96rem; background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.fees th, table.fees td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fees th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.fees td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
table.fees tr:last-child td { border-bottom: 0; }

/* band */
.band { background: var(--ink); color: var(--bg); }
.band .muted, .band .lede { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.band .eyebrow { color: var(--gold); }
.band .btn.ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, var(--ink)); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 32px; }
.band-grid div { border-left: 2px solid var(--gold); padding-left: 16px; display: grid; gap: 6px; }
.band-grid b { font-family: var(--display); font-size: 1.05rem; }

/* founder */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.founder > * { min-width: 0; }
.portrait { width: 220px; max-width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--tint); display: grid; place-items: center; font-family: var(--display); font-size: 3rem; font-weight: 900; color: var(--accent); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }
.advisor { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.advisor > * { min-width: 0; }
.portrait.sm { width: 140px; font-size: 2rem; justify-self: end; background: color-mix(in srgb, var(--steel) 18%, var(--bg)); color: var(--steel); }
.adv-facts { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 0.98rem; }
@media (max-width: 700px) { .advisor { grid-template-columns: 1fr; gap: 18px; } .portrait.sm { justify-self: start; width: 120px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 22px; }
.fact { border-top: 2px solid var(--line); padding-top: 10px; }
.fact b { font-family: var(--display); font-size: 1.6rem; display: block; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.9rem; color: var(--muted); }

/* faq */
details { border-bottom: 1px solid var(--line); padding-block: 16px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); max-width: 72ch; }

/* forms */
form.contact { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 5px; }
.form-msg { font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 0.9rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }

.pill { display: inline-block; font-family: var(--mono); font-size: 0.72rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.legal h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 10px; }
.legal p, .legal li { max-width: 72ch; color: var(--muted); }
.legal p + p { margin-top: 10px; }
.band .btn:not(.ghost) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
