/* Home hero: pill eyebrow, larger headline with swoosh, icon buttons, feature row, connected cards and a navy wave strip.
   Loaded last; scoped to the home page. Motion hooks (heartbeat, chips, ECG) are untouched. */
html body.home-page .hero { position: relative; overflow: hidden; background: radial-gradient(640px 480px at 74% 46%, rgba(224, 21, 53, .09), transparent 70%), linear-gradient(165deg, #fff 0%, #f6f8fc 55%, #edf2fa 100%); }

/* ---- navy wave strip ---- */
html body.home-page .hero__strip { position: relative; z-index: 2; margin-top: -8px; padding: 44px 0 20px; background: #0f2547; color: #fff; }
html body.home-page .hero__strip::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 64px; transform: translateY(-62px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23c4002a' d='M0 64V40C240 8 520 4 780 30S1240 56 1440 4V64Z'/%3E%3Cpath fill='%230f2547' d='M0 64V50C260 22 540 20 800 42S1260 58 1440 24V64Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
html body.home-page .hero__strip-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
html body.home-page .hero__strip .story-cue { display: inline-flex; align-items: center; gap: 14px; margin: 0; color: #fff; font-size: 15px; font-weight: 700; }
html body.home-page .hero__strip .story-cue > .i { width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 50%; background: #e8eef8; color: #0f2547; }
html body.home-page .hero__strip .hero__note { display: flex; align-items: center; gap: 12px; margin: 0; padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid #ffffff33; color: #e7eefb; font-size: 15px; line-height: 1.4; }
html body.home-page .hero__strip .hero__note .i { width: 22px; height: 22px; flex: none; padding: 0; background: none; color: #ff8aa0; }
html body.home-page .hero__strip-ecg { display: none; margin-left: auto; width: 260px; height: 60px; flex: none; fill: none; stroke: #ff3b5c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- feature row ---- */
html body.home-page .hero__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 34px 0 0; padding: 0; list-style: none; }
html body.home-page .hero__features li { display: flex; align-items: center; gap: 12px; color: #1b2c4a; font-size: 14px; line-height: 1.3; }
html body.home-page .hero__features strong { display: block; color: #0f2547; font-size: 14.5px; font-weight: 700; }
html body.home-page .hero__features .i { width: 22px; height: 22px; flex: none; padding: 12px; box-sizing: content-box; border-radius: 50%; background: #fdecef; color: #c4002a; stroke-width: 1.7; }

/* ---- buttons: leading icons ---- */
html body.home-page .hero__actions .btn { gap: 10px; }
html body.home-page .hero__actions .btn .btn__lead { width: 22px; height: 22px; flex: none; }
html body.home-page .hero__actions .btn--outline { border-color: #0f2547; color: #0f2547; }
html body.home-page .hero__actions .btn--outline .btn__lead { color: #c4002a; }
html body.home-page .hero__actions .btn--outline:is(:hover, :focus-visible) { background: #0f2547; border-color: #0f2547; color: #fff; }
html body.home-page .hero__actions .btn--outline:is(:hover, :focus-visible) .btn__lead { color: #ff8aa0; }

/* ---- connected cards ---- */

@media (min-width: 960px) {
  html body.home-page .hero__grid { padding-block: clamp(20px, 2.4vw, 32px) clamp(84px, 7vw, 104px); grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 16px; }
  html body.home-page .hero__copy > .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 10px 20px 10px 14px; border: 0; border-radius: 999px; background: #fdecef; color: #c4002a; font-size: 13px; font-weight: 800; letter-spacing: .2em; line-height: 1.2; }
  html body.home-page .hero__copy > .eyebrow::before { content: none; }
  html body.home-page .hero__copy > .eyebrow .i { width: 16px; height: 16px; stroke-width: 2.2; }
  html body.home-page .hero h1 { position: relative; max-width: none; margin-bottom: 40px; font-size: clamp(2.7rem, 4.3vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
  html body.home-page .hero h1::after { content: ""; position: absolute; left: 2px; bottom: -22px; width: 280px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 16' preserveAspectRatio='none'%3E%3Cpath d='M2 12C60 3 150 2 278 8' fill='none' stroke='%23c4002a' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
  html body.home-page .hero .lead { max-width: 36em; color: #223452; font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.65; }
  html body.home-page .hero__actions { flex-wrap: nowrap; gap: 14px; margin-top: 28px; }
  html body.home-page .hero__actions .btn { padding-inline: 20px; font-size: 15px; white-space: nowrap; }
  html body.home-page .hero__features { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; }
  html body.home-page .hero__features { flex-wrap: nowrap; }
  html body.home-page .hero__features li { padding: 4px 16px; font-size: 13px; }
  html body.home-page .hero__features .i { padding: 10px; }
  html body.home-page .hero__features strong { font-size: 13.5px; }
  html body.home-page .hero__features li:first-child { padding-left: 0; }
  html body.home-page .hero__features li + li { border-left: 1px solid #dfe5ef; }
  html body.home-page .hero__art { max-width: none; min-height: 520px; justify-content: flex-start; }
  html body.home-page .hero__art > img { width: 64%; max-width: none; max-height: none; margin-left: 2%; filter: drop-shadow(0 0 26px rgba(255, 64, 96, .38)) drop-shadow(0 24px 30px rgba(140, 10, 30, .25)); }
  html body.home-page .hero__art::before { left: 1%; width: 70%; border: 2px solid rgba(224, 21, 53, .13); box-shadow: 0 0 0 12px rgba(224, 21, 53, .03); background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(253, 236, 240, .75) 60%, rgba(253, 236, 240, 0) 76%); }
  html body.home-page .hero-ecg { left: -5%; top: 33%; width: 34%; height: 30%; stroke: #f26b86; stroke-width: 2.6; filter: drop-shadow(0 0 3px rgba(255, 60, 90, .4)); }
  html body.home-page .hero__chip { width: 254px; height: 76px; min-width: 0; padding: 0 14px; gap: 12px; align-items: center; }
  html body.home-page .hero__chip--1 { top: 15%; right: 0; left: auto; }
  html body.home-page .hero__chip--2 { top: calc(50% - 38px); right: -26px; left: auto; }
  html body.home-page .hero__chip--3 { top: auto; bottom: 15%; right: 0; left: auto; }
    html body.home-page .hero__strip-ecg { display: block; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  html body.home-page .hero__art > img { width: 58%; margin-left: -6%; }
  html body.home-page .hero__chip { width: 216px; height: 72px; }
  html body.home-page .hero__chip small { font-size: 12px; }
  html body.home-page .hero__chip--2 { right: -10px; }
  }

@media (max-width: 959px) {
  html body main.home-page .hero__strip .hero__note, html body.home-page main .hero__strip .hero__note { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #e7eefb; font-size: 14px; }
  html body.home-page main .hero__strip .hero__note .i { width: 22px; height: 22px; padding: 0; background: none; color: #ff8aa0; }
  html body.home-page .hero__strip { padding: 52px 0 16px; }
  html body.home-page .hero__strip::before { height: 44px; transform: translateY(-42px); }
  html body.home-page .hero__strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  html body.home-page .hero__strip .hero__note { padding-left: 0; border-left: 0; font-size: 14px; }
  html body.home-page .hero__features { margin-top: 22px; }
}
@media (max-width: 639px) {
  html body.home-page .hero__features li { font-size: 13px; }
  html body.home-page .hero__features .i { padding: 10px; }
}

/* "Pause motion" lives in the navy strip, out of the hero content. */
html body.home-page .hero__strip .motion-toggle { position: static; inset: auto; flex: none; margin: 0 0 0 16px; border-color: #ffffff40; background: #ffffff14; color: #dbe6f7; box-shadow: none; }
html body.home-page .hero__strip .motion-toggle:hover { border-color: #ffffff80; background: #ffffff24; color: #fff; }
html body.home-page .hero__strip-ecg { margin-left: auto; }
@media (max-width: 959px) {
  html body.home-page .hero__strip .motion-toggle { margin: 4px 0 0; }
  html body.home-page .hero__grid { padding-top: 16px; }
}

/* Phones: a compact navy strip. "Follow the journey" and "Pause motion" share a row, the note sits below. */
@media (max-width: 959px) {
  html body.home-page .hero__strip { padding: 40px 0 16px; }
  html body.home-page .hero__strip-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 10px; }
  html body.home-page .hero__strip .story-cue { order: 1; }
  html body.home-page .hero__strip .motion-toggle { order: 2; margin: 0; }
  html body.home-page .hero__strip .hero__note { order: 3; flex: 0 0 100%; padding-top: 12px; border-top: 1px solid #ffffff22; }
}

/* Desktop: hero + navy strip fit the first screen, so "Follow the journey" is visible without scrolling.
   Spacing and type scale with the viewport height; the art height absorbs the rest. */
@media (min-width: 960px) {
  html body.home-page .hero__grid { padding-block: clamp(10px, 1.8vh, 28px) clamp(70px, 9vh, 92px); }
  html body.home-page .hero__art { min-height: clamp(300px, calc(100svh - 330px), 520px); }
  html body.home-page .hero__copy > .eyebrow { margin-bottom: clamp(10px, 1.8vh, 22px); padding-block: clamp(6px, 1vh, 10px); }
  html body.home-page .hero h1 { margin-bottom: clamp(24px, 3.8vh, 38px); font-size: clamp(2.2rem, min(4.3vw, 7vh), 4rem); }
  html body.home-page .hero .lead { max-width: 40em; font-size: clamp(.94rem, 2.1vh, 1.18rem); line-height: 1.5; }
  html body.home-page .hero__actions { margin-top: clamp(14px, 2.4vh, 28px); }
  html body.home-page .hero__features { margin-top: clamp(12px, 2.2vh, 30px); }
  html body.home-page .hero__strip { padding: clamp(34px, 4.4vh, 44px) 0 clamp(18px, 3vh, 30px); }
}

/* Hero cards: one aligned column, equal width, hairline border, soft shadow, squared icon tile. */
@media (min-width: 960px) {
  html body.home-page .hero__chip { width: 248px; height: 74px; padding: 0 16px; gap: 14px; border: 1px solid #e6ebf3; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(15, 37, 71, .05), 0 14px 28px -16px rgba(15, 37, 71, .28); }
  html body.home-page .hero__chip--1, html body.home-page .hero__chip--2, html body.home-page .hero__chip--3 { right: 0; left: auto; }
  html body.home-page .hero__chip > .i { width: 20px; height: 20px; padding: 11px; border-radius: 10px; background: #fdecef; color: #c4002a; stroke-width: 1.7; }
  html body.home-page .hero__chip strong { color: #0f2547; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  html body.home-page .hero__chip small { margin-top: 3px; color: #5a6a84; font-size: 12.5px; font-weight: 500; }
}
@media (min-width: 960px) and (max-width: 1199px) { html body.home-page .hero__chip { width: 220px; } }

/* Feature row now lives in the navy strip, right after "Follow the journey"; the confidential note sits under the hero buttons. */
html body.home-page .hero__copy .hero__note { display: flex; align-items: center; gap: 10px; margin: clamp(12px, 2vh, 20px) 0 0; padding: 0; border: 0; color: #4a5b75; font-size: 14px; line-height: 1.4; }
html body.home-page .hero__copy .hero__note .i { width: 18px; height: 18px; flex: none; color: #c4002a; }

html body.home-page .hero__strip .hero__features { display: flex; flex-wrap: nowrap; align-items: center; flex: 1 1 auto; justify-content: space-between; gap: 0; margin: 0; padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid #ffffff33; }
html body.home-page .hero__strip .hero__features li { padding: 2px clamp(10px, 1.4vw, 22px); color: #c9d6ec; font-size: 13px; }
html body.home-page .hero__strip .hero__features li + li { border-left: 1px solid #ffffff22; }
html body.home-page .hero__strip .hero__features li:first-child { padding-left: 0; }
html body.home-page .hero__strip .hero__features strong { color: #fff; font-size: 14px; }
html body.home-page .hero__strip .hero__features .i { width: 20px; height: 20px; padding: 9px; background: #ffffff1a; color: #ff9bb0; }
html body.home-page .hero__strip .hero__strip-ecg { display: none; }
@media (max-width: 1199px) and (min-width: 960px) { html body.home-page .hero__strip .hero__features .i { display: none; } }
@media (max-width: 959px) {
  html body.home-page .hero__strip .hero__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 100%; order: 3; gap: 12px 16px; padding: 12px 0 0; border-left: 0; border-top: 1px solid #ffffff22; }
  html body.home-page .hero__strip .hero__features li, html body.home-page .hero__strip .hero__features li:first-child { padding: 0; border: 0; }
  html body.home-page .hero__strip .hero__features li + li { border-left: 0; }
  html body.home-page .hero__copy .hero__note { margin-top: 14px; }
}

/* Desktop: hero + strip fill the first screen exactly (header = utility bar 36 + nav 77). Spare height is shared evenly above and below the content. */
@media (min-width: 960px) {
  html body.home-page .hero { display: flex; flex-direction: column; min-height: calc(100vh - 113px); min-height: calc(100svh - 113px); }
  html body.home-page .hero > .container { flex: 1 1 auto; display: flex; align-items: center; }
  html body.home-page .hero__grid { width: 100%; }
  html body.home-page .hero__strip { flex: none; }
}

/* ---- strip feature row: staggered entrance, a travelling pulse, and a hover/pointer-light card feel ---- */
html body.home-page .hero__strip .hero__features li { position: relative; isolation: isolate; border-radius: 12px; cursor: default; transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .3s; }
html body.home-page .hero__strip .hero__features li::before { content: ""; position: absolute; z-index: -1; inset: -6px -4px; border-radius: 14px; background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 60%, transparent 80%); opacity: 0; transition: opacity .3s; }
html body.home-page .hero__strip .hero__features li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ff3b5c, #ff9bb0); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
html body.home-page .hero__strip .hero__features .i { transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .3s, color .3s, box-shadow .3s; }
html body.home-page .hero__strip .hero__features strong { transition: color .3s; }
html body.home-page .hero__strip .hero__features li:hover { transform: translateY(-3px); }
html body.home-page .hero__strip .hero__features li:hover::before { opacity: 1; }
html body.home-page .hero__strip .hero__features li:hover::after { transform: scaleX(1); }
html body.home-page .hero__strip .hero__features li:hover .i { transform: scale(1.1) rotate(-6deg); background: linear-gradient(135deg, #e01535, #c00b28); color: #fff; box-shadow: 0 8px 18px -6px rgba(224, 21, 53, .7); }

@keyframes strip-feat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes strip-feat-ping { 0%, 18%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); } 6% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .55); } 16% { box-shadow: 0 0 0 12px rgba(255, 59, 92, 0); } }
@keyframes strip-feat-glyph { 0%, 18%, 100% { transform: none; } 7% { transform: scale(1.14); } }
html.motion-ok body.home-page:not(.motion-paused) .hero__strip .hero__features li { animation: strip-feat-in .7s cubic-bezier(.22, 1, .36, 1) both; }
html.motion-ok body.home-page:not(.motion-paused) .hero__strip .hero__features li:nth-child(1) { animation-delay: .35s; }
html.motion-ok body.home-page:not(.motion-paused) .hero__strip .hero__features li:nth-child(2) { animation-delay: .5s; }
html.motion-ok body.home-page:not(.motion-paused) .hero__strip .hero__features li:nth-child(3) { animation-delay: .65s; }
html.motion-ok body.home-page:not(.motion-paused) .hero__strip .hero__features li:nth-child(4) { animation-delay: .8s; }
/* one icon at a time lights up in turn, only while the hero is on screen */
html.motion-ok body.home-page.hero-motion-active:not(.motion-paused) .hero__strip .hero__features li .i { animation: strip-feat-ping 10s ease-out infinite; }
html.motion-ok body.home-page.hero-motion-active:not(.motion-paused) .hero__strip .hero__features li:nth-child(2) .i { animation-delay: 2.5s; }
html.motion-ok body.home-page.hero-motion-active:not(.motion-paused) .hero__strip .hero__features li:nth-child(3) .i { animation-delay: 5s; }
html.motion-ok body.home-page.hero-motion-active:not(.motion-paused) .hero__strip .hero__features li:nth-child(4) .i { animation-delay: 7.5s; }
html.motion-ok body.home-page.hero-motion-active:not(.motion-paused) .hero__strip .hero__features li:hover .i { animation: none; }
@media (hover: none) { html body.home-page .hero__strip .hero__features li:hover { transform: none; } }

/* Hero intro paragraph: a touch larger, darker and heavier so it reads as the lead; no one-word last line. */
@media (min-width: 960px) {
  html body.home-page .hero .lead { max-width: 38em; color: #14284a; font-size: clamp(1rem, 2.35vh, 1.3rem); font-weight: 500; line-height: 1.55; text-wrap: pretty; }
}
@media (max-width: 959px) {
  html body.home-page .hero .lead { color: #14284a; font-size: 1.06rem; font-weight: 500; line-height: 1.6; text-wrap: pretty; }
}
