:root {
  --ink: oklch(16% 0.012 260);
  --ink-soft: oklch(38% 0.012 260);
  --muted: oklch(56% 0.012 255);
  --paper: oklch(98.8% 0.006 250);
  --panel: oklch(96.5% 0.01 255);
  --panel-strong: oklch(92.5% 0.018 255);
  --line: oklch(85% 0.014 255);
  --line-dark: oklch(31% 0.014 260);
  --violet: oklch(54% 0.18 286);
  --violet-soft: oklch(92% 0.052 292);
  --green: oklch(71% 0.15 151);
  --green-soft: oklch(92% 0.04 151);
  --amber: oklch(79% 0.12 78);
  --red: oklch(62% 0.18 27);
  --dark: oklch(8% 0.012 260);
  --radius: 8px;
  --shadow: 0 18px 46px oklch(8% 0.012 260 / 0.11);
  --page: min(1216px, calc(100% - 44px));
  --section-y: clamp(44px, 5.4vw, 68px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 2%, oklch(74% 0.15 286 / 0.12), transparent 30rem),
    linear-gradient(180deg, var(--paper), oklch(94% 0.012 255));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::selection {
  background: oklch(78% 0.16 286 / 0.24);
}

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

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

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

:focus-visible {
  outline: 3px solid oklch(70% 0.17 286 / 0.72);
  outline-offset: 3px;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: 132px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 3vw, 42px);
  background: oklch(98.8% 0.006 250 / 0.88);
  border-bottom: 1px solid oklch(85% 0.014 255 / 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 108px;
}

.brand img {
  width: 108px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.topbar-cta,
.primary-action,
.final-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.topbar-cta {
  padding: 0 18px;
  font-size: 14px;
}

.topbar-cta:hover,
.primary-action:hover,
.final-cta:hover {
  transform: translateY(-1px);
  background: oklch(18% 0.03 270);
}

.matchmaker-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 100px 0 34px;
  display: grid;
  gap: 24px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  max-width: none;
}

.hero-title-block,
.hero-intro {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-intro > p {
  max-width: 47ch;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 18px;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.context-strip figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  aspect-ratio: 1.1;
}

.context-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.98);
}

.context-strip figure::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  background: linear-gradient(180deg, transparent, oklch(8% 0.012 260 / 0.72));
}

.context-strip figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 8px 8px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.studio-shell {
  display: grid;
  grid-template-columns: 68px minmax(306px, 0.82fr) minmax(430px, 1.18fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, oklch(97% 0.01 255 / 0.92), oklch(96% 0.012 286 / 0.92)),
    radial-gradient(circle at 82% 10%, oklch(54% 0.18 286 / 0.14), transparent 24rem);
  box-shadow: var(--shadow);
}

.studio-rail {
  display: grid;
  align-content: start;
  gap: 7px;
}

.rail-step {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 6px;
  font: inherit;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.rail-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rail-step strong {
  font-size: 11px;
  line-height: 1;
}

.rail-step:hover,
.rail-step.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--paper);
}

.rail-step:focus-visible {
  outline: 3px solid oklch(70% 0.17 286 / 0.72);
  outline-offset: 3px;
}

.intake-preview,
.result-panel {
  min-width: 0;
}

.phone-frame {
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px oklch(71% 0.15 151 / 0.13);
}

.intake-form {
  display: grid;
  gap: 12px;
}

.intake-form label,
.intake-form fieldset {
  min-width: 0;
}

.intake-form > label > span,
.select-stack label > span,
.intake-form legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field-hint {
  margin: -2px 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.input-explainer {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.need-analysis {
  margin-top: -8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99.2% 0.005 250);
  color: var(--ink);
}

textarea {
  min-height: 88px;
  padding: 12px;
  resize: vertical;
}

.sample-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: -7px;
}

.sample-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sample-strip button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99.2% 0.005 250);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sample-strip button:hover {
  border-color: var(--violet);
  color: var(--ink);
}

select {
  min-height: 44px;
  padding: 0 12px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-stack {
  display: grid;
  gap: 6px;
}

.choice-stack label,
.chip-grid label {
  display: flex;
  gap: 9px;
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99.2% 0.005 250);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.choice-stack label {
  align-items: flex-start;
  padding: 8px 9px;
}

.choice-stack input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.chip-grid label {
  align-items: flex-start;
  min-height: 44px;
  padding: 8px 9px;
  line-height: 1.2;
}

.chip-grid input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.option-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.option-text strong {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.15;
}

.option-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

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

.choice-stack input,
.chip-grid input {
  accent-color: var(--violet);
}

.select-stack {
  display: grid;
  gap: 9px;
}

.select-stack label {
  display: block;
  min-width: 0;
}

.select-stack select {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-action {
  min-height: 46px;
  width: 100%;
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--line-dark);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1;
}

.fit-badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: oklch(31% 0.08 151);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-card {
  display: grid;
  padding: 12px;
  border: 1px solid oklch(98% 0.006 260 / 0.12);
  border-radius: 8px;
  background: oklch(98% 0.006 260 / 0.055);
}

#readinessValue {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  background: oklch(54% 0.18 286 / 0.18);
  color: oklch(91% 0.04 286);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.12;
}

.recommendation-card p,
.pilot-block p {
  margin: 0;
  color: oklch(78% 0.012 260);
}

.mapping-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

