:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-tint: #ecfdf5;
  --surface-teal: #ecfeff;
  --teal: #164e63;
  --teal-deep: #0f3a4a;
  --emerald: #059669;
  --emerald-hover: #047857;
  --ink: #1e293b;
  --slate: #334155;
  --muted: #475569;
  --border: #dce5e2;
  --border-teal: #bae6fd;
  --shadow-sm: 0 1px 3px rgba(22, 78, 99, 0.06);
  --shadow-md: 0 14px 32px -10px rgba(22, 78, 99, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-head: "Figtree", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, sans-serif;
  --header-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--bg);
  -webkit-tap-highlight-color: rgba(5, 150, 105, 0.18);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--teal);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 600;
}

p {
  margin-top: 0;
  color: var(--slate);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 600;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--slate);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  background-color: var(--surface-tint);
  color: var(--teal);
}

.nav-links a[aria-current="page"] {
  background-color: var(--surface-tint);
  color: var(--emerald-hover);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  touch-action: manipulation;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  color: #ffffff;
}

.btn-teal {
  background-color: var(--teal);
  color: #ffffff;
}

.btn-teal:hover {
  background-color: var(--teal-deep);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background-color: var(--surface-tint);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--teal);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

/* Split Empathy Hero */
.hero-split {
  padding-block: 48px 56px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid #a7f3d0;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 56ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.comfort-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.comfort-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}

.comfort-item strong {
  display: block;
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.comfort-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

/* Page Hero */
.page-hero {
  background: var(--teal);
  color: #ffffff;
  padding-block: 44px 48px;
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 12px;
}

.page-hero p {
  color: #e0f2fe;
  max-width: 62ch;
  margin-bottom: 0;
}

/* Sections & Cards */
.section {
  padding-block: 60px;
}

.section-white {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--emerald-hover);
  margin-bottom: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-tint {
  background: var(--surface-tint);
  border-color: #a7f3d0;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-tint);
  color: var(--emerald-hover);
  margin-bottom: 10px;
}

/* Interactive Journey Tabs */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--slate);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tab-btn[aria-selected="true"],
.tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.step-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: #ffffff;
  transition: border-color 0.16s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--emerald);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.branch-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.branch-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.branch-option input {
  margin-top: 4px;
  accent-color: var(--emerald);
}

.branch-option:has(input:checked) {
  border-color: var(--emerald);
  background: var(--surface-tint);
}

.field-error {
  color: #b91c1c;
  font-size: 0.84rem;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.status-banner {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  border: 1px solid var(--emerald);
  color: var(--teal-deep);
  font-size: 0.94rem;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.spec-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--teal-deep);
  color: #e2e8f0;
  padding-block: 48px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer h3 {
  color: #ffffff;
  font-size: 1.04rem;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  font-size: 0.93rem;
}

.site-footer a {
  color: #6ee7b7;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.mobile-sticky-bar {
  display: none;
}

@media (max-width: 980px) {
  .split-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .comfort-strip,
  .branch-selector {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Phase 3 Soft Clinical Empathy Architecture (Organic Arch & Calm Cards)
   ========================================================================== */
.clinic-branch-ribbon {
  background: #164e63;
  color: #ecfdf5;
  font-size: 0.84rem;
  padding: 0.5rem 0;
}

.clinic-branch-ribbon__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}

.clinic-branch-ribbon a {
  color: #a7f3d0;
  font-weight: 600;
}

.calm-hero {
  background: linear-gradient(180deg, #f7f9f8 0%, #eef6f4 100%);
  padding: 2.75rem 0 3.75rem;
}

.calm-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.calm-hero__arch {
  border-radius: 160px 160px 28px 28px;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 22px 48px -18px rgba(22, 78, 99, 0.25);
  max-height: 440px;
}

.calm-hero__arch img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.calm-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d5e3df;
}

.calm-trust-row strong {
  display: block;
  color: #164e63;
  font-size: 0.98rem;
}

.calm-trust-row span {
  font-size: 0.85rem;
  color: #475569;
}

.calm-care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.calm-care-card {
  background: #f7f9f8;
  border-radius: 24px;
  border: 1px solid #dce5e2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calm-care-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.calm-care-card__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.calm-care-card__body a {
  margin-top: auto;
  color: #059669;
  font-weight: 700;
}

.clinical-empathy .card {
  border-radius: 24px;
}

@media (max-width: 960px) {
  .calm-hero__grid,
  .calm-care-grid,
  .calm-trust-row {
    grid-template-columns: 1fr;
  }
  .calm-hero__arch {
    border-radius: 32px;
  }
}


/* ==========================================================================
   Phase 4 Live Brand Preview Conversion Hook & Kinetic Micro-Polish
   ========================================================================== */
.demo-preview-ribbon {
  background: #164E63;
  color: #F7F9F8;
  border-bottom: 2px solid #059669;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  position: relative;
  z-index: 120;
}

.demo-preview-ribbon a {
  color: #059669;
  font-weight: 700;
  text-decoration: underline;
}

.demo-hook-dock {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 160;
  font-family: inherit;
}

.demo-hook-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #164E63;
  color: #F7F9F8;
  border: 1.5px solid #059669;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-hook-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.demo-hook-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  animation: demoPulse 2s infinite;
}

@keyframes demoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.demo-hook-panel {
  position: absolute;
  right: 0;
  bottom: 3.35rem;
  width: min(320px, calc(100vw - 2rem));
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #164E63;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.demo-hook-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.demo-hook-close {
  background: transparent;
  border: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #475569;
  padding: 0.1rem 0.35rem;
}

.demo-hook-panel__desc {
  font-size: 0.83rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.demo-hook-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 0.55rem;
}

.demo-hook-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.demo-hook-apply {
  flex: 1;
  background: #164E63;
  color: #F7F9F8;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.demo-hook-reset {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
}

.demo-hook-cta {
  display: block;
  text-align: center;
  padding: 0.55rem 0.75rem;
  background: #059669;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .demo-hook-dock {
    bottom: 4.5rem;
    right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-hook-dot {
    animation: none;
  }
}
