/* Phone header and homepage photos. Wide screens stay as built.
   A later frontend build replaces index.html and drops these links.
   Put /home-mobile.css and /home-mobile.js back after that build. */

@media (max-width: 800px) {
  header .mx-auto {
    gap: 0.45rem;
    padding-inline: 0.8rem;
  }

  header span.truncate {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  header .ml-auto > .lang-sticker,
  header .ml-auto > button[aria-pressed] {
    display: none !important;
  }

  header .ml-auto {
    display: flex;
    align-items: center;
  }

  details.menu {
    order: 1;
  }

  header .ml-auto > a.cta {
    order: 2;
    display: inline-flex !important;
    box-sizing: border-box;
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.75rem;
    align-items: center;
  }

  details.menu > summary {
    box-sizing: border-box;
    height: 2.5rem;
    border-radius: 0.75rem;
    padding: 0 0.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }

  details.menu .menu-panel {
    position: fixed !important;
    top: 4.15rem;
    right: 0.65rem !important;
    left: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 1.3rem) !important;
    max-height: calc(100dvh - 5.2rem);
    overflow: auto;
    text-align: center;
    padding: 0.7rem 1.15rem 0.8rem;
    box-sizing: border-box;
  }

  details.menu .menu-panel a,
  details.menu .menu-legal {
    text-align: center;
    justify-content: center;
  }

  details.menu .menu-legal {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.2rem;
  }

  details.menu .menu-panel > a.cta {
    display: none !important;
  }

  details.menu .lang-sticker {
    width: 100%;
    height: auto;
    margin: 0.45rem 0 0;
    padding: 0;
    justify-content: center;
    gap: 0.2rem;
    background: transparent;
    border-radius: 0;
  }

  details.menu .lang-sticker a {
    color: var(--ink) !important;
    background: transparent !important;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 500;
  }

  details.menu .lang-sticker a:hover {
    color: var(--ink) !important;
    background: transparent !important;
  }

  details.menu .lang-sticker a[aria-current="true"] {
    background: #0f766e !important;
    color: #fff !important;
  }

  details.menu button[aria-pressed] {
    width: 100%;
    height: 2.4rem;
    margin: 0.35rem 0 0.15rem;
    border-radius: 0.75rem;
    justify-content: center;
  }

  body:has(.pain-film) .hero-pain,
  .hero-pain.prepare-hero {
    align-items: flex-end;
    width: 100%;
    min-height: 28rem;
    height: 28rem;
    max-height: none;
    aspect-ratio: auto;
  }

  #how {
    padding-top: 0;
  }

  #how .pt-6 {
    padding-top: 0.55rem;
  }

  #how h2 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  body:has(.pain-film) .hero-pain > img.hero-bg {
    object-fit: cover;
    object-position: 78% 46%;
  }

  body:has(.pain-film) .hero-pain > .hero-pain-copy {
    padding: 0 0.85rem 1.35rem;
  }

  body:has(.pain-film) .hero-pain-plate {
    display: block;
    width: 12.4rem;
    max-width: 70%;
    margin: 0;
    padding: 0.64rem 0.72rem 0.68rem;
  }

  body:has(.pain-film) .hero-pain-plate h1 {
    font-size: 1.08rem;
    line-height: 1.12;
  }

  body:has(.pain-film) .hero-pain-plate p {
    display: none !important;
  }

  body:has(.pain-film) .hero-pain-plate .mt-6 {
    display: flex !important;
    margin-top: 0.6rem;
  }

  body:has(.pain-film) .hero-pain-plate a {
    display: none !important;
  }

  body:has(.pain-film) .hero-pain-plate a.cta {
    display: inline-flex !important;
    width: 100%;
    height: 2.08rem;
    padding-inline: 0.55rem;
    font-size: 0.8rem;
    justify-content: center;
  }

  .hero-corner {
    display: none !important;
  }

  .hero-pain.prepare-hero .hero-pain-plate {
    width: 58%;
    max-width: 58%;
    margin: 0;
    padding: 0.64rem 0.72rem 0.7rem;
  }

  .hero-pain.prepare-hero .hero-pain-plate h1 {
    font-size: 1.08rem;
    line-height: 1.12;
  }

  .hero-pain.prepare-hero .hero-pain-plate p {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .pain-film-viewport {
    aspect-ratio: 4 / 3;
  }

  .pain-sticker {
    left: 0.7rem;
    right: auto;
    bottom: 0.85rem;
    width: 9.92rem;
    max-width: 62%;
    padding: 0.51rem 0.58rem 0.54rem;
    gap: 0.28rem;
    text-align: left;
    cursor: pointer;
  }

  .pain-sticker strong {
    display: block !important;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.12;
    font-weight: 600;
  }

  .pain-sticker p,
  .pain-sticker span:not(.pain-go) {
    display: none !important;
  }

  .pain-sticker .pain-go {
    display: block;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .steps-rail {
    gap: 0.85rem 0.65rem;
    margin-top: 0.7rem;
  }

  .step-index {
    display: none;
  }

  .step-node {
    text-align: left;
    padding: 0;
  }

  .step-icon {
    margin: 0;
  }

  .step-node h3 {
    margin: 0.55rem 0 0.2rem;
  }

  .step-node h3::before {
    content: none;
  }

  .step-node p {
    text-align: left;
  }

  footer nav,
  footer .lang-sticker {
    display: none !important;
  }
}
