/* ============================================
   Tokens
============================================ */
:root {
  --ink: #0C1E2A;
  --deep: #0E4F66;
  --deep-dark: #0A3B4D;
  --clarity: #2AA8C4;
  --clarity-soft: #DCEEF2;
  --sediment: #C08A5C;
  --mist: #F3F7F9;
  --paper: #FFFFFF;
  --slate: #5B6B75;
  --line: #DDE6E9;

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --wrap: 1160px;
  --radius: 14px;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.sr-only {
  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; }

:focus-visible {
  outline: 2px solid var(--clarity);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--deep-dark); }

/* ============================================
   Header
============================================ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  max-width: calc(var(--wrap) - 16px);
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(12, 30, 42, 0.35);
}
@media (max-width: 1180px) {
  .site-header { margin-inline: 12px; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark { color: var(--clarity); display: flex; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.logo-text--light { color: #fff; }
.logo-text--light em { color: #9FC2CE; }

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a {
  text-decoration: none;
  color: var(--slate);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.phone-link svg { color: var(--clarity); flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   Hero
============================================ */
.hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--slate);
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clarity);
  box-shadow: 0 0 0 3px var(--clarity-soft);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto 28px;
}

.symptom-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 0;
}
.symptom-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.email-input::placeholder { color: #93A3AB; }
.email-input:focus { outline: 2px solid var(--clarity); outline-offset: 2px; }

.form-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-status[data-state="success"] { color: var(--deep); }
.form-status[data-state="error"] { color: #B4432F; }

.form-caption {
  margin: 14px auto 0;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--slate);
}

.clarity-rule {
  margin-top: 64px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sediment) 0%, var(--clarity-soft) 45%, var(--clarity) 75%, var(--clarity) 100%);
}

/* ============================================
   Feature: AI assistant
============================================ */
.feature-assistant {
  background: var(--paper);
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
}

.feature-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 280px;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(12, 30, 42, 0.35);
}

.phone-notch {
  width: 60px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  margin: 4px auto 8px;
}

.phone-screen {
  background: var(--mist);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thread-meta { display: flex; flex-direction: column; line-height: 1.25; }
.thread-name { font-size: 0.8rem; font-weight: 600; }
.thread-status { font-size: 0.68rem; color: var(--clarity); }

.thread-timestamp {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #93A3AB;
  padding: 10px 0 4px;
}

.thread-body {
  flex: 1;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.5s ease forwards;
}
.bubble-in {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.bubble-out {
  align-self: flex-end;
  background: var(--deep);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble:nth-child(1) { animation-delay: 0.1s; }
.bubble:nth-child(2) { animation-delay: 0.5s; }
.bubble:nth-child(3) { animation-delay: 0.9s; }
.bubble:nth-child(4) { animation-delay: 1.3s; }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

.thread-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  color: #93A3AB;
}
.thread-send {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visual-caption {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
}

.feature-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.18;
  margin-bottom: 40px;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.channel-item {
  display: flex;
  gap: 16px;
}

.channel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--clarity-soft);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.channel-item p {
  color: var(--slate);
  font-size: 0.92rem;
  max-width: 46ch;
}

.feature-caption {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #93A3AB;
}

/* ============================================
   Section head (shared)
============================================ */
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clarity);
  margin-bottom: 14px;
}
.section-eyebrow--light { color: #6FD2E8; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

/* ============================================
   Value / pricing
============================================ */
.value-section {
  background: var(--paper);
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.value-inner .section-head { margin-bottom: 0; }

.value-copy {
  margin-top: 20px;
  max-width: 680px;
  color: var(--slate);
  font-size: 1rem;
}

.price-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
}

.price-card {
  flex: 1 1 240px;
  max-width: 320px;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}

.price-card--them {
  background: var(--mist);
  border: 1px solid var(--line);
}

.price-card--us {
  background: var(--deep);
  box-shadow: 0 24px 48px -24px rgba(14, 79, 102, 0.4);
}

.price-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--slate);
}
.price-card--us .price-label { color: #9FC2CE; }

.price-figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.price-card--us .price-figure { color: #fff; }

.price-note {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
}
.price-card--us .price-note { color: #CFE3E8; }

.price-divider {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93A3AB;
}

/* ============================================
   How it works
============================================ */
.how-it-works { padding: 96px 0; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clarity);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.step p {
  color: var(--slate);
  font-size: 0.92rem;
}

/* ============================================
   Services
============================================ */
.services {
  padding: 0 0 96px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(12, 30, 42, 0.25);
}

.service-badge {
  position: absolute;
  top: 24px;
  right: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--clarity-soft);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-photo {
  display: block;
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -32px -26px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.service-price {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--clarity-soft);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.service-card p {
  color: var(--slate);
  font-size: 0.92rem;
}

.service-specs {
  list-style: none;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-specs li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clarity);
}
.spec-value {
  font-size: 0.85rem;
  color: var(--ink);
}

/* ============================================
   About / service areas strip
============================================ */
.about-strip {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}

.about-strip h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  line-height: 1.24;
  margin-bottom: 18px;
}
.about-strip p {
  color: #B7C6CC;
  font-size: 0.96rem;
  max-width: 52ch;
}

.service-areas ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-areas li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.service-areas li:first-child { border-top: 1px solid rgba(255,255,255,0.12); }

/* ============================================
   Footer
============================================ */
.site-footer {
  background: var(--deep-dark);
  color: #CFE3E8;
}

.footer-inner {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #9FC2CE;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6FD2E8;
  margin: 0 0 16px;
}

.footer-col address,
.footer-col ul {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.9;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #CFE3E8;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  font-size: 0.82rem;
  color: #7FA0AA;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #9FC2CE; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ============================================
   Legal pages (privacy.html, terms.html)
============================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 80px;
  color: var(--ink);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 8px;
}
.legal .legal-updated { color: var(--slate); font-size: 0.9rem; margin: 0 0 32px; }
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 40px 0 12px;
}
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--deep); }
.legal .legal-callout {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-visual { order: 1; }
  .feature-copy { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .phone-link span { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 36px -20px rgba(12, 30, 42, 0.4);
    gap: 18px;
  }

  .hero { padding-top: 48px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }

  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; opacity: 1; transform: none; }
  .service-card { transition: none; }
}

/* Spam honeypot on the lead form: kept out of view and out of the tab order */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================
   Type accents (reference: Instrument Serif / Geist / Geist Mono)
============================================ */
.hero-headline em {
  font-style: italic;
  background: linear-gradient(100deg, var(--deep) 10%, var(--clarity) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}
.price-figure {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.feature-copy h2, .section-head h2, .about-strip h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.channel-item h3, .step h3, .service-card h3 { font-size: 1.55rem; }

/* Logo mark image (NTX) in header and footer */
.logo-mark-img { display: block; height: 34px; width: auto; }
.footer-mark { display: block; height: 36px; width: auto; margin-bottom: 14px; }
@media (max-width: 720px) {
  .logo-mark-img { height: 28px; }
}
