:root {
  color-scheme: dark;
  --bg: #030706;
  --panel: #09110f;
  --panel-2: #0e1917;
  --ink: #ecfff5;
  --muted: #9ab0a8;
  --soft: #c4d8cf;
  --line: rgba(196, 216, 207, .18);
  --green: #77f06d;
  --cyan: #78dcff;
  --gold: #efb76b;
  --coral: #2f78a4;
  --shadow: 0 24px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(119, 240, 109, .12), transparent 28rem),
    linear-gradient(135deg, #030706 0%, #07100e 42%, #101411 100%);
  color: var(--ink);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 6, .84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(236, 255, 245, .94);
}

.brand img {
  display: block;
  width: 138px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: rgba(119, 240, 109, .38);
  color: var(--green);
}

main {
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(320px, 1.12fr);
  min-height: min(620px, calc(100vh - 118px));
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(.95) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 6, .1), rgba(3, 7, 6, .66)), linear-gradient(0deg, rgba(3, 7, 6, .62), transparent 54%);
}

.media-overlay {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 430px;
}

.media-overlay span,
.eyebrow,
.panel-kicker,
.rail-heading span {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.media-overlay strong {
  font-size: clamp(34px, 5vw, 64px);
  line-height: .92;
  max-width: 9ch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 72px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .9;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.28;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero-stats span {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 15, .7);
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.path-shell {
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) 0 clamp(48px, 7vw, 96px);
}

.path-rail {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 20px;
  min-height: 520px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 15, .82);
  box-shadow: var(--shadow);
}

.rail-heading {
  display: grid;
  gap: 7px;
}

.rail-heading strong {
  font-size: 26px;
  line-height: 1;
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 12px;
  padding: 12px;
  border: 1px solid rgba(196, 216, 207, .1);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
}

.step-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.step-list strong {
  color: var(--soft);
  font-size: 15px;
}

.step-list em {
  font-style: normal;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.step-list li.is-active {
  border-color: rgba(119, 240, 109, .55);
  background: rgba(119, 240, 109, .08);
}

.step-list li.is-active span {
  border-color: var(--green);
  color: var(--green);
}

.rail-note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.path-form {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(9, 17, 15, .7);
  box-shadow: var(--shadow);
}

.step-panel {
  display: none;
  min-height: 620px;
  padding: clamp(22px, 4vw, 48px);
}

.step-panel.is-active {
  display: grid;
  align-content: start;
  gap: 22px;
}

.step-panel h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .92;
}

.step-panel p {
  max-width: 820px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.5;
}

.article-link {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  padding: 20px;
  border: 1px solid rgba(120, 220, 255, .36);
  background: linear-gradient(135deg, rgba(120, 220, 255, .12), rgba(119, 240, 109, .05));
  text-decoration: none;
}

.article-link span,
.article-link strong {
  display: block;
}

.article-link span {
  color: var(--cyan);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.article-link strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.lesson-grid,
.investor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lesson-grid article,
.investor-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.lesson-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--gold);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.lesson-grid strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
}

.lesson-grid p {
  margin-top: 7px;
  font-size: 14px;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 900px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.45;
}

.checkbox-line input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field.wide {
  grid-column: 1 / -1;
}

.field span {
  color: var(--soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(196, 216, 207, .24);
  border-radius: 0;
  background: rgba(3, 7, 6, .7);
  color: var(--ink);
  outline: none;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(119, 240, 109, .13);
}

.field small {
  justify-self: end;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.deck-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 230px;
  border: 1px dashed rgba(120, 220, 255, .5);
  background:
    linear-gradient(135deg, rgba(120, 220, 255, .12), transparent),
    rgba(255, 255, 255, .025);
  text-align: center;
}

.deck-drop input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.deck-drop span,
.deck-drop em {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.deck-drop strong {
  max-width: 80%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1;
}

.upload-actions,
.investor-toolbar,
.sms-actions,
.form-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(196, 216, 207, .26);
  border-radius: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #031006;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.status-line,
#investor-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.investor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.investor-card {
  display: grid;
  gap: 13px;
  cursor: pointer;
}

.investor-card.is-selected {
  border-color: var(--green);
  background: rgba(119, 240, 109, .08);
}

.investor-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.investor-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.investor-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.investor-card p {
  color: var(--muted);
  font-size: 14px;
}

.investor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.investor-tags span {
  padding: 5px 7px;
  border: 1px solid rgba(196, 216, 207, .16);
  color: var(--soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

#sms-body {
  min-height: 390px;
}

.form-nav {
  justify-content: space-between;
  padding: 18px clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 6, .5);
}

@media (max-width: 1060px) {
  .hero-grid,
  .path-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-media,
  .hero-media img {
    min-height: 240px;
    max-height: 300px;
  }

  .media-overlay strong {
    font-size: 42px;
  }

  .hero-copy {
    gap: 14px;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 8vw, 58px);
    line-height: .95;
  }

  .lead {
    font-size: 16px;
  }

  .hero-stats {
    display: none;
  }

  .path-rail {
    position: static;
    min-height: 0;
  }

  .step-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .step-list span {
    grid-row: auto;
  }

  .step-list em {
    display: none;
  }
}

