:root {
  --ink: #102b1d;
  --ink-soft: #31513d;
  --muted: #607568;
  --line: #dce9df;
  --paper: #fbfff9;
  --paper-2: #f2f8ef;
  --mint: #dff1e2;
  --green: #1f5f38;
  --green-2: #2f7a4c;
  --gold: #f3bd4d;
  --coral: #e9785f;
  --blue: #3f7fa1;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 43, 29, .16);
  --shadow-soft: 0 16px 40px rgba(16, 43, 29, .1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(243, 189, 77, .24), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(63, 127, 161, .14), transparent 25rem),
    linear-gradient(180deg, #fbfff9 0%, #f2f8ef 44%, #fbfff9 100%);
  line-height: 1.6;
  min-width: 320px;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  transition: top .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 233, 223, .86);
  background: rgba(251, 255, 249, .9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: var(--nav-height);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--ink));
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(16, 43, 29, .22);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  padding: .75rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: .65rem .85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  font-weight: 900;
}

.button {
  min-height: 48px;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.button.gold {
  color: var(--ink);
  background: var(--gold);
}

.text-link {
  color: var(--green);
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 46px;
  align-items: center;
}

.hero.compact {
  grid-template-columns: minmax(0, .95fr) minmax(280px, .7fr);
  padding-bottom: 34px;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.075em;
}

.hero.compact h1 {
  font-size: clamp(2.45rem, 5.6vw, 5.2rem);
}

.lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-card,
.feature-card,
.panel,
.metric-card,
.route-card,
.source-note {
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(220, 233, 223, .92);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: 20px;
}

.hero-card img {
  border-radius: 24px;
}

.hero-card p {
  margin: 18px 6px 4px;
  color: var(--muted);
  font-size: .93rem;
  font-weight: 700;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.section.tight {
  padding-top: 38px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(280px, .42fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.section h3 {
  margin: 0 0 .75rem;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.section p {
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.feature-card,
.route-card,
.metric-card,
.panel,
.source-note {
  padding: 24px;
}

.feature-card {
  min-height: 100%;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: .38rem .65rem;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.band {
  margin: 24px;
  padding: 54px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(243, 189, 77, .34), transparent 16rem),
    linear-gradient(135deg, var(--ink), #1c5634);
  box-shadow: var(--shadow);
}

.band .section-header,
.band p {
  color: rgba(255, 255, 255, .86);
}

.band h2,
.band h3 {
  color: var(--white);
}

.band .feature-card {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.band .feature-card p {
  color: rgba(255, 255, 255, .78);
}

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

.list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-weight: 700;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(243, 189, 77, .18);
}

.band .list li {
  color: rgba(255, 255, 255, .82);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 28px;
  align-items: start;
}

.source-note {
  border-left: 6px solid var(--gold);
}

.source-note strong {
  display: block;
  margin-bottom: 8px;
}

.profile-section {
  padding-top: 48px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .62fr);
  gap: 24px;
  align-items: start;
}

.profile-form,
.profile-summary {
  padding: 26px;
  border: 1px solid rgba(220, 233, 223, .96);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(242, 248, 239, .82)),
    var(--white);
  box-shadow: var(--shadow);
}

.profile-form fieldset {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.profile-form fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-form legend {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.nested-fieldset legend,
.consent-row {
  color: var(--ink);
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfd4c5;
  border-radius: 15px;
  padding: .82rem .9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.choice-grid[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(233, 120, 95, .16);
}

.help-text {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.nested-fieldset {
  margin-top: 18px;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
}

.choice-grid label,
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.choice-grid input,
.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: .22rem;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.form-status {
  min-height: 1.4rem;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 850;
}

.form-status.is-success {
  color: var(--green);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.profile-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background:
    radial-gradient(circle at 100% 0, rgba(243, 189, 77, .24), transparent 12rem),
    linear-gradient(180deg, #ffffff, #eff8f1);
}

.profile-summary[hidden] {
  display: none;
}

.assessment-shell {
  max-width: 1240px;
}

.assessment-form,
.assessment-result {
  padding: 26px;
  border: 1px solid rgba(220, 233, 223, .96);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(242, 248, 239, .86)),
    var(--white);
  box-shadow: var(--shadow);
}

.assessment-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 900;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .25s ease;
}

.assessment-questions {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
}

.question-card[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(233, 120, 95, .14);
}

.question-card legend {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 900;
}

.question-meta {
  display: inline-flex;
  margin-bottom: 10px;
  padding: .3rem .55rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.likert-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.likert-grid label {
  display: grid;
  min-height: 86px;
  place-items: center;
  gap: 8px;
  padding: .65rem .4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.likert-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.assessment-result {
  margin-top: 28px;
}

.assessment-result[hidden] {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.result-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
}

.band-label {
  display: inline-flex;
  margin: 8px 0 12px;
  padding: .38rem .65rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: .78rem;
  font-weight: 900;
}

.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.route-pill {
  display: inline-flex;
  padding: .55rem .7rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--mint);
  font-weight: 850;
  font-size: .84rem;
}

.share-confirmation {
  margin-top: 26px;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.summary-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
}

.summary-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.summary-note {
  padding: 14px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 750;
}

.copy-stack {
  display: grid;
  gap: 14px;
}

.copy-stack > * {
  margin: 0;
}

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

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.step-tab,
.route-switch {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.step-tab.is-active,
.route-switch.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.step-tab.is-complete:not(.is-active) {
  color: var(--green);
  border-color: rgba(31, 95, 56, .28);
  background: rgba(223, 241, 226, .72);
}

.step-stage {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(280px, .34fr);
  gap: 22px;
  align-items: start;
}

.assessment-step-panel {
  display: grid;
  gap: 18px;
}

.step-support {
  padding: 24px;
  border: 1px solid rgba(220, 233, 223, .96);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(243, 189, 77, .18), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(242, 248, 239, .9)),
    var(--white);
  box-shadow: var(--shadow-soft);
}

.step-support h3,
.step-support p {
  margin-top: 0;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.route-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-panel[hidden] {
  display: none;
}

.maturity-curve {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.journey {
  counter-reset: step;
}

.journey .route-card {
  position: relative;
}

.journey .route-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 20px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.site-footer {
  margin-top: 56px;
  padding: 48px 24px;
  color: rgba(255, 255, 255, .78);
  background: var(--ink);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, .55fr);
  gap: 30px;
}

.footer-inner h2,
.footer-inner h3 {
  margin-top: 0;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .hero,
  .hero.compact,
  .section-header,
  .split,
  .profile-layout,
  .step-stage,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .detail-grid,
  .choice-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-summary {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 16px auto 16px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: .95rem 1rem;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 54px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .detail-grid,
  .maturity-curve,
  .form-grid,
  .choice-grid,
  .result-grid,
  .step-tabs,
  .likert-grid {
    grid-template-columns: 1fr;
  }

  .likert-grid label {
    min-height: auto;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .band {
    margin: 16px;
    padding: 30px 20px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
