/* ============================================================
   APNO — Cinematic sections (pinned journey, philosophy, carousel)
   ============================================================ */

/* ---------- Hero cinematic scene (misty mountains + clouds) ---------- */
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hs-range { position: absolute; left: -2%; bottom: -1px; width: 104%; height: 46%; }
.hs-range path { transition: none; }
.hs-range.r3 path { fill: #E2EAF7; }
.hs-range.r2 path { fill: #CFDCF1; }
.hs-range.r1 path { fill: #B8CBEC; }
.hs-range.r3 { height: 50%; opacity: .85; }
.hs-range.r2 { height: 42%; opacity: .9; }
.hs-range.r1 { height: 33%; }
.hs-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to top, #fff 8%, rgba(255,255,255,.7) 30%, rgba(255,255,255,0) 75%);
}
.hs-clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0) 72%);
  filter: blur(6px); opacity: .9;
}
.cloud.c1 { width: 380px; height: 120px; top: 14%; left: 8%; animation: drift1 46s linear infinite; }
.cloud.c2 { width: 300px; height: 96px; top: 30%; left: 52%; animation: drift2 60s linear infinite; }
.cloud.c3 { width: 460px; height: 140px; top: 9%; left: 64%; animation: drift1 72s linear infinite; opacity: .7; }
.cloud.c4 { width: 240px; height: 80px; top: 46%; left: 24%; animation: drift2 54s linear infinite; opacity: .6; }
@keyframes drift1 { 0%{ transform: translateX(-8vw);} 100%{ transform: translateX(16vw);} }
@keyframes drift2 { 0%{ transform: translateX(10vw);} 100%{ transform: translateX(-14vw);} }
.hs-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .cloud { animation: none !important; } }
@media (max-width: 980px) { .hs-range.r3 { height: 40%; } .cloud { display: none; } .cloud.c1, .cloud.c2 { display: block; } }

