:root {
  --ink: #183331;
  --muted-ink: #54706b;
  --deep: #0f4a44;
  --deep-2: #123f4a;
  --surface: #ffffff;
  --soft: #f6f7f2;
  --line: #d9e1dc;
  --accent: #c96d4b;
  --accent-dark: #a84f31;
  --blue-soft: #e9f1f2;
  --green-soft: #e7f0eb;
  --shadow: 0 20px 60px rgba(24, 51, 49, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.hidden-field {
  display: none;
}

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

svg {
  display: block;
  fill: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 220, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--surface);
  background: var(--deep);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-mark .logo-route {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-width: 2.45;
}

.brand-mark .logo-dot {
  stroke: var(--deep);
  stroke-width: 1.4;
}

.brand-mark .logo-dot.light {
  fill: #ffffff;
}

.brand-mark .logo-dot.warm {
  fill: #fac7ad;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.site-nav a,
.site-footer a {
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--deep);
  text-decoration: underline;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--surface);
  background: var(--deep);
  border-radius: 8px;
  font-weight: 720;
}

.section-band {
  width: 100%;
  padding: clamp(68px, 9vw, 112px) clamp(20px, 4vw, 54px);
}

.section-band > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.muted {
  background: var(--soft);
}

.deep {
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--deep);
  background-size: 52px 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  min-height: calc(100vh - 74px);
  padding-top: clamp(54px, 7vw, 90px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f2 100%);
}

.hero > * {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.hero-copy {
  justify-self: end;
  width: min(100%, 560px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.deep .eyebrow {
  color: #fac7ad;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.hero-subhead,
.section-intro p {
  color: var(--muted-ink);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.deep .section-intro p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-subhead {
  max-width: 640px;
  margin-bottom: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  cursor: pointer;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  color: var(--surface);
  background: var(--deep);
}

.button.primary:hover,
.nav-cta:hover {
  background: #0a3935;
}

.button.secondary {
  color: var(--deep);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--deep);
}

.support-line {
  color: var(--muted-ink);
  font-size: 0.95rem;
}

.product-preview {
  justify-self: start;
  width: min(100%, 690px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #cfdbd5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: var(--muted-ink);
  background: #edf2ef;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  background: #9baaa5;
  border-radius: 999px;
}

.preview-toolbar strong {
  margin-left: 8px;
  color: var(--ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 510px;
}

.chat-panel,
.match-panel {
  padding: 20px;
}

.chat-panel {
  background: #f8faf7;
  border-right: 1px solid var(--line);
}

.panel-label,
.panel-heading span {
  margin-bottom: 14px;
  color: var(--muted-ink);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.message {
  max-width: 92%;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.message.assistant {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.message.user {
  margin-left: auto;
  color: var(--surface);
  background: var(--deep-2);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-group span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--deep);
  background: var(--green-soft);
  border: 1px solid #cdded4;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 680;
}

.criteria-meter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.criteria-meter div {
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.criteria-meter span {
  display: block;
  color: var(--muted-ink);
  font-size: 0.76rem;
}

.criteria-meter strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.donor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.donor-row.selected {
  border-color: #79a99b;
  box-shadow: inset 4px 0 0 var(--deep);
}

.donor-row h3,
.donor-row p {
  margin: 0;
}

.donor-row p {
  color: var(--muted-ink);
  font-size: 0.88rem;
}

.donor-row > span {
  min-width: max-content;
  padding: 5px 8px;
  color: var(--deep);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 720;
}

.explanation-panel {
  margin-top: 18px;
  padding: 18px;
  color: var(--surface);
  background: var(--deep);
  border-radius: 8px;
}

.explanation-panel ul,
.reason-column ul {
  margin: 0;
  padding-left: 20px;
}

.explanation-panel li,
.reason-column li {
  margin: 8px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.problem .section-intro {
  margin-left: 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-item,
.step,
.feature-row,
.reason-column,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pain-item {
  padding: 22px;
}

.pain-item p,
.step p,
.feature-row p,
.faq-list p {
  color: var(--muted-ink);
}

.mini-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--deep);
  background: var(--green-soft);
  border-radius: 8px;
}

.mini-icon svg {
  width: 23px;
  height: 23px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  position: relative;
  min-height: 230px;
  padding: 22px;
}

.step span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 42px;
  place-items: center;
  color: var(--surface);
  background: var(--deep);
  border-radius: 8px;
  font-weight: 780;
}

.step::after {
  position: absolute;
  top: 39px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: var(--line);
  content: "";
}

.step:last-child::after {
  display: none;
}

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

.feature-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px;
}

.feature-row p {
  margin-bottom: 0;
}

.reasoning-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.reason-column {
  padding: 22px;
}

.reason-column h3 {
  color: var(--deep);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.trust-list div {
  min-height: 126px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 680;
}

.early-access {
  background:
    linear-gradient(90deg, rgba(15, 74, 68, 0.06) 1px, transparent 1px),
    #ffffff;
  background-size: 56px 56px;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 850px;
  margin-left: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 720;
}

label span {
  color: var(--muted-ink);
  font-weight: 520;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cfdad4;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--deep);
  outline: 3px solid rgba(15, 74, 68, 0.14);
}

.wide-field,
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

.form-submit {
  width: fit-content;
}

.form-note {
  margin: 0;
  color: var(--muted-ink);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 20px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--deep);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 780px;
  margin-bottom: 20px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(20px, 4vw, 54px);
  color: var(--muted-ink);
  background: #f0f3ef;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  max-width: 620px;
}

.site-footer p {
  margin: 14px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.simple-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f2 100%);
}

.thanks-page {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 34px;
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 64px 0;
}

.thanks-card {
  padding: clamp(28px, 6vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thanks-card h1 {
  max-width: 12ch;
}

.thanks-card p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted-ink);
  font-size: 1.12rem;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy,
  .product-preview {
    justify-self: center;
    width: min(100%, var(--max));
  }

  h1 {
    max-width: 12ch;
  }

  .steps,
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-list div:last-child {
    grid-column: 1 / -1;
    min-height: 90px;
  }
}

@media (max-width: 840px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .preview-grid,
  .pain-grid,
  .feature-list,
  .reasoning-preview {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .section-band {
    padding: 56px 18px;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-actions,
  .button,
  .nav-cta,
  .form-submit {
    width: 100%;
  }

  .site-header {
    gap: 14px;
    padding: 14px 18px;
  }

  .nav-cta {
    min-height: 40px;
  }

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

  .chat-panel,
  .match-panel {
    padding: 16px;
  }

  .criteria-meter,
  .steps,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step span {
    margin-bottom: 22px;
  }

  .step::after {
    display: none;
  }

  .trust-list div {
    min-height: 92px;
  }

  .trust-list div:last-child {
    grid-column: auto;
  }
}
