/* ============================================================
   Clinitraq.ai — Marketing Site Stylesheet
   Aesthetic: refined clinical-editorial · tunic-teal + coral
   ============================================================ */

:root {
  /* Brand palette — sampled from logo */
  --teal:        #077489;
  --teal-dark:   #055E70;
  --teal-deep:   #034953;
  --navy:        #022F37;
  --navy-accent: #06384A;
  --coral:       #FF6B47;
  --coral-soft:  #FFE9D9;
  --ink:         #0F2A33;
  --body:        #2A3942;
  --muted:       #6B7B82;
  --rule:        #D2DEE2;
  --bg:          #FAF7F2;     /* warm cream */
  --bg-soft:     #EEF5F7;     /* pale teal */
  --bg-card:     #FFFFFF;
  --paper:       #F5EFE5;     /* deeper cream for sections */

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --container: 1200px;
  --gutter: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  font-feature-settings: "ss01", "ss02";
  /* subtle grain texture */
  background-image:
    radial-gradient(circle at 25% 10%, rgba(7, 116, 137, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 75% 80%, rgba(255, 107, 71, 0.03) 0%, transparent 40%);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--coral); }
button { font-family: inherit; border: none; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section--cream { background: var(--paper); }
.section--navy { background: var(--navy); color: #BFD0DA; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo__mark {
  background: linear-gradient(180deg, #008194 0%, #00647E 100%);
  color: white;
  padding: 7px 11px 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  border-radius: 2px;
  line-height: 1;
}
.logo__suffix {
  color: var(--coral);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--coral); }
.nav__cta {
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav__cta:hover {
  background: var(--coral);
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--coral);
  color: white;
}
.btn--primary:hover {
  background: #E5573A;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 71, 0.3);
}
.btn--ink {
  background: var(--ink);
  color: white;
}
.btn--ink:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn__arrow {
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 24px 0 24px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title em {
  font-style: italic;
  color: var(--teal);
  font-feature-settings: "ss01";
}
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__trust-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__trust-items {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__trust-items span {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Hero showcase (animated demo) */
.showcase {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 60px -20px rgba(2, 47, 55, 0.18),
    0 18px 36px -18px rgba(2, 47, 55, 0.14);
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 116, 137, 0.03), transparent 50%);
  pointer-events: none;
}
.showcase__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.showcase__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #E2E8EC;
}
.showcase__chrome span:first-child { background: #FF6B47; }
.showcase__chrome span:nth-child(2) { background: #FFB547; }
.showcase__chrome span:nth-child(3) { background: #10B981; }
.showcase__chrome::after {
  content: "Clinitraq Console — live";
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.showcase__inner {
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  min-height: 420px;
}

/* Phone ring + transcript animation */
.demo-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: white;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(8px);
  animation: rowIn 0.6s var(--ease) forwards;
}
.demo-row:nth-child(1) { animation-delay: 0.4s; }
.demo-row:nth-child(2) { animation-delay: 1.4s; }
.demo-row:nth-child(3) { animation-delay: 2.4s; }
.demo-row:nth-child(4) { animation-delay: 3.4s; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}
.demo-row__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: white;
}
.demo-row__icon--teal { background: var(--teal); }
.demo-row__icon--coral { background: var(--coral); }
.demo-row__icon--navy { background: var(--navy); }
.demo-row__icon--green { background: #10B981; }
.demo-row__body { flex: 1; min-width: 0; }
.demo-row__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.demo-row__sub {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.demo-row__time {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Pulse animation on phone icon */
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 71, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 107, 71, 0); }
}

.demo-stat {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--navy);
  border-radius: 10px;
  color: white;
  opacity: 0;
  animation: rowIn 0.6s var(--ease) forwards;
  animation-delay: 4.2s;
}
.demo-stat__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 2px;
}
.demo-stat__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.demo-stat__delta {
  font-size: 12px;
  color: #10B981;
  font-weight: 500;
}

@media (max-width: 968px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 60px; }
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--navy);
  color: white;
  padding: 56px 0;
}
.stat-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-strip__item {
  border-left: 2px solid var(--coral);
  padding-left: 18px;
}
.stat-strip__num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 400;
  color: white;
  letter-spacing: -0.02em;
}
.stat-strip__lab {
  font-size: 13px;
  color: #BFD0DA;
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .stat-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat-strip__num { font-size: 36px; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head--left { margin: 0 0 48px; text-align: left; }
.section-head__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head__title em {
  font-style: italic;
  color: var(--teal);
}
.section-head__sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--body);
  line-height: 1.55;
}

