/* get-the-app: a bold, download-first landing page.
   Sticky footer + body flex column come from style.css; the shared footer's
   margin-top:auto pushes it to the bottom on short pages - no override needed. */

/* ════════════════════════════════════════════════
   HERO - full-bleed red gradient, device floating right
   ════════════════════════════════════════════════ */
.app-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
/* Layered gradient + soft radial highlights for depth. */
.app-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 55%, #b4271f 100%);
}
/* Subtle dotted texture overlay. */
.app-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.app-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 96px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.app-hero-copy {
  flex: 1 1 540px;
  min-width: 0;
}
.app-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  margin-bottom: 22px;
}
.app-hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6dffa6;
  box-shadow: 0 0 0 0 rgba(109, 255, 166, 0.7);
  animation: app-pulse 2s infinite;
}
@keyframes app-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(109, 255, 166, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(109, 255, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 255, 166, 0); }
}
.app-hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.app-hero h1 em {
  font-style: normal;
  /* warm highlight that reads on the red bg */
  color: #ffe08a;
}
.app-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 460px;
  margin-bottom: 30px;
}
.app-hero-reassure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 18px;
}
.app-hero-reassure svg {
  width: 16px;
  height: 16px;
  stroke: #6dffa6;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.app-hero-reassure strong { color: #fff; font-weight: 600; }

/* Floating device */
.app-hero-device {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
}
.app-hero-glow {
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}
.app-hero-phone {
  position: relative;
  z-index: 1;
  transform: rotate(-4deg);
  animation: app-float 6s ease-in-out infinite;
}
@keyframes app-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-hero-phone { animation: none; }
  .app-hero-pill-dot { animation: none; }
}

/* ── Store badges (shared markup, used in hero + CTA) ── */
.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 13px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}
/* On the red hero, dark badges pop. On the inverted CTA band we keep them dark
   too - they read as primary buttons against either background. */
.store-badge-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-badge-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.store-badge-sub {
  font-size: 10px;
  opacity: 0.7;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.store-badge-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* The hero phone frame (real screenshot in a white bezel) */
.phone-frame-hero {
  width: 250px;
  background: #fff;
  border-radius: 32px;
  padding: 10px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.22),
    0 40px 80px rgba(0, 0, 0, 0.18);
}
.phone-frame-hero-inner {
  border-radius: 24px;
  overflow: hidden;
  background: #f5f5f5;
}
.phone-frame-hero-inner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* ════════════════════════════════════════════════
   LIVE STATS BAND
   ════════════════════════════════════════════════ */
.app-stats {
  background: var(--ink);
  color: #fff;
}
.app-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.app-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.app-stat-num {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1;
}
.app-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════
   SCREENSHOT SHOWCASE
   Phones fan out one-by-one as the user scrolls. The section is tall (gives
   scroll distance); .app-showcase-sticky pins to the viewport while the JS
   driver (inline) reveals each phone in turn, landing on a 5-phone spread.
   Each phone's fanned-out target lives in CSS custom props (--x/--y/--rot/--s),
   so JS only toggles .is-revealed - no per-frame style writes.
   ════════════════════════════════════════════════ */
.app-showcase {
  position: relative;
  height: 260vh;            /* scroll distance for the reveal */
  background: #fff;
}
.app-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Anchor the heading+fan group near the top with a fixed gap below the stats
     band, rather than vertically centring it - centring a tall group (heading +
     fan + caption staircase) in 100vh left almost no air, so the heading hugged
     the stats band. flex-start + padding gives a predictable, even gap. */
  justify-content: flex-start;
  padding-top: 64px;
  gap: 10px;
  overflow: hidden;
}
.app-showcase-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}
.app-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.app-showcase-head h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
}

/* The fan is a positioning context; phones are absolutely centred and offset
   via transform so they overlap cleanly regardless of order. */
