:root {
  --navy: #1b2a4a;
  --navy-dark: #101a31;
  --teal: #0e8c8c;
  --teal-dark: #096f72;
  --orange: #e07b39;
  --paper: #f2f5f9;
  --white: #ffffff;
  --ink: #182235;
  --muted: #5b667a;
  --line: rgba(27, 42, 74, 0.14);
  --shadow: 0 24px 70px rgba(16, 26, 49, 0.16);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 5%, rgba(14, 140, 140, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(224, 123, 57, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, var(--paper) 38%, #edf2f7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 249, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-mark,
.triage-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 0.9rem;
  box-shadow: 0 16px 32px rgba(14, 140, 140, 0.18);
  font-weight: 900;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

nav a,
.header-cta,
.btn,
.text-link {
  outline-offset: 4px;
}

nav a:hover,
.text-link:hover {
  color: var(--teal-dark);
}

.header-cta {
  justify-self: start;
  padding: 0.72rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-weight: 850;
}

.header-cta:hover {
  background: var(--teal-dark);
}

.hero {
  padding-top: clamp(3rem, 7vw, 7rem);
}

.hero-grid,
.diagnostic-grid,
.proof-grid,
.founder-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  color: var(--navy-dark);
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: var(--navy-dark);
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--navy-dark);
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-lede,
.section-heading p,
.diagnostic-copy > p,
.proof-copy > p,
.cohort-card > p,
.founder-card > p {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 18px 40px rgba(14, 140, 140, 0.22);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.proof-points,
.check-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-points {
  grid-template-columns: 1fr;
  max-width: 42rem;
}

.proof-points li,
.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
}

.proof-points li::before,
.check-list li::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--orange);
}

.triage-panel,
.form-card,
.evidence-card,
.cohort-card,
.founder-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.triage-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.triage-header {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.triage-header small {
  display: block;
  color: var(--muted);
}

.triage-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.95rem 1rem;
  background: rgba(224, 123, 57, 0.11);
  border-radius: 0.95rem;
}

.triage-meter strong {
  color: #8d3d13;
}

.triage-meter.calm {
  background: rgba(14, 140, 140, 0.1);
}

.triage-meter.calm strong {
  color: var(--teal-dark);
}

.triage-meter.stable {
  background: rgba(27, 42, 74, 0.08);
}

.triage-meter.stable strong {
  color: var(--navy);
}

.triage-panel > p {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 58rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading.narrow {
  max-width: 48rem;
}

.three-grid,
.module-list {
  display: grid;
  gap: 1rem;
}

.reason-card,
.module-item,
.studio-strip,
.principles,
details {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.reason-card span,
.module-item span {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.reason-card p,
.module-item p,
.studio-strip p,
details p {
  color: var(--muted);
}

.diagnostic-section {
  background: var(--navy);
  color: var(--white);
}

.diagnostic-section h2,
.diagnostic-section h3,
.diagnostic-section .check-list li {
  color: var(--white);
}

.diagnostic-section .eyebrow {
  color: #74d1cf;
}

.diagnostic-section p {
  color: rgba(255, 255, 255, 0.74);
}

.form-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--ink);
  background: var(--white);
}

.form-card h2 {
  max-width: 13ch;
  font-size: clamp(1.7rem, 5vw, 3rem);
}

.form-card p {
  color: var(--muted);
}

.fallback-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.fallback-form label {
  color: var(--navy);
  font-weight: 850;
}

.fallback-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.fallback-form input:focus {
  outline: 3px solid rgba(14, 140, 140, 0.22);
  border-color: var(--teal);
}

.fallback-form button {
  min-height: 50px;
  margin-top: 0.35rem;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.fallback-form button:hover {
  background: #c86327;
}

.form-note,
.todo-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.studio-strip {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(14, 140, 140, 0.08);
  border-radius: var(--radius);
}

.studio-strip strong {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.proof-section {
  background: #fff;
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.25em;
}

.evidence-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
  font-weight: 900;
}

.score-row strong {
  font-size: 1.6rem;
}

.bar {
  height: 0.85rem;
  margin: 0.8rem 0 1.4rem;
  overflow: hidden;
  background: rgba(27, 42, 74, 0.1);
  border-radius: 999px;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-before {
  width: 4%;
  background: var(--orange);
}

.bar-after {
  width: 90%;
  background: var(--teal);
}

.cohort-card {
  padding: clamp(1.6rem, 5vw, 3rem);
}

.founder-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.founder-card h2 {
  max-width: 100%;
  font-size: clamp(2rem, 3.65vw, 3.1rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.principles {
  display: grid;
  gap: 0.8rem;
}

.principles span {
  display: block;
  padding: 1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0;
}

details {
  padding-bottom: 1.3rem;
}

summary {
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
}

summary:focus {
  outline: 3px solid rgba(14, 140, 140, 0.24);
  outline-offset: 4px;
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-dark);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
  max-width: 42rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  nav {
    justify-content: center;
  }

  .proof-points {
    grid-template-columns: repeat(3, auto);
  }

  .three-grid,
  .module-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .hero-grid,
  .diagnostic-grid,
  .proof-grid,
  .founder-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  }

  .cohort-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 3rem;
    align-items: center;
  }

  .cohort-card .eyebrow,
  .cohort-card h2,
  .cohort-card p {
    grid-column: 1;
  }

  .cohort-card .btn {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}

@media (max-width: 720px) {
  nav {
    order: 3;
  }

  .header-cta {
    justify-self: stretch;
    text-align: center;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
