/* Rucja Health: styles shared by every page */
body { font-family: 'Lexend', sans-serif; background: #fbf7fc; color: #3f3548; -webkit-font-smoothing: antialiased; }
.brand-btn { background: linear-gradient(90deg, #7b2c83, #ec4899); color: #fff; box-shadow: 0 6px 16px -6px rgba(123,44,131,.45); transition: opacity .2s; }
.brand-btn:hover { opacity: .92; }
.dark-plum-gradient { background: linear-gradient(135deg, #2e0e3a 0%, #4c1d5a 100%); }
.map-country { transition: fill .25s ease; }
.map-country:hover, .map-country.active { fill: #4c1d5a; }
.map-pin { cursor: pointer; transition: transform .2s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.map-pin:hover, .map-pin.active { transform: scale(1.25); }
.ms { font-family: 'Material Symbols Outlined'; font-weight: 300; font-style: normal; line-height: 1; font-size: 20px; display: inline-block; font-variation-settings: 'wght' 300, 'opsz' 20; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.phone { border-radius: 44px; background: #0d0c0e; padding: 10px; box-shadow: 0 40px 80px -30px rgba(21,19,22,.35), inset 0 0 0 2px #2a282c; }
.phone-screen { border-radius: 35px; overflow: hidden; position: relative; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0d0c0e; border-radius: 20px; z-index: 20; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 9999px; background: #10b981; display: inline-block; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 9999px; border: 1.5px solid #10b981; opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
h1, h2, h3 { text-wrap: balance; }
/* section labels: plain sentence case, no pill */
.kicker { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 19px; border-radius: 10px; background: #fff; border: 1px solid #ecdff1; box-shadow: 0 1px 3px rgba(46,14,58,.05); font-size: 14px; font-weight: 600; line-height: 1.35; color: #4c1d5a; overflow: hidden; text-align: left; }
.kicker::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #7b2c83; }
.kicker-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #f5c2e7; box-shadow: none; }
.kicker-dark::before { background: #ec4899; }

/* ---- Vitals animations ---- */
.vital-tile { transition: transform .3s ease, box-shadow .3s ease, opacity .8s ease; }
.vital-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(123,44,131,.28); }
@keyframes heartbeat { 0% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 60%, 100% { transform: scale(1); } }
.beat { animation: heartbeat 1.4s ease-in-out infinite; transform-origin: center; filter: drop-shadow(0 0 14px rgba(236,72,153,.55)); }
@keyframes heartRing { 0% { transform: scale(.75); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.heart-ring { animation: heartRing 2.8s cubic-bezier(.25,.6,.4,1) infinite; }
.heart-ring-2 { animation-delay: 1.4s; }
.ecg-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); }
@keyframes ecgScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ecg-track { animation: ecgScroll 7s linear infinite; }
@keyframes mercury { 0%, 100% { transform: scaleY(.66); } 50% { transform: scaleY(.74); } }
.mercury { transform-box: fill-box; transform-origin: 50% 100%; animation: mercury 6s ease-in-out infinite; }
.reveal:not(.in) .mercury { transform: scaleY(0); animation: none; }
.bp-arc { stroke-dasharray: 100; stroke-dashoffset: 100; }
.in .bp-arc { animation: bpArc 10s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes bpArc { 0% { stroke-dashoffset: 100; } 30%, 80% { stroke-dashoffset: 34; } 100% { stroke-dashoffset: 100; } }
.bp-needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); }
.in .bp-needle { animation: bpNeedle 10s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes bpNeedle { 0% { transform: rotate(-90deg); } 30%, 80% { transform: rotate(29deg); } 100% { transform: rotate(-90deg); } }
.spo2-ring { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s cubic-bezier(.2,.8,.2,1) .2s; }
.in .spo2-ring { stroke-dashoffset: 2; }
@keyframes o2 { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .45; } }
.o2-pulse { animation: o2 2.8s ease-in-out infinite; }
.glucose-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.in .glucose-line { animation: drawLine 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 100; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
.glucose-dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.in .glucose-dot { animation: gDot 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes gDot { 0%, 40% { opacity: 0; transform: scale(0); } 48% { opacity: 1; transform: scale(1.4); } 55%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.w-bar { flex: 1; height: var(--h); border-radius: 6px; background: #e7d6ee; transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.w-bar-now { background: linear-gradient(180deg, #ec4899, #7b2c83); }
.in .w-bar { transform: scaleY(1); }
.in .w-bar:nth-child(2) { transition-delay: .08s; } .in .w-bar:nth-child(3) { transition-delay: .16s; } .in .w-bar:nth-child(4) { transition-delay: .24s; }
.in .w-bar:nth-child(5) { transition-delay: .32s; } .in .w-bar:nth-child(6) { transition-delay: .40s; } .in .w-bar:nth-child(7) { transition-delay: .48s; }
/* new feed rows open up from zero height, so the rows below glide down instead of jumping */
.feed-item { margin-bottom: 8px; overflow: hidden; animation: feedIn .9s cubic-bezier(.22,.8,.3,1) both; }
@keyframes feedIn { from { opacity: 0; max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; } 60% { opacity: 0; } to { opacity: 1; max-height: 60px; } }

/* ---- How it works ---- */
.how-card { transition: transform .3s ease, box-shadow .3s ease, opacity .8s ease; }
.how-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(123,44,131,.28); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: #f4ecf6; color: #7b2c83; font-weight: 700; font-size: 14px; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-y { animation: floatY 4s ease-in-out infinite; }
@keyframes acceptPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(236,72,153,.45); } 50% { box-shadow: 0 0 0 7px rgba(236,72,153,0); } }
.accept-btn { animation: acceptPulse 2s ease-in-out infinite; }
@keyframes radar { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.radar { animation: radar 2s ease-out infinite; }
.pair-dev { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 9999px; background: #fff; border: 1.5px solid #ecdff1; color: #b3a7ba; display: grid; place-items: center; transform: rotate(var(--a)) translate(72px) rotate(calc(-1 * var(--a))); transition: all .4s ease; }
.pair-dev .ms { font-size: 19px; }
.pair-dev.on { border-color: #10b981; color: #7b2c83; box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.pair-dev.on::after { content: ''; position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border-radius: 9999px; background: #10b981; border: 2px solid #fff; }
.sync-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ecdff1; border-radius: 14px; padding: 10px 12px; font-size: 12.5px; color: #6b6275; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; box-shadow: 0 6px 16px -12px rgba(123,44,131,.35); }
.sync-row.show { opacity: 1; transform: none; }
.sync-check { width: 22px; height: 22px; border-radius: 9999px; background: #10b981; color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* ---- Care phone screens ---- */
.care-screen { opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .6s ease; pointer-events: none; }
.care-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.care-screen .notif, .care-screen .plan-row, .care-screen .chat-msg { opacity: 0; transform: translateY(12px); }
.care-screen.on .notif, .care-screen.on .plan-row, .care-screen.on .chat-msg { animation: popIn .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes popIn { to { opacity: 1; transform: none; } }
.report-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.care-screen.on .report-line { transition: stroke-dashoffset 1.4s ease .3s; stroke-dashoffset: 0; }
.vn { display: inline-block; width: 3px; height: var(--h); border-radius: 2px; background: rgba(255,255,255,.85); animation: vn 1s ease-in-out infinite alternate; }
.vn:nth-child(even) { animation-delay: .3s; }
@keyframes vn { to { transform: scaleY(.45); } }
.typing { width: 6px; height: 6px; border-radius: 9999px; background: #a447ac; animation: typing 1s ease-in-out infinite; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.acc-item .acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item .acc-body > div { overflow: hidden; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open { background: #fff; border-color: #e4e1e6; box-shadow: 0 1px 2px rgba(21,19,22,.04); }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.hairline { background-image: linear-gradient(#e4e1e6, #e4e1e6); background-size: 100% 1px; background-repeat: no-repeat; }
/* ---- Responsive safety ---- */
html, body { overflow-x: clip; }
section[id] { scroll-margin-top: 64px; }
img, svg, video { max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, dd, dt { overflow-wrap: anywhere; }

/* ---- Screenshot phones: slim bezel, height derived from the image ---- */
.phone-shot { padding: 6px; border-radius: 34px; box-shadow: 0 30px 62px -28px rgba(21,19,22,.35), inset 0 0 0 1.5px #2a282c; }
.phone-shot .phone-screen { border-radius: 29px; }
@media (max-width: 640px) {
  .phone-shot { padding: 5px; border-radius: 26px; }
  .phone-shot .phone-screen { border-radius: 22px; }
}

/* ---- ECG patch scroll reveal ---- */
.patch-scroll { height: 300vh; }
@media (max-width: 1023px) { .patch-scroll { height: 240vh; } }
.patch-3d { perspective: 1400px; width: min(80vw, 620px); }
@media (max-width: 1023px) { .patch-3d { width: min(84vw, 520px); } }
.patch-body { position: relative; transform-origin: 50% 50%; will-change: transform; }
.patch-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 40px rgba(46,14,58,.22)); }
/* a tinted glint, cut to the patch's own outline, that slides across as it turns */
.patch-sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  -webkit-mask: url(ecg-patch.png) center / 100% 100% no-repeat; mask: url(ecg-patch.png) center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 38%, rgba(164,71,172,.20) 46%, rgba(236,72,153,.16) 52%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: var(--sheen, 110%) 0; }
/* pulse rings from the heart button once the patch faces you */
.patch-ring { position: absolute; left: 50%; top: 50%; width: 33%; aspect-ratio: 1; margin: -16.5% 0 0 -16.5%; border-radius: 50%; border: 2px solid rgba(236,72,153,.55); opacity: 0; pointer-events: none; }
.patch-stage.live .patch-ring { animation: patchRing 2.6s cubic-bezier(.2,.6,.35,1) infinite; }
.patch-stage.live .patch-ring-2 { animation-delay: 1.3s; }
@keyframes patchRing { 0% { transform: scale(.92); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }
/* the ECG trace */
.patch-ecg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); filter: drop-shadow(0 0 6px rgba(236,72,153,.35)); }
.patch-ecg-base { stroke-dasharray: 100; stroke-dashoffset: var(--draw, 100); opacity: .55; }
.patch-ecg-blip { stroke-dasharray: 5 95; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 4px #ec4899); }
.patch-stage.live .patch-ecg-blip { opacity: .95; animation: ecgBlip 3.2s linear infinite; }
@keyframes ecgBlip { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.patch-rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.5); animation: recPulse 1.8s ease-out infinite; }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 100% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.patch-shadow { position: absolute; left: 50%; bottom: 6%; width: min(56vw, 440px); height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(46,14,58,.26), transparent); pointer-events: none; will-change: transform, opacity; }
.pt { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.pt.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .patch-scroll { height: auto; }
  .patch-stage { position: relative; top: 0; height: auto; min-height: 640px; }
  .pt { opacity: 1; transform: none; }
  .patch-ecg-base { stroke-dashoffset: 0; }
  .patch-ring, .patch-ecg-blip, .patch-rec-dot { animation: none !important; }
}

/* ---- Patient app coverflow ---- */
.cf-stage { --cfw: 190px; position: relative; height: calc(var(--cfw) * 2.2222 + 56px); perspective: 1500px; overflow: hidden; touch-action: pan-y; user-select: none; outline: none; }
@media (min-width: 640px)  { .cf-stage { --cfw: 220px; } }
@media (min-width: 1024px) { .cf-stage { --cfw: 240px; } }
@media (min-width: 1440px) { .cf-stage { --cfw: 256px; } }
.cf-stage:focus-visible { outline: 2px solid #7b2c83; outline-offset: -2px; border-radius: 24px; }
.cf-slide { position: absolute; left: 50%; top: 14px; width: var(--cfw); margin: 0 0 0 calc(var(--cfw) / -2); transform-style: preserve-3d; cursor: pointer;
  transition: transform .75s cubic-bezier(.22,.8,.28,1), opacity .55s ease; will-change: transform, opacity; }
.cf-slide.is-active { cursor: grab; }
.cf-slide .phone-screen::after { content: ""; position: absolute; inset: 0; background: rgba(250,246,251,.42); transition: opacity .55s ease; pointer-events: none; }
.cf-slide.is-active .phone-screen::after { opacity: 0; }
.cf-slide.is-active .phone-shot { box-shadow: 0 50px 80px -38px rgba(46,14,58,.55), inset 0 0 0 1.5px #2a282c; }
.cf-floor { position: absolute; left: 50%; bottom: 10px; width: calc(var(--cfw) * 1.5); height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(46,14,58,.22), transparent); pointer-events: none; }
.cf-caption { margin-top: 8px; transition: opacity .25s ease, transform .25s ease; }
.cf-caption.swap { opacity: 0; transform: translateY(6px); }
.cf-dot { width: 7px; height: 7px; border-radius: 999px; background: #dcc9e3; transition: width .35s ease, background-color .35s ease; }
.cf-dot.on { width: 24px; background: linear-gradient(90deg, #7b2c83, #ec4899); }
.app-tag { display: inline-block; font-size: 12px; font-weight: 600; color: #7b2c83; background: #fff; border: 1px solid #ecdff1; border-radius: 999px; padding: 4px 12px; }
.app-arrow { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid #ecdff1; color: #7b2c83; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.app-arrow:hover { background: #7b2c83; border-color: #7b2c83; color: #fff; }
@media (prefers-reduced-motion: reduce) { .cf-slide, .cf-caption { transition: none; } }

/* ---- 24/7 call ---- */
@keyframes callPing { 0% { transform: translate(-50%, -50%) scale(1); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; } }
.call-ping { animation: callPing 2.2s ease-out infinite; }

/* ---- Layout: full-bleed sections, uniform gutters ---- */
:root { --gutter: 100px; --stack: 60px; }
@media (max-width: 1440px) { :root { --gutter: 72px; } }
@media (max-width: 1280px) { :root { --gutter: 56px; --stack: 56px; } }
@media (max-width: 1024px) { :root { --gutter: 40px; --stack: 48px; } }
@media (max-width: 640px)  { :root { --gutter: 20px; --stack: 40px; } }
.sec   { padding: var(--stack) var(--gutter); }
.sec-t { padding: var(--stack) var(--gutter) 0; }
.sec-x { padding-left: var(--gutter); padding-right: var(--gutter); }
.ecg-track-slow { animation-duration: 18s; }

/* ---- Hero ---- */
.btn-plum { background: #7b2c83; color: #fff; box-shadow: 0 10px 24px -12px rgba(123,44,131,.55); transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.btn-plum:hover { background: #8e3d95; box-shadow: 0 14px 30px -12px rgba(123,44,131,.6); }
.btn-plum:active { transform: translateY(1px); }
.fade-x { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.75) 7%, rgba(255,255,255,.25) 16%, rgba(255,255,255,0) 26%); }
.fade-y { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.55) 6%, rgba(255,255,255,0) 16%), linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 7%); }
.hero-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #7b2c83; outline-offset: 3px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot::after, .beat, .heart-ring, .ecg-track, .mercury, .o2-pulse, .vn, .typing, .call-ping, .radar, .float-y { animation: none !important; }
}

/* ---- Blog cards and covers ---- */
.blog-card { background: #fff; border: 1px solid #ecdff1; border-radius: 28px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease, opacity .8s ease; }
.blog-card:hover { transform: translateY(-5px); border-color: #dcc3e6; box-shadow: 0 34px 60px -40px rgba(46,14,58,.5); }
.cover { position: relative; overflow: hidden; isolation: isolate; }
.cover-heart { background: linear-gradient(135deg, #2e0e3a, #5b1f68); color: #fff; }
.cover-glucose { background: linear-gradient(135deg, #f6eef8, #e9d8f1); color: #7b2c83; }
.cover-family { background: linear-gradient(135deg, #fdf0f6, #f8d8e9); color: #be185d; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.group:hover .cover-art { transform: scale(1.07); }
.cover-chip { position: absolute; left: 16px; top: 16px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #4c1d5a; }
.cover-icon { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.cover-icon .ms { font-size: 28px; }
.cover-glucose .cover-icon, .cover-family .cover-icon { background: rgba(255,255,255,.75); border-color: #fff; }
.group:hover .cover-icon { transform: translateY(-4px) rotate(-6deg); }
.go-btn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; border: 1px solid #ecdff1; color: #7b2c83; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.group:hover .go-btn { background: #7b2c83; border-color: #7b2c83; color: #fff; transform: rotate(45deg); }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid #ecdff1; background: #fff; font-size: 14px; color: #6b6275; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: #dcc3e6; color: #2e0e3a; }
.chip.on { background: #7b2c83; border-color: #7b2c83; color: #fff; }

/* ---- Reading pages (blog + articles): centred width ---- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px)  { .wrap { padding-inline: 32px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 48px; } }

/* more cover colours */
.cover-bp { background: linear-gradient(135deg, #eefaf5, #d6efe4); color: #047857; }
.cover-patch { background: linear-gradient(135deg, #3a1449, #7b2c83); color: #fff; }
.cover-labs { background: linear-gradient(135deg, #fff8ee, #fde6cc); color: #b45309; }
.cover-bp .cover-icon, .cover-labs .cover-icon { background: rgba(255,255,255,.75); border-color: #fff; }
.cover-patch-art { display: grid; place-items: center; background: radial-gradient(closest-side at 50% 50%, rgba(236,72,153,.32), transparent 72%); }
.cover-patch-art img { width: 74%; max-width: 460px; transform: rotate(-8deg); filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }

/* ---- Blog page ---- */
.blog-hero { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 50% 0%, #f5e8f8 0%, #fff 72%); border-bottom: 1px solid #ecdff1; }
.blog-hero-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.blog-search { display: flex; align-items: center; gap: 12px; max-width: 560px; height: 58px; margin-inline: auto; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid #e4d3ea; box-shadow: 0 18px 40px -26px rgba(46,14,58,.4); transition: border-color .2s ease, box-shadow .2s ease; }
.blog-search:focus-within { border-color: #7b2c83; box-shadow: 0 0 0 4px rgba(123,44,131,.1), 0 18px 40px -26px rgba(46,14,58,.4); }
.blog-search .ms { font-size: 22px; color: #7b2c83; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: #2e0e3a; }
.blog-search input::placeholder { color: #a497ad; }
.blog-search input::-webkit-search-cancel-button { cursor: pointer; }

.post-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { background: #fff; border: 1px solid #ecdff1; border-radius: 28px; padding: 10px; transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease, opacity .8s ease; }
.post-card:hover { transform: translateY(-5px); border-color: #dcc3e6; box-shadow: 0 34px 60px -40px rgba(46,14,58,.5); }
.post-link { display: flex; flex-direction: column; height: 100%; }
.post-cover { height: 190px; flex-shrink: 0; border-radius: 20px; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 10px; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b6275; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c9b6d2; }
.post-card h3 { margin-top: 10px; font-size: 19px; font-weight: 600; line-height: 1.3; color: #2e0e3a; transition: color .2s ease; }
.post-card:hover h3 { color: #7b2c83; }
.post-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #6b6275; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.post-author { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #3f3548; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(45deg, #7b2c83, #ec4899); }
/* the lead article is a 2x2 tile in the mosaic; filtering flattens the grid */
@media (min-width: 1024px) {
  .post-grid:not(.flat) .is-lead { grid-column: span 2; grid-row: span 2; }
  .post-grid:not(.flat) .is-lead .post-cover { flex: 1; height: auto; min-height: 320px; }
  .post-grid:not(.flat) .is-lead .post-body { flex: 0 0 auto; padding: 26px 18px 14px; }
  .post-grid:not(.flat) .is-lead h3 { font-size: 34px; font-weight: 700; line-height: 1.14; letter-spacing: -.015em; max-width: 22ch; }
  .post-grid:not(.flat) .is-lead p { font-size: 16.5px; max-width: 60ch; }
  .post-grid:not(.flat) .is-lead .post-foot { padding-top: 22px; }
}

/* ---- Article pages ---- */
.read-progress { position: fixed; left: 0; top: 64px; z-index: 49; width: 100%; height: 3px; background: linear-gradient(90deg, #7b2c83, #ec4899); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.post-hero { color: #2e0e3a; }
.post-hero.is-dark { color: #fff; }
.post-hero .cover-art { left: auto; right: 0; width: 40%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
/* below 1280px there is no room beside the title, so the art sits faintly behind it */
@media (max-width: 1279px) { .post-hero .cover-art { width: 100%; opacity: .18; -webkit-mask-image: none; mask-image: none; } }
.post-crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; opacity: .78; }
.post-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-crumb .ms { font-size: 16px; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #4c1d5a; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); }
.hero-chip .ms { font-size: 18px; }
.is-dark .hero-chip { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.post-dek { opacity: .78; }
.hero-copied { font-size: 12.5px; font-weight: 500; }
.share-btn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid #ecdff1; color: #7b2c83; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.share-btn:hover { background: #7b2c83; border-color: #7b2c83; color: #fff; }

.sheet { display: grid; gap: 40px; padding: 26px 20px 32px; background: #fff; border: 1px solid #ecdff1; border-radius: 32px; box-shadow: 0 40px 80px -60px rgba(46,14,58,.5); }
@media (min-width: 640px)  { .sheet { padding: 40px; } }
@media (min-width: 1024px) { .sheet { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 56px 64px 56px 44px; } }
.rail { display: none; }
@media (min-width: 1024px) { .rail { display: block; } }
.rail-in { position: sticky; top: 96px; }
.rail-title { font-size: 13px; font-weight: 600; color: #2e0e3a; }
.rail-cta { margin-top: 28px; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #2e0e3a, #5b1f68); }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid #ecdff1; font-size: 14px; line-height: 1.4; color: #6b6275; transition: color .2s ease, border-color .2s ease; }
.toc a:hover { color: #2e0e3a; }
.toc a.on { border-color: #7b2c83; color: #2e0e3a; font-weight: 500; }

.prose-r { max-width: 760px; color: #3f3548; font-size: 18px; line-height: 1.8; }
.prose-r > * + * { margin-top: 1.15em; }
.prose-r .lead { font-size: 21px; line-height: 1.65; color: #2e0e3a; }
.prose-r h2 { margin-top: 2em; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #2e0e3a; scroll-margin-top: 96px; }
.prose-r h2 + p { margin-top: .6em; }
.prose-r ul { list-style: none; padding: 0; }
.prose-r ul li { position: relative; padding-left: 28px; }
.prose-r ul li + li { margin-top: .55em; }
.prose-r ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #7b2c83, #ec4899); }
.prose-r strong { color: #2e0e3a; font-weight: 600; }
.prose-r a { color: #7b2c83; text-decoration: underline; text-underline-offset: 3px; }
.takeaways { padding: 22px 24px; border-radius: 22px; background: #faf5fc; border: 1px solid #ecdff1; }
.takeaways-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #2e0e3a; }
.takeaways-title .ms { font-size: 20px; color: #ec4899; }
.takeaways ul { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.info-grid { display: grid; gap: 14px; margin-top: 1.4em; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-card { padding: 22px; border-radius: 22px; background: #fbf7fc; border: 1px solid #ecdff1; }
.info-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid #ecdff1; color: #7b2c83; }
.info-ico .ms { font-size: 22px; }
.info-card h3 { margin-top: 14px; font-size: 17px; font-weight: 600; line-height: 1.3; color: #2e0e3a; }
.info-card p { margin-top: 6px; font-size: 15.5px; line-height: 1.65; color: #6b6275; }
.steps { display: grid; gap: 12px; margin-top: 1.4em; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 20px; background: #fbf7fc; border: 1px solid #ecdff1; counter-increment: step; }
.steps li::before { content: counter(step); width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #7b2c83, #ec4899); }
.steps strong { display: block; font-size: 16.5px; line-height: 1.4; }
.steps li span { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.6; color: #6b6275; }
.callout { display: flex; align-items: flex-start; gap: 14px; margin-top: 1.6em; padding: 18px 22px; border-radius: 20px; background: #f6eff8; border: 1px solid #ecdff1; font-size: 16px; line-height: 1.7; }
.callout > .ms { flex-shrink: 0; margin-top: 3px; font-size: 22px; color: #7b2c83; }
.callout-alert { background: #fdf0f6; border-color: #f9cfe3; }
.callout-alert > .ms { color: #be185d; }
@media (max-width: 640px) { .prose-r { font-size: 16.5px; } .prose-r .lead { font-size: 18.5px; } .prose-r h2 { font-size: 24px; } }
.author-box { display: flex; align-items: flex-start; gap: 18px; max-width: 760px; margin-top: 48px; padding: 24px; border-radius: 24px; background: #faf5fc; border: 1px solid #ecdff1; }
.post-nav { display: grid; gap: 14px; max-width: 760px; margin-top: 16px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav-link { display: block; padding: 18px 20px; border-radius: 20px; border: 1px solid #ecdff1; transition: border-color .2s ease, background-color .2s ease; }
.post-nav-link:hover { border-color: #7b2c83; background: #fbf7fc; }
.post-nav-dir { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #7b2c83; }
.post-nav-dir .ms { font-size: 17px; }
.post-nav-title { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: #2e0e3a; }
/* ---- Contact page ---- */
.contact-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid #ecdff1; transition: border-color .25s ease, box-shadow .25s ease; }
a.contact-card:hover { border-color: #dcc3e6; box-shadow: 0 20px 40px -30px rgba(46,14,58,.45); }
.contact-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; background: #f4ecf6; color: #7b2c83; }
.topic { cursor: pointer; display: block; }
.topic > span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid #ecdff1; background: #fbf7fc; font-size: 14px; color: #6b6275; transition: all .2s ease; }
.topic > span .ms { font-size: 20px; color: #a08aab; transition: color .2s ease; }
.topic input:checked + span { background: #fff; border-color: #7b2c83; color: #2e0e3a; font-weight: 500; box-shadow: 0 0 0 3px rgba(123,44,131,.1); }
.topic input:checked + span .ms { color: #7b2c83; }
.topic input:focus-visible + span { outline: 2px solid #7b2c83; outline-offset: 2px; }

/* ---- Section headings: one line from laptop width up, descriptions held to two lines ---- */
@media (min-width: 1024px) {
  .title-1 { white-space: nowrap; font-size: clamp(30px, 3.05vw, 44px); }
  .title-1.in-col { font-size: clamp(22px, 2.4vw, 36px); }
}
.desc-2 { max-width: 780px; margin-inline: auto; text-wrap: balance; }

/* ---- Hero: live vitals boxes on the photo ---- */
.hcard { padding: 15px 17px; border-radius: 22px; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(123,44,131,.06), 0 26px 50px -30px rgba(46,14,58,.5); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); animation: hcardIn .9s cubic-bezier(.2,.8,.3,1) var(--d, 0s) both; }
.hcard-sm { padding: 11px 14px; border-radius: 18px; }
@keyframes hcardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.hcard-heart { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #a447ac, #6b1f7a); box-shadow: 0 0 0 5px rgba(164,71,172,.14); }
.hcard-heart .beat { filter: none; }
.hcard-lungs { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #f1e7f5; color: #6b1f7a; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
.hpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1e7f5; font-size: 11.5px; font-weight: 600; color: #4c1d5a; white-space: nowrap; }
.hbars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.hbars i { width: 4px; height: var(--h); border-radius: 2px; background: linear-gradient(#c79bd0, #7b2c83); transform-origin: 50% 100%; animation: hbar 1.6s ease-in-out var(--t) infinite; }
@keyframes hbar { 0%, 100% { transform: scaleY(.45); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
.ecg-grid { border-radius: 12px; background-color: rgba(250,246,251,.9); background-image: linear-gradient(rgba(123,44,131,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(123,44,131,.09) 1px, transparent 1px); background-size: 15px 15px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero-ecg-track { animation: ecgScroll 5.5s linear infinite; }
.resp-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.resp-track { animation: ecgScroll 4s linear infinite; }
@media (min-width: 1280px) {
  .xl\:float-b { animation: floatY 5s ease-in-out -1.2s infinite; }
  .xl\:float-c { animation: floatY 6s ease-in-out -2.6s infinite; }
}
/* connector line */
.hero-link { opacity: 0; transition: opacity .8s ease .5s; }
.hero-link.ready { opacity: 1; }
.hl-glow { stroke: #c084fc; stroke-width: 7; stroke-linecap: round; opacity: .35; filter: blur(5px); }
.hl-line { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 5 7; animation: hlFlow 1.1s linear infinite; }
@keyframes hlFlow { to { stroke-dashoffset: -12; } }
.hl-node, .hl-end { fill: #fff; stroke: #c084fc; stroke-width: 2; filter: drop-shadow(0 0 6px #c084fc); }
.hl-dot { fill: #fff; filter: drop-shadow(0 0 7px #e879f9) drop-shadow(0 0 3px #fff); }
.hl-ping { fill: none; stroke: #e9d5ff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: hlPing 2.2s ease-out infinite; }
@keyframes hlPing { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hcard, .hcard-lungs, .hbars i, .hero-ecg-track, .resp-track, .hl-line, .hl-ping, .xl\:float-b, .xl\:float-c { animation: none !important; }
  .hl-dot { display: none; }
}

/* ---- Logo ---- */
.site-logo { display: block; height: 44px; width: auto; }
footer .site-logo { height: 52px; }
@media (max-width: 639px) {
  .site-logo { height: 32px; }
  footer .site-logo { height: 44px; }
}

/* ---- Ask Ruchika: live voice screen ---- */
.rv-bg { position: absolute; inset: 0; background: radial-gradient(70% 38% at 50% 30%, #4a1787 0%, #2a0d52 38%, #13072a 72%, #0c0518 100%); }
.rv-avatar { position: relative; width: 112px; height: 112px; padding: 4px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 0 44px 8px rgba(168,85,247,.42); animation: rvGlow 3s ease-in-out infinite; }
.rv-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes rvGlow { 0%, 100% { box-shadow: 0 0 36px 4px rgba(168,85,247,.34); } 50% { box-shadow: 0 0 56px 14px rgba(168,85,247,.55); } }
.rv-wave { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(216,180,254,.7); opacity: 0; pointer-events: none; }
.rv.speaking .rv-wave { animation: rvWave 1.8s ease-out infinite; }
.rv.speaking .rv-wave-2 { animation-delay: .9s; }
@keyframes rvWave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
#rv-chat { display: flex; flex-direction: column; gap: 9px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22px); mask-image: linear-gradient(180deg, transparent, #000 22px); }
.rv-msg { max-width: 90%; align-self: flex-start; padding: 9px 13px; border-radius: 16px; background: rgba(255,255,255,.1); animation: rvIn .35s ease both; }
.rv-msg small { display: block; margin-bottom: 1px; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.55); }
.rv-you { align-self: flex-end; background: #7c3aed; border-bottom-right-radius: 5px; }
.rv-you small { color: rgba(255,255,255,.7); }
@keyframes rvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rv-mic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); transition: background-color .3s ease, box-shadow .3s ease; }
.rv.listening .rv-mic { background: rgba(124,58,237,.9); animation: rvMic 1.4s ease-out infinite; }
@keyframes rvMic { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.6); } 100% { box-shadow: 0 0 0 14px rgba(167,139,250,0); } }
.rv-end { display: grid; place-items: center; height: 54px; padding: 0 26px; border-radius: 999px; background: #ef4444; font-size: 15px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .rv-avatar, .rv-wave, .rv-mic, .rv-msg { animation: none !important; } }

/* ---- Chat with Ruchika: text chat screen ---- */
.rc { background: #f4f1f9; }
#rc-chat { display: flex; flex-direction: column; gap: 9px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18px); mask-image: linear-gradient(180deg, transparent, #000 18px); }
.rc-msg { max-width: 88%; align-self: flex-start; padding: 10px 14px; border-radius: 18px; background: #fff; color: #2e0e3a; box-shadow: 0 10px 20px -14px rgba(46,14,58,.3); animation: rvIn .35s ease both; }
.rc-you { align-self: flex-end; background: #7c3aed; color: #fff; border-bottom-right-radius: 6px; box-shadow: none; }
.rc-dots { display: flex; gap: 4px; padding: 14px 15px; }
.rc-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 12px 26px -16px rgba(46,14,58,.35); }
.rc-typed { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12.5px; color: #2e0e3a; }
.rc-typed:empty::before { content: attr(data-ph); color: #a497ad; }
.rc-typed.on::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #7c3aed; animation: rcCaret .9s steps(1) infinite; }
@keyframes rcCaret { 50% { opacity: 0; } }
.rc-send { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #7c3aed; color: #fff; transition: transform .15s ease; }
.rc-send.tap { transform: scale(.86); }
@media (prefers-reduced-motion: reduce) { .rc-msg, .rc-typed.on::after { animation: none !important; } }

