/* =========================================================================
   Steady Diabetes Care — Diabetes & Endocrinology, Bengaluru
   Design: "The readout" — a calm clinical logbook. Navy ink on cool paper,
   sky-blue structure, a single green "in range" signal, warm sand for humanity.
   Type: Sora (display) · Public Sans (body) · Spline Sans Mono (data)
   ========================================================================= */

:root {
  /* ink + text */
  --ink: #10233A;
  --slate: #45586C;
  --muted: #6E7F90;

  /* surfaces */
  --paper: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #ECF2F8;
  --line: #DCE6F0;
  --line-strong: #C6D4E2;

  /* sky */
  --sky: #4FA3D1;
  --sky-deep: #2E7CB0;
  --sky-ink: #1E5C89;
  --sky-tint: #E8F2FA;

  /* signal green (only "in range" / positive) */
  --green: #2E9E7E;
  --green-deep: #1F7A60;
  --green-tint: #E3F3ED;

  /* warmth */
  --sand: #F4ECDE;
  --amber: #C98A22;

  /* dark band */
  --navy-0: #0C1D31;
  --navy-1: #12283F;
  --navy-2: #1D3F5F;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(16,35,58,.05), 0 2px 8px rgba(16,35,58,.05);
  --shadow-2: 0 2px 6px rgba(16,35,58,.06), 0 16px 40px -12px rgba(16,35,58,.18);
  --shadow-3: 0 30px 70px -24px rgba(16,35,58,.35);

  --ff-display: "Sora", "Public Sans", system-ui, sans-serif;
  --ff-body: "Public Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.02rem, 17px);
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-deep); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

::selection { background: var(--sky); color: #fff; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.center { text-align: center; }
.mono { font-family: var(--ff-mono); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: top .18s var(--ease);
}
.skip:focus { top: 12px; color: #fff; }

/* consistent, visible keyboard focus */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

/* the label device: a mono, letter-spaced instrument tag */
.tag {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-ink);
}
.tag::before {
  content: ""; width: 22px; height: 1.5px; background: var(--sky);
  display: inline-block; border-radius: 2px;
}
.tag--plain::before { display: none; }
.tag--light { color: #9FC6E4; }
.tag--light::before { background: var(--sky); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--slate); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem;
  line-height: 1; padding: 15px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn .btn__ico { width: 18px; height: 18px; }

.btn--primary { --bg: var(--sky-deep); --bd: var(--sky-deep); }
.btn--primary:hover { --bg: var(--sky-ink); }

.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--sky); --fg: var(--sky-ink); box-shadow: none; background: var(--sky-tint); }

.btn--wa { --bg: #1FA855; --bd: #1FA855; }
.btn--wa:hover { --bg: #178a45; }

.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--sm { padding: 11px 18px; font-size: .9rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16,35,58,.5);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; border-radius: 12px; box-shadow: var(--shadow-1); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.16rem;
  color: var(--ink); letter-spacing: -.02em;
}
.brand__name b { color: var(--sky-deep); font-weight: 700; }
.brand__tag {
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-weight: 500; font-size: .95rem; color: var(--slate);
  text-decoration: none; padding: 9px 14px; border-radius: 10px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-strong);
  background: var(--surface); border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__actions .btn--book-desktop { display: none; }
  .nav__panel {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 14px var(--gutter) 26px;
    display: grid; gap: 6px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s var(--ease), opacity .24s var(--ease);
  }
  .nav__panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__panel a {
    font-size: 1.05rem; font-weight: 600; color: var(--ink);
    padding: 14px 8px; border-radius: 10px; text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .nav__panel a:last-of-type { border-bottom: 0; }
  .nav__panel .btn { margin-top: 12px; }
}
@media (min-width: 901px) { .nav__panel { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(36px, 6vw, 68px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero::before {
  /* faint blueprint measurement grid, brand-tinted */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 78% 8%, #000 0%, transparent 62%);
  opacity: .5;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.15rem);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.02;
  margin: 20px 0 0;
}
.hero__title .u {
  position: relative; white-space: nowrap;
  color: var(--sky-deep);
}
.hero__title .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em;
  background: linear-gradient(90deg, var(--sky) 0%, var(--green) 100%);
  border-radius: 4px; opacity: .55;
}
.hero__sub { margin: 22px 0 30px; font-size: clamp(1.06rem, 1.7vw, 1.24rem); color: var(--slate); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__reassure {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--ff-mono); font-size: .78rem; color: var(--muted); letter-spacing: .01em;
}
.hero__reassure span { display: inline-flex; align-items: center; gap: 8px; }
.hero__reassure svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* --- Signature: the "Time in Range" readout panel --- */
.readout {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 22px 22px 20px;
  overflow: hidden;
}
.readout::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--green) 100%);
}
.readout__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.readout__head .eyebrow { color: var(--sky-ink); }
.readout__pill {
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-deep); background: var(--green-tint); padding: 5px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.readout__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.readout__chart { position: relative; width: 100%; margin: 8px 0 2px; }
.readout__chart svg { width: 100%; height: auto; display: block; }

