/* CranioSwift /investors/ page styles
 * Builds on /styles.css for shared tokens and base typography.
 * Adds 4 new components: roadmap timeline, funds breakdown, team card grid, regulatory pins.
 * Color palette + Inter type stay identical to the marketing site.
 * Section rhythm: hero(dark) -> problem(light) -> wedge(dark) -> demo(dark) -> traction(light)
 *                  -> roadmap(dark) -> funds(light) -> team(light) -> regulatory(dark)
 *                  -> compare(light) -> contact(dark)
 */

/* ---------- Page-wide tweaks ---------- */

.investors-page main {
  display: block;
}

.investors-page .section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.investors-page .section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.investors-page .section-heading {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.investors-page .section-heading h2 {
  margin-bottom: 18px;
}

.investors-page .section-intro {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 64ch;
}

.investors-page .section-intro.inverted {
  color: rgba(248, 251, 251, 0.74);
}

/* Dark section base */
.investors-page .wedge,
.investors-page .demo-callout,
.investors-page .inv-roadmap,
.investors-page .inv-regulatory,
.investors-page .inv-contact {
  color: #f1f5f4;
  background: var(--charcoal);
}

.investors-page .wedge .eyebrow,
.investors-page .inv-roadmap .eyebrow,
.investors-page .inv-regulatory .eyebrow,
.investors-page .inv-contact .eyebrow {
  color: var(--teal);
}

.investors-page .wedge h2,
.investors-page .inv-roadmap h2,
.investors-page .inv-regulatory h2,
.investors-page .inv-contact h2 {
  color: #ffffff;
}

.investors-page .demo-callout h2 {
  color: #ffffff;
}

/* ---------- Hero ---------- */

.investors-hero {
  position: relative;
  color: #f8fbfb;
  background: var(--charcoal);
  overflow: hidden;
}

.investors-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(33, 199, 184, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(55, 109, 244, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(7, 16, 20, 0.0), rgba(7, 16, 20, 0.55));
  pointer-events: none;
}

.investors-hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(96px, 11vw, 152px) 0 clamp(72px, 9vw, 112px);
}

.investors-hero-content h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  font-weight: 820;
}

.investors-hero-copy {
  max-width: 56ch;
  margin-bottom: 36px;
  color: rgba(248, 251, 251, 0.84);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.investors-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.investors-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 920px;
  margin: 0;
}

.investors-hero-stats > div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 21, 25, 0.62);
  backdrop-filter: blur(14px);
}

