/* ============================================================
   Landing page (index.html) — design source: Medrudra Landing v3
   ============================================================ */

/* ---- motion (landing-specific) ----------------------------- */

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@keyframes feedCycle {
  0%, 26%   { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes feedCycleB {
  0%, 26%   { opacity: 0; transform: translateY(12px); }
  33%, 59%  { opacity: 1; transform: translateY(0); }
  66%, 100% { opacity: 0; transform: translateY(-12px); }
}
@keyframes feedCycleC {
  0%, 59%   { opacity: 0; transform: translateY(12px); }
  66%, 92%  { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; }
}

@keyframes barGrowX { from { width: 8%; } to { width: 76%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes emblemIn {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes progGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes revealL { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes revealR { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes parY { from { transform: translateY(60px); } to { transform: translateY(-40px); } }

.rvl { animation: revealL .85s cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.rvr { animation: revealR .85s cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.zoom { animation: zoomIn .9s cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
.parallax { animation: parY linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }

@supports not (animation-timeline: view()) {
  .rvl, .rvr, .zoom { animation: none; opacity: 1; }
  .parallax { animation: none; }
}

/* ---- scroll progress bar ----------------------------------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 40;
  transform-origin: left;
  background: linear-gradient(90deg, #A31515, #8B0000);
  transform: scaleX(0);
  animation: progGrow linear both;
  animation-timeline: scroll(root);
}
@supports not (animation-timeline: scroll(root)) {
  .progress { display: none; }
}

/* ---- hero -------------------------------------------------- */

.hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FDF9F8, #fff 70%);
}

.hero-blob-l {
  position: absolute;
  left: -12%; top: -35%;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, .10), transparent 65%);
  filter: blur(50px);
}
.hero-blob-r {
  position: absolute;
  right: -12%; top: -8%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 0, .07), transparent 65%);
  filter: blur(60px);
}
.hero-home .hero-dots {
  -webkit-mask-image: linear-gradient(180deg, black, transparent 65%);
  mask-image: linear-gradient(180deg, black, transparent 65%);
}

.hh-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 28px 0;
  text-align: center;
}

/* Animated clinic emblem — 3D swaying badge + beating white heart
   (self-contained mr- snippet; scale via --size, everything derives from it) */
.mr-emblem {
  --size: 150px;
  position: relative;
  width: var(--size);
  height: var(--size);
  /* Extra bottom room so the floor reflection never overlaps the badge pill */
  margin: 0 auto 72px;
  animation: emblemIn .9s cubic-bezier(.16, 1, .3, 1) both;
}
.mr-emblem .mr-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(139, 0, 0, .32);
  animation: mrRipple 3s ease-out infinite;
}
.mr-emblem .mr-contact {
  position: absolute; top: calc(var(--size) * .906); left: 50%;
  width: calc(var(--size) * .8); height: calc(var(--size) * .06);
  transform: translate(-50%, -3px); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(50, 0, 0, .5), transparent 72%);
  filter: blur(4px);
}
.mr-emblem .mr-stage {
  position: absolute; inset: calc(var(--size) * .093);
  perspective: 1100px;
}
.mr-emblem .mr-coin {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: mrSway 7s ease-in-out infinite;
}
.mr-emblem .mr-slab {
  position: absolute; inset: 10px; border-radius: 16px;
  background: linear-gradient(150deg, #C21E1E, #8B0000 50%, #3a0000);
  transform: translateZ(var(--z));
}
.mr-emblem .mr-slab--back {
  background: linear-gradient(150deg, #8B0000, #4a0000 55%, #2a0000);
}
.mr-emblem .mr-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  backface-visibility: hidden;
}
.mr-emblem .mr-face--front { transform: translateZ(8px); }
.mr-emblem .mr-face--back { transform: rotateY(180deg) translateZ(8px); }
.mr-emblem .mr-reflection {
  position: absolute; top: calc(var(--size) * .88); left: 0; right: 0;
  height: var(--size); perspective: 300px; perspective-origin: 50% 0%;
}
.mr-emblem .mr-reflection svg {
  position: absolute; top: 0; left: calc(var(--size) * .093);
  width: calc(var(--size) * .813); height: calc(var(--size) * .813);
  transform-origin: top center;
  animation: mrSwayFloor 7s ease-in-out infinite;
  opacity: .42;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent 72%);
}
@keyframes mrRipple {
  0%   { transform: scale(.55); opacity: .55; }
  80%  { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes mrSway {
  0%   { transform: rotateY(-52deg); }
  50%  { transform: rotateY(52deg); }
  100% { transform: rotateY(-52deg); }
}
@keyframes mrSwayFloor {
  0%   { transform: rotateX(66deg) skewX(-20deg) scaleX(.9); }
  50%  { transform: rotateX(66deg) skewX(20deg) scaleX(.9); }
  100% { transform: rotateX(66deg) skewX(-20deg) scaleX(.9); }
}

.hero-home h1 {
  font: 800 72px/1.03 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.035em;
  margin: 26px auto 20px;
  max-width: 880px;
  animation: fadeUp .7s .08s ease both;
}

.hh-sub {
  font: 400 18px/1.65 'Instrument Sans', sans-serif;
  color: #5B5B5B;
  max-width: 600px;
  margin: 0 auto 34px;
  animation: fadeUp .7s .16s ease both;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .24s ease both;
}
.btn-hero {
  background: #8B0000;
  color: #fff;
  font: 700 16px 'Instrument Sans', sans-serif;
  padding: 16px 34px;
  border-radius: 99px;
  box-shadow: 0 12px 32px rgba(139, 0, 0, .35);
}
.btn-hero:hover { color: #fff; background: #660000; }
.btn-ghost {
  border: 1.5px solid rgba(26, 26, 26, .16);
  color: #1A1A1A;
  font: 600 16px 'Instrument Sans', sans-serif;
  padding: 16px 30px;
  border-radius: 99px;
  background: #fff;
}
.btn-ghost:hover { color: #8B0000; border-color: rgba(139, 0, 0, .35); }

.hero-ticks {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0 0;
  font: 500 13.5px 'Instrument Sans', sans-serif;
  color: #6B6B6B;
  animation: fadeUp .7s .32s ease both;
}
.hero-ticks b { color: #8B0000; font-weight: inherit; }

/* Hero dashboard shot with perspective + floating overlays */
.hero-shot {
  perspective: 1400px;
  margin-top: 60px;
  position: relative;
}
.shot-web {
  width: 920px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(139, 0, 0, .18);
  border-bottom: none;
  box-shadow: 0 -30px 90px rgba(139, 0, 0, .12), 0 0 0 8px rgba(139, 0, 0, .03);
  transform: rotateX(8deg);
  transform-origin: bottom;
}
.shot-phone {
  position: absolute;
  right: 6%; bottom: -30px;
  width: 170px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(26, 26, 26, .35);
  border: 1px solid rgba(26, 26, 26, .1);
  animation: float 7s ease-in-out infinite;
}
.wa-toast {
  position: absolute;
  left: 5%; bottom: 120px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(26, 26, 26, .1);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  gap: 11px;
  align-items: center;
  box-shadow: 0 16px 44px rgba(26, 26, 26, .18);
  animation: floatB 6.5s .8s ease-in-out infinite;
  text-align: left;
}
.wa-dot {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 15px sans-serif;
  flex: none;
}
.wa-toast-title { font: 700 12.5px 'Instrument Sans', sans-serif; }
.wa-toast-sub { font: 400 11.5px 'Instrument Sans', sans-serif; color: #7B7B7B; }

.hero-fade { height: 90px; background: linear-gradient(180deg, transparent, #FDF9F8); }

/* ---- ticker ------------------------------------------------ */

.ticker {
  border-top: 1px solid rgba(26, 26, 26, .07);
  border-bottom: 1px solid rgba(26, 26, 26, .07);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  background: #FDF9F8;
}
.ticker-track {
  display: inline-flex;
  gap: 56px;
  animation: ticker 30s linear infinite;
  font: 600 13px 'Bricolage Grotesque', sans-serif;
  letter-spacing: .12em;
  color: #9B8B8B;
}
.ticker-track b { color: #8B0000; font-weight: inherit; }

/* ---- clinic photo band ------------------------------------- */

.photo-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px 0;
}
.pb-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(139, 0, 0, .16);
  aspect-ratio: 16 / 6;
}
.pb-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pb-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 10, 10, .86), rgba(42, 10, 10, .5) 55%, rgba(42, 10, 10, .15));
}
.pb-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(28px, 5vw, 64px);
  max-width: 560px;
}
.pb-kicker {
  font: 600 12px 'Instrument Sans', sans-serif;
  letter-spacing: .16em;
  color: #FF8A7A;
}
.pb-copy h2 {
  font: 700 clamp(26px, 3.4vw, 40px)/1.12 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.025em;
  color: #fff;
  margin: 12px 0 10px;
}
.pb-copy p {
  font: 400 15.5px/1.6 'Instrument Sans', sans-serif;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

/* ---- video tour -------------------------------------------- */

.video-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px 40px;
}
.video-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 40px;
}
.video-head h2 {
  font: 700 42px/1.08 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.025em;
  margin: 0;
}
.video-head p {
  font: 400 15.5px/1.65 'Instrument Sans', sans-serif;
  color: #5B5B5B;
  max-width: 420px;
  margin: 0 0 6px;
}
.video-frame {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(139, 0, 0, .45), rgba(139, 0, 0, .06) 40%, rgba(139, 0, 0, .25));
}
.video-frame video {
  width: 100%;
  border-radius: 21px;
  display: block;
  background: #1A0505;
}

/* ---- problem videos (player + vertical rail) --------------- */
.pv { max-width: 1200px; margin: 0 auto; padding: 88px 28px 8px; }
.pv .sec-head { margin-bottom: 34px; }
.pv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  /* stretch (not start) so the rail is exactly as tall as the player and the
     cards can distribute themselves to that height — the rail used to run past
     the video once there were enough clips, then scroll. */
  align-items: stretch;
}
.pv-player {
  position: relative;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(139, 0, 0, .45), rgba(139, 0, 0, .06) 40%, rgba(139, 0, 0, .25));
}
.pv-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 21px;
  display: block;
  background: #1A0505;
  object-fit: cover;
}
.pv-rail {
  display: flex;
  flex-direction: column;
  /* space-between makes the stack END level with the player whatever the clip
     count is, instead of a fixed gap that only lined up at six. */
  justify-content: space-between;
  gap: 8px;
  /* visible, so a hovered card can pop OUT of the rail instead of being clipped */
  overflow: visible;
  padding: 2px 4px 2px 0;
}
.pv-thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex: 0 0 auto;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .09);
  border-radius: 13px;
  padding: 6px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(139, 0, 0, .05);
  /* grows leftward, toward the player, rather than off the right edge */
  transform-origin: right center;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .18s, box-shadow .2s;
}
.pv-thumb:hover {
  transform: scale(1.07) translateX(-4px);
  z-index: 3;
  border-color: rgba(139, 0, 0, .32);
  box-shadow: 0 18px 38px rgba(139, 0, 0, .18);
}
.pv-thumb.is-active { border-color: #8B0000; box-shadow: 0 12px 28px rgba(139, 0, 0, .18); }
.pv-thumb-media {
  position: relative;
  width: 82px; height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  overflow: hidden;
  background: #1A0505;
  display: flex; align-items: center; justify-content: center;
}
.pv-thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  background: rgba(0, 0, 0, .12);
}
.pv-thumb-media--soon { color: #8B0000; font: 800 20px 'Bricolage Grotesque', sans-serif; background: #F3E7E7; }
.pv-thumb-txt { min-width: 0; }
.pv-thumb-txt b { display: block; font: 700 13px/1.2 'Bricolage Grotesque', sans-serif; color: #1A1A1A; letter-spacing: -.01em; }
.pv-thumb-txt i { display: block; font: 400 11.5px/1.3 'Instrument Sans', sans-serif; color: #5B5B5B; font-style: normal; margin-top: 2px; }
.pv-soon {
  display: inline-block; margin-top: 5px; padding: 2px 8px; border-radius: 999px;
  font: 600 9.5px 'Instrument Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #8B0000; background: #F3E7E7;
}
.pv-thumb.is-soon { opacity: .72; cursor: default; box-shadow: none; }
.pv-thumb.is-soon:hover { transform: none; z-index: auto; border-color: rgba(26, 26, 26, .09); box-shadow: none; }

@media (max-width: 900px) {
  .pv { padding: 60px 20px 8px; }
  .pv-stage { grid-template-columns: 1fr; gap: 16px; }
  .pv-rail { flex-direction: row; justify-content: flex-start; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 2px 0 8px; }
  .pv-thumb:hover { transform: translateY(-2px); }
  .pv-thumb { flex: 0 0 auto; width: 250px; }
}

/* ---- platforms --------------------------------------------- */

.plat {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
}
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 {
  font: 700 42px/1.1 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.025em;
  margin: 12px 0 0;
}
.sec-head p {
  font: 400 15.5px 'Instrument Sans', sans-serif;
  color: #5B5B5B;
  margin: 10px 0 0;
}

.plat-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  perspective: 1600px;
  max-width: 100%;
}
.plat-tab {
  width: 28%; max-width: 300px; min-width: 0;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(26, 26, 26, .28);
  border: 1px solid rgba(26, 26, 26, .08);
  transform: rotateY(18deg) translateX(30px);
  z-index: 1;
  animation: floatB 7.5s ease-in-out infinite;
}
.plat-web {
  width: 56%; max-width: 600px; min-width: 0;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(139, 0, 0, .22);
  border: 1px solid rgba(139, 0, 0, .15);
  z-index: 2;
  position: relative;
  animation: float 8s .3s ease-in-out infinite;
}
.plat-mob {
  width: 14%; max-width: 150px; min-width: 0;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(26, 26, 26, .28);
  border: 1px solid rgba(26, 26, 26, .08);
  transform: rotateY(-18deg) translateX(-30px);
  z-index: 1;
  animation: floatB 6.5s .6s ease-in-out infinite;
}
.plat-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 40px;
  font: 600 13.5px 'Instrument Sans', sans-serif;
  color: #5B5B5B;
}
.plat-legend b { color: #8B0000; font-weight: inherit; }

/* ---- features bento ---------------------------------------- */

.features {
  background: #FDF9F8;
  border-top: 1px solid rgba(26, 26, 26, .06);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 28px;
}
.features .sec-head { margin-bottom: 48px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 212px;
  gap: 16px;
}

.bcard {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .08);
  border-radius: 20px;
  padding: 26px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .04);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.bcard:hover {
  border-color: rgba(139, 0, 0, .35);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(139, 0, 0, .1);
}
.bcard--tall { grid-row: span 2; display: flex; flex-direction: column; }
.bcard--rel { position: relative; }

.bt { font: 700 19px 'Bricolage Grotesque', sans-serif; }
.bd { font: 400 13.5px/1.6 'Instrument Sans', sans-serif; color: #6B6B6B; margin-top: 6px; }

/* appointments mini-list */
.appt-panel {
  flex: 1;
  margin-top: 20px;
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.appt-head {
  display: flex;
  justify-content: space-between;
  font: 600 11px 'Instrument Sans', sans-serif;
  color: #8B8B8B;
}
.appt-head b { color: #8B0000; font-weight: inherit; }
.appt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .05);
  border-left: 3px solid rgba(26, 26, 26, .15);
  border-radius: 8px;
  padding: 9px 11px;
}
.appt-row--hot {
  background: rgba(139, 0, 0, .07);
  border: none;
  border-left: 3px solid #8B0000;
}
.appt-time { font: 700 11.5px 'Instrument Sans', sans-serif; color: #7B7B7B; }
.appt-row--hot .appt-time { color: #8B0000; }
.appt-name { font: 600 12px 'Instrument Sans', sans-serif; }
.appt-new {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(139, 0, 0, .4);
  border-radius: 8px;
  padding: 9px 11px;
  color: #8B0000;
  font: 600 12px 'Instrument Sans', sans-serif;
}

/* prescriptions mini-card */
.rx-desc { max-width: 65%; }
.rx-card {
  position: absolute;
  right: -14px; bottom: -22px;
  width: 150px;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .1);
  color: #1A1A1A;
  border-radius: 12px;
  padding: 12px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 34px rgba(26, 26, 26, .18);
}
.rx-tag { font: 700 10px 'Instrument Sans', sans-serif; color: #8B0000; letter-spacing: .08em; }
.rx-line { height: 5px; background: rgba(26, 26, 26, .1); border-radius: 3px; margin-top: 5px; }
.rx-line:first-of-type { width: 85%; margin-top: 8px; }
.rx-line:last-of-type { width: 70%; }
.rx-qr-row { display: flex; gap: 6px; align-items: center; margin-top: 9px; }
.rx-qr {
  width: 26px; height: 26px;
  background: repeating-conic-gradient(#1A1A1A 0% 25%, #fff 0% 50%) 0 0 / 9px 9px;
  border-radius: 3px;
}
.rx-qr-note { font: 600 8.5px 'Instrument Sans', sans-serif; color: #8B8B8B; }

/* billing mini-row */
.bill-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 12px;
  padding: 12px;
}
.bill-amt { font: 800 20px 'Bricolage Grotesque', sans-serif; color: #8B0000; }
.bill-mid { flex: 1; }
.bill-name { font: 600 11.5px 'Instrument Sans', sans-serif; }
.bill-track {
  height: 5px;
  background: rgba(26, 26, 26, .08);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}
.bill-fill {
  height: 100%;
  background: #8B0000;
  border-radius: 99px;
  animation: barGrowX 2.4s ease-in-out infinite alternate;
}
.bill-chip {
  font: 700 10px 'Instrument Sans', sans-serif;
  background: rgba(139, 0, 0, .08);
  color: #8B0000;
  padding: 4px 9px;
  border-radius: 99px;
}

/* whatsapp live feed */
.feed { position: relative; margin-top: 16px; height: 52px; }
.feed-item {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 12px;
  padding: 0 12px;
}
.feed-item:nth-child(1) { animation: feedCycle 9s infinite; }
.feed-item:nth-child(2) { opacity: 0; animation: feedCycleB 9s infinite; }
.feed-item:nth-child(3) { opacity: 0; animation: feedCycleC 9s infinite; }
.feed-dot {
  width: 26px; height: 26px;
  border-radius: 99px;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 12px sans-serif;
  flex: none;
}
.feed-title { font: 600 11.5px 'Instrument Sans', sans-serif; }
.feed-sub { font: 400 10.5px 'Instrument Sans', sans-serif; color: #8B8B8B; }

/* patient records */
.rec-panel {
  flex: 1;
  margin-top: 20px;
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 14px;
  padding: 16px;
}
.rec-id {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 26, 26, .08);
}
.rec-avatar {
  width: 34px; height: 34px;
  border-radius: 99px;
  background: linear-gradient(135deg, #A31515, #660000);
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 14px 'Bricolage Grotesque', sans-serif;
}
.rec-name { font: 700 13px 'Instrument Sans', sans-serif; }
.rec-mrn { font: 400 11px 'Instrument Sans', sans-serif; color: #8B8B8B; }
.rec-vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.rec-vital {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, .06);
  border-radius: 9px;
  padding: 9px;
}
.rec-vital-label { font: 400 10px 'Instrument Sans', sans-serif; color: #8B8B8B; }
.rec-vital-value { font: 700 14px 'Instrument Sans', sans-serif; color: #8B0000; }
.rec-heart { font: 400 10px sans-serif; animation: blink 1.6s infinite; }
.rec-sub {
  font: 600 10.5px 'Instrument Sans', sans-serif;
  letter-spacing: .1em;
  color: #9B9B9B;
  margin-bottom: 8px;
}
.rec-visits { display: flex; flex-direction: column; gap: 7px; }
.rec-visit {
  display: flex;
  justify-content: space-between;
  font: 500 11.5px 'Instrument Sans', sans-serif;
}
.rec-visit span:last-child { color: #9B9B9B; }

/* multi-location */
.loc-row { display: flex; gap: 8px; margin-top: 16px; }
.loc {
  flex: 1;
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.loc--hot { background: rgba(139, 0, 0, .06); border-color: rgba(139, 0, 0, .25); }
.loc-name { font: 700 12px 'Instrument Sans', sans-serif; }
.loc--hot .loc-name { color: #8B0000; }
.loc-count { font: 400 10.5px sans-serif; color: #8B8B8B; }

/* revenue bars */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 54px;
  margin-top: 16px;
  padding: 0 4px;
}
.bars div { flex: 1; border-radius: 5px 5px 0 0; }

/* branded website: wide card */
.bcard--wide {
  grid-column: span 3;
  background: linear-gradient(120deg, #2A0A0A, #661010);
  border: none;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
}
.bcard--wide:hover {
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(26, 26, 26, .04);
}
.bcard--wide .bd { color: rgba(255, 255, 255, .72); max-width: 400px; }
.site-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  padding: 7px 14px;
  margin-top: 14px;
  font: 600 12px ui-monospace, monospace;
}
.site-live-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: #4ADE80;
  animation: blink 2s infinite;
}
.site-card {
  width: 250px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  color: #1A1A1A;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  animation: float 7s ease-in-out infinite;
}
.site-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-logo {
  width: 26px; height: 26px;
  border-radius: 99px;
  background: #8B0000;
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 12px 'Bricolage Grotesque', sans-serif;
}
.site-name { font: 700 12.5px 'Instrument Sans', sans-serif; }
.site-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.site-tile {
  background: #FDF9F8;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 8px;
  padding: 8px;
  font: 600 10.5px 'Instrument Sans', sans-serif;
}
.site-cta {
  background: #8B0000;
  color: #fff;
  border-radius: 8px;
  padding: 9px 0;
  text-align: center;
  font: 600 11.5px 'Instrument Sans', sans-serif;
  margin-top: 7px;
}

/* ---- how it works ------------------------------------------ */

.how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 28px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
}
.steps-line {
  position: absolute;
  left: 16%; right: 16%;
  top: 31px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(139, 0, 0, .35) 0 8px, transparent 8px 16px);
}
.step { text-align: center; padding: 0 28px; position: relative; }
.step-num {
  width: 62px; height: 62px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid #8B0000;
  color: #8B0000;
  display: grid;
  place-items: center;
  font: 800 24px 'Bricolage Grotesque', sans-serif;
  margin: 0 auto 20px;
  box-shadow: 0 10px 26px rgba(139, 0, 0, .18);
}
.step-num--active {
  background: #8B0000;
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(139, 0, 0, .3);
  animation: pulseRed 2.5s infinite;
}
.step-title { font: 700 18px 'Instrument Sans', sans-serif; }
.step-desc {
  font: 400 14px/1.65 'Instrument Sans', sans-serif;
  color: #6B6B6B;
  margin-top: 8px;
}

/* ---- CTA banner -------------------------------------------- */

.cta-sec {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 88px;
}
.cta-banner {
  background: linear-gradient(130deg, #2A0A0A, #8B0000);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 120%, black, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 120%, black, transparent 70%);
}
.cta-banner h2 {
  font: 700 40px/1.12 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  position: relative;
}
.cta-banner p {
  font: 400 16px 'Instrument Sans', sans-serif;
  opacity: .85;
  margin: 0 0 28px;
  position: relative;
}
.cta-btn {
  background: #fff;
  color: #8B0000;
  font: 700 16px 'Instrument Sans', sans-serif;
  padding: 16px 36px;
  border-radius: 99px;
  display: inline-block;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}
.cta-btn:hover { color: #660000; }

/* ---- short-viewport hero (laptops) -------------------------
   The full pitch — emblem, badge, H1, sub, CTAs — must fit above
   the fold on load. Two compaction tiers keyed on viewport HEIGHT
   (desktop widths only; phone sizing is the max-width block below). */

@media (min-width: 641px) and (max-height: 900px) {
  .hh-inner { padding-top: 40px; }
  .mr-emblem { margin-bottom: 46px; }
  .hero-home h1 { font-size: 56px; margin: 18px auto 14px; }
  .hh-sub { font-size: 16.5px; margin-bottom: 24px; }
  .btn-hero, .btn-ghost { font-size: 15px; padding: 13px 28px; }
  .hero-ticks { margin-top: 22px; }
  .hero-shot { margin-top: 44px; }
}

@media (min-width: 641px) and (max-height: 760px) {
  .hh-inner { padding-top: 26px; }
  .mr-emblem { margin-bottom: 36px; }
  .badge { font-size: 12px; padding: 7px 14px; }
  .hero-home h1 { font-size: 46px; margin: 14px auto 12px; }
  .hh-sub { font-size: 15.5px; margin-bottom: 20px; }
  .hero-ticks { margin-top: 18px; }
  .hero-shot { margin-top: 36px; }
}

/* ---- responsive (prototype is desktop-only) ---------------- */

@media (max-width: 960px) {
  .hero-home h1 { font-size: 52px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bcard { min-height: 212px; }
  .bcard--wide { grid-column: span 2; }
  .video-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps-line { display: none; }
}

@media (max-width: 640px) {
  .hh-inner { padding: 52px 20px 0; }
  .hero-home h1 { font-size: 38px; }
  .hh-sub { font-size: 16px; }
  .mr-emblem { margin-bottom: 56px; }
  .btn-hero, .btn-ghost { font-size: 15px; padding: 14px 26px; }
  .hero-ticks { gap: 12px 20px; }
  .shot-phone, .wa-toast { display: none; }
  .photo-band { padding-top: 56px; }
  .pb-frame { aspect-ratio: 4 / 3; }
  .pb-shade { background: linear-gradient(90deg, rgba(42, 10, 10, .88), rgba(42, 10, 10, .55) 70%, rgba(42, 10, 10, .3)); }
  .video-sec { padding: 64px 20px 24px; }
  .video-head h2 { font-size: 32px; }
  .plat { padding: 56px 20px; }
  .sec-head h2 { font-size: 32px; }
  .plat-legend { gap: 14px 22px; }
  .features-inner { padding: 56px 20px; }
  .bento { grid-template-columns: 1fr; }
  .bcard--tall { grid-row: auto; }
  .bcard--wide { grid-column: auto; grid-template-columns: 1fr; padding: 28px 24px; }
  .site-card { width: 100%; box-sizing: border-box; }
  .how { padding: 64px 20px; }
  .cta-sec { padding: 0 20px 64px; }
  .cta-banner { padding: 44px 24px; }
  .cta-banner h2 { font-size: 30px; }
}