@media (max-width: 760px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 26px 18px 34px;
  }

  .hero-media,
  .hero-media img {
    min-height: 190px;
    max-height: 230px;
  }

  .hero-stats,
  .lesson-grid,
  .question-grid,
  .investor-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .path-shell {
    width: min(100% - 20px, 1480px);
  }

  .step-panel {
    min-height: 0;
    padding: 20px;
  }

  .upload-actions,
  .investor-toolbar,
  .sms-actions,
  .form-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

/* Friendly rebrand theme */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #f3f8fb;
  --ink: #283238;
  --muted: #748185;
  --soft: #4d5f65;
  --line: #dce5e1;
  --green: #2f78a4;
  --cyan: #2e8bc7;
  --gold: #f0b84f;
  --coral: #2f78a4;
  --shadow: 0 22px 58px rgba(37, 48, 54, .11);
}

body {
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f6fbfd 52%, #fbfaf7 100%);
  color: var(--ink);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

.top-nav {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(37, 48, 54, .08);
}

.brand {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 48, 54, .1);
}

.nav-links a {
  border-radius: 8px;
  color: var(--soft);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  text-transform: none;
}

.media-overlay {
  max-width: 360px;
  padding: 18px;
  border: 1px solid rgba(220, 229, 225, .82);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 44px rgba(37, 48, 54, .12);
  backdrop-filter: blur(5px);
}

.nav-links a:hover,
.nav-links a.is-active {
  border-color: rgba(47, 120, 164, .38);
  background: #edf7fc;
  color: var(--cyan);
}

.hero-grid {
  background: #fbfaf7;
  border-bottom-color: var(--line);
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, .08), rgba(251, 250, 247, .52)),
    linear-gradient(0deg, rgba(251, 250, 247, .76), transparent 60%);
}

.media-overlay span,
.eyebrow,
.panel-kicker,
.rail-heading span {
  color: var(--cyan);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  text-transform: none;
}

.media-overlay strong,
.hero-copy h1,
.step-panel h2,
.article-link strong,
.rail-heading strong,
.investor-card h3 {
  font-family: "Fraunces", Georgia, ui-serif, serif;
  font-variation-settings: "SOFT" 92;
  letter-spacing: 0;
}

.media-overlay strong,
.hero-copy h1,
.step-panel h2,
.article-link strong,
.lesson-grid strong,
.investor-card h3 {
  color: var(--ink);
}

.lead,
.step-panel p,
.rail-note,
.checkbox-line,
.lesson-grid p,
.investor-card p,
.status-line,
#investor-summary {
  color: var(--soft);
}

.hero-stats span,
.path-rail,
.path-form,
.lesson-grid article,
.investor-card,
.deck-drop,
.article-link {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.path-rail,
.path-form {
  background: rgba(255, 255, 255, .9);
}

.step-list li {
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.step-list span {
  border-color: rgba(47, 120, 164, .3);
  color: var(--cyan);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

.step-list strong {
  color: var(--ink);
}

.step-list em {
  color: var(--muted);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

.step-list li.is-active {
  border-color: rgba(47, 120, 164, .5);
  background: #edf7fc;
}

.step-list li.is-active span {
  border-color: var(--coral);
  color: var(--cyan);
}

.article-link {
  background:
    linear-gradient(135deg, rgba(46, 139, 199, .1), transparent 48%),
    #ffffff;
}

.article-link span,
.lesson-grid span {
  color: var(--cyan);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: none;
}

.field span {
  color: var(--soft);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: none;
}

.field input,
.field textarea,
.field select {
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 139, 199, .12);
}

.checkbox-line input,
.investor-card input {
  accent-color: var(--coral);
}

.deck-drop {
  border-color: rgba(46, 139, 199, .44);
  background:
    linear-gradient(135deg, rgba(46, 139, 199, .1), transparent 52%),
    #ffffff;
}

.deck-drop span,
.deck-drop em,
.field small,
.button {
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: none;
}

.deck-drop strong {
  color: var(--ink);
}

.button {
  border-color: rgba(40, 50, 56, .18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(37, 48, 54, .08);
}

.button:hover:not(:disabled) {
  border-color: var(--cyan);
  background: #f3f8fb;
  color: var(--cyan);
}

.button.primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #ffffff;
}

.button.primary:hover:not(:disabled) {
  border-color: #1f5f85;
  background: #1f5f85;
  color: #ffffff;
}

.investor-card.is-selected {
  border-color: rgba(47, 120, 164, .58);
  background: #edf7fc;
}

.investor-tags span {
  border-color: var(--line);
  border-radius: 8px;
  color: var(--soft);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

.form-nav {
  border-top-color: var(--line);
  background: #ffffff;
}

@media (max-width: 760px) {
  .hero-copy h1,
  .step-panel h2 {
    font-size: 42px;
    line-height: 1;
  }
}
