/* MediGuard marketing site — shared styles.
   Committed deep-teal identity mirroring the app (cyan glow on dark teal). */

:root {
  --brand-deep: #0B6E7D;
  --brand: #0E9AA6;
  --brand-bright: #34D6E4;
  --abyss: #061c21;
  --teal-bg: #08272D;
  --teal-panel: #0c343c;

  --ink: #0F2A30;
  --muted: #47646c;
  --line: #dce9ea;
  --bg: #f3fafb;
  --surface: #ffffff;

  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-2: rgba(255, 255, 255, 0.7);
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --danger: #DC4C4C;
  --warn: #F2A93B;
  --success: #4ABE7E;

  --grad: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, var(--brand-bright));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;

  --z-header: 100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
a { color: var(--brand-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(14,154,166,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(52,214,228,.75); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }

/* App-store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; background: #0a1214; color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 13px; padding: 10px 18px;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s; }
.store-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); box-shadow: 0 14px 30px -16px rgba(0,0,0,.7); }
.store-btn svg { width: 23px; height: 23px; flex: none; }

/* "Coming soon" store badge — a <span>, so it is not clickable at all. The
   muted styling is what tells the user it is not a live link yet. */
.store-btn--soon { opacity: .55; cursor: default; }
.store-btn--soon:hover { transform: none; border-color: rgba(255,255,255,.18); box-shadow: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.store-btn small { font-size: 10px; letter-spacing: .02em; opacity: .82; font-weight: 500; }
.store-btn strong { font-size: 16px; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -0.01em; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: var(--z-header); backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(6, 28, 33, 0.72); border-bottom: 1px solid var(--on-dark-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--on-dark); letter-spacing: -0.01em; }
.brand-lockup img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--on-dark-2); font-weight: 600; font-size: 0.96rem; transition: color .15s; }
.nav a:hover { color: var(--on-dark); }
.nav .btn { padding: 9px 18px; font-size: 0.92rem; }
.nav-toggle { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; background: radial-gradient(1200px 700px at 15% -10%, #0e3a43 0%, var(--teal-bg) 45%, var(--abyss) 100%); color: var(--on-dark); overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; opacity: .5; }
.orb-1 { width: 520px; height: 520px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(52,214,228,.5), transparent 62%); animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; bottom: -240px; left: -140px; background: radial-gradient(circle, rgba(14,154,166,.45), transparent 62%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(52,214,228,.12); border: 1px solid rgba(52,214,228,.28); color: #a9ecf3; font-weight: 600; font-size: 0.85rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin: 20px 0 0; color: #fff; }
.hero h1 .accent { color: var(--brand-bright); }
.hero-sub { color: var(--on-dark-2); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 34ch; margin: 20px 0 30px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-web { display: inline-flex; align-items: center; gap: 9px; font-size: 1.02rem; padding: 14px 22px; }
.hero-webnote { color: var(--on-dark-2); font-size: 0.92rem; margin: 16px 0 10px; }
.hero-trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--on-dark-2); font-size: 0.9rem; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); }

/* Phone mock (product imagery, app's real UI language) */
.phone { justify-self: center; width: 300px; max-width: 78vw; aspect-ratio: 300 / 610; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #123f47, #0a2c33); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14); position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; border-radius: 999px; background: #06181c; z-index: 3; }
.screen { height: 100%; border-radius: 32px; background: radial-gradient(600px 340px at 20% 0%, #0e3a43, #072025 70%); overflow: hidden; padding: 40px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.m-greet { color: var(--on-dark-2); font-size: 12px; }
.m-name { color: #fff; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.m-hero { background: var(--grad); border-radius: 16px; padding: 14px; color: #fff; box-shadow: 0 12px 24px -12px rgba(52,214,228,.6); }
.m-hero .lbl { font-size: 10px; opacity: .85; font-weight: 700; letter-spacing: .3px; }
.m-hero .big { font-size: 19px; font-weight: 800; margin-top: 3px; }
.m-hero .meds { font-size: 11px; opacity: .9; margin-top: 4px; }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px; }
.m-tile .k { color: #fff; font-weight: 800; font-size: 18px; }
.m-tile .v { color: var(--on-dark-2); font-size: 11px; margin-top: 2px; }
.m-scan { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; color: #fff; font-weight: 700; font-size: 13px; }
.m-flag { display: flex; align-items: center; gap: 8px; background: rgba(74,190,126,.14); border: 1px solid rgba(74,190,126,.3); color: #c7f0d8; border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.m-flagcyan { background: rgba(52,214,228,.12); border-color: rgba(52,214,228,.3); color: #bfeef4; }

/* Phone carousel */
.pslides { position: relative; flex: 1; }
.pslide { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateX(10px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.pslide .m-flag { margin-top: auto; }
.pslide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pdots { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
.pdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); transition: width .3s, background .3s, border-radius .3s; }
.pdot.is-active { width: 16px; border-radius: 3px; background: var(--brand-bright); }

/* Scan + trend slide bits */
.m-pill { width: 60px; height: 60px; border-radius: 50%; align-self: center; margin: 6px 0 2px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: rgba(52,214,228,.14); border: 1px solid rgba(52,214,228,.3); }
.m-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.m-lbl { font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--on-dark-2); }
.m-big { font-size: 18px; font-weight: 800; color: #fff; margin-top: 3px; }
.m-sub { font-size: 11px; color: var(--on-dark-2); margin-top: 3px; }
.m-trendhead { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.m-down { color: #4ABE7E; font-size: 11px; font-weight: 700; }
.m-spark { width: 100%; height: 52px; margin: 10px 0 2px; }
.m-trendfoot { display: flex; justify-content: space-between; color: var(--on-dark-2); font-size: 10px; }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; }

/* Features — deliberately varied (bento), not an identical grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(15,42,48,.02); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(11,110,125,.4); }
.feature.wide { grid-column: span 4; }
.feature.mid { grid-column: span 3; }
.feature.third { grid-column: span 2; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(14,154,166,.12); color: var(--brand-deep); margin-bottom: 16px; }
.feature h3 { font-size: 1.28rem; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 1rem; }
.feature.spotlight { background: radial-gradient(700px 300px at 100% 0%, #0e3a43, var(--teal-bg)); color: var(--on-dark); border-color: transparent; grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.feature.spotlight h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.feature.spotlight p { color: var(--on-dark-2); font-size: 1.05rem; }
.feature.spotlight .ic { background: rgba(52,214,228,.16); color: var(--brand-bright); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 0.82rem; font-weight: 600; color: #bfeef4; background: rgba(52,214,228,.12); border: 1px solid rgba(52,214,228,.22); padding: 5px 11px; border-radius: 999px; }

/* How it works — a genuine ordered sequence (numbers earn their place) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); margin-bottom: 16px; }
.step h3 { font-size: 1.24rem; }
.step p { color: var(--muted); margin-top: 8px; }

/* Safety strip */
.safety { background: var(--teal-bg); color: var(--on-dark); }
.safety .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.safety h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.safety p { color: var(--on-dark-2); margin-top: 14px; font-size: 1.08rem; }
.safety-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.safety-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.safety-list .ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(74,190,126,.16); color: #bdf0d3; }

/* CTA */
.cta { text-align: center; }
.cta .panel { background: var(--grad); border-radius: 28px; padding: clamp(40px, 7vw, 72px) 24px; color: #fff; position: relative; overflow: hidden; }
.cta .panel::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 62%); top: -160px; right: -80px; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.92); max-width: 48ch; margin: 16px auto 28px; font-size: 1.12rem; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--abyss); color: var(--on-dark-2); padding: 56px 0 32px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand-lockup { margin-bottom: 12px; }
.site-footer .about { max-width: 34ch; font-size: 0.95rem; }
.site-footer h4 { color: var(--on-dark); font-size: 0.9rem; margin: 0 0 12px; font-family: "Hanken Grotesk", sans-serif; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-2); font-size: 0.95rem; }
.site-footer a:hover { color: var(--on-dark); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.disclaimer { color: rgba(255,255,255,.5); font-size: 0.82rem; margin-top: 8px; max-width: 70ch; }

/* ── Legal / prose pages ─────────────────────────────────────────────── */
.page-hero { background: radial-gradient(900px 400px at 20% -30%, #0e3a43, var(--teal-bg) 60%, var(--abyss)); color: var(--on-dark); padding: 72px 0 54px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.page-hero p { color: var(--on-dark-2); margin-top: 12px; }
.prose { padding: 56px 0 80px; }
.prose .wrap { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 10px; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 24px 0 6px; font-family: "Hanken Grotesk", sans-serif; font-weight: 700; }
.prose p, .prose li { color: #24424a; font-size: 1.05rem; }
.prose ul { padding-left: 20px; display: grid; gap: 7px; }
.prose .lead { font-size: 1.18rem; color: var(--ink); }
.callout { background: #eef8f9; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; }
.callout strong { color: var(--brand-deep); }
.faq { display: grid; gap: 12px; margin-top: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.contact-card { background: radial-gradient(600px 260px at 100% 0%, #0e3a43, var(--teal-bg)); color: var(--on-dark); border-radius: var(--radius); padding: 32px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-card h3 { color: #fff; font-size: 1.4rem; }
.contact-card p { color: var(--on-dark-2); margin-top: 6px; }

/* ── Reveal motion (JS-gated so content shows by default without JS) ──── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .phone { order: -1; margin-bottom: 8px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature.wide, .feature.mid, .feature.third, .feature.spotlight { grid-column: span 2; }
  .feature.spotlight { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .safety .wrap { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a:not(.btn) { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .feature.wide, .feature.mid, .feature.third, .feature.spotlight { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .feature { transition: none; }
}

/* ── Real app screenshots ─────────────────────────────────────────── */
.hero-shot { justify-self: center; }
.hero-shot img {
  width: 300px; max-width: 78vw; height: auto; display: block;
  border-radius: 44px; border: 7px solid #0a2228; background: #0a2228;
  box-shadow: 0 34px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(52,214,228,.14);
}

/* Two-phone hero: patient (front) + provider (angled behind) */
.hero-devices {
  position: relative; justify-self: center; align-self: center;
  width: 100%; min-height: 640px; display: flex; align-items: center; justify-content: center;
}
.device { position: absolute; }
.device img {
  display: block; height: auto; background: #0a2228;
  border: 7px solid #0a2228; border-radius: 42px;
}
.dev-patient {
  z-index: 3; transform: rotate(-4deg);
  animation: floatA 7s ease-in-out infinite;
}
.dev-patient img {
  width: 268px; max-width: 66vw;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(52,214,228,.18);
}
.dev-provider {
  z-index: 1; transform: translate(124px, -58px) rotate(7deg) scale(.85);
  opacity: .98; animation: floatB 8s ease-in-out infinite;
}
.dev-provider img {
  width: 236px; max-width: 58vw;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.dev-tag {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; color: #eafcff; white-space: nowrap;
  background: rgba(10,34,40,.82); border: 1px solid rgba(52,214,228,.35);
  backdrop-filter: blur(6px);
}
.dev-provider .dev-tag { left: auto; right: 14px; bottom: 74px; transform: none; }
.hero-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #eafcff; background: rgba(11,45,54,.82);
  border: 1px solid rgba(52,214,228,.30);
  box-shadow: 0 12px 30px rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 10px var(--brand-bright); }
.chip-1 { top: 8%; left: -2%; animation: chipFloat 6.5s ease-in-out infinite; }
.chip-2 { top: 46%; right: -4%; animation: chipFloat 7.5s ease-in-out infinite .4s; }
.chip-3 { bottom: 9%; left: 4%; animation: chipFloat 8.5s ease-in-out infinite .8s; }
@keyframes chipFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
@keyframes floatA { 0%,100%{ transform: rotate(-4deg) translateY(0);} 50%{ transform: rotate(-4deg) translateY(-12px);} }
@keyframes floatB { 0%,100%{ transform: translate(124px,-58px) rotate(7deg) scale(.85);} 50%{ transform: translate(124px,-70px) rotate(7deg) scale(.85);} }
@media (prefers-reduced-motion: reduce){ .dev-patient,.dev-provider,.hero-chip{ animation: none; } }
@media (max-width: 900px){
  .hero-devices { min-height: 560px; }
  .dev-provider { transform: translate(70px,-40px) rotate(7deg) scale(.86); }
  @keyframes floatB { 0%,100%{ transform: translate(70px,-40px) rotate(7deg) scale(.86);} 50%{ transform: translate(70px,-52px) rotate(7deg) scale(.86);} }
}
@media (max-width: 560px){
  .hero-chip { display: none; }
  .hero-devices { min-height: 500px; }
  .dev-patient img { width: 230px; }
  .dev-provider { transform: translate(58px,-34px) rotate(7deg) scale(.82); }
}
#screens { text-align: center; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 40px auto 0; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; max-width: 262px; height: auto; display: block; margin: 0 auto;
  border-radius: 38px; border: 6px solid #0a2228; background: #0a2228;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 16px; font-weight: 600; }
@media (max-width: 760px){ .shots { grid-template-columns: 1fr; gap: 34px; } }
.disclaimer.legal { font-size: 12px; opacity: .62; margin-top: 8px; }


/* ── Modern nav (standardised across pages) ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 28, 33, 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: auto; min-height: 66px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  position: relative; color: rgba(255,255,255,.72);
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 9px 14px; border-radius: 999px;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
/* Current page: subtle pill + underline dot, not just colour (a11y) */
.nav a[aria-current="page"] { color: #fff; background: rgba(52,214,228,.14); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--brand-bright);
}
/* The app CTA always stands apart from the text links */
.nav .nav-cta,
.nav a.btn.btn-primary {
  color: #fff; margin-left: 6px; padding: 10px 18px;
  font-weight: 700; font-size: .93rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--grad); color: #fff; transform: translateY(-1px); }
.nav .nav-cta[aria-current="page"]::after { display: none; }

/* Small screens: wrap onto a second row and centre — never hide links. */
@media (max-width: 860px) {
  .site-header .wrap { justify-content: center; height: auto; padding-top: 10px; padding-bottom: 12px; }
  .nav { justify-content: center; gap: 2px; width: 100%; }
  .nav a { padding: 8px 11px; font-size: .9rem; }
  .nav .nav-cta { width: auto; margin-top: 4px; }
}
@media (max-width: 860px) {
  /* Links share a wrapping row; the CTA always gets its own centred row so it
     can never push the links off-screen. */
  .nav { flex-wrap: wrap !important; row-gap: 2px; max-width: 100%; }
  .nav a { flex: 0 0 auto; }
  /* CTA always gets its own centred row so it can't push links off-screen. */
  .nav .nav-cta { flex: 1 0 100%; margin: 8px 0 0; justify-content: center; max-width: 100%; }
  .site-header .wrap { max-width: 100%; overflow-x: hidden; }
}
@media (max-width: 520px) {
  .site-header .wrap { padding-left: 12px; padding-right: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: .78rem; }
  .nav .nav-cta { padding: 10px 16px; font-size: .9rem; }
}


/* ── MediGuard Clip (How it works) ──────────────────────────────────── */
.clip-block { margin-top: 8px; }
.clip-shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px; max-width: 720px; margin: 28px auto 8px;
}
.clip-shots figure { margin: 0; text-align: center; }
.clip-shots img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.6);
}
.clip-shots figcaption {
  color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 12px;
}
.clip-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 34px;
}
.clip-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.clip-step .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.clip-step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.clip-step p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.55; }
.clip-note {
  color: var(--muted); font-size: .9rem; text-align: center;
  margin-top: 22px; font-style: italic;
}
@media (max-width: 620px) {
  .clip-shots { grid-template-columns: 1fr; gap: 18px; }
}
