/* Phone-only How It Works page design. Everything is inside the 639px media query and scoped to
   this page, so desktop and tablet layouts are untouched. Content and markup are unchanged. */
@media (max-width: 639px) {
  html[data-page="how"] body { --hm-red: #c8102e; --hm-pink: #fdeaee; --hm-line: #e3e7f0; }

  /* ---- Hero: copy on the left, heart on the right, red wave underneath ---- */
  html[data-page="how"] .service-hero--journey { position: relative; overflow: hidden; padding: 22px 0 48px; background: linear-gradient(180deg, #fdeef1 0%, #fff 92%); }
  html[data-page="how"] .service-hero--journey > .container { position: relative; display: block; min-height: 0; padding-top: 0; padding-bottom: 8px; }
  html[data-page="how"] .service-hero--journey .service-hero__copy { max-width: 66%; padding-block: 0; }
  html[data-page="how"] .service-hero--journey .eyebrow { margin-bottom: 12px; font-size: 11.5px !important; }
  html[data-page="how"] .service-hero--journey h1 { margin-bottom: 12px; font-size: 22.5px; line-height: 1.15; letter-spacing: -.02em; }
  html[data-page="how"] .service-hero--journey .lead { margin: 0; font-size: 13.5px !important; line-height: 1.55 !important; }
  html[data-page="how"] .service-hero--journey .service-heart { position: absolute; top: 0; right: -6px; width: 40%; min-height: 0; max-width: none; margin: 0; }
  html[data-page="how"] .service-hero--journey .service-heart img { position: relative; display: block; width: 100%; height: auto; }
  html[data-page="how"] .service-hero--journey .service-heart__halo { width: 130%; max-width: none; }
  html[data-page="how"] .service-hero--journey .service-reference-wave { height: 48px; }

  /* ---- Timeline ---- */
  html[data-page="how"] .journey-section { padding-top: 6px; }
  html[data-page="how"] .journey-section .step { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 14px; }
  html[data-page="how"] .journey-section .step::before { left: 14px; width: 2px; background: linear-gradient(180deg, #e8506c, #f5a8b9); }
  html[data-page="how"] .journey-section .step__marker { width: 30px; height: 30px; font-size: 14px; font-weight: 800; background: #fff !important; color: var(--hm-red) !important; box-shadow: inset 0 0 0 2px var(--hm-red) !important; }
  html[data-page="how"] .journey-section .step__card { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: start; padding: 14px 14px 14px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(15, 31, 69, .1); }
  html[data-page="how"] .journey-step-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--hm-pink); color: var(--hm-red); }
  html[data-page="how"] .journey-step-icon .i { width: 26px; height: 26px; }
  html[data-page="how"] .journey-step-copy { grid-column: 2; min-width: 0; }
  html[data-page="how"] .journey-section .step__card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
  html[data-page="how"] .journey-section .step__card p { margin: 4px 0 0; font-size: 13px !important; line-height: 1.5 !important; }
  html[data-page="how"] .journey-section .step__card .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
  html[data-page="how"] .journey-section .step__card .tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--hm-line); border-radius: 999px; background: #f6f7fb; color: #1d2b4a; font-size: 12px; font-weight: 600; }
  html[data-page="how"] .journey-section .step__card .tag .i { width: 14px; height: 14px; color: var(--hm-red); }
  html[data-page="how"] .journey-section .step__card .tag--decision { background: #fff; border-color: var(--hm-red); color: var(--hm-red); }

  /* ---- Records checklist ---- */
  html[data-page="how"] .handover-section { background: linear-gradient(180deg, #fdeef1, #fff6f8); }
  html[data-page="how"] .handover-card { border: 0; border-radius: 16px; box-shadow: 0 10px 26px rgba(15, 31, 69, .1); }

  /* ---- Urgent symptoms ---- */
  html[data-page="how"] .alert-emergency { border: 0; border-radius: 14px; background: linear-gradient(135deg, #fdeef1, #fff4f6); }
  html[data-page="how"] .alert-emergency h2 { color: var(--hm-red); font-size: 16px; }

  /* ---- Closing CTA: red card with a calendar badge ---- */
  html[data-page="how"] .cta-band { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 20px 16px 18px; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0, #e0284a 0, transparent 55%), linear-gradient(135deg, #c8102e, #8f0d29); box-shadow: 0 14px 30px rgba(200, 16, 46, .3); }
  html[data-page="how"] .cta-band::before { content: ""; grid-row: 1; grid-column: 1; width: 40px; height: 40px; background: #fff; -webkit-mask: var(--hm-cal) center / contain no-repeat; mask: var(--hm-cal) center / contain no-repeat; --hm-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
  html[data-page="how"] .cta-band > div:first-child { grid-column: 2; grid-row: 1; }
  html[data-page="how"] .cta-band h2 { color: #fff; font-size: 21px; line-height: 1.15; }
  html[data-page="how"] .cta-band p { margin: 6px 0 0; color: #ffe4e9; font-size: 13.5px !important; line-height: 1.5 !important; }
  html[data-page="how"] .cta-band__actions { grid-column: 1 / -1; margin-top: 14px; }
  html[data-page="how"] .cta-band__actions .btn { width: 100%; justify-content: center; border-radius: 12px; }

  /* ---- Footer in three columns ---- */
  html body .m-footer--cols .m-footer__brand p { margin-top: 12px; }
  html body .m-footer--cols .m-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin-top: 22px; }
  html body .m-footer--cols .m-cols h2 { position: relative; margin: 0 0 14px; padding-bottom: 8px; color: #fff; font-size: 13.5px; font-weight: 800; }
  html body .m-footer--cols .m-cols h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; border-radius: 2px; background: #e0284a; }
  html body .m-footer--cols .m-cols ul { margin: 0; padding: 0; list-style: none; }
  html body .m-footer--cols .m-cols a { display: block; padding: 5px 0; color: #d5dbea; font-size: 12px; line-height: 1.35; text-decoration: none; }
  html body .m-footer--cols .m-footer__emergency--row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; }
  html body .m-footer--cols .m-footer__emergency--row h2 { margin: 0; padding-right: 12px; border-right: 1px solid rgba(255, 255, 255, .25); font-size: 13px; letter-spacing: 0; text-transform: none; }
  html body .m-footer--cols .m-footer__emergency--row p { font-size: 12px !important; line-height: 1.45 !important; }
}
