/* The original Apply hero remains visible on larger screens. */
.family-mobile { display: none; }
.family-photo, .family-copy, .family-actions { display: contents; }

@media (max-width: 760px) {
  .family-desktop, .apply-intro .partners-section, .apply-intro ~ .trust-bar { display: none; }
  .family-mobile { display: block; }
  .coverage-landing .header-inner { min-height: 56px; gap: 12px; }
  .header-inner .brand { min-height: 44px; }
  .header-inner .brand-mark, .header-inner .brand small { display: none; }
  .header-inner .brand strong { font-size: 2rem; font-weight: 800; letter-spacing: -.08em; }
  .header-inner .brand-period { color: #4a4fd1; }
  .family-city {
    margin-right: auto; padding-left: 12px; border-left: 1px solid #d6d9e3;
    font-size: .64rem; line-height: 1.4; font-weight: 750;
    letter-spacing: .11em; text-transform: uppercase; color: #565b75;
  }
  .header-actions { gap: 8px; }
  .header-actions .language-button, .header-actions .header-phone {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px;
  }
  .header-actions .language-button {
    border: 0; padding: 6px; text-decoration: none; font-size: .875rem; font-weight: 650; color: #343785;
  }
  .header-actions .header-phone {
    border: 0; border-radius: 50%; padding: 0; color: #30338b;
    background: radial-gradient(circle closest-side, #f0f0ff 82%, transparent 84%);
  }
  .header-actions .header-phone svg { width: 17px; height: 17px; }

  .apply-intro { background: white; }
  .apply-intro .enrollment-countdown { background: #292970; padding: 7px 10px; }
  .family-announcement {
    margin: 0; text-align: center; color: #fff; font-size: .76rem; line-height: 1.4; letter-spacing: .014em;
  }
  .family-announcement b { font-weight: 750; }
  .enrollment-countdown:not([data-phase]) .enrollment-countdown-card,
  .enrollment-countdown[data-phase="started"] .enrollment-countdown-card,
  .enrollment-countdown[data-phase="before"] .family-announcement,
  .enrollment-countdown[data-phase="after"] .family-announcement { display: none; }

  .apply-intro .coverage-hero { padding: 0; background: white; }
  .apply-intro .coverage-hero-grid { display: block; width: 100%; max-width: none; }
  .coverage-shopping { width: 100%; }
  .family-photo {
    display: flex; align-items: flex-end;
    min-height: clamp(305px, 42svh, 415px); padding: 76px 20px 19px;
    color: white; text-align: left;
    background-color: #26254d;
    background-image:
      linear-gradient(180deg, transparent 14%, rgba(18,17,49,.05) 30%, rgba(22,21,58,.76) 65%, #212044 100%),
      url('/assets/houston-family-breakfast.webp');
    background-size: cover; background-position: center, center 28%;
  }
  .family-copy { display: block; width: min(100%, 36rem); margin-inline: auto; }
  .coverage-shopping .family-copy h1 {
    margin: 0; max-width: 22ch; font-size: clamp(1.8rem, 7.8vw, 2.6rem);
    line-height: 1.055; letter-spacing: -.042em; font-weight: 740; color: white; text-wrap: balance;
  }
  .family-copy h1 strong { font-weight: inherit; color: #dddfff; white-space: nowrap; }
  .family-copy .family-subhead {
    max-width: 53ch; margin: 9px 0 0; color: #faf9ff;
    font-size: .88rem; line-height: 1.38; font-weight: 480;
  }
  .family-actions {
    display: block; width: min(100%, 38rem); margin-inline: auto; padding: 19px 20px 0;
  }
  .coverage-shopping #health-entry {
    position: relative; display: flex; justify-content: center; align-items: center; gap: 12px;
    width: 100%; min-height: 54px; padding: 12px 22px; border: 0; border-radius: 13px;
    color: white; background: linear-gradient(105deg, #3e60d5, #4a46c4);
    box-shadow: 0 4px 12px #3036a01c; font-size: 1.025rem; font-weight: 750; letter-spacing: -.01em;
  }
  #health-entry::after { content: '→'; font: 1.2em/1 sans-serif; }
  .family-actions .family-reassurance { margin: 10px 0 0; color: #555d70; font-size: .78rem; line-height: 1.45; }
  .family-badges {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
    width: min(100%, 38rem); margin: 0 auto; padding: 16px 18px 18px; list-style: none;
  }
  .family-badges li {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 74px; padding: 8px 4px; border: 1px solid #e3e5f1; border-radius: 12px;
    background: #f8f9fe; color: #353a5c; font-size: .735rem; line-height: 1.23; text-wrap: balance;
  }
  .family-badges li > span { max-width: 13ch; }
  .family-badges b { display: block; font-weight: 750; }
  .family-badges svg { width: 19px; height: 19px; color: #5154ad; }
  .family-carriers {
    width: min(calc(100% - 40px), 35.5rem); margin-inline: auto; padding: 10px 0 19px;
    border-top: 1px solid #e4e7ed; text-align: center;
  }
  .family-carriers p { margin: 0 0 7px; color: #5b6071; font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
  .family-carrier-window { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .family-carrier-window:focus-visible { outline: 2px solid #4a4fd1; outline-offset: 2px; }
  .family-carrier-track { display: flex; width: 200%; }
  .family-carrier-group { flex: 0 0 50%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; justify-items: center; min-height: 36px; }
  .family-carrier-group img { width: 86%; max-height: 24px; object-fit: contain; filter: grayscale(1); opacity: .85; }
  .family-carrier-group img:nth-child(2) { width: 65%; }

  .testimonial-rail { scroll-snap-type: x proximity; }
  .testimonial-rail > * { scroll-snap-align: start; }
  .footer-links { gap: 4px 14px; margin-top: 10px; }
  .footer-links a, .testimonial-source a, .faq-section .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
  .mobile-cta > .button { justify-content: center; gap: 10px; font-size: 1rem; }
  .mobile-cta[hidden] { display: none; }
}

@media (max-width: 760px) and (max-height: 710px) {
  .coverage-landing .header-inner { min-height: 48px; }
  .apply-intro .enrollment-countdown { padding-block: 5px; }
  .family-photo { min-height: clamp(218px, 40svh, 285px); padding: 56px 16px 14px; }
  .coverage-shopping .family-copy h1 { font-size: clamp(1.5rem, 6.8vw, 1.85rem); }
  .family-copy .family-subhead { margin-top: 6px; font-size: .8rem; }
  .family-actions { padding: 12px 16px 0; }
  .coverage-shopping #health-entry { min-height: 48px; }
  .family-actions .family-reassurance { margin-top: 6px; }
  .family-badges { padding: 10px 16px; }
  .family-badges li { min-height: 59px; gap: 4px; padding-block: 5px; }
  .family-carriers { padding: 7px 0 10px; }
  .family-carriers p { margin-bottom: 3px; }
}