.phone-fan {
  position: relative;
  width: 100%;
  max-width: 1100px;
  /* Hug the phones + their caption pills. Centre phone ≈ 571px tall, caption
     pill adds ≈ 60px (14px gap + ~46px pill). Side phones drop --y but scale
     down, so the centre column (phone + caption) is the tallest. */
  height: 640px;
  margin-top: 4px;
}
.fan-phone {
  position: absolute;
  left: 50%;
  top: 0;            /* anchor from the top so phones sit right under the heading */
  margin: 0;
  /* Start: stacked dead-centre, small, faded, behind the centre phone. */
  --x: 0px;
  --y: 40px;
  --rot: 0deg;
  --s: 0.72;
  opacity: 0;
  transform: translateX(-50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--rot)) scale(var(--s));
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.55s ease;
  will-change: transform, opacity;
}
.fan-phone.is-revealed {
  opacity: 1;
}

/* Caption pills - live in the open space BELOW the phone fan (the area that
   used to read as empty white). They ACCUMULATE: as each phone reveals
   (centre-out), JS adds .is-active to its caption and the pill stays. Each
   pill rests at a fixed spot - horizontally aligned to its phone (--cx) and
   stepped a little higher than the previous reveal (--cy) - so they build up
   into a staircase matching the fan. */
.fan-caps {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 260px;          /* room for the stacked staircase of pills */
  margin: 28px auto 0;
}
.fan-cap {
  position: absolute;
  left: 50%;
  bottom: 48px;           /* lift the staircase off the next section */
  --cx: 0px;
  --cy: 0px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  opacity: 0;
  /* start slightly low + small; rest position adds --cx / --cy */
  transform: translateX(-50%) translateX(var(--cx)) translateY(calc(var(--cy) + 14px)) scale(0.94);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.fan-cap svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fan-cap.is-active {
  opacity: 1;
  transform: translateX(-50%) translateX(var(--cx)) translateY(var(--cy)) scale(1);
}
/* Resting spots - --cx aligns to the phone, --cy steps each later reveal up.
   Order: fees(centre,1) find(left,2) book(right,3) search(far-left,4) clinic(far-right,5). */
.fan-cap[data-cap="fees"]   { --cx: 0px;    --cy: 0px;    z-index: 5; }
.fan-cap[data-cap="find"]   { --cx: -150px; --cy: -58px;  z-index: 4; }
.fan-cap[data-cap="book"]   { --cx: 150px;  --cy: -58px;  z-index: 4; }
.fan-cap[data-cap="search"] { --cx: -300px; --cy: -116px; z-index: 3; }
.fan-cap[data-cap="clinic"] { --cx: 300px;  --cy: -116px; z-index: 3; }
/* Fanned-out resting positions (centre-out). The transform reads --x/--y/--rot/--s,
   so revealing == swapping these values in. */
.fan-phone--c  { z-index: 5; --x: 0px;    --y: 0px;  --rot: 0deg;   --s: 1;    }
.fan-phone--i1 { z-index: 4; }
.fan-phone--i2 { z-index: 4; }
.fan-phone--o1 { z-index: 3; }
.fan-phone--o2 { z-index: 3; }
.fan-phone--i1.is-revealed { --x: -150px; --y: 34px; --rot: -8deg;  --s: 0.9;  }
.fan-phone--i2.is-revealed { --x: 150px;  --y: 34px; --rot: 8deg;   --s: 0.9;  }
.fan-phone--o1.is-revealed { --x: 280px;  --y: 84px; --rot: 15deg;  --s: 0.8;  }
.fan-phone--o2.is-revealed { --x: -280px; --y: 84px; --rot: -15deg; --s: 0.8;  }
.fan-phone--c.is-revealed,
.fan-phone--i1.is-revealed,
.fan-phone--i2.is-revealed,
.fan-phone--o1.is-revealed,
.fan-phone--o2.is-revealed { opacity: 1; }

/* The white bezel around each screenshot */
.phone-shot {
  width: 268px;
  background: #fff;
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.12);
}
.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 800;   /* true screenshot ratio - no crop */
  object-fit: cover;
  object-position: top center;
  border-radius: 23px;
  background: #f0f0f0;
}

/* Reduced motion / no-JS: lay the five phones out statically, no scroll pin.
   .fan-static is set on the section by the inline script when it bails out. */
