/* ============================================================
   Balto — design system
   Palette: deep navy / medical blue / cyan / soft white
   Type: Fraunces (display) + Instrument Sans (text)
   ============================================================ */

:root {
  /* color */
  --navy-950: #051323;
  --navy-900: #071a2f;
  --navy-800: #0b2440;
  --navy-700: #123458;
  --blue-600: #1272b6;
  --blue-500: #1e9fd4;
  --cyan-400: #2bc3d8;
  --cyan-300: #3fd6e8;
  --ink: #14304b;
  --muted: #5b7288;
  --faint: #8ba2b5;
  --bg: #f5f9fb;
  --bg-soft: #eef4f8;
  --surface: #ffffff;
  --line: #e2ebf2;
  --line-strong: #d2dfe9;

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-text: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  /* geometry */
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --container: 1180px;

  /* elevation — layered, low opacity, no mud */
  --shadow-sm: 0 1px 2px rgba(7, 26, 47, 0.05), 0 2px 8px rgba(7, 26, 47, 0.05);
  --shadow-md: 0 2px 4px rgba(7, 26, 47, 0.04), 0 10px 28px rgba(7, 26, 47, 0.09);
  --shadow-lg: 0 4px 10px rgba(7, 26, 47, 0.06), 0 24px 60px rgba(7, 26, 47, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 560; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
}

p { margin: 0; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }

/* ---------- shared heading block ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}
.section-head--row .section-lede { max-width: 24rem; margin-top: 0; }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.kicker--light { color: var(--cyan-300); }

.section-lede {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.87rem; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 55%, #0e5d97 100%);
  box-shadow: 0 1px 2px rgba(7, 26, 47, 0.2), 0 8px 22px rgba(18, 114, 182, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(7, 26, 47, 0.18), 0 14px 32px rgba(18, 114, 182, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

.btn--light {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 19, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(5, 19, 35, 0.45); }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- pulse dot ---------- */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 0 rgba(43, 195, 216, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 195, 216, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(43, 195, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 195, 216, 0); }
}

/* ---------- scroll reveal (hidden state only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 249, 251, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(210, 223, 233, 0.7);
  box-shadow: 0 8px 30px rgba(7, 26, 47, 0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 76px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav__logo { border-radius: 10px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.nav__wordmark--light { color: #fff; }
.nav__links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--navy-900); }
.nav__actions { display: flex; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px 4px;
  margin-left: auto;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem 1.5rem;
  background: rgba(245, 249, 251, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:not(.btn) {
  padding: 0.7rem 0.2rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mobile .btn { margin-top: 0.9rem; }
.nav.menu-open .nav__mobile { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 6rem + 6vw, 11.5rem);
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(18, 52, 88, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 52, 88, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 15%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 15%, black 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--a {
  width: 640px; height: 640px;
  top: -240px; right: -140px;
  background: radial-gradient(circle, rgba(43, 195, 216, 0.16), transparent 65%);
}
.hero__glow--b {
  width: 520px; height: 520px;
  bottom: -260px; left: -160px;
  background: radial-gradient(circle, rgba(18, 114, 182, 0.1), transparent 65%);
}
.hero__fade {
  position: absolute;
  inset-inline: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-600);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 1.8rem + 4.6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--navy-900);
  margin-top: 1.6rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 420;
  background: linear-gradient(100deg, var(--blue-600) 10%, var(--cyan-400) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 33rem;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.3rem;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin: 3.2rem 0 0;
}
.hero__stats > div { margin: 0; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.hero__stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--faint);
}
.hero__stat-sep { width: 1px; height: 2.4rem; background: var(--line-strong); }

/* --- hero visual: layered parallax scene --- */
.hero__visual { perspective: 1200px; }
.hv__scene {
  position: relative;
  height: clamp(380px, 46vw, 520px);
  transform-style: preserve-3d;
}
.hv__scene > * {
  position: absolute;
  will-change: transform;
}
.hv__ring {
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  border: 1.5px dashed rgba(18, 114, 182, 0.22);
  animation: spin 60s linear infinite;
}
.hv__ring--inner {
  width: 300px; height: 300px;
  margin: -150px 0 0 -150px;
  border: 1px solid rgba(43, 195, 216, 0.3);
  animation: spin 45s linear infinite reverse;
}
@keyframes spin { to { rotate: 360deg; } }

