/* Phone-only home page design. Everything visible lives inside the media query below, so desktop and
   tablet layouts (640px and wider) are untouched. .m-home is rendered into the home page only; .m-footer
   and .m-call are rendered on every page. All three are hidden above 639px. */
.m-home, .m-footer, .m-call { display: none; }
.m-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 639px) {
  :root { --m-navy: #0f1f45; --m-red: #c8102e; --m-red-2: #a50f2c; --m-pink: #fdeaee; --m-ink: #1f2937; --m-line: #e3e7f0; }

  /* Replace the desktop-style sections and footer with the phone design */
  html body.home-page :is(.hero, .story-intro, .stepper, .procedures-section, .home-network, .conversation-section, .sticky-cta) { display: none !important; }
  /* Phone footer replaces the standard footer on every page */
  html body .site-footer { display: none !important; }
  html body .m-footer { display: block; }
  html body:not(.home-page) .m-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html body.home-page { padding-bottom: 0 !important; }
  html body.home-page .m-home { display: block; background: #fff; overflow-x: clip; color: var(--m-ink); }
  html body.home-page .m-home :is(h1, h2, h3) { color: var(--m-navy); margin: 0; letter-spacing: -.01em; }
  html body.home-page .m-home p { margin: 0; }
  html body.home-page .m-home .i { width: 20px; height: 20px; flex: none; }

  /* ---- Header (every page): compact bar, call button and bare menu button ---- */
  html body .site-header .header__inner { min-height: 56px; gap: 8px; }
  html body .site-header .brand__logo { width: 168px; }
  html body .m-call { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border: 1px solid #e6e9f1; border-radius: 9px; background: #fff; color: var(--m-red); box-shadow: 0 3px 10px rgba(15, 31, 69, .12); }
  html body .m-call .i { width: 18px; height: 18px; }
  html body .m-call + .nav-toggle { margin-left: 0; }
  html body .m-call:focus-visible { outline: 3px solid var(--m-red); outline-offset: 3px; }
  html body .nav-toggle { width: 40px; min-height: 40px; justify-content: center; padding: 6px; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
  html body .nav-toggle .i { width: 26px; height: 26px; stroke-width: 2.2; }
  html body .nav-toggle__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

  /* ---- Shared bits ---- */
  html body.home-page .m-home p.m-eyebrow { margin: 0 0 6px; font-size: 10px !important; line-height: 1.3 !important; font-weight: 800; letter-spacing: .05em; white-space: nowrap; text-transform: uppercase; color: var(--m-red); }
  html body.home-page .m-home .m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
  html body.home-page .m-home .m-btn .i { width: 16px; height: 16px; }
  html body.home-page .m-home .m-btn--red { color: #fff; background: linear-gradient(135deg, #d3123a, var(--m-red-2)); box-shadow: 0 6px 14px rgba(200, 16, 46, .28); }
  html body.home-page .m-home .m-btn--ghost { color: var(--m-navy); background: #fff; border: 1px solid var(--m-line); box-shadow: 0 3px 10px rgba(15, 31, 69, .08); }
  html body.home-page .m-home .m-btn--ghost .i:first-child { color: var(--m-red); }
  html body.home-page .m-home .m-btn--outline { color: var(--m-red); background: #fff; border: 1.5px solid var(--m-red); }
  html body.home-page .m-home :is(a, button):focus-visible { outline: 3px solid var(--m-red); outline-offset: 3px; }

  /* ---- Hero ---- */
  html body.home-page .m-hero { background: linear-gradient(180deg, #fff 0%, #fdf1f3 100%); padding-top: 16px; }
  html body.home-page .m-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: center; gap: 0; padding: 0 16px; }
  html body.home-page .m-hero h1 { font-size: 25px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
  html body.home-page .m-hero h1 span { color: var(--m-red); }
  html body.home-page .m-hero__art { position: relative; margin-right: -8px; }
  html body.home-page .m-hero__art::before { content: ""; position: absolute; inset: 2% -10% 0 4%; border-radius: 48% 52% 50% 50%; background: radial-gradient(closest-side, #fbd0d8, rgba(251, 208, 216, 0) 100%); }
  html body.home-page .m-hero__art img { position: relative; display: block; width: 100%; height: auto; }
  html body.home-page .m-pulse { position: absolute; right: 4px; bottom: 8%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #d3123a, var(--m-red-2)); color: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .7), 0 8px 16px rgba(200, 16, 46, .35); }
  html body.home-page .m-pulse .i { width: 20px; height: 20px; }
  html body.home-page .m-hero p.m-hero__lead { margin: 10px 16px 0; font-size: 13px !important; line-height: 1.5 !important; color: var(--m-ink); }
  html body.home-page .m-hero__actions { display: grid; gap: 8px; padding: 14px 16px 0; }

  /* ---- Navy feature strip with wave edge ---- */
  html body.home-page .m-strip { margin-top: 16px; }
  html body.home-page .m-strip__wave { display: block; width: 100%; height: 30px; margin-bottom: -1px; }
  html body.home-page .m-strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 2px 6px 18px; list-style: none; background: var(--m-navy); border-radius: 0 0 16px 16px; }
  html body.home-page .m-strip__list li { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #dfe5f4; font-size: 10.5px; line-height: 1.25; text-align: center; }
  html body.home-page .m-strip__list strong { display: block; color: #fff; font-size: 11.5px; font-weight: 700; }
  html body.home-page .m-ring { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); box-shadow: 0 0 12px rgba(255, 90, 120, .4); }
  html body.home-page .m-ring .i { color: #fff; width: 19px; height: 19px; }

  /* ---- Focus intro ---- */
  html body.home-page .m-focus { padding: 22px 16px 4px; }
  html body.home-page .m-focus h2 { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
  html body.home-page .m-focus h2 span { color: var(--m-red); }
  html body.home-page .m-focus > p:not(.m-eyebrow) { margin-top: 10px; font-size: 13px !important; line-height: 1.5 !important; }
  html body.home-page .m-priority { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 14px; border-radius: 12px; background: linear-gradient(90deg, #fdeaee, #fff3f5); box-shadow: 0 5px 14px rgba(200, 16, 46, .09); }
  html body.home-page .m-priority::after { content: ""; flex: none; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: #fbd6de url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
  html body.home-page .m-priority__heart { width: 26px; height: 26px; color: var(--m-red); }
  html body.home-page .m-priority strong { font-size: 13.5px; line-height: 1.3; color: var(--m-navy); }
  html body.home-page .m-icons { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0 6px; padding: 0; list-style: none; }
  html body.home-page .m-icons li { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--m-pink); color: var(--m-red); box-shadow: 0 4px 10px rgba(200, 16, 46, .1); }
  html body.home-page .m-icons .i { width: 20px; height: 20px; }

  /* ---- Journey slider ---- */
  html body.home-page .m-journey { margin-top: 12px; padding: 14px 0 12px; background: #f5f5fa; border-radius: 0 0 22px 22px; }
  html body.home-page .m-slides { display: flex; gap: 10px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  html body.home-page .m-slides::-webkit-scrollbar { display: none; }
  html body.home-page .m-slide { flex: 0 0 calc(100% - 32px); scroll-snap-align: start; display: grid; grid-template-columns: 40% minmax(0, 1fr); grid-template-areas: "media step" "media title" "text text" "btn btn" "aside aside"; column-gap: 12px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(15, 31, 69, .1); }
  html body.home-page .m-slide__body { display: contents; }
  html body.home-page .m-slide__media { grid-area: media; align-self: start; aspect-ratio: 1 / 1.25; overflow: hidden; border-radius: 10px; background: #e8ebf3; }
  html body.home-page .m-slide__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
  html body.home-page .m-slide__media--heart img { object-fit: contain; padding: 6px; }
  html body.home-page .m-slide p.m-slide__step { grid-area: step; align-self: end; font-size: 10px !important; line-height: 1.3 !important; font-weight: 700; color: #5d6880; }
  html body.home-page .m-slide__step span { display: block; margin-bottom: 2px; letter-spacing: .07em; text-transform: uppercase; color: var(--m-red); }
  html body.home-page .m-slide h3 { grid-area: title; margin-top: 4px; font-size: 17px; line-height: 1.17; font-weight: 800; }
  html body.home-page .m-slide h3 span { color: var(--m-red); }
  html body.home-page .m-slide p.m-slide__text { grid-area: text; margin-top: 12px; font-size: 12.5px !important; line-height: 1.5 !important; }
  html body.home-page .m-slide .m-slide__btn { grid-area: btn; margin-top: 12px; width: 100%; }
  html body.home-page .m-slide p.m-slide__aside { grid-area: aside; margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: #f6f7fb; font-size: 11.5px !important; line-height: 1.45 !important; color: #4a5568; }
  html body.home-page .m-dots { display: flex; justify-content: center; gap: 0; margin-top: 4px; }
  html body.home-page .m-dots button { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
  html body.home-page .m-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #cfd3df; transition: background .2s, transform .2s; }
  html body.home-page .m-dots button[aria-current="true"]::before { background: var(--m-red); transform: scale(1.15); }

  /* ---- Procedures ---- */
  html body.home-page .m-procs { padding: 22px 16px 4px; background: linear-gradient(180deg, #fff, #f8f9fc); }
  html body.home-page .m-procs h2, html body.home-page .m-region h2 { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
  html body.home-page .m-procs > p:not(.m-eyebrow):not(.m-sr):not(.m-procs__all), html body.home-page .m-region > p:not(.m-eyebrow) { margin-top: 9px; font-size: 12.5px !important; line-height: 1.5 !important; }
  html body.home-page .m-pills { display: flex; gap: 8px; margin: 14px -16px 12px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
  html body.home-page .m-pills::-webkit-scrollbar { display: none; }
  html body.home-page .m-pills button { flex: none; min-height: 34px; padding: 7px 16px; border: 1px solid var(--m-line); border-radius: 999px; background: #fff; color: var(--m-navy); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 8px rgba(15, 31, 69, .06); }
  html body.home-page .m-pills button[aria-pressed="true"] { background: linear-gradient(180deg, #14275a, var(--m-navy)); border-color: var(--m-navy); color: #fff; }
  html body.home-page .m-cards { display: flex; gap: 10px; margin: 0 -16px; padding: 4px 16px 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  html body.home-page .m-cards::-webkit-scrollbar { display: none; }
  html body.home-page .m-proc { flex: 0 0 164px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #eceff5; box-shadow: 0 6px 16px rgba(15, 31, 69, .09); color: inherit; text-decoration: none; }
  html body.home-page .m-proc[hidden] { display: none; }
  html body.home-page .m-proc img { display: block; width: 100%; height: 80px; object-fit: cover; }
  html body.home-page .m-proc__body { display: flex; flex: 1; flex-direction: column; padding: 10px 11px 11px; }
  html body.home-page .m-proc strong { font-size: 13px; line-height: 1.2; color: var(--m-navy); }
  html body.home-page .m-proc__desc { margin-top: 5px; font-size: 11px; line-height: 1.4; color: #4a5568; }
  html body.home-page .m-proc__more { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--m-red); }
  html body.home-page .m-proc__more .i { width: 14px; height: 14px; }
  html body.home-page .m-procs__all { margin-top: 8px; text-align: center; }
  html body.home-page .m-procs__all .m-btn { width: 100%; border-radius: 999px; }

  /* ---- Region ---- */
  html body.home-page .m-region { margin-top: 8px; padding: 22px 16px 6px; background: linear-gradient(180deg, #fdeef0, #fff 60%); border-radius: 22px 22px 0 0; }
  html body.home-page .m-region h2 span { color: var(--m-red); }
  html body.home-page .m-places { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; height: clamp(132px, 38vw, 230px); margin: 18px 0 30px; border-radius: 18px; box-shadow: 0 10px 24px rgba(15, 31, 69, .14); }
  html body.home-page .m-places figure { position: relative; margin: 0; overflow: hidden; min-width: 0; }
  html body.home-page .m-places figure:first-of-type { border-radius: 18px 4px 4px 18px; }
  html body.home-page .m-places figure:nth-of-type(3) { border-radius: 4px 18px 18px 4px; }
  html body.home-page .m-places figure:nth-of-type(2) { border-radius: 4px; }
  html body.home-page .m-places img { display: block; width: 100%; height: 100%; object-fit: cover; }
  html body.home-page .m-places figure:first-of-type img { object-position: 50% 80%; }
  html body.home-page .m-places figure:nth-of-type(3) img { object-position: 50% 40%; }
  html body.home-page .m-places figcaption { position: absolute; z-index: 1; left: 50%; top: 8px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: calc(100% - 8px); padding: 4px clamp(6px, 2vw, 10px); border-radius: 999px; background: #fff; color: var(--m-navy); font-size: clamp(10px, 2.9vw, 12.5px); font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 8px rgba(15, 31, 69, .22); }
  html body.home-page .m-places figcaption .i { width: 12px; height: 12px; color: var(--m-red); }
  html body.home-page .m-places .flag { width: 14px; height: 14px; flex: none; }
  html body.home-page .m-places__badge { position: absolute; z-index: 2; right: 16px; bottom: -22px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--m-red); box-shadow: 0 6px 16px rgba(15, 31, 69, .25); }
  html body.home-page .m-places__badge .i { width: 22px; height: 22px; }
  @media (max-width: 340px) { html body.home-page .m-places figcaption .flag { display: none; } html body.home-page .m-places figcaption .i { display: none; } }
  html body.home-page .m-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
  html body.home-page .m-links a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #f3e7ea; box-shadow: 0 5px 14px rgba(15, 31, 69, .07); color: var(--m-ink); font-size: 11.5px; line-height: 1.35; text-decoration: none; }
  html body.home-page .m-links__icon { width: 28px !important; height: 28px !important; color: var(--m-red); }
  html body.home-page .m-links__text { flex: 1; min-width: 0; }
  html body.home-page .m-links__text strong { display: block; margin-bottom: 1px; font-size: 13.5px; color: var(--m-navy); }
  html body.home-page .m-links__go { box-sizing: content-box; width: 10px !important; height: 10px !important; padding: 5px; border-radius: 50%; background: var(--m-pink); color: var(--m-red); transform: rotate(-90deg); }

  /* ---- Conversation band ---- */
  html body.home-page .m-cta { padding: 8px 8px 14px; }
  html body.home-page .m-cta__card { padding: 16px 16px 14px; border-radius: 12px; color: #fff; background: radial-gradient(120% 140% at 100% 0, #e0284a 0, transparent 55%), linear-gradient(135deg, #c8102e, #8f0d29); box-shadow: 0 10px 24px rgba(200, 16, 46, .3); }
  html body.home-page .m-cta h2 { color: #fff; font-size: 22px; line-height: 1.12; font-weight: 800; }
  html body.home-page .m-cta p { margin-top: 5px; font-size: 12.5px !important; line-height: 1.45 !important; color: #ffe4e9; }
  html body.home-page .m-cta__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--m-red); font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
  html body.home-page .m-cta__btn .i { width: 16px; height: 16px; flex: none; }

  /* ---- Footer ---- */
  html body .m-footer { padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--m-navy); color: #c9d1e4; font-size: 12px; line-height: 1.5; }
  html body:not(.home-page) .m-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html body .m-footer p { margin: 0; font-size: 12px !important; line-height: 1.5 !important; }
  html body .m-footer__brand .brand { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #fff; }
  html body .m-footer__brand .brand__logo { display: block; width: 150px; height: auto; }
  html body .m-footer__brand p { margin-top: 10px; }
  html body .m-footer__email { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #fff; text-decoration: none; word-break: break-word; }
  html body .m-footer__email .i { width: 15px; height: 15px; }
  html body .m-acc { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  html body .m-footer__brand + .m-acc { margin-top: 8px; }
  html body .m-acc:nth-of-type(3) { border-bottom: 1px solid rgba(255, 255, 255, .2); }
  html body .m-acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 38px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
  html body .m-acc summary::-webkit-details-marker { display: none; }
  html body .m-acc summary .i { width: 18px; height: 18px; transition: transform .2s; }
  html body .m-acc[open] summary .i { transform: rotate(180deg); }
  html body .m-acc ul { margin: 0; padding: 0 0 8px; list-style: none; }
  html body .m-acc a { display: flex; align-items: center; min-height: 40px; color: #d5dbea; font-size: 13px; text-decoration: none; }
  html body .m-footer__emergency { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(255, 102, 133, .7); border-radius: 10px; background: rgba(255, 0, 57, .08); }
  html body .m-footer__emergency h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
  html body .m-footer__emergency .i { width: 18px; height: 18px; color: #ff8aa0; }
  html body .m-footer__emergency p { color: #fff; }
  html body .m-footer p.m-footer__disclaimer { margin-top: 14px; font-size: 11.5px !important; color: #aab4cc; }
  html body .m-footer p.m-footer__copy { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); text-align: center; color: #c9d1e4; }

  @media (prefers-reduced-motion: reduce) {
    html body.home-page .m-dots button::before, html body .m-acc summary .i { transition: none; }
  }
}