.app-showcase.fan-static {
  height: auto;
  padding: 56px 0 40px;
}
.app-showcase.fan-static .app-showcase-sticky {
  position: static;
  height: auto;
  display: block;
}
.app-showcase.fan-static .app-showcase-head { margin-bottom: 8px; }
.app-showcase.fan-static .fan-phone {
  opacity: 1;
  transition: none;
}
/* Static fallback: the captions can't cycle without scroll, so show just the
   centre phone's caption (the JS also adds .is-active to it on bail-out). */
.app-showcase.fan-static .fan-cap { transition: none; }

/* ════════════════════════════════════════════════
   BENEFITS
   ════════════════════════════════════════════════ */
.why-section {
  border-top: 1px solid var(--border);
  background: #fafafa;
  padding: 72px 48px;
}
.why-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.why-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.why-h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 44px;
  letter-spacing: -0.4px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}
.why-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════
   FINAL CTA BAND
   ════════════════════════════════════════════════ */
.app-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, #b4271f 100%);
  color: #fff;
  text-align: center;
}
.app-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 76px 48px 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-cta h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.app-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}
.app-cta .app-store-badges {
  justify-content: center;
}
.app-cta-cities {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.app-cta-cities strong {
  color: #fff;
  font-weight: 600;
}

/* Inline CTA - sits between the showcase and the benefits. Light/quiet on
   purpose: it grabs the user at peak interest without stealing thunder from
   the bold red closing band. */
.app-midcta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px 72px;
  text-align: center;
  background: #fff;
}
.app-midcta-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.app-midcta .app-store-badges {
  justify-content: center;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
/* Tablet portrait (721–900px): KEEP the two-column hero (copy left, phone
   right) - just tighten the gap and shrink the phone so both fit. */
@media (max-width: 900px) {
  .app-hero-inner { gap: 36px; padding: 64px 32px 72px; }
  .app-hero-copy { flex: 1 1 auto; min-width: 0; }
  .app-hero-sub { max-width: none; }     /* fill the column, no 460px cap */
  .app-hero h1 { font-size: 46px; }
  .phone-frame-hero { width: 220px; }
  /* Tablet: single column, capped to a readable width and centred - 3 cards in
     2 columns leaves an awkward orphan, so one tidy stack reads better. */
  .why-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
/* Below 720px the two columns no longer fit - stack and centre. */
@media (max-width: 720px) {
  .app-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 56px 28px 64px;
  }
  .app-hero-copy {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .app-hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
  .app-store-badges { justify-content: center; }
  .app-hero-reassure { justify-content: center; }
  /* Centred below the copy, the phone reads better upright. */
  .app-hero-phone { transform: none; animation: none; }
}
/* Mid widths: pull the fanned-out offsets in so the outer phones don't clip. */
@media (max-width: 1080px) {
  .fan-phone--i1.is-revealed { --x: -128px; --y: 30px; }
  .fan-phone--i2.is-revealed { --x: 128px;  --y: 30px; }
  .fan-phone--o1.is-revealed { --x: 238px;  --y: 74px; }
  .fan-phone--o2.is-revealed { --x: -238px; --y: 74px; }
  .phone-shot { width: 236px; }
}
@media (max-width: 768px) {
  .app-hero h1 { font-size: 42px; }
  .app-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    padding: 28px 32px;
  }
  /* divider only between columns gets noisy on 2-col; drop it */
  .app-stat::after { display: none; }
  .app-showcase-head h2 { font-size: 25px; }
  .app-cta h2 { font-size: 30px; }
  /* Let the CTA title wrap naturally on mobile (the desktop break stranded
     "is" on its own line on narrow screens). */
  .cta-br { display: none; }
  .why-section { padding: 56px 24px; }

  /* Tablet keeps all FIVE phones - just scaled down + offsets pulled in so the
     full spread fits the narrower viewport. */
  .app-showcase { height: 230vh; }
  .phone-fan { height: 480px; }
  .phone-shot { width: 196px; }
  .fan-phone--i1.is-revealed { --x: -104px; --y: 26px; --rot: -8deg;  --s: 0.88; }
  .fan-phone--i2.is-revealed { --x: 104px;  --y: 26px; --rot: 8deg;   --s: 0.88; }
  .fan-phone--o1.is-revealed { --x: 190px;  --y: 64px; --rot: 15deg;  --s: 0.76; }
  .fan-phone--o2.is-revealed { --x: -190px; --y: 64px; --rot: -15deg; --s: 0.76; }
  /* Pull the caption staircase in to match the narrower tablet fan. */
  .fan-cap { font-size: 14.5px; padding: 10px 18px 10px 14px; }
  .fan-caps { height: 230px; }
  .fan-cap[data-cap="find"]   { --cx: -118px; --cy: -52px;  }
  .fan-cap[data-cap="book"]   { --cx: 118px;  --cy: -52px;  }
  .fan-cap[data-cap="search"] { --cx: -230px; --cy: -104px; }
  .fan-cap[data-cap="clinic"] { --cx: 230px;  --cy: -104px; }
}

/* Portrait tablets: the sticky inner is 100vh but the heading+fan only fill
   ~580px, so vertically-centring them strands a tall white gap above the
   phones before the user scrolls. On a tall-and-narrow viewport, anchor the
   group near the top (just below the stats band) instead of centring it, so
   the phones sit where the eye lands. Landscape tablets are short enough that
   the 100vh group already fills the viewport, so the centring there is fine. */
@media (max-width: 1024px) and (orientation: portrait) {
  .app-showcase-sticky {
    justify-content: flex-start;
    padding-top: 7vh;
  }
}
@media (max-width: 520px) {
  .app-hero h1 { font-size: 34px; }
  .app-hero-sub { font-size: 15px; }
  .app-hero-inner { padding: 48px 22px 64px; }
  .phone-frame-hero { width: 210px; }
  /* Single column on phones. */
  .why-grid { grid-template-columns: 1fr; max-width: 400px; }
  /* Keep the two badges side-by-side on mobile (don't stack): one row, each
     shares the width and shrinks its padding/text so both fit. align-self:
     stretch makes the CTA row (in a centred flex column) fill the width too,
     so its badges match the hero's instead of shrinking to content. */
  .app-store-badges { flex-wrap: nowrap; gap: 10px; width: 100%; align-self: stretch; }
  .store-badge {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 12px;
    gap: 9px;
  }
  .store-badge-name { font-size: 14px; }
  .store-badge-sub { font-size: 9px; }
  .app-cta-inner { padding: 56px 22px 64px; }

  /* Phones (≤520px): the full 5-phone spread can't fit, so show only THREE
     (centre + inner pair). The two outer phones are hidden, and the JS counts
     only visible phones so the fan-out reveal still completes. */
  .fan-phone--o1,
  .fan-phone--o2 { display: none; }
  .app-showcase { height: 200vh; }   /* fewer phones → less scroll travel */
  .phone-shot { width: 150px; }
  .fan-phone--i1.is-revealed { --x: -72px; --y: 22px; --rot: -8deg; --s: 0.84; }
  .fan-phone--i2.is-revealed { --x: 72px;  --y: 22px; --rot: 8deg;  --s: 0.84; }
  .phone-fan { height: 372px; }   /* hug the 150px-wide phones (≈353px tall) */

  /* Only 3 phones show → only 3 captions. Hide the outer two. On a phone the
     pills are too wide to fan left/right without overlapping, so stack them in
     a clean centred column instead (one per reveal, stepping upward). */
  .fan-cap[data-cap="search"],
  .fan-cap[data-cap="clinic"] { display: none; }
  .fan-cap { font-size: 13px; padding: 9px 16px 9px 13px; }
  .fan-cap svg { width: 16px; height: 16px; }
  .fan-caps { height: 168px; margin-top: 20px; }
  .fan-cap[data-cap="fees"] { --cx: 0px; --cy: 0px; }
  .fan-cap[data-cap="find"] { --cx: 0px; --cy: -54px; }
  .fan-cap[data-cap="book"] { --cx: 0px; --cy: -108px; }
}
