:root {
  color-scheme: light;
  --ink: #20201d;
  --muted: #69635b;
  --paper: #f5f1ea;
  --surface: #fffdf8;
  --line: #ddd5c9;
  --civic: #777d78;
  --civic-dark: #565d59;
  --ember: #e15f3c;
  --sun: #b8925a;
  --mist: #e8e5de;
  --night: #11110f;
  --shadow: 0 18px 40px rgba(32, 32, 29, 0.11);
  font-family:
    "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 2rem;
  color: #fff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(247, 243, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(31, 29, 24, 0.08);
  backdrop-filter: blur(12px);
}

.brand,
.nav-cta,
.site-nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 0.55rem;
  margin-right: auto;
}

.brand-wordmark {
  font-size: 1.38rem;
  font-weight: 850;
  line-height: 1;
}

.brand-cn {
  padding-top: 0.08rem;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.8;
}

/* --- Desktop nav --- */
.site-nav {
  gap: 0.2rem;
  font-size: 0.92rem;
}

.site-nav a,
.site-nav .nav-dropdown-toggle {
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}

.site-nav a:hover,
.site-nav .nav-dropdown-toggle:hover {
  background: rgba(128, 128, 128, 0.12);
}

.site-footer a {
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  border-bottom-color: currentColor;
}

/* --- Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-toggle svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(32,32,29,0.14);
  z-index: 40;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}

.nav-dropdown-menu a:hover {
  background: var(--mist);
}

.nav-dropdown-menu .dropdown-desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}

/* --- CTA button --- */
.nav-cta {
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* --- Mobile hamburger --- */
.nav-hamburger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  background: none;
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: 6px;
  color: inherit;
  cursor: pointer;
}

.nav-hamburger svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --- Mobile menu panel --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--surface);
  padding: 1.25rem;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-menu-close {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-menu nav {
  display: grid;
  gap: 0.25rem;
}

.mobile-menu nav a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.mobile-menu nav a:hover {
  background: var(--mist);
}

.mobile-menu .mobile-section-label {
  padding: 1.25rem 0.75rem 0.4rem;
  color: var(--ember);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-menu nav a .dropdown-desc {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.mobile-menu .mobile-cta {
  display: block;
  margin-top: 1.5rem;
  padding: 0.85rem;
  text-align: center;
  background: var(--ember);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
}

.nav-cta svg,
.button svg,
.intake-button svg,
.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(28, 25, 19, 0.86), rgba(28, 25, 19, 0.42) 45%, rgba(28, 25, 19, 0.04)),
    linear-gradient(0deg, rgba(28, 25, 19, 0.52), rgba(28, 25, 19, 0.04) 45%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 3rem));
  padding: 8rem 0 4.25rem;
  margin-left: max(1.5rem, calc((100vw - 1160px) / 2));
}

.eyebrow,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd06b;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: 5.4rem;
  font-weight: 850;
}

h1.hero-title {
  font-size: clamp(3.8rem, 9vw, 7.2rem);
  line-height: 0.9;
}

.hero-cn {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.7rem;
  font-weight: 750;
}

h2 {
  font-size: 2.65rem;
}

h3 {
  font-size: 1.18rem;
}

.hero-lede {
  max-width: 680px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.button-primary,
.button-submit {
  background: var(--ember);
  color: #fff;
}

.button-primary:hover,
.button-submit:hover {
  background: #a74332;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.boundary-line {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-item {
  min-height: 11rem;
  padding: 1.5rem;
  background: var(--surface);
}

.signal-item span {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--civic);
  font-weight: 850;
}

.signal-item strong {
  display: block;
  font-size: 1.1rem;
}

.signal-item p,
.quiet-panel p,
.section-copy p,
.section-intro p,
.focus-card p,
.process-list p,
.waitlist-copy p,
.site-footer p,
.submission-panel p {
  color: var(--muted);
}

.section {
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 3.5rem;
  align-items: start;
}

.section-copy p,
.quiet-panel p,
.section-intro p,
.medical-note,
.waitlist-copy p {
  font-size: 1.05rem;
}

.section-copy p {
  max-width: 720px;
}

.quiet-panel {
  padding: 1.5rem;
  background: var(--mist);
  border: 1px solid #cadfd9;
  border-radius: 8px;
}

.quiet-panel h3 {
  margin-bottom: 0.85rem;
  font-size: 1.65rem;
}

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