.hv__card--main {
  top: 50%; left: 50%;
  width: min(340px, 78vw);
  margin-left: max(-170px, -39vw);
  margin-top: -150px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.4rem 1.5rem;
  animation: floaty 7s ease-in-out infinite;
}
.hv__card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.hv__card-head img { border-radius: 9px; }
.hv__card-head strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.hv__card-head span { font-size: 0.8rem; color: var(--faint); }
.hv__check {
  margin-left: auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 4px 12px rgba(43, 195, 216, 0.45);
}
.hv__card-rows { display: grid; gap: 0.65rem; padding-block: 1.05rem; }
.hv__card-rows > div { display: flex; justify-content: space-between; font-size: 0.88rem; }
.hv__card-rows span { color: var(--faint); }
.hv__card-rows b { font-weight: 600; color: var(--navy-800); }
.hv__price { color: var(--blue-600) !important; }
.hv__card-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.hv__card-bar i {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  animation: barfill 3.4s var(--ease) infinite alternate;
}
@keyframes barfill { from { width: 46%; } to { width: 84%; } }

.hv__chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
}
.hv__chip svg { width: 22px; height: 22px; }
.hv__chip--steth {
  top: 6%; right: 4%;
  width: 74px; height: 74px;
  justify-content: center;
  border-radius: 20px;
  color: var(--blue-600);
  animation: floaty 6s ease-in-out infinite 0.8s;
}
.hv__chip--steth svg { width: 36px; height: 36px; }
.hv__chip--pulse {
  bottom: 10%; right: 0%;
  color: var(--cyan-400);
  animation: floaty 6.5s ease-in-out infinite 1.6s;
}
.hv__chip--pulse span, .hv__chip--badge span { color: var(--navy-800); }
.hv__chip--pulse svg { width: 44px; height: 18px; }
.hv__chip--badge {
  top: 16%; left: -2%;
  color: var(--blue-500);
  animation: floaty 7.5s ease-in-out infinite 2.4s;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ============================================================
   PROBLEM — dark navy band
   ============================================================ */
.problem {
  background:
    radial-gradient(ellipse 60% 90% at 85% -10%, rgba(43, 195, 216, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 110%, rgba(18, 114, 182, 0.16), transparent 60%),
    linear-gradient(175deg, var(--navy-900), var(--navy-950));
  color: #dce9f2;
}
.problem h2 { color: #fff; }
.problem .section-lede { color: #9db4c6; }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.problem__card {
  position: relative;
  padding: 1.8rem 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.problem__card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(63, 214, 232, 0.35);
}
.problem__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan-300);
  letter-spacing: 0.08em;
}
.problem__card h3 {
  margin-top: 2.6rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
}
.problem__card p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #9db4c6;
}

/* ============================================================
   SOLUTION
   ============================================================ */
.solution { background: var(--bg); }
.solution__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}
.solution__list {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.9rem;
}
.solution__list li { display: flex; gap: 1.15rem; }
.solution__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.solution__icon svg { width: 23px; height: 23px; }
.solution__list h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy-900); }
.solution__list p { margin-top: 0.3rem; font-size: 0.94rem; color: var(--muted); }

.solution__visual { position: relative; }
.solution__panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.7rem;
  transform: rotate(1.4deg);
  transition: transform 0.6s var(--ease);
}
.solution__visual:hover .solution__panel { transform: rotate(0deg) translateY(-4px); }
.solution__panel-shadow {
  position: absolute;
  inset: 12% -6% -6% 8%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(43, 195, 216, 0.18), rgba(18, 114, 182, 0.16));
  transform: rotate(-2deg);
}
.sp__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.sp__row span { color: var(--faint); }
.sp__row b { font-weight: 600; color: var(--navy-800); text-align: right; }
.sp__row--head {
  justify-content: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--navy-900);
  padding-top: 0;
}
.sp__row--head img { border-radius: 8px; }
.sp__row--head em { margin-left: auto; font-style: normal; font-size: 0.8rem; color: var(--faint); }
.sp__row--total b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blue-600);
}
.sp__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--bg-soft); }
.how__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.how__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.how__step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 159, 212, 0.35);
}
.how__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.9rem;
  right: -1.35rem;
  width: 1.6rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.how__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-600);
  background: linear-gradient(135deg, rgba(43, 195, 216, 0.12), rgba(18, 114, 182, 0.1));
  border: 1px solid rgba(18, 114, 182, 0.18);
}
.how__step h3 { margin-top: 1.5rem; font-size: 1.06rem; font-weight: 600; color: var(--navy-900); }
.how__step p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   HOSPITALS
   ============================================================ */