.investors-hero-stats dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.investors-hero-stats dd {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.investors-hero-stats dd.stat-foot {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- Problem (light, 3-card) ---------- */

.problem {
  background: var(--paper);
}

.inv-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.inv-problem-grid article {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-tag {
  display: inline-block;
  width: fit-content;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inv-problem-grid h3 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 790;
  margin: 0;
}

.inv-problem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Wedge (dark, 3-card) ---------- */

.inv-wedge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.inv-wedge-grid article {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.wedge-tag {
  display: inline-block;
  width: fit-content;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inv-wedge-grid h3 {
  color: #ffffff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 790;
  margin: 0;
}

.inv-wedge-grid p {
  margin: 0;
  color: rgba(248, 251, 251, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Demo callout (dark, single col) ---------- */

.demo-callout .demo-callout-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.demo-callout h2 {
  margin: 14px 0 18px;
}

.demo-callout-copy {
  color: rgba(248, 251, 251, 0.78);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 60ch;
}

.demo-callout-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.demo-callout-fallback {
  margin: 0;
  color: rgba(248, 251, 251, 0.6);
  font-size: 14px;
}

.demo-callout-fallback a {
  color: var(--teal);
  border-bottom: 1px solid rgba(33, 199, 184, 0.4);
}

/* ---------- Traction (light, 4-card) ---------- */

.traction {
  background: var(--surface);
}

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

.inv-traction-grid article {
  display: grid;
  gap: 10px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.traction-eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inv-traction-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 790;
}

.traction-body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.traction-body a.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.traction-foot {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.traction-foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--ink);
  background: rgba(33, 199, 184, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.traction-foot a.text-link {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  font-weight: 700;
}

/* ---------- Roadmap timeline (NEW component, dark) ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.timeline::before {
  /* Horizontal connector line on desktop */
  content: "";
  position: absolute;
  top: 19px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(33, 199, 184, 0.45) 35%,
    rgba(33, 199, 184, 0.65) 50%,
    rgba(33, 199, 184, 0.45) 65%,
    rgba(255, 255, 255, 0.06) 100%
  );
  z-index: 0;
}

.timeline-stage {
  position: relative;
  padding: 0 4px;
  z-index: 1;
}

.timeline-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding-left: 0;
}

.timeline-marker {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--charcoal);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 4px var(--charcoal);
}

.timeline-stage[data-state="past"] .timeline-marker {
  background: rgba(94, 109, 112, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
}

.timeline-stage[data-state="now"] .timeline-marker {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow:
    0 0 0 4px var(--charcoal),
    0 0 0 8px rgba(33, 199, 184, 0.22);
}

.timeline-stage[data-state="next"] .timeline-marker {
  background: var(--charcoal);
  border-color: rgba(33, 199, 184, 0.65);
}

.timeline-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-stage[data-state="now"] .timeline-eyebrow {
  color: var(--teal);
}

.timeline-title {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 780;
}

.timeline-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.timeline-items > li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
}

.timeline-stage[data-state="now"] .timeline-items > li {
  background: rgba(33, 199, 184, 0.06);
  border-color: rgba(33, 199, 184, 0.18);
}

.timeline-when {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-stage[data-state="past"] .timeline-when {
  color: rgba(255, 255, 255, 0.5);
}

.timeline-what {
  color: rgba(248, 251, 251, 0.84);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Use of funds (NEW component, light) ---------- */

.inv-funds {
  background: var(--surface);
}

.funds-layout {
  display: grid;
  gap: 32px;
}

.funds-bar {
  display: flex;
  width: 100%;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.funds-segment {
  width: var(--share);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter 0.2s ease;
}

.funds-segment[data-bucket="data"] {
  background: var(--teal);
}
.funds-segment[data-bucket="ml"] {
  background: var(--blue);
}
.funds-segment[data-bucket="reg"] {
  background: var(--green);
}
.funds-segment[data-bucket="buffer"] {
  background: var(--amber);
}

.funds-segment-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 8px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(7, 16, 20, 0.35);
}

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

.funds-detail article {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid transparent;
}

.funds-detail article[data-bucket="data"] {
  border-left-color: var(--teal);
}
.funds-detail article[data-bucket="ml"] {
  border-left-color: var(--blue);
}
.funds-detail article[data-bucket="reg"] {
  border-left-color: var(--green);
}
.funds-detail article[data-bucket="buffer"] {
  border-left-color: var(--amber);
}

.funds-detail header {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.funds-pct {
  font-size: 28px;
  font-weight: 820;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.funds-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 780;
}

.funds-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Team (NEW component, light) ---------- */

.inv-team {
  background: var(--paper);
}

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

.team-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.team-card[data-role="advisor-open"] {
  background: repeating-linear-gradient(
    -45deg,
    var(--surface) 0,
    var(--surface) 14px,
    var(--paper) 14px,
    var(--paper) 16px
  );
  border-style: dashed;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--charcoal);
  background: rgba(33, 199, 184, 0.18);
  border: 1px solid rgba(33, 199, 184, 0.4);
  letter-spacing: 0.02em;
}

.team-card[data-role="advisor"] .team-avatar {
  background: rgba(55, 109, 244, 0.14);
  border-color: rgba(55, 109, 244, 0.36);
}

.team-card[data-role="advisor-open"] .team-avatar {
  background: rgba(94, 109, 112, 0.12);
  border-color: rgba(94, 109, 112, 0.3);
  color: var(--muted);
  font-size: 28px;
}

.team-body {
  display: grid;
  gap: 6px;
}

.team-name {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 790;
}

.team-role {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card[data-role="advisor"] .team-role {
  color: var(--blue);
}

.team-card[data-role="advisor-open"] .team-role {
  color: var(--muted);
}

.team-bio {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.team-affiliations {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ---------- Regulatory pins (NEW component, dark) ---------- */

.reg-pins {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.reg-pin {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 22px;
  padding: 24px 0 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-pin:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.reg-pin::before {
  /* Vertical connector line between pins */
  content: "";
  position: absolute;
  top: 36px;
  bottom: -8px;
  left: 15px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.reg-pin:last-child::before {
  display: none;
}

.reg-pin-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--charcoal);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.reg-pin[data-status="active"] .reg-pin-marker {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(33, 199, 184, 0.18);
}

.reg-pin[data-status="scheduled"] .reg-pin-marker {
  background: rgba(33, 199, 184, 0.5);
  border-color: var(--teal);
}

.reg-pin[data-status="planned"] .reg-pin-marker {
  background: transparent;
  border-color: rgba(33, 199, 184, 0.5);
}

.reg-pin[data-status="future"] .reg-pin-marker {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  border-style: dashed;
}

.reg-pin-body {
  display: grid;
  gap: 6px;
}

.reg-pin-status {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reg-pin[data-status="planned"] .reg-pin-status {
  color: rgba(33, 199, 184, 0.65);
}

.reg-pin[data-status="future"] .reg-pin-status {
  color: rgba(255, 255, 255, 0.4);
}

.reg-pin h3 {
  margin: 2px 0 4px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 790;
}

.reg-pin p {
  margin: 0;
  color: rgba(248, 251, 251, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.reg-pin-next {
  margin-top: 8px !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(33, 199, 184, 0.78) !important;
  font-size: 13px !important;
  font-weight: 600;
}

/* ---------- Competitive wedge (light, 3-card) ---------- */

.inv-compare {
  background: var(--paper);
}

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

.compare-grid article {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-tag {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
  font-weight: 790;
}

.compare-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Contact (dark, 2-col) ---------- */

.inv-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.inv-contact-copy {
  color: rgba(248, 251, 251, 0.8);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 14px 0 32px;
}

.inv-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inv-contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.card-eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inv-contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.inv-contact-card li {
  position: relative;
  padding-left: 22px;
  color: rgba(248, 251, 251, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.inv-contact-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.card-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(248, 251, 251, 0.55);
  font-size: 12px;
}

/* ---------- Active nav state ---------- */

.investors-page .site-header .nav-links a[aria-current="page"] {
  color: #ffffff;
}

.investors-page .site-header .nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  margin-top: 4px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .inv-problem-grid,
  .inv-wedge-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .inv-traction-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    /* Switch to vertical connector on mobile */
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(33, 199, 184, 0.55) 50%,
      rgba(255, 255, 255, 0.06) 100%
    );
  }

  .timeline-stage {
    padding-left: 28px;
  }

  .funds-detail {
    grid-template-columns: 1fr;
  }

  .team-card-grid {
    grid-template-columns: 1fr;
  }

  .inv-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .investors-page .section {
    padding: 56px 0;
  }

  .investors-page .section-inner {
    width: calc(100% - 32px);
  }

  .investors-hero-content {
    padding: 80px 0 64px;
  }

  .investors-hero-stats {
    grid-template-columns: 1fr;
  }

  .funds-bar {
    height: 44px;
  }

  .funds-segment-label {
    font-size: 10px;
  }

  .funds-segment[style*="--share: 5%"] .funds-segment-label,
  .funds-segment[data-bucket="buffer"] .funds-segment-label {
    /* Hide tiny segment label on mobile to avoid overflow */
    display: none;
  }

  .team-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-avatar {
    margin-bottom: 4px;
  }
}