/* ---------- Pinned canvas: morphing shape + changing background ---------- */
.jp-shape {
  position: absolute; z-index: 1; left: 50%; top: 46%; width: 62%; height: 62%;
  transform: translate(-50%,-50%);
  background: linear-gradient(150deg, var(--blue) 0%, #1A45A6 100%);
  opacity: .14; border-radius: 38% 62% 56% 44% / 48% 40% 60% 52%;
  transition: clip-path 1s var(--ease-out), border-radius 1.1s var(--ease-out), transform 1.1s var(--ease-out), background 1s var(--ease), opacity 1s;
  filter: blur(2px);
}
.jp-canvas { transition: background 1.1s var(--ease); }
/* phase backgrounds */
.jp-canvas.phase-0 { background: linear-gradient(160deg, #F4F8FE 0%, #EAF1FE 100%); }
.jp-canvas.phase-1 { background: linear-gradient(160deg, #EEF5FF 0%, #DCE9FE 100%); }
.jp-canvas.phase-2 { background: linear-gradient(160deg, #EAF6F1 0%, #DCEFF6 100%); }
.jp-canvas.phase-3 { background: linear-gradient(160deg, #E9F6EE 0%, #DCEFE6 100%); }
/* phase shape morphs */
.jp-canvas.phase-0 .jp-shape { border-radius: 44% 56% 60% 40% / 52% 44% 56% 48%; transform: translate(-54%,-52%) rotate(-6deg) scale(.9); }
.jp-canvas.phase-1 .jp-shape { border-radius: 60% 40% 40% 60% / 60% 50% 50% 40%; transform: translate(-46%,-48%) rotate(8deg) scale(1.05); background: linear-gradient(150deg, #2563E8, #123C8F); }
.jp-canvas.phase-2 .jp-shape { border-radius: 50%; transform: translate(-50%,-50%) rotate(0) scale(1.18); background: linear-gradient(150deg, #15A3C9, #1A6FB0); opacity:.16; }
.jp-canvas.phase-3 .jp-shape { border-radius: 36% 64% 50% 50% / 60% 40% 60% 40%; transform: translate(-48%,-54%) rotate(-10deg) scale(1.1); background: linear-gradient(150deg, #16A34A, #0E7A5A); }
/* giant ghost phase number */
.jp-ghost { position: absolute; z-index: 1; right: 6%; bottom: 2%; font-family: var(--mono); font-weight: 500; font-size: clamp(120px, 22vh, 240px); line-height: .8; color: rgba(20,40,90,.05); letter-spacing: -.04em; transition: color .6s; }

/* ---------- Cinematic video showcase ---------- */
/* "One living system" — light & cohesive: text-left + real image-right (MocDoc-style) */
.vshow { position: relative; overflow: hidden; background: transparent; padding: 72px 0; }
.vshow video, .vshow .v-overlay, .vshow .v-grid { display: none; }
.vshow .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.vshow .v-inner { max-width: 560px; color: var(--ink); }
.vshow .eyebrow { color: var(--blue); }
.vshow .eyebrow::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.vshow h2 { color: var(--ink); margin: 16px 0 18px; }
.vshow p { color: var(--slate); font-size: clamp(17px,1.5vw,21px); line-height: 1.55; max-width: 520px; }
.vshow .v-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.vshow .v-stat .n { font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.vshow .v-stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.vshow .v-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.vshow .btn-white { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
/* right-side image with a soft blue shape behind it (MocDoc-style blob) */
.v-visual { position: relative; }
.v-visual img { position: relative; z-index: 1; width: 100%; height: 460px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.v-visual::before { content:""; position:absolute; z-index:0; inset:-9% -7% -7% 9%;
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  background: radial-gradient(circle at 52% 42%, rgba(37,99,232,.20), rgba(37,99,232,.06) 58%, transparent 72%); }
@media (max-width: 920px){ .vshow .container { grid-template-columns: 1fr; gap: 36px; } .v-visual img { height: 300px; } }

/* video as CTA / page-hero background */
.cta-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-shade { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 80% at 50% 50%, rgba(7,16,40,.58), rgba(7,16,40,.26) 65%, rgba(7,16,40,.12) 100%),
              linear-gradient(180deg, rgba(7,16,40,.10), rgba(7,16,40,.30)); }
.page-hero video.ph-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }


/* ---------- Custom DRAG cursor ---------- */
.cursor-drag {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  transform: scale(0); transition: transform .35s var(--ease-out);
  box-shadow: var(--shadow-blue);
}
.cursor-drag.on { transform: scale(1); }
.cursor-drag.grab { transform: scale(.82); }

/* ---------- ABDM rails strip ---------- */
.rails { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rail { flex: 1; padding: 22px 24px; border-right: 1px solid var(--line); }
.rail:last-child { border-right: none; }
.rail .rk { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: .04em; margin-bottom: 8px; }
.rail .rt { font-size: 15px; font-weight: 560; letter-spacing: -.01em; color: var(--ink); }
.rail .rd { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
@media (max-width: 820px){ .rails{ flex-wrap: wrap; } .rail{ flex: 0 0 50%; border-bottom: 1px solid var(--line); } }

/* =====================================================
   PINNED PATIENT JOURNEY (scroll-jacked masterpiece)
   ===================================================== */
.journey-pin { position: relative; background: var(--white); }
.jp-sticky { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.25fr; }
/* left text starts at the SAME x as every other section (the page container edge), not the raw viewport edge */
.jp-left { padding: clamp(40px, 8vh, 96px) 0 60px max(48px, calc((100vw - var(--container)) / 2 + 48px)); display: flex; flex-direction: column; }
.jp-eyebrow { margin-bottom: 28px; }
.jp-index { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.jp-item { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; cursor: pointer; opacity: .32; transition: opacity .5s var(--ease); }
.jp-item.active { opacity: 1; }
.jp-item .jp-no { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 4px; width: 26px; flex: none; }
.jp-item .jp-h { font-size: clamp(20px, 2.1vw, 27px); font-weight: 560; letter-spacing: -.02em; color: var(--ink); line-height: 1.12; }
.jp-item .jp-p { font-size: 14px; color: var(--muted); margin-top: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s, margin .5s; }
.jp-item.active .jp-p { max-height: 90px; opacity: 1; }
.jp-progress { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.jp-track { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.jp-fill { height: 100%; width: 0; background: var(--blue); border-radius: 2px; transition: width .2s linear; }
.jp-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* right canvas — clinic floorplan + glowing patient dot */
.jp-canvas { position: relative; background: linear-gradient(160deg, #F4F8FE 0%, #EAF1FE 100%); overflow: hidden; }
.jp-canvas::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(37,99,232,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,232,.06) 1px, transparent 1px); background-size: 40px 40px; }
.floorplan { position: absolute; inset: clamp(40px, 9vh, 110px) clamp(40px, 6vw, 110px); }
.room { position: absolute; border: 1.5px solid rgba(37,99,232,.22); border-radius: 14px; background: rgba(255,255,255,.55); backdrop-filter: blur(2px); transition: border-color .6s, background .6s, box-shadow .6s; }
.room .room-lab { position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.room.lit { border-color: var(--blue); background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(37,99,232,.16); }
.room.lit .room-lab { color: var(--blue); }
/* layout of rooms */
.room.r-entrance { left: 0; top: 38%; width: 22%; height: 24%; }
.room.r-reception { left: 28%; top: 12%; width: 30%; height: 30%; }
.room.r-waiting  { left: 28%; top: 50%; width: 30%; height: 38%; }
.room.r-consult  { left: 64%; top: 20%; width: 32%; height: 60%; }

.patient-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); z-index: 4;
  box-shadow: 0 0 0 6px rgba(37,99,232,.18), 0 6px 16px rgba(37,99,232,.4);
  transition: left 1.1s var(--ease-out), top 1.1s var(--ease-out); transform: translate(-50%,-50%); }
.patient-dot::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid var(--blue); opacity:.5; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0%{ transform: scale(.6); opacity:.6;} 100%{ transform: scale(1.8); opacity:0;} }

/* floating UI state card on canvas */
.jp-ui { position: absolute; right: clamp(28px,4vw,56px); bottom: clamp(28px,5vh,56px); width: min(330px, 64%); z-index: 6; }
.jp-ui-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); position: absolute; inset: auto 0 0 0; }
.jp-ui-card.show { opacity: 1; transform: none; position: relative; }
.jp-ui-card .uc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jp-ui-card .uc-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.jp-ui-card .uc-t { font-size: 14px; font-weight: 580; letter-spacing: -.01em; }
.jp-ui-card .uc-s { font-size: 12px; color: var(--muted); }
.uc-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.uc-row .l { color: var(--slate); }
.uc-row .v { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.uc-row .v.blue { color: var(--blue); }
.uc-row .v.green { color: var(--green); }
.uc-big { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.uc-big b { color: var(--blue); }

@media (max-width: 860px) {
  .jp-sticky { grid-template-columns: 1fr; height: auto; min-height: 0; position: relative; }
  .jp-left { padding: 60px 24px 30px; }
  .jp-canvas { height: 60vh; min-height: 420px; }
  .jp-item.active .jp-p { max-height: 80px; }
  .jp-item { opacity: 1; }
  .jp-item .jp-p { max-height: 90px; opacity: 1; }
  .journey-pin { height: auto !important; }
}

/* =====================================================
   DARK PHILOSOPHY SECTION
   ===================================================== */
.philosophy { background: transparent; color: var(--ink); position: relative; overflow: hidden; padding: 72px 0; }
.philosophy .ph-bg { position: absolute; inset: 0; background:
  radial-gradient(50% 60% at 18% 8%, rgba(37,99,232,.10), transparent 60%),
  radial-gradient(42% 52% at 92% 92%, rgba(21,176,201,.08), transparent 60%); }
.philosophy .ph-grid { position:absolute; inset:0; opacity:.6;
  background-image: linear-gradient(rgba(20,40,90,.05) 1px,transparent 1px), linear-gradient(90deg, rgba(20,40,90,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 80%); }
.philosophy > .container { position: relative; z-index: 1; }
.ph-eyebrow { color: var(--blue); }
.ph-eyebrow::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.ph-head { font-weight: 560; letter-spacing: -.04em; line-height: 1.0; font-size: clamp(40px, 6vw, 86px); margin: 26px 0 0; color: var(--ink); }
.ph-head .strike { position: relative; color: var(--muted-2); }
.ph-head .strike::after { content:""; position:absolute; left:-2%; right:-2%; top:52%; height:4px; background: var(--red); border-radius:2px; transform: scaleX(0); transform-origin:left; transition: transform .8s var(--ease-out) .3s; }
.ph-head.in .strike::after { transform: scaleX(1); }
.ph-head .grad-text { display: inline-block; }
.ph-sub { font-size: clamp(18px,1.6vw,22px); color: var(--slate); max-width: 620px; margin: 32px 0 0; line-height: 1.55; }
.ph-rules { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 60px; }
@media (max-width: 880px){ .ph-rules{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 480px){ .ph-rules{ grid-template-columns: 1fr;} }
.ph-rule { padding: 24px 0 0; border-top: 1px solid var(--line); }
.ph-rule .pr-no { font-family: var(--mono); font-size: 12px; color: var(--blue); margin-bottom: 14px; }
.ph-rule .pr-t { font-size: 16px; font-weight: 560; letter-spacing: -.01em; color: var(--ink); }
.ph-rule .pr-d { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.ph-order { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; }
.ph-order .oi { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--slate); box-shadow: var(--shadow-sm); }
.ph-order .oi .on { font-family: var(--mono); color: var(--blue); font-size: 12px; }
.ph-order .arr { color: var(--muted-2); }

/* =====================================================
   BHARAT CAROUSEL (drag physics)
   ===================================================== */
.bharat { overflow: hidden; }
.carousel-wrap { overflow: hidden; cursor: none; }
.carousel { display: flex; gap: 22px; will-change: transform; user-select: none; padding: 6px 0 30px; }
.ccard { flex: 0 0 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ccard .cc-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; }
.ccard .cc-ic svg { width: 24px; height: 24px; }
.ccard h4 { font-size: 19px; font-weight: 560; letter-spacing: -.02em; margin-bottom: 10px; }
.ccard p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.ccard .cc-tag { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--blue); background: var(--blue-tint); padding: 4px 10px; border-radius: 7px; }
.carousel-hint { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px){ .ccard{ flex-basis: 270px; } .carousel-wrap{ cursor: grab; } }

/* =====================================================
   STATUS BAND (honest early-access)
   ===================================================== */
.status-band { border: 1px dashed var(--blue-300); background: var(--blue-tint-2); border-radius: var(--radius); padding: 26px 30px; display: flex; gap: 20px; align-items: flex-start; }
.status-band .sb-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); flex: none; }
.status-band .sb-t { font-size: 16px; font-weight: 580; letter-spacing: -.01em; margin-bottom: 5px; }
.status-band .sb-d { font-size: 14.5px; color: var(--slate); line-height: 1.55; max-width: 760px; }

/* hero parallax: image windowing helper */
.windowed { overflow: hidden; border-radius: var(--radius); }
.windowed img, .windowed .win-inner { transform: scale(1.12); will-change: transform; }

/* ---------- Bharat reach: 3D globe ---------- */
.globe-sec { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden;
  background: transparent; padding: 72px 0; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
/* desktop: globe sits on the RIGHT side, fully fit; copy gets the clean left half */
@media (min-width: 861px){ .globe-canvas { inset: 0 -1% 0 auto; width: 56%; } }
/* keep headline crisp if the globe drifts under the copy (white wash on the left) */
.globe-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 34%, rgba(255,255,255,0) 56%); }
.globe-inner { position: relative; z-index: 2; }
.globe-copy { max-width: 560px; color: var(--ink); }
.globe-sec .eyebrow { color: var(--blue); }
.globe-sec .eyebrow::before { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.globe-sec h2 { color: var(--ink); margin: 20px 0 18px; }
.globe-sec p { color: var(--slate); font-size: clamp(16px,1.4vw,20px); line-height: 1.6; max-width: 480px; }
.globe-stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.globe-stats .gn { font-size: 38px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.globe-stats .gl { font-size: 13px; color: var(--muted); margin-top: 5px; max-width: 130px; line-height: 1.4; }
@media (max-width: 860px) {
  .globe-shade { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,.9) 100%); }
  .globe-stats { gap: 28px; }
}

/* ---------- Built for Bharat: real hills image beside the intro ---------- */
.bharat-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bharat-intro .sec-head { max-width: none; }
.bharat-img { position: relative; }
.bharat-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.bharat-img::before { content:""; position:absolute; z-index:0; inset:-9% -6% -6% 9%;
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  background: radial-gradient(circle at 52% 42%, rgba(37,99,232,.16), transparent 70%); }
.bharat .carousel-wrap { margin-top: 52px; }
@media (max-width: 920px){ .bharat-intro { grid-template-columns: 1fr; gap: 28px; } .bharat-img img { height: 240px; } }
