/* Phone layouts are content-sized; desktop compositions remain in the shared sheets. */
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .menu-toggle { min-height: 44px; padding: 8px 0 8px 12px; }
  .nav-links.open {
    max-height: calc(100svh - 79px);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .nav-links a, .dropdown-toggle { min-height: 44px; }
  .nav-dropdown a { overflow-wrap: anywhere; }
  .hero:not(.child-page-hero) {
    height: auto; min-height: calc(100svh - 80px); max-height: none;
    flex-direction: column; align-items: stretch; justify-content: flex-end;
  }
  .hero:not(.child-page-hero) .hero-content {
    align-self: auto; padding: clamp(140px, 25svh, 230px) 0 32px; margin-top: auto;
  }
  .hero-bottom { position: relative; inset: auto; gap: 16px; padding-bottom: 20px; margin: 0 auto; }
  .hero-bottom > a { min-height: 44px; flex-shrink: 0; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 36px); }
  .eyebrow { font-size: 11px; letter-spacing: 1.3px; }
  .button { min-height: 48px; font-size: 14px; gap: 22px; max-width: 100%; }
  .text-link { min-height: 44px; max-width: 100%; }
  .contact-email, .footer-contact a, .legal-copy a { overflow-wrap: anywhere; }

  /* Keep the opening copy, CTA and bottom links in separate flow rows. */
  .hero:not(.child-page-hero) {
    height: auto;
    min-height: calc(100svh - 80px);
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }
  .hero:not(.child-page-hero) .hero-content {
    align-self: auto;
    padding: clamp(140px, 25svh, 230px) 0 32px;
    margin-top: auto;
  }
  .hero h1 { font-size: clamp(36px, 9.5vw, 46px); line-height: 1.14; letter-spacing: -.8px; }
  .hero .eyebrow { font-size: 11px; }
  .hero p { max-width: 420px; font-size: 17px; line-height: 1.8; }
  .hero-bottom {
    position: relative;
    inset: auto;
    gap: 16px;
    font-size: 10px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    margin: 0 auto;
  }
  .hero-bottom > span { max-width: 160px; align-self: center; }
  .hero-bottom > a { min-height: 44px; flex-shrink: 0; }
  .hero-bottom .arrow-down { font-size: 20px; }

  .intro h2, .editorial-copy h2, .technology-header h2,
  .digital-heading h2, .contact-inner h2 {
    font-size: clamp(32px, 8.7vw, 40px);
    line-height: 1.18;
  }
  .page-head h1, .contact-page h1 { font-size: clamp(35px, 10vw, 45px); line-height: 1.16; }
  .intro p, .editorial-copy p, .digital-heading p { font-size: 17px; line-height: 1.85; }
  .editorial-image img { height: auto; aspect-ratio: 1.15; object-fit: cover; }
  .page-wide-image img { height: auto; aspect-ratio: 1.35; object-fit: cover; }
  .child-page-hero { height: auto; min-height: 540px; max-height: none; }
  .child-page-hero .hero-content { padding: 60px 0 55px; }
  .child-page-hero h1 { font-size: clamp(36px, 9.5vw, 45px); }
  .child-page-hero p { font-size: 17px; }
  .child-page-hero .breadcrumb-light { margin-bottom: 90px; }

  /* Full-width product photographs followed by readable copy and touch controls. */
  .cinema-stage { --photo-height: clamp(270px, 76vw, 390px); height: auto; min-height: 0; }
  .product-cinema .gallery-track { position: relative; inset: auto; height: var(--photo-height); }
  .cinema-stage:after {
    inset: 0 0 auto;
    height: var(--photo-height);
    background: linear-gradient(0deg, #193c35, #193c3500 54%);
  }
  .product-cinema .cinema-copy { height: auto; padding: 8px 0 28px; }
  .cinema-copy .eyebrow { font-size: 11px; }
  .cinema-copy h2 { font-size: clamp(33px, 8.8vw, 41px); min-height: 2.25em; line-height: 1.15; }
  .product-cinema .cinema-copy > p { font-size: 17px; line-height: 1.8; min-height: 5.4em; margin-top: 18px; }
  .cinema-copy .cinema-link { min-height: 48px; padding: 12px 18px; font-size: 13px; }
  .cinema-bottom { position: relative; inset: auto; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 0 0 26px; }
  .product-cinema .gallery-count { font-size: 12px; }
  .product-cinema .gallery-controls { display: contents; }
  .product-cinema .gallery-dots { justify-content: flex-end; }
  .product-cinema .gallery-controls .gallery-dots button { width: 44px; height: 44px; }
  .product-cinema .gallery-navigation { grid-column: 1 / -1; display: flex; gap: 10px; }
  .product-cinema .gallery-controls button { width: 46px; height: 46px; }
  .product-cinema .gallery-controls .gallery-auto { margin-right: auto; font-size: 12px; padding: 0 12px; }

  /* Give the panel the available phone width instead of shrinking a desktop shell. */
  .digital-showcase { padding: 56px 0; }
  .digital-heading { margin-bottom: 28px; }
  .platform-stage { padding: 0; border-radius: 12px; overflow: hidden; }
  .platform-toolbar { padding: 22px 16px; margin: 0; gap: 20px; }
  .platform-context { max-width: none; }
  .platform-context h3 { font-size: 24px; }
  .platform-context p { font-size: 14px; line-height: 1.7; }
  .platform-tabs { width: 100%; gap: 4px; padding: 4px; }
  .platform-tabs button { min-width: 0; min-height: 50px; padding: 10px 7px; gap: 7px; font-size: 13px; }
  .platform-tabs svg { width: 18px; height: 18px; }
  .platform-panel { min-width: 0; }
  .clinical-app { border: 0; border-radius: 0; box-shadow: none; }
  .app-topbar { padding: 16px 14px; flex-wrap: wrap; }
  .demo-pill { font-size: 10px; }
  .clinical-sidebar { padding: 12px; gap: 8px; }
  .profile-button { min-width: 0; min-height: 58px; padding: 10px 7px; gap: 7px; }
  .profile-button > span:last-child { min-width: 0; font-size: 12px; }
  .profile-button small { font-size: 11px; }
  .clinical-workspace { padding: 22px 14px; }
  .clinical-heading h3 { font-size: 23px; }
  .clinical-subtitle { font-size: 12px; line-height: 1.7; }
  .ui-overline { font-size: 11px; }
  .clinical-metrics { gap: 10px; }
  .clinical-metrics > div { padding: 14px 12px; }
  .clinical-metrics > div > span { font-size: 12px; }
  .clinical-metrics em { font-size: 11px; }
  .clinical-metrics strong { font-size: 30px; }
  .clinical-cards { gap: 14px; }
  .dashboard-card { padding: 18px 14px; }
  .card-heading h4 { font-size: 16px; }
  .card-heading > div > span, .card-heading > span { font-size: 12px; }
  .period-buttons button { min-height: 42px; font-size: 12px; padding-inline: 12px; }
  .pressure-chart { height: 205px; }
  .measurement-control label, .measurement-control output { font-size: 12px; }
  .measurement-control input { min-height: 44px; }
  .chart-legend { font-size: 11px; }
  .review-button { min-height: 48px; font-size: 14px; }
  .alert-card > p, .review-detail p { font-size: 14px; }
  .review-detail strong { font-size: 13px; }
  .alert-kicker, .note-time { font-size: 11px; }
  .usage-bars { height: 125px; }
  .usage-bars small { font-size: 12px; }
  .fit-card { padding: 0; }
  .fit-card > div { padding: 14px; }
  .fit-card p { font-size: 13px; }
  .app-bottomnote { font-size: 11px; }

  /* On a phone the mobile preview becomes an app surface, without a second device frame. */
  .mobile-preview-layout { padding: 0; gap: 0; }
  .phone-preview { display: flex; flex-direction: column; width: 100%; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .phone-camera, .phone-status, .phone-home { display: none; }
  .phone-content { padding: 22px 16px 26px; }
  .phone-app-header { margin-bottom: 24px; }
  .phone-intro { font-size: 13px; }
  .phone-content > h3 { font-size: 24px; }
  .phone-avatar { width: 36px; height: 36px; font-size: 12px; }
  .phone-navigation { order: -1; padding: 10px; border-top: 0; border-bottom: 1px solid #b5c7b6; }
  .phone-navigation button { min-height: 60px; font-size: 12px; padding: 8px 6px; }
  .patient-screen { min-height: 0; padding-top: 22px; }
  .daily-usage { padding: 16px 12px; }
  .daily-usage strong { font-size: 14px; }
  .daily-usage p, .daily-usage .ui-overline { font-size: 11px; }
  .patient-stat-row > div { padding: 14px 12px; }
  .patient-stat-row > div > span { font-size: 13px; }
  .patient-stat-row small { font-size: 11px; }
  .patient-card { padding: 17px 14px; }
  .patient-card .card-heading h4 { font-size: 15px; }
  .patient-card .card-heading > span { font-size: 11px; }
  .patient-card .pressure-chart { height: 165px; }
  .patient-card .measurement-control label, .patient-card .measurement-control output { font-size: 12px; }
  .patient-note strong { font-size: 13px; }
  .patient-note span, .patient-explainer { font-size: 13px; line-height: 1.8; }
  .patient-page-title { font-size: 16px; }
  .mobile-preview-copy { padding: 28px 20px; border-top: 1px solid #c8d6c5; }
  .mobile-preview-copy h3 { font-size: 33px; }
  .digital-context { gap: 16px; }
  .digital-context article { padding: 22px; }

  .children-section.children-panorama { display: block; }
  .children-panorama-photo { position: relative; inset: auto; z-index: 0; height: clamp(290px, 78vw, 420px); }
  .children-panorama:before { inset: 0 0 auto; z-index: 1; height: clamp(290px, 78vw, 420px); background: linear-gradient(0deg, #193c35, #193c3500 55%); pointer-events: none; }
  .children-panorama-content { position: relative; z-index: 2; padding: 10px 0 48px; }
  .children-panorama h2 { font-size: clamp(33px, 8.8vw, 40px); }
  .children-panorama-text p { font-size: 17px; }
  .children-panorama .button { min-height: 48px; font-size: 13px; }
}

@media (max-width: 480px) {
  .platform-tabs button { flex-direction: column; gap: 6px; min-height: 68px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .footer-links a { min-height: 38px; padding-block: 5px; }
  .footer-title { font-size: 11px; }
  .footer-contact > a { font-size: 23px; }
  .contact-email, .contact-page .contact-email { font-size: clamp(24px, 7.6vw, 32px); }
}