.focus-section {
  width: 100%;
  padding-right: max(1.5rem, calc((100vw - 1160px) / 2));
  padding-left: max(1.5rem, calc((100vw - 1160px) / 2));
  background: var(--night);
  color: #fff;
}

.focus-section .section-intro p,
.focus-card p,
.medical-note {
  color: rgba(255, 255, 255, 0.72);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.focus-card {
  min-height: 13rem;
  padding: 1.25rem;
  background: #19221f;
}

.focus-card span {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.7rem;
  background: var(--sun);
  color: #191713;
  border-radius: 8px;
  font-weight: 850;
}

.medical-note {
  max-width: 900px;
  margin: 1.4rem 0 0;
}

.process-section {
  padding-bottom: 3.5rem;
}

.process-list {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  min-height: 9rem;
  padding: 1.4rem;
  background: var(--surface);
}

.process-list span {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  background: var(--civic);
  color: #fff;
  border-radius: 8px;
  font-weight: 850;
}

.process-list h3 {
  margin-top: 0.2rem;
}

.fit-section {
  padding-top: 3.5rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.fit-column {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fit-column.good {
  border-top: 6px solid var(--civic);
}

.fit-column.no {
  border-top: 6px solid var(--ember);
}

.fit-column ul {
  padding-left: 1.1rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.fit-column li + li {
  margin-top: 0.65rem;
}

.waitlist-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 3rem;
  width: min(1160px, calc(100% - 3rem));
  padding: 5.5rem 0 6.5rem;
  margin: 0 auto;
}

.waitlist-copy {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.privacy-note {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.pilot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field,
.consent {
  display: grid;
  gap: 0.45rem;
}

.two-col {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

label span,
legend span {
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc8ba;
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--civic);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.checkbox-field {
  padding: 0;
  margin: 0;
  border: 0;
}

.checkbox-field label,
.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.checkbox-field input,
.consent input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin-top: 0.25rem;
}

.form-error {
  min-height: 1.4rem;
  margin: 0;
  color: #a43d2a;
  font-weight: 800;
}

.submission-panel {
  padding: 1rem;
  background: var(--mist);
  border: 1px solid #cadfd9;
  border-radius: 8px;
}

.submission-panel h3 {
  margin-bottom: 0.35rem;
}

.submission-panel .button-secondary {
  margin-top: 0.8rem;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.82);
  background: #181613;
}

.site-footer p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.intake-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0 1rem;
  color: #fff;
  background: var(--civic);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.intake-button:hover {
  background: var(--civic-dark);
}

.intake-drawer {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 35;
  display: grid;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intake-drawer[hidden],
.submission-panel[hidden] {
  display: none;
}

.intake-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.intake-header .panel-label {
  margin-bottom: 0.35rem;
}

.intake-header h2 {
  font-size: 1.2rem;
}

.icon-button {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1rem;
  overflow: auto;
}

.message {
  max-width: 86%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-size: 0.94rem;
}

.message.agent {
  justify-self: start;
  background: var(--mist);
}

.message.user {
  justify-self: end;
  color: #fff;
  background: var(--civic);
}

.chat-actions {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.chat-actions button {
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  text-align: left;
}

.chat-actions button:hover {
  border-color: var(--civic);
}

.intake-small {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: grid;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    width: min(680px, calc(100% - 2rem));
    padding-bottom: 3rem;
    margin-left: 1rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .signal-band,
  .section-split,
  .focus-grid,
  .fit-grid,
  .waitlist-section,
  .pilot-form {
    grid-template-columns: 1fr;
  }

  .section,
  .waitlist-section {
    width: min(100% - 2rem, 720px);
    padding: 4rem 0;
  }

  .focus-section {
    padding: 4rem 1rem;
  }

  .waitlist-copy {
    position: static;
  }

  .pilot-form {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand-wordmark {
    font-size: 1.16rem;
  }

  .brand-cn {
    font-size: 0.78rem;
  }

  .nav-cta {
    min-height: 2.35rem;
    padding: 0 0.75rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(28, 25, 19, 0.88), rgba(28, 25, 19, 0.55)),
      linear-gradient(0deg, rgba(28, 25, 19, 0.5), rgba(28, 25, 19, 0.06));
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 2.35rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-actions,
  .button,
  .site-footer {
    width: 100%;
  }

  .button,
  .site-footer {
    justify-content: center;
  }

  .signal-item {
    min-height: auto;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .intake-button {
    right: 1rem;
    bottom: 1rem;
  }

  .intake-drawer {
    right: 1rem;
    bottom: 4.75rem;
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 6rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
