:root {
  color-scheme: light;
  --teal: #079ead;
  --teal-dark: #087e8b;
  --navy: #12365b;
  --muted: #637d97;
  --line: #dceaf0;
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Segoe UI", sans-serif;
  color: var(--navy);
  background: #f8fcfd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.download-page { min-width: 320px; min-height: 100vh; margin: 0; background: #f8fcfd; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; top: -60px; left: 14px; z-index: 10; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }
.download-header { position: relative; z-index: 4; height: 86px; border-bottom: 1px solid #e3edf1; background: rgba(255,255,255,.97); }
.header-inner { width: min(1460px,calc(100% - 64px)); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; margin: 0 auto; }
.brand { width: 220px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; display: block; }
.main-nav { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(15px,2vw,32px); }
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; color: #183f67; font-size: 13px; font-weight: 750; white-space: nowrap; }
.main-nav a:hover,.main-nav a:focus-visible { color: var(--teal-dark); }
.main-nav a.active { color: var(--teal-dark); }
.main-nav a.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--teal); content: ""; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.language-label,.header-login,.header-download { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #15466f; font-size: 13px; font-weight: 750; white-space: nowrap; }
.language-label { color: #375b7c; }
.header-login { border-color: var(--teal); color: var(--teal-dark); }
.header-download { border-color: var(--teal); color: #fff; background: var(--teal); }
.header-download:hover,.download-button:hover { background: #078b98; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 44px; height: 44px; display: grid; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 20px; height: 2px; background: var(--navy); }
.mobile-menu nav { position: absolute; top: 52px; right: 0; width: min(290px,calc(100vw - 32px)); display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 15px 40px rgba(18,54,91,.14); }
.mobile-menu nav a { min-height: 44px; display: flex; align-items: center; padding: 8px 11px; border-radius: 8px; color: var(--navy); font-size: 14px; }
.mobile-menu nav a:hover { background: #edf9fa; }
.app-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(105deg,#f4fcfd 0%,#f4fcfd 49%,#e9f8fa 100%); }
.app-hero::before { position: absolute; z-index: -1; right: -25px; bottom: -85px; width: min(72%,1040px); height: 410px; border-radius: 50% 0 0 0; background: url("/medigate-public/assets/hero-healthcare.png") center 48% / cover no-repeat; opacity: .17; content: ""; }
.hero-inner { width: min(1420px,calc(100% - 72px)); min-height: 624px; display: grid; grid-template-columns: minmax(0,1.07fr) minmax(440px,.93fr); align-items: center; gap: 30px; margin: 0 auto; }
.hero-copy { position: relative; z-index: 1; padding: 42px 0 45px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 31px; padding: 3px 13px; border-radius: 999px; color: #078b97; background: #daf4f5; font-size: 14px; font-weight: 800; }
.hero-copy h1 { max-width: 690px; margin: 17px 0 10px; color: #12365b; font-size: clamp(44px,5.2vw,72px); font-weight: 850; letter-spacing: -.035em; line-height: 1.19; }
.hero-copy h1 em { color: #079ead; font-style: normal; }
.hero-description { max-width: 700px; margin: 0; color: #5d7893; font-size: clamp(17px,1.45vw,21px); line-height: 1.9; }
.service-highlights { max-width: 730px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 25px 0 27px; padding: 0; list-style: none; }
.service-highlights li { min-width: 0; display: flex; align-items: center; gap: 9px; color: #23496b; font-size: 13px; font-weight: 700; line-height: 1.5; }
.highlight-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #078b98; background: #d8f2f2; font-family: "Segoe UI Symbol",sans-serif; font-size: 24px; font-weight: 800; }
.test-icon { color: #227cb1; background: #e1f2fb; }
.medicine-icon { color: #247b61; background: #e4f5ea; }
.home-icon { color: #168b83; background: #e0f5f2; }
.update-icon { color: #1c8a75; background: #e2f5ed; }
.download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; scroll-margin-top: 24px; }
.download-button { min-width: 280px; min-height: 68px; display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 15px; color: #fff; background: linear-gradient(105deg,#089f9e,#087f94); box-shadow: 0 8px 19px rgba(7,143,151,.18); transition: background .16s ease,transform .16s ease; }
.download-button:hover { transform: translateY(-1px); }
.download-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 11px; font: 28px/1 "Segoe UI Symbol",sans-serif; }
.download-button > span:nth-child(2) { display: grid; gap: 3px; }
.download-button strong { font-size: 15px; }
.download-button small { color: rgba(255,255,255,.85); font-size: 11px; }
.download-button small b { font-weight: 800; }
.button-arrow { margin-left: auto; font: 25px/1 "Segoe UI Symbol",sans-serif; }
.install-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; color: #17607c; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 11px 0 0 4px; color: #6e879c; font-size: 11px; }
.download-meta span + span::before { margin-right: 17px; color: #93b1bd; content: "•"; }
.download-error { margin: 9px 0 0; color: #a8394f; font-size: 12px; }
.app-visual { position: relative; min-width: 0; min-height: 594px; align-self: stretch; }
.scene-glow { position: absolute; right: 0; bottom: 38px; left: 4%; height: 260px; border-radius: 50%; background: radial-gradient(ellipse,#cdeeea 0%,#e2f5f4 38%,transparent 72%); }
.phone { position: absolute; z-index: 1; overflow: hidden; border: 8px solid #152c42; border-radius: 38px; background: #f8fcfd; box-shadow: 0 24px 46px rgba(17,52,76,.23),inset 0 0 0 1px rgba(255,255,255,.9); }
.phone img { width: 100%; height: auto; display: block; }
.phone-speaker { display: none; }
.phone-back { top: 58px; right: 20px; width: min(42%,255px); transform: rotate(7deg); opacity: .96; }
.phone-front { top: 34px; right: 34%; width: min(46%,286px); transform: rotate(-3deg); }
.visual-caption { position: absolute; z-index: 2; right: 9%; bottom: 17px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(207,230,235,.9); border-radius: 999px; color: #38677c; background: rgba(255,255,255,.84); font-size: 11px; font-weight: 700; }
.visual-caption span { width: 8px; height: 8px; border-radius: 50%; background: #0ba487; }
.app-benefits { width: min(1420px,calc(100% - 72px)); margin: 23px auto 27px; padding: 25px 26px; border: 1px solid #d9f0f2; border-radius: 25px; background: linear-gradient(105deg,#e7f8f9,#eefafb); }
.benefits-inner { display: grid; grid-template-columns: minmax(220px,1.35fr) repeat(4,minmax(0,1fr)); align-items: center; gap: 14px; }
.benefits-heading .eyebrow { min-height: 29px; }
.benefits-heading h2 { margin: 10px 0 0; color: #12365b; font-size: clamp(21px,2vw,29px); line-height: 1.45; }
.benefit { min-height: 78px; display: flex; align-items: flex-start; gap: 11px; padding: 4px 14px; border-left: 1px solid #c8e6e9; }
.benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #078b98; background: #d8f2f3; font: 25px/1 "Segoe UI Symbol",sans-serif; }
.benefit h3 { margin: 5px 0 7px; color: #214966; font-size: 14px; }
.benefit p { margin: 0; color: #70889c; font-size: 11px; line-height: 1.65; }
.install-guide { width: min(950px,calc(100% - 48px)); margin: 0 auto 26px; }
.install-guide details { border: 1px solid #dfecef; border-radius: 12px; background: #fff; }
.install-guide summary { min-height: 48px; display: flex; align-items: center; padding: 10px 15px; color: #27566f; font-size: 13px; font-weight: 750; cursor: pointer; }
.install-guide ol { display: grid; gap: 7px; margin: 0; padding: 0 20px 16px 39px; color: #637d91; font-size: 12px; line-height: 1.7; }
.download-footer { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 15px; color: #7890a4; font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: #168c99; font-size: 14px; font-weight: 800; }
.footer-brand span { color: #4f83a0; }
.footer-divider { width: 1px; height: 19px; background: #c9d9e2; }
a:focus-visible,summary:focus-visible { outline: 3px solid #f2a843; outline-offset: 3px; }

@media (max-width: 1190px) {
  .header-inner { width: calc(100% - 40px); gap: 17px; }
  .brand { width: 190px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 12px; }
  .header-actions { gap: 7px; }
  .language-label,.header-login,.header-download { padding-inline: 10px; font-size: 12px; }
  .hero-inner { width: calc(100% - 52px); grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); }
  .service-highlights { gap: 6px; }
  .service-highlights li { gap: 6px; font-size: 12px; }
  .highlight-icon { width: 40px; height: 40px; }
  .app-benefits { width: calc(100% - 52px); }
  .benefits-inner { grid-template-columns: minmax(200px,1.2fr) repeat(4,minmax(0,1fr)); gap: 8px; }
  .benefit { padding-inline: 8px; gap: 8px; }
  .benefit-icon { width: 40px; height: 40px; }
}
@media (max-width: 980px) {
  .download-header { height: 72px; }
  .header-inner { width: calc(100% - 36px); }
  .main-nav,.header-actions { display: none; }
  .brand { width: 200px; }
  .mobile-menu { display: block; margin-left: auto; }
  .hero-inner { min-height: 575px; grid-template-columns: minmax(0,1fr) minmax(310px,.85fr); gap: 8px; }
  .hero-copy h1 { font-size: clamp(40px,6vw,58px); }
  .hero-description { font-size: 16px; }
  .service-highlights { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 10px; }
  .app-visual { min-height: 540px; }
  .phone-front { right: 30%; width: min(50%,260px); }
  .phone-back { width: min(43%,230px); }
  .benefits-inner { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .benefits-heading { grid-column: 1 / -1; margin-bottom: 4px; }
  .benefit:first-of-type { border-left: 0; }
}
@media (max-width: 680px) {
  .download-header { height: 64px; }
  .header-inner { width: calc(100% - 28px); }
  .brand { width: 177px; }
  .app-hero::before { right: -95px; bottom: 355px; width: 125%; height: 180px; opacity: .12; }
  .hero-inner { width: calc(100% - 32px); min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 31px 0 4px; }
  .eyebrow { min-height: 29px; font-size: 12px; }
  .hero-copy h1 { margin: 14px 0 8px; font-size: clamp(37px,9vw,52px); line-height: 1.23; }
  .hero-description { font-size: 15px; line-height: 1.8; }
  .service-highlights { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 5px; margin: 19px 0 20px; }
  .service-highlights li { gap: 6px; font-size: 11px; }
  .highlight-icon { width: 36px; height: 36px; font-size: 20px; }
  .download-actions { align-items: stretch; gap: 4px; }
  .download-button { width: 100%; min-height: 62px; padding: 9px 13px; }
  .download-button strong { font-size: 14px; }
  .install-link { min-height: 42px; justify-content: center; }
  .download-meta { justify-content: center; margin: 4px 0 0; gap: 5px 10px; font-size: 10px; }
  .download-meta span + span::before { margin-right: 9px; }
  .app-visual { min-height: 492px; margin: 0 -9px; }
  .scene-glow { right: 0; bottom: 26px; left: 0; height: 200px; }
  .phone { border-width: 6px; border-radius: 29px; }
  .phone-front { top: 20px; right: 38%; width: min(54%,225px); transform: rotate(-3deg); }
  .phone-back { top: 57px; right: 5%; width: min(46%,190px); transform: rotate(7deg); }
  .visual-caption { right: 10%; bottom: 5px; padding: 8px 11px; font-size: 10px; }
  .app-benefits { width: calc(100% - 28px); margin: 14px auto 20px; padding: 18px 15px; border-radius: 18px; }
  .benefits-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 4px; }
  .benefits-heading { grid-column: 1 / -1; }
  .benefits-heading h2 { margin-top: 8px; font-size: 23px; }
  .benefit { min-height: 69px; padding: 4px 5px; border-left: 0; }
  .benefit-icon { width: 36px; height: 36px; font-size: 21px; }
  .benefit h3 { margin: 2px 0 4px; font-size: 12px; }
  .benefit p { font-size: 10px; }
  .install-guide { width: calc(100% - 28px); margin-bottom: 12px; }
  .download-footer { min-height: 58px; gap: 9px; font-size: 10px; }
  .footer-brand { font-size: 12px; }
}
@media (max-width: 370px) {
  .brand { width: 158px; }
  .hero-inner { width: calc(100% - 26px); }
  .hero-copy h1 { font-size: 35px; }
  .service-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-visual { min-height: 420px; }
  .phone-front { right: 36%; width: 56%; }
  .phone-back { right: 3%; width: 48%; }
  .benefit { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .download-button { transition: none; } }

/* Fit the real app screens fully and prevent narrow-screen overflow. */
.hero-copy,.app-visual,.benefits-heading,.benefit { min-width: 0; }
.hero-copy h1,.hero-description,.service-highlights li { overflow-wrap: anywhere; }
.hero-copy h1 { font-size: clamp(42px,4.4vw,64px); }
.hero-inner { min-height: 620px; grid-template-columns: minmax(0,1.07fr) minmax(0,.93fr); }
.app-visual { min-height: 590px; }
.phone-front { top: 33px; right: 35%; width: min(40%,245px); }
.phone-back { top: 60px; width: min(37%,225px); }
.benefits-inner { grid-template-columns: minmax(340px,1.55fr) repeat(4,minmax(0,1fr)); gap: 10px; }
.benefits-heading h2 { font-size: clamp(21px,1.7vw,26px); white-space: nowrap; }
.install-guide { margin-bottom: 5px; }
.install-guide summary { min-height: 40px; }
@media (max-width: 1190px) {
  .hero-inner { min-height: 600px; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
  .app-visual { min-height: 570px; }
  .phone-front { right: 32%; width: min(42%,235px); }
  .phone-back { width: min(38%,215px); }
  .benefits-inner { grid-template-columns: minmax(300px,1.4fr) repeat(4,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .hero-inner { min-height: 575px; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); }
  .app-visual { min-height: 540px; }
  .phone-front { right: 30%; width: min(50%,260px); }
  .phone-back { width: min(43%,230px); }
  .benefits-inner { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .benefits-heading h2 { white-space: normal; }
}
@media (max-width: 680px) {
  body.download-page { overflow-x: hidden; }
  .header-inner { min-width: 0; }
  .hero-inner { width: calc(100% - 32px); min-height: 0; grid-template-columns: minmax(0,1fr); }
  .hero-copy { width: 100%; min-width: 0; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(34px,9vw,46px); line-height: 1.24; }
  .hero-description { max-width: 100%; }
  .service-highlights { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .download-actions { width: 100%; min-width: 0; flex-direction: column; }
  .download-button { width: 100%; max-width: 100%; min-width: 0; flex: 0 1 auto; }
  .install-link { align-self: center; }
  .download-meta { width: 100%; }
  .app-visual { width: 100%; max-width: 100%; min-width: 0; }
  .app-benefits { width: calc(100% - 28px); }
  .benefits-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .benefits-heading h2 { white-space: normal; }
}
@media (max-width: 370px) {
  .hero-inner { width: calc(100% - 26px); }
  .service-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  html,body.download-page { width: 100%; max-width: 100%; overflow-x: clip; }
  .download-header,main,.app-hero,.app-benefits,.download-footer { width: 100%; max-width: 100%; }
  .header-inner { position: relative; justify-content: space-between; }
  .mobile-menu { display: block !important; position: relative !important; top: auto !important; right: auto !important; z-index: 20 !important; width: 44px; height: 44px; flex: 0 0 44px; margin: 0 0 0 auto; visibility: visible !important; opacity: 1 !important; }
  .mobile-menu summary { width: 44px; height: 44px; display: grid; background: #fff; }
  .hero-inner { width: 82vw; max-width: 520px; min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0; margin-inline: auto; }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; flex: 0 1 auto; overflow: visible; }
  .hero-copy > *, .hero-copy h1, .hero-description { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .hero-copy h1 { font-size: clamp(28px,7.4vw,34px); line-height: 1.27; }
  .hero-description { width: min(100%,72vw); max-width: min(100%,72vw); font-size: 15px; line-height: 1.75; }
  .service-highlights { width: 100%; max-width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-highlights li { min-width: 0; overflow-wrap: anywhere; }
  .download-actions, .download-button, .download-meta { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
  .download-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .download-button { min-width: 0; }
  .download-meta { overflow-wrap: anywhere; }
}