.hospitals { background: var(--bg); }
.hospitals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.hcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.hcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 159, 212, 0.4);
}
.hcard__top { display: flex; align-items: center; gap: 1rem; }
.hcard__logo {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 6px 16px rgba(7, 26, 47, 0.16);
}
.hcard__logo.has-img { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hcard__logo.has-img img,
.bk-hcard__logo.has-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: inherit;
}
.hcard__name { font-size: 1.09rem; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.hcard__city {
  display: flex; align-items: center; gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.84rem; color: var(--faint);
}
.hcard__city svg { width: 13px; height: 13px; flex: none; }
.hcard__type {
  align-self: flex-start;
  margin-top: 1.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}
.hcard__type--general { color: var(--blue-600); background: rgba(18, 114, 182, 0.09); }
.hcard__type--peds { color: #0d8a9e; background: rgba(43, 195, 216, 0.13); }
.hcard__type--pedsobgyn { color: #7c5cad; background: rgba(140, 108, 189, 0.12); }
.hcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 1.05rem;
}
.hcard__spec {
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
}
.hcard__spec--more { color: var(--blue-600); background: rgba(18, 114, 182, 0.07); }
.hcard__cta {
  margin-top: auto;
  padding-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-600);
  background: none;
  border: 0;
  cursor: pointer;
  transition: gap 0.3s var(--ease);
}
.hcard__cta:hover { gap: 0.7rem; }

/* ============================================================
   BOOKING — dark band, glass app
   ============================================================ */
.booking {
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(43, 195, 216, 0.1), transparent 60%),
    radial-gradient(ellipse 55% 70% at 0% 100%, rgba(18, 114, 182, 0.14), transparent 60%),
    linear-gradient(170deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: #dce9f2;
}
.booking .section-head { margin-inline: auto; text-align: center; }
.booking h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.booking .section-lede { color: #9db4c6; margin-inline: auto; }

.booking__app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.4rem;
  align-items: start;
}

/* steps column */
.bk-steps { display: grid; gap: 1rem; }
.bk-step {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    opacity 0.4s var(--ease);
}
.bk-step.is-locked { opacity: 0.45; pointer-events: none; }
.bk-step.is-active { border-color: rgba(63, 214, 232, 0.4); background: rgba(255, 255, 255, 0.06); }
.bk-step.is-done { border-color: rgba(63, 214, 232, 0.22); }

.bk-step__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.bk-step__num {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9db4c6;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: all 0.35s var(--ease);
}
.bk-step.is-active .bk-step__num {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(43, 195, 216, 0.4);
}
.bk-step.is-done .bk-step__num {
  color: var(--cyan-300);
  border-color: rgba(63, 214, 232, 0.55);
  background: rgba(63, 214, 232, 0.1);
}
.bk-step__title { font-weight: 600; font-size: 1.02rem; color: #fff; }
.bk-step__meta {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cyan-300);
  text-align: right;
}
.bk-step__body {
  padding: 0.2rem 1.4rem 1.5rem;
  display: none;
}
.bk-step.is-active .bk-step__body { display: block; animation: stepIn 0.5s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* step 1: hospital mini-cards */
.bk-hospitals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.bk-hcard {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: all 0.3s var(--ease);
}
.bk-hcard:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.bk-hcard.is-selected {
  background: rgba(63, 214, 232, 0.12);
  border-color: var(--cyan-300);
  box-shadow: 0 0 0 1px var(--cyan-300), 0 8px 24px rgba(43, 195, 216, 0.18);
}
.bk-hcard__logo {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: #fff;
}
.bk-hcard__logo.has-img { border: 1px solid rgba(255, 255, 255, 0.25); }
.bk-hcard b { display: block; font-size: 0.92rem; font-weight: 600; color: #fff; line-height: 1.25; }
.bk-hcard span { font-size: 0.78rem; color: #9db4c6; }

/* step 2: specialty chips */
.bk-specs { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.bk-spec {
  font: inherit;
  font-size: 0.87rem;
  font-weight: 500;
  color: #c6d8e5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.bk-spec:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.bk-spec.is-selected {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(43, 195, 216, 0.35);
}

/* step 3: calendar */
.bk-cal { max-width: 380px; }
.bk-cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.bk-cal__month { font-weight: 600; font-size: 0.98rem; color: #fff; }
.bk-cal__nav {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c6d8e5;
  font: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.bk-cal__nav:hover:not([disabled]) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bk-cal__nav[disabled] { opacity: 0.3; cursor: default; }
.bk-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bk-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7e97ab;
  padding-bottom: 0.4rem;
}
.bk-cal__dow--wknd { color: rgba(126, 151, 171, 0.55); }
.bk-cal__day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: #dce9f2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.bk-cal__day:hover:not([disabled]) { background: rgba(255, 255, 255, 0.13); }
.bk-cal__day--wknd { color: #8ba2b5; background: rgba(255, 255, 255, 0.02); font-weight: 400; }
.bk-cal__day--today { border-color: rgba(63, 214, 232, 0.5); }
.bk-cal__day[disabled] { color: rgba(139, 162, 181, 0.35); background: none; cursor: default; }
.bk-cal__day--empty { visibility: hidden; }
.bk-cal__day.is-selected {
  color: var(--navy-950);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  box-shadow: 0 4px 12px rgba(43, 195, 216, 0.35);
}
.bk-cal__hint {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #7e97ab;
}
.bk-cal__hint b { color: var(--cyan-300); font-weight: 600; }

/* step 4: details form */
.bk-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.bk-field { display: grid; gap: 0.35rem; }
.bk-field--full { grid-column: 1 / -1; }
.bk-field label { font-size: 0.8rem; font-weight: 600; color: #9db4c6; }
.bk-field input, .bk-field select {
  font: inherit;
  font-size: 0.93rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
  outline: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  width: 100%;
}
.bk-field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239db4c6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.bk-field select option { color: var(--ink); background: #fff; }
.bk-field input::placeholder { color: #7e97ab; }
.bk-field input:focus, .bk-field select:focus {
  border-color: var(--cyan-300);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(63, 214, 232, 0.18);
}
.bk-field input.is-invalid { border-color: #e2726e; box-shadow: 0 0 0 3px rgba(226, 114, 110, 0.15); }

/* summary column */
.bk-summary {
  position: sticky;
  top: 96px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.55rem;
  color: var(--ink);
}
.bk-summary__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.bk-summary__rows { display: grid; margin-top: 0.6rem; }
.bk-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.bk-summary__row span { color: var(--faint); }
.bk-summary__row b { font-weight: 600; color: var(--navy-800); text-align: right; }
.bk-summary__row b.is-empty { color: var(--faint); font-weight: 400; font-style: italic; }
.bk-summary__rate {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.bk-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.4rem;
}
.bk-summary__total span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.bk-summary__total b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  transition: color 0.3s var(--ease);
}
.bk-summary__total b.has-value { color: var(--blue-600); }
.bk-summary .btn { width: 100%; margin-top: 1.2rem; }
.bk-summary__note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--faint);
}

/* confirmation state */
.bk-confirm {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 5vw, 5rem) 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(63, 214, 232, 0.25);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: stepIn 0.6s var(--ease);
}
.bk-confirm__mark {
  width: 84px; height: 84px;
  margin: 0 auto 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-300), var(--blue-500));
  box-shadow: 0 16px 44px rgba(43, 195, 216, 0.4);
  animation: markPop 0.7s var(--ease) 0.1s backwards;
}
@keyframes markPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.bk-confirm__mark svg { width: 38px; height: 38px; }
.bk-confirm__mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: markDraw 0.5s var(--ease) 0.5s forwards;
}
@keyframes markDraw { to { stroke-dashoffset: 0; } }
.bk-confirm h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 500;
  color: #fff;
}
.bk-confirm > p {
  margin: 0.9rem auto 0;
  max-width: 30rem;
  color: #9db4c6;
}
.bk-confirm__recap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.bk-confirm__recap span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #dce9f2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}
.bk-confirm .btn { margin-top: 2.2rem; }

/* ============================================================
   WHY BALTO
   ============================================================ */
.why { background: var(--bg); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.why__card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.why__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 159, 212, 0.4);
}
.why__card--wide { grid-column: span 2; }
.why__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  color: var(--blue-600);
  background: linear-gradient(135deg, rgba(43, 195, 216, 0.12), rgba(18, 114, 182, 0.09));
  border: 1px solid rgba(18, 114, 182, 0.16);
}
.why__icon svg { width: 24px; height: 24px; }
.why__card h3 { margin-top: 1.4rem; font-size: 1.07rem; font-weight: 600; color: var(--navy-900); }
.why__card p { margin-top: 0.55rem; font-size: 0.93rem; color: var(--muted); }
.why__grid > :nth-child(4) { grid-column: 2 / span 2; }
.why__grid > :nth-child(5) { grid-column: span 2; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { padding-top: 0; }
.cta__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: calc(var(--radius-lg) + 8px);
  padding: clamp(3.5rem, 3rem + 4vw, 6rem) 2rem;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse 40% 55% at 25% 20%, rgba(43, 195, 216, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 55% at 80% 85%, rgba(18, 114, 182, 0.25), transparent 60%);
  pointer-events: none;
}
.cta__panel h2 { position: relative; color: #fff; }
.cta__panel p {
  position: relative;
  margin: 1.1rem auto 0;
  max-width: 30rem;
  color: #9db4c6;
}
.cta__panel .btn { position: relative; margin-top: 2.3rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-950);
  color: #9db4c6;
  padding-top: clamp(3.5rem, 3rem + 2vw, 5rem);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand { max-width: 22rem; }
.footer__tagline { margin-top: 1.1rem; font-size: 0.95rem; line-height: 1.6; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer__social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: #9db4c6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease);
}
.footer__social a:hover { color: #fff; background: rgba(63, 214, 232, 0.15); border-color: rgba(63, 214, 232, 0.4); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__links { display: flex; gap: clamp(2.5rem, 5vw, 5.5rem); }
.footer__links h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer__links a {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}
.footer__links a:hover { color: var(--cyan-300); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.6rem;
  font-size: 0.82rem;
  color: #64809a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .problem__grid, .how__steps { grid-template-columns: repeat(2, 1fr); }
  .how__step:not(:last-child)::after { display: none; }
  .hospitals__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__card, .why__card--wide,
  .why__grid > :nth-child(4), .why__grid > :nth-child(5) { grid-column: span 1; }
  .why__card--wide { grid-column: span 2; }
  .booking__app { grid-template-columns: 1fr; }
  .bk-summary { position: static; }
}

@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-scrolled .nav__mobile, .nav.menu-open { background: rgba(245, 249, 251, 0.96); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-top: -1rem; }
  .hv__scene { height: clamp(320px, 78vw, 420px); }
  .hv__ring { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .hv__ring--inner { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
  .hv__card--main { margin-top: -140px; }
  .hv__chip--badge { top: auto; bottom: 2%; left: 2%; }
  .solution__inner { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 2.2rem); }
  .problem__grid, .how__steps, .hospitals__grid, .why__grid { grid-template-columns: 1fr; }
  .why__card--wide { grid-column: span 1; }
  .hero__stats { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .hero__stat-sep { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .bk-hospitals { grid-template-columns: 1fr; }
  .bk-form { grid-template-columns: 1fr; }
  .bk-step__head { padding: 1rem 1.1rem; }
  .bk-step__body { padding: 0.1rem 1.1rem 1.25rem; }
  .bk-step__meta { display: none; }
  .cta__panel { border-radius: var(--radius-lg); }
}
