/* Homepage v2: app-style look (sidebar on computers, bottom tabs on phones, 3D-feeling cards).
   Only visual. Scanner, Ask and Emergency scripts are unchanged. Scoped to body.home. */
.side-nav, .tab-bar { display: none; }
body.home .hm { position: relative; overflow: hidden; }
.hm-caps { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hm-caps i { position: absolute; width: 74px; height: 30px; border-radius: 18px; background: linear-gradient(90deg, #F29A1F 50%, #fff 50%); box-shadow: 0 14px 22px -8px rgba(11, 69, 68, .45); animation: hmFloat 6s ease-in-out infinite; opacity: .9; }
.hm-caps i:nth-child(1) { left: 3%; top: 14%; transform: rotate(-28deg); }
.hm-caps i:nth-child(2) { right: 4%; top: 8%; width: 58px; height: 24px; background: linear-gradient(90deg, #11615F 50%, #fff 50%); transform: rotate(24deg); animation-delay: -2s; }
.hm-caps i:nth-child(3) { right: 9%; bottom: 10%; transform: rotate(-12deg); animation-delay: -4s; }
@keyframes hmFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hm-in { position: relative; z-index: 1; }

/* example doses card */
.hm-doses { margin: 18px 0 0; max-width: 470px; background: rgba(255, 255, 255, .92); border: 1px solid #dcebe7; border-radius: 24px; padding: 16px 18px 12px; box-shadow: 0 22px 40px -26px rgba(11, 69, 68, .55); }
.hm-doses h2 { margin: 0 0 8px; font-family: var(--head); font-size: 1.15rem; color: var(--teal-deep); }
.hm-doses ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm-doses li { display: flex; align-items: center; gap: 12px; background: #f4faf8; border-radius: 16px; padding: 10px 12px; }
.hm-doses .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #25a244; display: grid; place-items: center; animation: hmTick 3.6s ease-in-out infinite; }
.hm-doses li:nth-child(2) .tick { animation-delay: .5s; }
.hm-doses li:nth-child(3) .tick { animation-delay: 1s; }
@keyframes hmTick { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }
.hm-doses b { display: block; font-size: 1rem; color: var(--ink); }
.hm-doses small { display: block; color: #7a8a87; font-size: .86rem; }
.hm-doses-note { margin: 8px 2px 0; font-size: .8rem; color: #7a8a87; }

/* glass 3D panels */
body.home .hm-panel { border-radius: 34px; box-shadow: 0 40px 70px -40px rgba(11, 69, 68, .6), inset 0 1px 0 rgba(255, 255, 255, .8); }
body.home .hm-ask { background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 18px 34px -24px rgba(11, 69, 68, .5); width: 100%; box-sizing: border-box; }

/* computers: dark-teal sidebar */
@media (min-width: 1000px) {
  body.home { padding-left: 232px; }
  .side-nav { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 35; padding: 22px 14px; box-sizing: border-box; background: linear-gradient(180deg, #11615F, #0B4544); box-shadow: 14px 0 40px -22px rgba(0, 0, 0, .5); }
  .side-brand { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: #fff; text-decoration: none; padding: 4px 12px 18px; }
  .side-brand span { color: #F29A1F; }
  .side-a { display: flex; align-items: center; gap: 12px; color: #d4efe9; text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: 13px 14px; border-radius: 16px; transition: background .15s; }
  .side-a:hover, .side-a:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; outline: none; }
  .side-a.on { background: rgba(255, 255, 255, .16); color: #fff; }
  .side-sos { color: #fff; background: #c62828; margin-top: 8px; }
  .side-sos:hover { background: #e5382b; }
  .side-last { margin-top: auto; }
  body.home .topbar .menu-btn { display: none; }
  .hm-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* phones and tablets: bottom tab bar */
@media (max-width: 999px) {
  body.home { padding-bottom: 78px; }
  .tab-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; height: 68px; padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid #d6ebe6; box-shadow: 0 -10px 30px -18px rgba(11, 69, 68, .5); }
  .tab-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #6f8480; font-weight: 700; font-size: .72rem; }
  .tab-bar a.on { color: #11615F; }
  .tab-bar .tab-sos { color: #c62828; }
  .tab-bar svg { width: 24px; height: 24px; }
  body.home .wa-fab { bottom: 84px; }
  .hm-caps { display: none; } /* phone/tablet: the floating capsules sat on top of the intro text */
  .hm-doses { margin-top: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-caps i, .hm-doses .tick { animation: none; } }

/* phones: scanner first, example doses after it */
@media (max-width: 860px) {
  body.home .hm-in { display: flex; flex-direction: column; gap: 18px; }
  body.home .hm-copy { display: contents; }
  body.home .hm-copy h1 { order: 0; }
  body.home .hm-copy .home-scan { order: 1; }
  body.home .hm-copy .install-inline { order: 2; }
  body.home .hm-panel { order: 3; }
  body.home .hm-doses { order: 4; width: 100%; box-sizing: border-box; }
  body.home .hm-photo { order: 5; }
  body.home .hm-em { order: 6; }
}

/* computers: no phone picture. A glowing glass "hologram" scanner instead, and the real scan box beside it. */
.hm-anim { display: none; }
@media (min-width: 861px) {
  body.home .hm-panel .app-phone-wrap { display: none; }
  body.home .hm-copy .home-scan[data-scan-root] { display: block; max-width: 470px; margin-top: 16px; }
  body.home .hm-panel { background: radial-gradient(120% 80% at 50% 0%, #17806f 0%, #0b3b36 55%, #061c1a 100%); box-shadow: 0 40px 70px -34px rgba(6, 28, 26, .9); }
  body.home .hm-panel .hm-steps li { color: #d4efe9; }
  body.home .hm-panel .hm-ico { background: rgba(255, 255, 255, .12); box-shadow: none; }
  .hm-anim { display: block; position: relative; width: 100%; padding: 6px 0 0; perspective: 900px; }
  .hl-glow { position: absolute; left: 10%; right: 10%; bottom: -8px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(123, 224, 207, .55), transparent); filter: blur(8px); }
  .hl-card { position: relative; border-radius: 20px; padding: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 1px solid rgba(160, 240, 225, .5); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8), inset 0 0 30px rgba(123, 224, 207, .12); backdrop-filter: blur(6px); transform: rotateX(7deg) rotateY(-6deg); animation: hlTilt 9s ease-in-out infinite; }
  .hl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .hl-logo { font: 800 1rem var(--head); color: #fff; } .hl-logo b { color: #F29A1F; }
  .hl-sos { background: #e5382b; color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 8px; box-shadow: 0 0 14px rgba(229, 56, 43, .7); animation: hlSos 2.4s ease-in-out infinite; }
  .hl-scan { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: #0b2a27; }
  .hl-img { position: absolute; inset: 0; background: url(/images/scanner.jpg) 40% 55% / cover; opacity: .75; filter: saturate(.8); }
  .hl-ring { position: absolute; left: 50%; top: 52%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 3px solid rgba(123, 224, 207, .9); box-shadow: 0 0 22px rgba(20, 196, 168, .9), inset 0 0 18px rgba(20, 196, 168, .6); }
  .hl-ring i { position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed rgba(123, 224, 207, .7); animation: hlSpin 10s linear infinite; }
  .hl-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #7be0cf; box-shadow: 0 0 16px 4px rgba(123, 224, 207, .8); animation: hlLine 4.5s ease-in-out infinite alternate; }
  .hl-btn { position: absolute; left: 10px; top: 10px; background: linear-gradient(135deg, #ffb25a, #F29A1F); color: #1a0f00; font-weight: 800; font-size: .78rem; padding: 6px 12px; border-radius: 9px; box-shadow: 0 6px 14px -6px rgba(242, 154, 31, .9); }
  .hl-rows { display: grid; gap: 6px; margin-top: 10px; }
  .hl-row { display: flex; align-items: center; gap: 10px; background: rgba(8, 40, 36, .55); border: 1px solid rgba(160, 240, 225, .25); border-radius: 12px; padding: 7px 10px; opacity: 0; animation: hlRow 8s ease-in-out infinite; }
  .hl-row.r2 { animation-delay: .5s; } .hl-row.r3 { animation-delay: 1s; }
  .hl-t { font-weight: 800; font-size: .8rem; color: #9fe9dc; min-width: 40px; }
  .hl-row div { flex: 1; min-width: 0; }
  .hl-row b { display: block; font-size: .88rem; color: #fff; }
  .hl-row small { display: block; font-size: .72rem; color: #9fc9c1; }
  .hl-ok { width: 22px; height: 22px; border-radius: 50%; background: #25a244; display: grid; place-items: center; box-shadow: 0 0 12px rgba(47, 211, 107, .7); }
  .hl-clock { display: grid; place-items: center; }
  .hl-cap { position: absolute; width: 38px; height: 15px; border-radius: 9px; background: linear-gradient(90deg, #F29A1F 50%, #fff 50%); box-shadow: 0 10px 14px -6px rgba(0, 0, 0, .6); animation: hmFloat 6s ease-in-out infinite; z-index: 2; }
  .hl-cap.k1 { left: -14px; top: 118px; transform: rotate(-30deg); }
  .hl-cap.k2 { right: -8px; top: 12px; transform: rotate(25deg); width: 30px; height: 12px; animation-delay: -2s; background: linear-gradient(90deg, #7be0cf 50%, #fff 50%); }
  .hl-cap.k3 { right: -12px; top: 150px; transform: rotate(-15deg); animation-delay: -4s; }
  .hl-cap.k4 { left: 6px; bottom: 56px; transform: rotate(20deg); width: 28px; height: 11px; animation-delay: -1s; }
  .hl-cap.k5 { right: 30px; bottom: -6px; transform: rotate(-35deg); animation-delay: -3s; }
}
@keyframes hlTilt { 0%, 100% { transform: rotateX(7deg) rotateY(-6deg); } 50% { transform: rotateX(4deg) rotateY(6deg); } }
@keyframes hlSpin { to { transform: rotate(360deg); } }
@keyframes hlLine { 0% { top: 4%; } 100% { top: 94%; } }
@keyframes hlSos { 0%, 100% { box-shadow: 0 0 8px rgba(229, 56, 43, .5); } 50% { box-shadow: 0 0 20px rgba(229, 56, 43, .95); } }
@keyframes hlRow { 0%, 12% { opacity: 0; transform: translateY(10px); } 22%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hl-card, .hl-sos, .hl-ring i, .hl-line, .hl-row, .hl-cap { animation: none !important; } .hl-row { opacity: 1; } }
@media (min-width: 861px) { body.home .hm-doses { display: none; } }

/* ===== computers, final layout: one big scanner card, nothing around it ===== */
.hm-ask-fab, .hm-ask-x { display: none; }
.hm-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 34em; margin: 0 0 6px; }
@media (min-width: 861px) {
  body.home .hm { background-position: 0 0, 100% center; }
  body.home .hm-in { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; }
  body.home .hm-copy { max-width: none; width: 100%; text-align: center; }
  body.home .hm-copy h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 4px 0 6px; }
  body.home .hm-sub { margin: 0 auto 4px; }
  body.home .hm-copy .home-scan[data-scan-root], body.home .hm-doses, body.home .hm-photo, body.home .hm-panel .hm-steps, body.home .hm-copy .install-inline { display: none !important; }
  body.home .hm-panel { width: 100%; background: none !important; box-shadow: none !important; padding: 0; backdrop-filter: none; }
  .hm-anim { max-width: 700px; margin: 0 auto; }
  .hl-card { padding: 16px 18px 18px; border-radius: 26px; background: linear-gradient(160deg, rgba(14, 84, 76, .96), rgba(6, 28, 26, .97)); transform: none; animation: none; }
  .hl-scan { height: 190px; }
  .hl-ring { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .hl-logo { font-size: 1.15rem; }
  .hl-sos { font-size: .78rem; }
  .hl-ctl { margin-top: 14px; display: grid; gap: 10px; justify-items: center; }
  .hl-consent { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: #e6fbf6; font-size: .95rem; }
  .hl-consent label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
  .hl-consent input { width: 22px; height: 22px; flex: none; accent-color: #F29A1F; }
  .hl-more { background: none; border: 0; color: #ffcb7a; text-decoration: underline; font: inherit; font-weight: 700; cursor: pointer; padding: 4px; min-height: 36px; }
  .hl-full { margin: 0; max-width: 620px; font-size: .84rem; line-height: 1.55; color: #cfeee7; text-align: left; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
  .hl-full a { color: #ffcb7a; }
  .hl-btns { display: flex; gap: 12px; justify-content: center; width: 100%; }
  .hl-btns .btn { flex: 1 1 0; max-width: 270px; min-width: 0; min-height: 56px; border-radius: 16px; justify-content: center; }
  .hl-btns .btn-big { background: #F29A1F; color: #1b1200; border: 0; }
  .hl-btns .btn-ghost { background: rgba(255, 255, 255, .1); border: 2px solid #7be0cf; color: #e6fbf6; }
  .hl-btns .is-off { opacity: .55; }
  .hl-ctl .form-msg { color: #ffb4a8; margin: 0; }
  .hl-rows { margin-top: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hl-row { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; position: relative; }
  .hl-row .hl-ok, .hl-row .hl-clock { position: absolute; right: 10px; top: 10px; }
  .hl-cap.k1 { left: -22px; top: 70px; } .hl-cap.k3 { right: -24px; top: 190px; } .hl-cap.k5 { right: 60px; bottom: -14px; }

  /* Ask: a floating button bottom right that opens a pop-up */
  body.home .hm-ask { display: none; }
  body.home .hm-ask.open { display: block; position: fixed; right: 26px; bottom: 150px; width: 380px; max-width: calc(100vw - 290px); z-index: 60; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
  .hm-ask-x { display: block; margin: 0 0 8px auto; background: #eef6f4; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; color: #11615F; cursor: pointer; }
  .hm-ask-fab { display: flex; align-items: center; gap: 8px; position: fixed; right: 26px; bottom: 90px; z-index: 61; border: 0; border-radius: 999px; padding: 13px 20px; background: #11615F; color: #fff; font: 800 1rem var(--head); cursor: pointer; box-shadow: 0 14px 28px -10px rgba(11, 69, 68, .9); }
}
@media (min-width: 861px) and (max-height: 800px) { .hl-scan { height: 150px; } .hl-ring { width: 100px; height: 100px; margin: -50px 0 0 -50px; } body.home .hm-copy h1 { font-size: 2.1rem; } }
@media (prefers-reduced-motion: reduce) { .hl-card { animation: none !important; } }
@media (min-width: 861px) {
  body.home .hm-copy { order: -2; }
  body.home .hm-panel { order: -1; }
  body.home .hm { padding-bottom: 96px; }
  .hl-cap.k4 { display: none; }
  .hm-ask-fab { bottom: 112px; }
  body.home .hm-ask.open { bottom: 172px; }
}
@media (min-width: 861px) {
  .hm-ask-fab { bottom: 172px; }
  body.home .hm-ask.open { width: 380px !important; max-width: calc(100vw - 290px) !important; right: 26px !important; left: auto !important; bottom: 232px !important; top: auto !important; }
  .hl-scan { height: 140px; }
  .hl-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
  body.home .hm-copy h1 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
  body.home .hm-sub { font-size: .98rem; }
  body.home .hm { padding-bottom: 110px; }
}
@media (min-width: 861px) and (max-height: 900px) { body.home .hm-sub { display: none; } }

/* ===== computers: card on the LEFT, smaller, fits one screen; the photo on the right stays visible ===== */
@media (min-width: 861px) {
  body.home .hm-in { align-items: flex-start; max-width: 600px; margin: 0; gap: 10px; }
  body.home .hm-copy { text-align: left; }
  body.home .hm-copy h1 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin: 2px 0 4px; line-height: 1.2; }
  body.home .hm-sub { margin: 0 0 2px; font-size: .95rem; }
  body.home .hm-panel { width: 100%; }
  .hm-anim { max-width: 560px; margin: 0; }
  .hl-card { padding: 12px 14px 14px; border-radius: 22px; }
  .hl-scan { height: 118px; }
  .hl-ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .hl-top { margin-bottom: 8px; }
  .hl-ctl { margin-top: 10px; gap: 8px; }
  .hl-consent { font-size: .88rem; justify-content: flex-start; }
  .hl-btns { justify-content: flex-start; }
  .hl-btns .btn { min-height: 50px; max-width: 250px; font-size: 1rem; }
  .hl-rows { margin-top: 10px; gap: 6px; }
  .hl-row { opacity: 1 !important; animation: none !important; padding: 8px 10px; }
  .hl-row b { font-size: .84rem; }
  .hl-row small { font-size: .68rem; }
  .hl-full { max-width: none; font-size: .8rem; }
  .hl-cap.k1 { left: -16px; top: 56px; } .hl-cap.k3 { right: -16px; top: 140px; } .hl-cap.k5 { display: none; }
  body.home .hm { padding-bottom: 100px; }
}
@media (min-width: 861px) and (max-height: 760px) { .hl-scan { height: 96px; } .hl-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; } body.home .hm-sub { display: none; } }
@media (min-width: 861px) {
  body.home .hm-copy { padding-left: 20px; }
  .hl-consent { font-size: .82rem; flex-wrap: nowrap; gap: 6px; }
  .hl-consent label { gap: 8px; }
  .hl-more { white-space: nowrap; }
}
@media (min-width: 861px) and (max-height: 760px) { body.home .hm-copy h1 { font-size: 1.5rem; white-space: nowrap; } .hl-cap.k1 { display: none; } }

/* ===== computers: the Ask box sits right under the scanner card, same width (no floating button) ===== */
@media (min-width: 861px) {
  .hm-ask-fab, .hm-ask-x { display: none !important; }
  body.home .hm-ask, body.home .hm-ask.open { display: block !important; position: static !important; width: 100% !important; max-width: 560px !important; margin: 10px 0 0; padding: 0; background: none; box-shadow: none; }
  body.home .hm-ask .hm-ask-h { display: none; }
  body.home .hm-ask .ask-box { background: linear-gradient(160deg, rgba(14, 84, 76, .96), rgba(6, 28, 26, .97)); border-radius: 18px; padding: 8px; box-shadow: 0 20px 36px -22px rgba(6, 28, 26, .9); }
  body.home .hm-ask .ask-form { margin: 0; }
  body.home .hm-ask .ask-form input { border-radius: 12px; }
  body.home .hm-ask .ask-log { max-height: 120px; overflow: auto; }
}

/* Feature slideshow (computer only, right side over the photo) */
.hm-feat { display: none; }
@media (min-width: 1180px) {
  body.home .hm { position: relative; }
  .hm-feat { display: block; position: absolute; right: 40px; top: 44%; transform: translateY(-50%); width: min(400px, calc(100% - 700px)); z-index: 3; color: #f2fffb; border-radius: 24px; padding: 22px 22px 16px; background: linear-gradient(165deg, rgba(8, 44, 41, .84), rgba(8, 44, 41, .68)); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px); box-shadow: 0 28px 48px -24px rgba(0, 0, 0, .6); }
  .fs-eye { font-size: .68rem; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; color: #7be0cf; }
  .fs-wrap { position: relative; height: 250px; margin-top: 8px; }
  .fs { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s, transform .5s, visibility .5s; }
  .fs.on { opacity: 1; visibility: visible; transform: none; }
  .fs-h { display: flex; align-items: center; gap: 12px; }
  .fs-ico { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
  .fs-ico svg { width: 26px; height: 26px; }
  .fs h2 { margin: 0; font-size: 1.3rem; line-height: 1.15; font-weight: 800; color: #fff; }
  .fs ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
  .fs li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: #f2fffb; opacity: 0; transform: translateX(-12px); }
  .fs li::before { content: ""; flex: none; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%; background: #25a244 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
  .fs.warn li::before { background-color: #f29a1f; }
  .fs.sos li::before { background-color: #d92d20; }
  .fs.on li { animation: fsPt .5s ease forwards; }
  .fs.on li:nth-child(1) { animation-delay: .25s; }
  .fs.on li:nth-child(2) { animation-delay: .65s; }
  .fs.on li:nth-child(3) { animation-delay: 1.05s; }
  .fs-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .fs-dots { display: flex; gap: 7px; }
  .fs-dot { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s, background .3s; }
  .fs-dot.on { width: 26px; background: #f29a1f; }
  .fs-pp { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #f2fffb; font: 700 .72rem inherit; font-family: inherit; padding: 5px 11px; border-radius: 99px; cursor: pointer; }
  .fs-dot:focus-visible, .fs-pp:focus-visible { outline: 2px solid #7be0cf; outline-offset: 3px; }
  .fs-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 12px; overflow: hidden; }
  .fs-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7be0cf, #f29a1f); }
  .fs-bar.run i { animation: fsFill 5.5s linear forwards; }
  .fs-bar.pause i { animation-play-state: paused; }
  .fa-scan { animation: fsScan 2s ease-in-out infinite alternate; }
  .fa-bell { transform-origin: 50% 10%; animation: fsBell 2.4s ease-in-out infinite; }
  .fa-shake { transform-origin: center; animation: fsBell 2.2s ease-in-out infinite; }
  .fa-float { animation: fsFlt 3s ease-in-out infinite; }
  .fa-pulse { transform-origin: center; animation: fsPulse 1.6s ease-out infinite; }
  .fa-tick { stroke-dasharray: 30; animation: fsTick 2.2s ease-in-out infinite; }
}
@media (min-width: 1180px) and (max-height: 760px) { .hm-feat { top: 46%; } .fs-wrap { height: 215px; } .fs li { font-size: .88rem; } .fs ul { margin-top: 12px; gap: 8px; } }
@keyframes fsPt { to { opacity: 1; transform: none; } }
@keyframes fsFill { to { width: 100%; } }
@keyframes fsScan { to { transform: translateY(7px); } }
@keyframes fsBell { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(16deg); } 24% { transform: rotate(-14deg); } 36% { transform: rotate(8deg); } 48% { transform: rotate(0); } }
@keyframes fsFlt { 50% { transform: translateY(-3px); } }
@keyframes fsPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes fsTick { 0% { stroke-dashoffset: 30; } 40%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hm-feat *, .hm-feat { animation: none !important; transition: none !important; } .fs li { opacity: 1 !important; transform: none !important; } .fa-tick { stroke-dashoffset: 0; } }

/* Slideshow v2: wider (grows to the left), glassier */
@media (min-width: 1180px) {
  .hm-feat { width: min(540px, calc(100% - 640px)); padding: 26px 28px 18px; border-radius: 28px; background: linear-gradient(155deg, rgba(10, 70, 64, .46), rgba(6, 36, 33, .36)); border: 1px solid rgba(255, 255, 255, .42); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 40px rgba(123, 224, 207, .08); }
  .fs-eye { font-size: .72rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
  .fs-wrap { height: 290px; }
  .fs-ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .16); box-shadow: 0 0 24px rgba(123, 224, 207, .35); }
  .fs-ico svg { width: 30px; height: 30px; }
  .fs h2 { font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
  .fs ul { margin-top: 22px; gap: 14px; }
  .fs li { font-size: 1.08rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
  .fs li::before { width: 22px; height: 22px; background-size: 13px; }
  .fs-dot.on { background: #ffb25a; }
}
@media (min-width: 1180px) and (max-height: 760px) { .fs-wrap { height: 240px; } .fs li { font-size: .98rem; } .fs h2 { font-size: 1.4rem; } .fs ul { margin-top: 14px; gap: 10px; } }

/* Slideshow v3: same top/bottom as scanner card + Ask box (set by script), a bit more to the left */
@media (min-width: 1180px) {
  .hm-feat { display: flex; flex-direction: column; transform: none; }
  .fs-wrap { flex: 1; height: auto; min-height: 0; }
  .fs { display: flex; flex-direction: column; justify-content: center; }
  .fs ul { margin-top: 26px; gap: 16px; }
}

/* Ask bar on the home page: show the one-line hint under it, so the box says what it is for and never looks empty */
body.home .hm-ask .ask-hint { display: block !important; margin: 6px 10px 4px; font-size: .82rem; line-height: 1.4; color: #d6f3ec; }

/* v-fix: on laptop the red emergency bar is fixed 84-154px above the screen bottom; give the home footer room below it so the bar never covers the "not medical advice" line or the privacy link */
@media (min-width: 861px) { body.home footer.foot { padding-bottom: 172px; } }
/* ===== Nov 2026: one example-doses block (moved under the Ask box), trust + pricing ===== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hl-top { gap: 10px; }
/* computers: the floating emergency bar covered the Ask box. The side bar (≥1000px) and the tab bar (<1000px) already have Emergency. */
@media (min-width: 861px) {
  body.home .hm-em { display: none !important; }
  body.home .hm-panel .hm-doses { display: block !important; max-width: 560px; margin: 10px 0 0; background: linear-gradient(160deg, rgba(14, 84, 76, .96), rgba(6, 28, 26, .97)); border: 0; border-radius: 18px; padding: 10px 12px; box-shadow: 0 20px 36px -22px rgba(6, 28, 26, .9); }
  body.home .hm-panel .hm-doses h2 { color: #e6fbf6; font-size: .95rem; margin: 0 0 6px; }
  body.home .hm-panel .hm-doses ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.home .hm-panel .hm-doses li { background: rgba(8, 40, 36, .55); border: 1px solid rgba(160, 240, 225, .25); padding: 7px 8px; gap: 8px; }
  body.home .hm-panel .hm-doses .tick { width: 22px; height: 22px; }
  body.home .hm-panel .hm-doses b { color: #fff; font-size: .82rem; }
  body.home .hm-panel .hm-doses small { color: #9fc9c1; font-size: .68rem; }
  body.home .hm-panel .hm-doses-note, body.home .hm-panel .hm-doses .med-dis { color: #cfeee7; font-size: .72rem; margin: 6px 2px 0; }
}
.tr { padding: 28px 0 40px; }
.tr-in { display: grid; gap: 18px; max-width: 980px; }
.tr-card { background: #fff; border: 1.5px solid #dcebe7; border-radius: 24px; padding: 20px 20px 16px; box-shadow: 0 18px 34px -26px rgba(11, 69, 68, .5); }
.tr-card h2 { font-family: var(--head); color: var(--teal-deep, #0b4544); font-size: 1.35rem; margin: 0 0 10px; }
.tr-founder { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
.tr-pilot { font-weight: 700; color: var(--teal, #11615F); margin: 0 0 8px; }
.tr-card a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
#testimonials[hidden] { display: none !important; }
.tm-list { display: grid; gap: 12px; }
.tm-card { margin: 0; background: #f4faf8; border-radius: 18px; padding: 14px 16px; }
.tm-card blockquote { margin: 0 0 6px; font-size: 1.02rem; }
.tm-card figcaption { color: #5b6b69; font-size: .9rem; font-weight: 600; }
.pr-grid { display: grid; gap: 14px; }
.pr-plan { border: 2px solid #dcebe7; border-radius: 20px; padding: 16px; }
.pr-free { border-color: #6EDDBE; background: #f2fcf9; }
.pr-plan h3 { margin: 0 0 4px; font-family: var(--head); font-size: 1.15rem; }
.pr-amt { font: 800 1.8rem var(--head); color: var(--teal, #11615F); margin: 0 0 8px; }
.pr-amt small { font-size: 1rem; font-weight: 700; color: #5b6b69; margin-left: 4px; }
.pr-plan ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pr-note { margin: 0; color: #4a5b59; }
.pr-108 { margin: 12px 0 0; font-weight: 700; color: #B3261E; }
@media (min-width: 700px) { .pr-grid, .tm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body.home .tr-in { margin: 0 auto; } }
.tr-price > .pr-note { margin-top: 12px; }
/* 4 price cards (free + 3 plans, 9 Nov 2026): 2 x 2, then one row on wide screens */
@media (min-width: 900px) { #pricing .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { #pricing .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pr-more { margin: 10px 0 0; font-weight: 700; }
/* price cards are tappable (10 Nov 2026): free -> sign up, a plan -> that plan on /plan.html */
a.pr-pick { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
a.pr-pick:hover, a.pr-pick:focus-visible { border-color: var(--teal, #11615F); box-shadow: 0 4px 14px rgba(17,97,95,.15); }
a.pr-pick:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }

/* Top medicine search bar (home hero). Submits to /ask.html?q=, which asks right away. */
body.home .hm-topask { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; box-sizing: border-box; margin: 14px 0 6px; padding: 5px 5px 5px 16px; background: #fff; border: 2px solid #16877E; border-radius: 999px; box-shadow: 0 12px 26px -18px rgba(11, 69, 68, .6); }
body.home .hm-topask:focus-within { border-color: #F29A1F; }
body.home .hm-topask svg { flex: none; }
body.home .hm-topask input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: none; background: transparent; color: #0B4544; font-family: inherit; font-size: 1.05rem; font-weight: 600; }
body.home .hm-topask button { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #11615F; color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; }
body.home .hm-topask button:focus-visible { outline: 3px solid #F29A1F; outline-offset: 2px; }