.chart-band { fill: var(--green-tint); }
.chart-band-label { fill: var(--green-deep); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-family: var(--ff-mono); font-size: 11px; letter-spacing: .06em; }
.chart-area { fill: url(#tirArea); }
.chart-line { fill: none; stroke: var(--sky-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #fff; stroke: var(--sky-deep); stroke-width: 2.5; }
.chart-dot--in { stroke: var(--green); }

/* draw-on animation for the trend line */
.chart-line, .chart-area { --dur: 1.9s; }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur) var(--ease) .25s forwards; }
.chart-area { opacity: 0; animation: fadein 1.1s var(--ease) 1.1s forwards; }
.chart-dot { opacity: 0; animation: pop .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.readout__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong);
}
.stat__label { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--ff-display); font-weight: 700; font-size: 1.42rem; color: var(--ink); letter-spacing: -.02em; margin-top: 3px; line-height: 1; }
.stat__value small { font-size: .62em; font-weight: 600; color: var(--muted); font-family: var(--ff-mono); letter-spacing: 0; }
.stat__range { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-family: var(--ff-mono); font-size: .64rem; color: var(--green-deep); }
.stat__range svg { width: 12px; height: 12px; }
.readout__foot { margin-top: 14px; font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   MARKER STRIP (instrument divider)
   ========================================================================== */
.strip {
  background: var(--ink);
  color: #CDE0F0;
  overflow: hidden;
  border-block: 1px solid var(--navy-2);
}
.strip__row {
  display: flex; align-items: center; gap: 42px;
  padding-block: 16px;
  font-family: var(--ff-mono); font-size: .82rem; letter-spacing: .04em;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.strip__row span { display: inline-flex; align-items: center; gap: 12px; color: #AFC8DE; }
.strip__row span b { color: #fff; font-weight: 500; }
.strip__row span::after { content: "•"; color: var(--sky); margin-left: 30px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip__row { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; gap: 14px 30px; }
  .strip__row span::after { display: none; }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec-head { max-width: 62ch; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 12px; }
.sec-head p { margin: 14px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--slate); }

/* ==========================================================================
   APPROACH — value cards
   ========================================================================== */
.approach { background: var(--surface); border-block: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.pillar__ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sky-tint); color: var(--sky-deep); margin-bottom: 18px;
}
.pillar__ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.24rem; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: .98rem; }

/* ==========================================================================
   FEATURE BLOCKS (what we treat)
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--flip .feature__media { order: -1; }
.feature__media { position: relative; }
.feature__img {
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  aspect-ratio: 5 / 4; object-fit: cover; width: 100%; border: 1px solid var(--line);
}
.feature__badge {
  position: absolute; left: -14px; bottom: -14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  max-width: 74%;
}
.feature__badge .fb-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--green-tint); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.feature__badge .fb-ico svg { width: 20px; height: 20px; }
.feature__badge b { display: block; font-family: var(--ff-display); color: var(--ink); font-size: .96rem; }
.feature__badge span { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .05em; color: var(--muted); }

.feature__body h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.feature__body > p { max-width: 52ch; }
.checklist { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 2px; }
.checklist li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .ck {
  width: 24px; height: 24px; border-radius: 8px; background: var(--sky-tint); color: var(--sky-deep);
  display: grid; place-items: center; margin-top: 1px;
}
.checklist .ck svg { width: 14px; height: 14px; }
.checklist b { color: var(--ink); font-family: var(--ff-display); font-weight: 600; font-size: 1rem; }
.checklist p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   ATMOSPHERE BAND — a human breath between clinics and tracking
   ========================================================================== */
.atmos { position: relative; min-height: clamp(280px, 42vh, 440px); display: grid; align-items: end; overflow: hidden; }
.atmos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atmos::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,29,49,.12) 0%, rgba(12,29,49,.5) 52%, rgba(12,29,49,.92) 100%);
}
.atmos__inner { position: relative; z-index: 1; padding-block: clamp(30px, 5vw, 60px); }
.atmos .tag { color: #9FC6E4; }
.atmos h2 { color: #fff; font-size: clamp(1.55rem, 3.2vw, 2.5rem); max-width: 22ch; margin-top: 12px; }
.atmos p { color: #D7E6F2; max-width: 48ch; margin: 10px 0 0; font-size: clamp(1rem, 1.4vw, 1.14rem); }

/* ==========================================================================
   TRACKING / RANGES (education) — dark panel
   ========================================================================== */
.tracking { background: linear-gradient(165deg, var(--navy-1), var(--navy-0)); color: #D7E6F2; position: relative; overflow: hidden; }
.tracking::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 80% at 90% 0%, #000, transparent 60%);
  mask-image: radial-gradient(120% 80% at 90% 0%, #000, transparent 60%);
}
.tracking > .container { position: relative; z-index: 1; }
.tracking h2 { color: #fff; }
.tracking .sec-head p { color: #AFC8DE; }
.tracking__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }

.trackcards { display: grid; gap: 14px; }
.trackcard {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r); padding: 18px 20px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.trackcard:hover { background: rgba(255,255,255,.075); border-color: rgba(79,163,209,.5); transform: translateX(4px); }
.trackcard__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(79,163,209,.18); color: #8FD0F0; display: grid; place-items: center; }
.trackcard__ico svg { width: 22px; height: 22px; }
.trackcard h3 { color: #fff; font-size: 1.12rem; margin-bottom: 5px; }
.trackcard p { margin: 0; color: #A9C3D8; font-size: .93rem; }

/* the "target ranges" mini-table card */
.ranges {
  background: var(--surface); color: var(--slate);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.ranges__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ranges__head b { font-family: var(--ff-display); color: var(--ink); font-size: 1.06rem; }
.ranges__row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.ranges__row:last-child { border-bottom: 0; }
.ranges__row .rk { font-family: var(--ff-display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.ranges__row .rk small { display: block; font-family: var(--ff-mono); font-size: .66rem; color: var(--muted); font-weight: 400; letter-spacing: .04em; margin-top: 2px; }
.ranges__row .rv { font-family: var(--ff-mono); font-size: .92rem; color: var(--ink); text-align: right; }
.ranges__flag {
  width: 12px; height: 12px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.ranges__note { padding: 14px 22px; background: var(--surface-2); font-size: .78rem; color: var(--muted); }

/* ==========================================================================
   STEPS — how care runs (a real sequence → numbered)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 28px 22px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step__n {
  font-family: var(--ff-mono); font-size: .82rem; font-weight: 500; color: var(--sky-deep);
  letter-spacing: .1em; display: inline-block; margin-bottom: 14px;
}
.step__n::before { counter-increment: step; content: "0" counter(step) " / 04"; }
.step__bar { height: 3px; border-radius: 3px; background: var(--surface-2); margin-bottom: 18px; overflow: hidden; }
.step__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--green)); border-radius: 3px; }
.step h3 { font-size: 1.14rem; margin-bottom: 7px; }
.step p { margin: 0; font-size: .93rem; }

/* ==========================================================================
   TEAM — endocrinologist monogram cards (no fabricated real faces)
   ========================================================================== */
.team { background: var(--surface); border-block: 1px solid var(--line); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.doc__top {
  position: relative; padding: 30px 26px 26px; color: #fff;
  background: linear-gradient(155deg, var(--navy-2), var(--navy-0));
}
.doc__top::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
  mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.doc__mono {
  position: relative; z-index: 1;
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; color: var(--ink);
  background: linear-gradient(150deg, #fff, #D7E9F6);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
}
.doc__spec { position: relative; z-index: 1; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #8FD0F0; }
.doc__body { padding: 22px 26px 26px; }
.doc__name { font-size: 1.28rem; margin-bottom: 2px; }
.doc__role { font-family: var(--ff-mono); font-size: .78rem; color: var(--sky-ink); letter-spacing: .02em; }
.doc__body p { margin: 12px 0 0; font-size: .93rem; }
.doc__meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.doc__meta span { font-family: var(--ff-mono); font-size: .68rem; color: var(--slate); background: var(--surface-2); border-radius: 999px; padding: 5px 11px; }

/* ==========================================================================
   BOOK / FINAL CTA
   ========================================================================== */
.book { position: relative; }
.book__card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--navy-1), var(--navy-0));
  color: #D7E6F2; box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: 1.1fr .9fr;
}
.book__body { padding: clamp(34px, 5vw, 60px); position: relative; z-index: 1; }
.book__body h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
.book__body p { color: #AFC8DE; max-width: 46ch; }
.book__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.book__meta { margin-top: 30px; display: grid; gap: 14px; }
.book__meta a, .book__meta div { display: flex; align-items: center; gap: 13px; color: #D7E6F2; text-decoration: none; font-size: .96rem; }
.book__meta .bm-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #8FD0F0; flex: none; }
.book__meta .bm-ico svg { width: 19px; height: 19px; }
.book__meta a:hover { color: #fff; }
.book__meta b { color: #fff; font-family: var(--ff-display); font-weight: 600; }
.book__meta small { display: block; color: #9BB6CC; font-family: var(--ff-mono); font-size: .72rem; }
.book__media { position: relative; }
.book__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-0) 0%, transparent 42%); }

.emergency {
  margin-top: 20px; display: inline-flex; align-items: flex-start; gap: 10px;
  background: rgba(201,138,34,.14); border: 1px solid rgba(201,138,34,.4);
  color: #F0D6A5; border-radius: 12px; padding: 12px 16px; font-size: .84rem; max-width: 46ch;
}
.emergency svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 1px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #A9C3D8; padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-2); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name b { color: var(--sky); }
.footer__brand .brand__tag { color: #7f9bb2; }
.footer__brand p { margin: 18px 0 0; font-size: .92rem; color: #94AEC6; max-width: 34ch; }
.footer__col h4 { color: #fff; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: #A9C3D8; text-decoration: none; font-size: .94rem; margin-bottom: 11px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-size: .84rem; color: #7f9bb2;
}
.footer__credit a { color: #CDE0F0; text-decoration: none; font-weight: 600; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-2); display: grid; place-items: center; color: #CDE0F0; }
.footer__social a:hover { background: var(--sky-deep); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.page-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 36px); position: relative; }
.page-hero__inner { max-width: 62ch; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-top: 14px; }
.page-hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate); margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: clamp(24px, 3vw, 40px);
}
.form-card__head { margin-bottom: 24px; }
.form-card__head h2 { font-size: 1.5rem; }
.form-card__head p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-display); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--sky-deep); }
.field .hint { font-family: var(--ff-mono); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA9B8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); background: #fff;
  box-shadow: 0 0 0 4px var(--sky-tint);
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E7CB0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 2px; }

/* contact aside */
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 26px 24px; margin-bottom: 20px; }
.aside-card h3 { font-size: 1.16rem; }
.aside-card.dark { background: linear-gradient(160deg, var(--navy-1), var(--navy-0)); color: #CDE0F0; border: none; }
.aside-card.dark h3 { color: #fff; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--slate); }
.contact-line:first-of-type { border-top: 0; }
.aside-card.dark .contact-line { border-top-color: var(--navy-2); color: #CDE0F0; }
.contact-line .cl-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sky-tint); color: var(--sky-deep); display: grid; place-items: center; flex: none; }
.aside-card.dark .cl-ico { background: rgba(255,255,255,.09); color: #8FD0F0; }
.contact-line .cl-ico svg { width: 20px; height: 20px; }
.contact-line b { display: block; font-family: var(--ff-display); color: var(--ink); font-size: 1rem; }
.aside-card.dark .contact-line b { color: #fff; }
.contact-line small { font-family: var(--ff-mono); font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.aside-card.dark .contact-line small { color: #9BB6CC; }
.contact-line:hover b { color: var(--sky-ink); }
.aside-card.dark .contact-line:hover b { color: #8FD0F0; }

.hours { list-style: none; margin: 8px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.hours li:first-child { border-top: 0; }
.hours .h-day { color: var(--slate); }
.hours .h-time { font-family: var(--ff-mono); font-size: .84rem; color: var(--ink); }
.hours .h-closed { color: var(--muted); }

/* ==========================================================================
   THANK YOU PAGE
   ========================================================================== */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding-block: 60px; position: relative; }
.thanks::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 70%);
  mask-image: radial-gradient(80% 60% at 50% 30%, #000, transparent 70%);
  opacity: .5;
}
.thanks__inner { position: relative; z-index: 1; max-width: 60ch; }
.thanks__badge {
  width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 26px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sky), var(--green));
  box-shadow: 0 20px 40px -14px rgba(46,124,176,.6);
  color: #fff;
}
.thanks__badge svg { width: 44px; height: 44px; }
.thanks h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.thanks p { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--slate); margin: 16px auto 0; }
.thanks__panel {
  margin: 34px auto 0; max-width: 440px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: 24px 26px;
}
.thanks__panel h3 { font-size: 1.06rem; margin-bottom: 4px; }
.thanks__panel ol { margin: 14px 0 0; padding-left: 0; list-style: none; counter-reset: t; }
.thanks__panel li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; font-size: .94rem; }
.thanks__panel li::before { counter-increment: t; content: counter(t); font-family: var(--ff-mono); font-weight: 500; color: var(--sky-deep); background: var(--sky-tint); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; }
.thanks__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart-line { stroke-dashoffset: 0; animation: none; }
  .chart-area { opacity: 1; animation: none; }
  .chart-dot { opacity: 1; animation: none; }
  .btn, .pillar, .step, .doc, .trackcard, .feature__img { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .readout { max-width: 560px; }
  .tracking__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .book__card { grid-template-columns: 1fr; }
  .book__media { min-height: 220px; }
  .book__media::after { background: linear-gradient(0deg, var(--navy-0) 0%, transparent 55%); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature--flip .feature__media { order: 0; }
  .team__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
  .readout__stats { grid-template-columns: 1fr; gap: 4px; }
  .readout__stats { display: grid; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat__value { margin-top: 0; }
  .stat__range { margin-top: 0; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .feature__badge { position: static; margin-top: 16px; max-width: none; }
}