/* ============================================================
   FOUR FUNCTIONS GRID
   ============================================================ */
.functions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.function-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.function-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(2, 47, 55, 0.15);
}
.function-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--coral);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.function-card__title {
  font-size: 24px;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}
.function-card__vendor {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.function-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
.function-card__icon {
  position: absolute;
  top: 32px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.function-card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

@media (max-width: 768px) {
  .functions { grid-template-columns: 1fr; }
}

/* ============================================================
   TWO AUDIENCES
   ============================================================ */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
}
.audience-card--featured {
  background: linear-gradient(180deg, var(--bg-soft), white);
  border-color: rgba(7, 116, 137, 0.2);
}
.audience-card__title {
  font-size: 32px;
  margin-bottom: 6px;
}
.audience-card__sub {
  font-style: italic;
  color: var(--coral);
  font-family: var(--font-display);
  margin-bottom: 28px;
}
.audience-card__list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.audience-card__list li:last-child { border-bottom: none; }
.audience-card__list strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  min-width: 145px;
  flex-shrink: 0;
}
.audience-card__list span {
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .audiences { grid-template-columns: 1fr; }
  .audience-card__list strong { min-width: 0; }
  .audience-card__list li { flex-direction: column; gap: 4px; }
}

/* ============================================================
   FUNNEL
   ============================================================ */