.mapping-list div,
.need-statement,
.need-card,
.capability-block,
.workflow-preview,
.prep-block,
.pilot-block {
  padding: 11px;
  border: 1px solid oklch(98% 0.006 260 / 0.12);
  border-radius: 8px;
  background: oklch(98% 0.006 260 / 0.045);
}

.need-statement h3,
.need-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.need-statement p {
  margin: 0;
  color: var(--paper);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.35;
}

.need-card-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.need-card-list div {
  display: grid;
  grid-template-columns: minmax(98px, 0.36fr) 1fr;
  gap: 9px;
  padding-top: 7px;
  border-top: 1px solid oklch(98% 0.006 260 / 0.12);
}

.need-card-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.need-card-list dt {
  color: oklch(69% 0.016 260);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.need-card-list dd {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

.mapping-list dt {
  color: oklch(69% 0.016 260);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mapping-list dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 850;
}

.capability-block h3,
.workflow-preview h3,
.prep-block h3,
.pilot-block h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.capability-block ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-block li {
  padding: 7px 9px;
  border-radius: var(--radius);
  background: oklch(54% 0.18 286 / 0.18);
  color: oklch(91% 0.04 286);
  font-size: 13px;
  font-weight: 800;
}

.workflow-preview ol,
.prep-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: oklch(82% 0.014 260);
}

.workflow-preview li,
.prep-block li {
  padding-left: 2px;
  line-height: 1.35;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: var(--section-y) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.48fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.section-heading h2,
.workflow-copy h2,
.evidence-copy h2,
.pilot-section h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 3.6vw, 48px);
  line-height: 1.04;
  max-width: 18ch;
}

.category-grid,
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-grid article,
.pilot-grid article {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99% 0.005 250 / 0.72);
}

.category-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 900;
}

.category-grid h3,
.pilot-grid h3 {
  font-size: 21px;
  line-height: 1.08;
}

.category-grid p,
.workflow-copy p,
.evidence-copy li,
.pilot-grid p {
  color: var(--ink-soft);
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(480px, 1fr);
  gap: clamp(24px, 3.6vw, 46px);
  align-items: center;
}

.workflow-copy p {
  max-width: 58ch;
}

.workflow-board {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: oklch(99% 0.005 250 / 0.74);
  box-shadow: var(--shadow);
}

.workflow-node {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 66px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.workflow-node span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-weight: 900;
}

.workflow-node h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.15;
}

.workflow-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(320px, 0.82fr);
  gap: 28px;
  align-items: center;
}

.pattern-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: var(--dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pattern-panel article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid oklch(98% 0.006 260 / 0.14);
  background: oklch(98% 0.006 260 / 0.055);
  color: var(--paper);
}

.pattern-panel span {
  width: fit-content;
  padding: 6px 8px;
  border-radius: var(--radius);
  background: var(--violet);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pattern-panel h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
}

.pattern-panel p {
  margin: 0;
  color: oklch(82% 0.014 260);
  line-height: 1.45;
}

.evidence-copy ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-copy li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.pilot-section {
  padding-bottom: 64px;
}

.pilot-section h2 {
  max-width: 20ch;
  margin-bottom: 20px;
}

.final-cta {
  width: fit-content;
  margin-top: 22px;
  padding: 0 20px;
}

.site-footer {
  background: oklch(96% 0.01 255);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(32px, 4.4vw, 48px) 0 24px;
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(300px, 0.9fr) minmax(340px, 1.35fr);
  gap: clamp(22px, 4vw, 44px);
}

.footer-brand,
.footer-links,
.footer-funding {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  width: 106px;
  margin-bottom: 0;
}

.footer-logo img {
  width: 106px;
  height: auto;
}

.footer-brand p,
.footer-funding p,
.footer-links address,
.footer-bottom {
  color: var(--ink-soft);
}

.footer-brand p {
  max-width: 32ch;
  margin: 0;
}

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

.footer-links h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.footer-links address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.footer-links address a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.footer-links nav {
  display: grid;
  gap: 6px;
}

.footer-links a,
.footer-bottom a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--violet);
}

.footer-funding img {
  width: min(100%, 300px);
  height: auto;
  margin-bottom: 12px;
}

.footer-funding p {
  max-width: 58ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (min-width: 1180px) {
  .result-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .panel-head,
  .need-statement,
  .mapping-list,
  .workflow-preview,
  .pilot-block {
    grid-column: 1 / -1;
  }

  .recommendation-card,
  .need-card,
  .need-statement,
  .capability-block,
  .prep-block {
    min-width: 0;
  }
}

@media (max-width: 1120px) {
  .matchmaker-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 880px) {
  .topbar {
    grid-template-columns: 118px 1fr;
  }

  .nav {
    display: none;
  }

  .topbar-cta {
    justify-self: end;
  }

  .studio-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 760px;
  }

  .context-strip figure {
    aspect-ratio: 1.55;
  }

  .studio-rail {
    display: none;
  }

  .section-heading,
  .workflow-section,
  .evidence-section {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .matchmaker-hero {
    width: calc(100% - 28px);
    padding: 92px 0 30px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .context-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
  }

  .studio-shell {
    padding: 10px;
  }

  .select-stack,
  .need-card-list div,
  .mapping-list,
  .chip-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    flex-direction: column;
  }

  .section {
    width: calc(100% - 28px);
  }

  .footer-inner {
    width: calc(100% - 28px);
    padding-bottom: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