.funnel {
  max-width: 720px;
  margin: 48px auto 0;
}
.funnel-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 18px;
}
.funnel-row__bar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-radius: 8px;
  color: white;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.funnel-row__stage {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 14px;
}
.funnel-row__detail {
  font-size: 12.5px;
  opacity: 0.85;
}
.funnel-row__num {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.funnel-row__num small {
  font-family: var(--font-body);
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
  margin-left: 4px;
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--coral);
  line-height: 1;
  height: 40px;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: white;
  font-style: italic;
  margin: 24px 0 32px;
}
.quote__attr {
  font-size: 13px;
  color: var(--coral);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quote__name {
  margin-top: 4px;
  font-family: var(--font-display);
  color: white;
  font-size: 18px;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
  padding-top: 0;
}
.team-group {
  margin-bottom: 56px;
}
.team-group__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.team-grid--three { grid-template-columns: repeat(3, 1fr); }
.team-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  align-items: flex-start;
}
.team-card__photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.team-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 22px;
  font-weight: 500;
  background: linear-gradient(135deg, var(--bg-soft), #DEEAEC);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.2;
}
.team-card__role {
  font-size: 12.5px;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 8px;
}
.team-card__bio {
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .team-grid, .team-grid--three { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMS / SIGNUP
   ============================================================ */
.signup-section {
  background: var(--paper);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.signup-form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px -25px rgba(2, 47, 55, 0.18);
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(7, 116, 137, 0.1);
}
.field__textarea { min-height: 100px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-radio-group {
  display: flex;
  gap: 8px;
}
.field-radio {
  flex: 1;
  position: relative;
}
.field-radio input { position: absolute; opacity: 0; }
.field-radio label {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: var(--bg);
}
.field-radio input:checked + label {
  border-color: var(--teal);
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}
.form-foot {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.form-success {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.form-success p { color: var(--body); }

@media (max-width: 968px) {
  .signup-grid { grid-template-columns: 1fr; gap: 40px; }
  .signup-form { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  background: var(--navy);
  color: #BFD0DA;
  border-color: var(--navy);
  transform: translateY(-12px);
}
.price-card--featured h3,
.price-card--featured .price-card__amount {
  color: white;
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-card__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.price-card__tagline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
  min-height: 38px;
}
.price-card--featured .price-card__tagline { color: #BFD0DA; }
.price-card__amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.price-card__amount-suffix {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0;
}
.price-card--featured .price-card__amount-suffix { color: #BFD0DA; }
.price-card__setup {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}
.price-card__divider {
  height: 1px;
  background: var(--rule);
  margin: 24px 0;
}
.price-card--featured .price-card__divider { background: rgba(255,255,255,0.15); }
.price-card__features {
  flex: 1;
  margin-bottom: 28px;
}
.price-card__features li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
}
.price-card__check {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}
.price-card--featured .price-card__check { color: var(--coral); }
.price-card__cta {
  display: block;
  text-align: center;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.price-card__cta:hover { background: var(--ink); color: white; }
.price-card--featured .price-card__cta {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}
.price-card--featured .price-card__cta:hover {
  background: white;
  color: var(--ink);
  border-color: white;
}

@media (max-width: 968px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--coral);
  transition: transform 0.3s var(--ease);
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.final-cta::before {
  width: 400px; height: 400px;
  background: rgba(7, 116, 137, 0.4);
  top: -150px; right: -100px;
}
.final-cta::after {
  width: 300px; height: 300px;
  background: rgba(255, 107, 71, 0.18);
  bottom: -120px; left: -80px;
}
.final-cta__content { position: relative; z-index: 2; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  color: white;
}
.final-cta h2 em { color: var(--coral); font-style: italic; }
.final-cta p {
  font-size: 17px;
  color: #BFD0DA;
  max-width: 540px;
  margin: 0 auto 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A1F26;
  color: #93A8B0;
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand .logo {
  filter: brightness(1.1);
  margin-bottom: 14px;
}
.footer__tagline {
  font-size: 13px;
  line-height: 1.55;
  max-width: 280px;
  margin-bottom: 18px;
  color: #93A8B0;
}
.footer__compliance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__compliance span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93A8B0;
  border: 1px solid rgba(147, 168, 176, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 8px; }
.footer ul li a {
  color: #93A8B0;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer ul li a:hover { color: var(--coral); }
.footer__base {
  border-top: 1px solid rgba(147, 168, 176, 0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}
.footer__version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #93A8B0;
  padding: 3px 8px;
  border: 1px solid rgba(147, 168, 176, 0.25);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   LEGAL PAGES (privacy, terms)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0 96px;
}
.legal h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 12px;
  color: var(--ink);
}
.legal__updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 48px;
  font-family: var(--font-mono);
}
.legal h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--ink);
}
.legal h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.legal p, .legal li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 14px;
}
.legal ul { margin-bottom: 16px; padding-left: 0; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}
.legal a {
  color: var(--teal);
  border-bottom: 1px solid rgba(7, 116, 137, 0.3);
  padding-bottom: 1px;
}
.legal a:hover {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ============================================================
   STAGGERED ENTRANCE
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}




  :root {
    /* Surfaces */
    --bg:            #f7f8f5;
    --bg-grain:      #f2f3ef;
    --surface:       #ffffff;
    --surface-soft:  #fafbf8;
    --surface-sunk:  #eef0eb;

    /* Lines & text */
    --line:          #e3e6df;
    --line-strong:   #c8cdc1;
    --ink:           #14201c;
    --ink-soft:      #3b4a44;
    --ink-muted:     #6a7872;
    --ink-faint:     #9aa59f;

    /* Pillar palette — clinical, fresh, grounded */
    --voice:         #0e8a8e;   /* deep teal — voice & intake */
    --voice-soft:    #d8efef;
    --crm:           #4d6cb0;   /* clinical indigo — CRM */
    --crm-soft:      #dfe6f3;
    --book:          #2f9d7d;   /* mint — scheduling */
    --book-soft:     #d6eee5;
    --clinical:      #5a8c3a;   /* leaf green — EMR & payer */
    --clinical-soft: #e1ecd2;
    --coach:         #a8642c;   /* warm sienna — coaching */
    --coach-soft:    #f1e1d0;

    /* Accent */
    --accent:        #d94d2b;   /* coral CTA */
    --accent-ink:    #8a2d15;
    --gold:          #b78b3a;

    /* Shadows */
    --shadow-xs: 0 1px 0 rgba(20,32,28,0.04);
    --shadow-sm: 0 1px 2px rgba(20,32,28,0.05), 0 1px 1px rgba(20,32,28,0.04);
    --shadow-md: 0 4px 12px rgba(20,32,28,0.06), 0 2px 4px rgba(20,32,28,0.04);
    --shadow-lg: 0 12px 32px rgba(20,32,28,0.08), 0 4px 8px rgba(20,32,28,0.04);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }

  body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01', 'cv11';
    line-height: 1.45;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  /* Subtle paper grain */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(20,32,28,0.035) 1px, transparent 0);
    background-size: 28px 28px;
    z-index: 0;
  }

  .display { font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
  .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

  /* ---------------- Top bar (with inline compliance) ---------------- */
  .topbar {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: rgba(247,248,245,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .topbar-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: -0.005em;
    flex-shrink: 0;
  }
  .brand-mark {
    width: 20px; height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--voice), var(--book));
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  }
  .brand-mark::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1.5px solid #fff;
    border-radius: 2px;
    border-top: none;
    border-right: none;
  }
  .brand .dim { color: var(--ink-muted); font-weight: 400; }
  .brand .dot { color: var(--ink-faint); }

  .compliance-inline {
    flex: 1;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    text-transform: uppercase;
    font-weight: 500;
  }
  .compliance-inline .sep { color: var(--ink-faint); margin: 0 8px; font-weight: 400; }

  .top-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
  }
  .top-meta .badge {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-muted);
  }
  .top-meta .badge.live {
    background: var(--clinical-soft);
    border-color: rgba(90,140,58,0.3);
    color: #3d6225;
  }
  .top-meta .badge.live::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--clinical);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  /* ---------------- Hero strip (single line + step indicator) ---------------- */
  .hero-strip {
    position: relative;
    z-index: 2;
    max-width: 1480px;
    margin: 0 auto;
    padding: 18px 28px 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  .hero-strip h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 350;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
    flex: 1;
    min-width: 320px;
  }
  .hero-strip h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--voice);
  }
  .hero-strip h1 .dash { color: var(--ink-faint); margin: 0 4px; }

  .hero-step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
  }
  .hero-step .label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .hero-step .num {
    font-size: 18px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .hero-step .num .of { color: var(--ink-faint); margin: 0 2px; }
  .hero-step .station-name {
    color: var(--ink-soft);
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-step .ctrl-buttons {
    display: inline-flex;
    gap: 6px;
    margin-left: 4px;
  }
  .ctrl-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: -0.005em;
  }
  .ctrl-btn:hover { border-color: var(--line-strong); background: var(--surface-soft); }
  .ctrl-btn svg { width: 11px; height: 11px; }
  .ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  /* ---------------- Workflow strip (compact horizontal cards) ---------------- */
  .workflow-strip {
    max-width: 1480px;
    margin: 0 auto;
    padding: 4px 28px 12px;
    position: relative;
    z-index: 2;
  }
  .routes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .route-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px 11px 14px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
    text-align: left;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-xs);
    min-height: 78px;
  }
  .route-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--route-color, var(--voice));
    transform: scaleY(0.4);
    transform-origin: top;
    transition: transform 0.22s ease;
  }
  .route-card:hover {
    border-color: var(--route-color, var(--ink));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .route-card:hover::before { transform: scaleY(1); }
  .route-card.playing {
    border-color: var(--route-color);
    box-shadow: 0 0 0 1.5px var(--route-color), var(--shadow-md);
  }
  .route-card.playing::before { transform: scaleY(1); }

  .route-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--route-color, var(--voice));
    font-weight: 500;
  }
  .route-tag .route-letter {
    background: var(--route-color, var(--voice));
    color: #fff;
    width: 16px; height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 600;
  }
  .route-card h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
  }
  .route-card .tagline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0;
  }
  .route-card .tagline .arrow { color: var(--ink-faint); margin: 0 2px; }
  .route-card .meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--ink-faint);
    padding-top: 4px;
  }
  .route-card .meta .play-icon { color: var(--route-color, var(--voice)); }

  /* ---------------- Map ---------------- */
  .map-wrap {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 28px 16px;
    position: relative;
    z-index: 2;
  }
  .map-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
  }
  .map-card::before {
    /* corner medical cross watermark */
    content: "";
    position: absolute;
    top: 14px; right: 14px;
    width: 22px; height: 22px;
    background:
      linear-gradient(var(--line) 0 0) center/100% 5px no-repeat,
      linear-gradient(var(--line) 0 0) center/5px 100% no-repeat;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
  }
  .map-svg {
    display: block;
    width: 100%;
    height: auto;
    background:
      linear-gradient(var(--surface-soft) 1px, transparent 1px) 0 0/100% 60px,
      linear-gradient(90deg, var(--surface-soft) 1px, transparent 1px) 0 0/60px 100%,
      var(--surface);
  }

  /* Map elements */
  .phase-label-bg { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
  .phase-label-text { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; fill: var(--ink-muted); text-transform: uppercase; }
  .phase-label-num { font-family: 'Fraunces', serif; font-size: 14px; font-style: italic; fill: var(--ink); }

  .station-rect {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1.2;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .station-rect.active {
    stroke-width: 2;
    filter: drop-shadow(0 6px 14px rgba(20,32,28,0.12));
  }
  .station-rect.visited {
    stroke-width: 1.4;
  }

  .station-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    fill: var(--ink);
    letter-spacing: -0.005em;
    pointer-events: none;
  }
  .station-sub {
    font-family: 'Inter Tight', sans-serif;
    font-size: 9.5px;
    font-weight: 400;
    fill: var(--ink-muted);
    pointer-events: none;
  }
  .station-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    fill: var(--ink-faint);
    letter-spacing: 0.05em;
    pointer-events: none;
  }
  .station-indicator {
    transition: all 0.3s ease;
  }

  .conn-path {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
    opacity: 0.6;
  }
  .route-path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .route-path.visible { opacity: 1; }

  .pulse-dot {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .pulse-dot.active { opacity: 1; }

  /* Status panel inside map */
  .status-panel {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 14px;
    min-width: 280px;
    box-shadow: var(--shadow-sm);
    font-size: 11.5px;
    z-index: 3;
  }
  .status-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 3px;
  }
  .status-row:last-child { margin-bottom: 0; }
  .status-row .key {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    min-width: 58px;
  }
  .status-row .val {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
    font-size: 12px;
  }
  .status-row .val.muted { color: var(--ink-muted); font-weight: 400; }

  .complete-banner {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: var(--clinical-soft);
    border: 1px solid rgba(90,140,58,0.3);
    color: #3d6225;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.005em;
    display: none;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-sm);
    z-index: 3;
  }
  .complete-banner.show { display: inline-flex; animation: slideUp 0.4s ease; }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .complete-banner svg { width: 14px; height: 14px; }

  /* ---------------- Footer (compact, single row) ---------------- */
  footer {
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 28px 14px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: -0.005em;
  }
  footer .vendors {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  footer .vendor-label { color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10px; margin-right: 4px; }
  footer .vendor { color: var(--ink-soft); font-weight: 500; }
  footer .sep { color: var(--ink-faint); }
  footer strong { color: var(--ink); font-weight: 500; }

  /* Scroll wrapper around SVG (lets map stay readable on mobile) */
  .map-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    /* hide scrollbar visually but keep it usable */
    scrollbar-width: thin;
  }
  .map-scroll::-webkit-scrollbar { height: 6px; }
  .map-scroll::-webkit-scrollbar-track { background: transparent; }
  .map-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

  /* ============================================================
     RESPONSIVE — tablet and mobile
     ============================================================ */

  /* Tablet: 3 cards per row */
  @media (max-width: 1100px) {
    .routes-grid { grid-template-columns: repeat(3, 1fr); }
    .compliance-inline { font-size: 10px; }
    .compliance-inline .sep { margin: 0 6px; }
  }

  /* Small tablet / large phone */
  @media (max-width: 880px) {
    .topbar-inner { padding: 9px 16px; gap: 12px; }
    .compliance-inline { display: none; }
    .brand { font-size: 13px; }
    .brand .dim { display: none; }
    .brand .dot { display: none; }

    .hero-strip {
      padding: 14px 16px 8px;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .hero-strip h1 { font-size: 20px; min-width: 0; }
    .hero-step {
      width: 100%;
      flex-wrap: wrap;
      gap: 8px 12px;
    }
    .hero-step .station-name { max-width: none; flex: 1; min-width: 0; }
    .hero-step .ctrl-buttons { margin-left: auto; }

    .workflow-strip { padding: 4px 16px 12px; }
    .routes-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .route-card { padding: 10px 12px 11px; min-height: 0; }
    .route-card h3 { font-size: 13px; }
    .route-card .tagline { font-size: 10px; line-height: 1.35; }

    .map-wrap { padding: 0 16px 12px; }
    .map-svg { min-width: 900px; }

    /* Status panel + complete banner move below the scrollable map */
    .status-panel {
      position: static;
      width: auto;
      margin: 0 12px 12px;
      min-width: 0;
    }
    .complete-banner {
      position: static;
      margin: 0 12px 12px;
      justify-content: center;
    }

    /* Scroll affordance on the right edge of the map */
    .map-scroll::after {
      content: "";
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 28px;
      background: linear-gradient(to right, transparent, var(--surface));
      pointer-events: none;
    }

    footer {
      padding: 12px 16px;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
  }

  /* Phone */
  @media (max-width: 480px) {
    .routes-grid { grid-template-columns: 1fr; gap: 6px; }
    .route-card { padding: 9px 12px 10px; }
    .hero-strip h1 { font-size: 18px; }
    .hero-step .num { font-size: 15px; }
    .hero-step .station-name { font-size: 12px; }
    .ctrl-btn { padding: 6px 10px; font-size: 11.5px; }
  }
