/* Phone layouts are isolated here so the approved desktop stays unchanged. */
@media (max-width: 740px) {
  .header { height: auto; min-height: 52px; padding-inline: 20px; }
  .header .brand { min-height: 44px; gap: 8px; font-size: 20px; }
  .header .brand img { width: 28px; height: 28px; flex-basis: 28px; }
  .header .language select { min-width: 76px; min-height: 44px; padding: 8px; font-size: 12px; }
  .header nav, .header .nav-cta { display: none; }
  /* svh accounts for visible browser controls without jumping when they collapse.
     A minimum, not a fixed height, lets enlarged text and short screens scroll. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100svh - 52px); }
  .hero-copy { display: flex; flex-direction: column; justify-content: space-between; flex: 1; width: 100%; padding: clamp(12px, 2.5svh, 24px) 22px 12px; }
  .hero .eyebrow { font-size: 10px; line-height: 16px; margin-bottom: clamp(8px, 1.5svh, 12px); }
  .hero .spark { font-size: 16px; line-height: 1; margin-right: 8px; vertical-align: -1px; }
  .hero h1, body[data-language=en] .hero h1, body[data-language=ja] .hero h1 {
    font-size: clamp(32px, min(10.5vw, 6svh), 44px); line-height: 1.13; margin-bottom: 12px;
  }
  .hero-description { font-size: 14px; line-height: 1.6; max-width: none; margin: 0; }
  .hero-description br { display: initial; }
  .hero-character {
    --hero-stage: clamp(160px, calc(100svh - 395px), 320px);
    position: relative; left: auto; top: -7px; transform: none; flex: none;
    width: min(100%, var(--hero-stage));
    /* Reserve the jump above; ease the overlap below as the stage shrinks. */
    margin: 0 auto max(-30px, calc(38px - var(--hero-stage) / 4)); padding-top: 32px;
  }
  .pet-button { width: 100%; height: auto; aspect-ratio: 1; }
  .hero-conversion { position: relative; z-index: 1; align-items: stretch; gap: 8px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; }
  .hero-actions .button { min-width: 0; min-height: 48px; padding: 10px; font-size: 13px; gap: 8px; }
  .hero-actions .cta-arrow, .meet-action .cta-arrow { width: 16px; font-size: 18px; }
  .film-link { min-width: 0; min-height: 44px; padding: 8px 0; gap: 7px; white-space: normal; text-align: left; }
  .film-link .play-circle { width: 25px; height: 25px; flex: 0 0 25px; font-size: 9px; }
  .film-link > span:last-child { font-size: 12px; }
  .hero-conversion .availability { font-size: 11px; }
  .hero-bottom {
    position: static; padding: 0 22px 4px; font-size: 8px; gap: 12px; align-items: center;
  }
  .hero-bottom .motion-toggle { min-height: 44px; font-size: 10px; }
  .film-modal-head button { min-width: 44px; min-height: 44px; padding: 0; }
  .compatibility { gap: 5px 14px; padding: 14px 20px; font-size: 10px; flex-wrap: wrap; }
  .compatibility i { display: none; }
  .intro { padding-top: 40px; padding-bottom: 40px; }
  .intro h2 { font-size: clamp(27px, 7.7vw, 32px); margin-bottom: 0; }
  .intro > p:last-child { font-size: 15px; line-height: 1.7; margin-top: 0; }
  .intro > p:last-child br { display: initial; }
  .demo-tabs {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
    max-width: none; overflow-x: auto; overscroll-behavior-x: contain;
    margin: 0 -24px 18px; padding: 2px 24px 10px;
    scroll-padding-inline: 24px; scroll-snap-type: x proximity;
    scrollbar-width: thin; scrollbar-color: #c9d0bf transparent;
  }
  .demo-tabs button {
    flex: 0 0 auto; flex-direction: row; min-width: 112px; min-height: 46px;
    padding: 10px 14px; gap: 8px; white-space: nowrap; font-size: 14px;
    scroll-snap-align: start;
  }
  .demo-tabs button > span { font-size: 20px; line-height: 1; }
  .demo-layout { position: relative; grid-template-columns: minmax(0, 1fr); }
  .demo-copy {
    container-type: normal; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px; align-items: center; padding: 20px;
  }
  .demo-copy .chapter { display: none; }
  .demo-copy h3 { font-size: 21px; line-height: 1.35; min-height: 0; margin: 0; }
  .demo-copy p { font-size: 14px; line-height: 1.65; min-height: 0; margin: 0; }
  .demo-copy .copy-line { white-space: normal; }
  body[data-language=ja] .demo-copy h3 { word-break: normal; overflow-wrap: anywhere; }
  .demo-copy p .copy-line { display: inline; }
  .demo-copy p .copy-line + .copy-line::before { content: ' '; }
  .demo-screen::before { padding-top: 66.666667%; }
  .demo-arrows { display: none; }
  .video-controls { left: auto; right: 12px; bottom: 12px; }
  .video-controls > span { display: none; }
  .video-controls button { width: 40px; height: 40px; font-size: 14px; }
  .demo-section { padding-bottom: 44px; }
  .demo-section .control-row { margin-top: 16px; }
  .control-row, .privacy-card { padding: 18px; row-gap: 14px; }
  .privacy-card { margin-top: 12px; }
  .control-list > li, .privacy-list > li { gap: 12px; }
  .control-list > li > span:last-child { white-space: pre-line; }
  .privacy-policy {
    grid-column: 1 / -1; justify-self: start; display: inline-flex;
    align-items: center; gap: 6px; min-height: 44px; padding: 0;
    border: 0; margin: 0 0 0 28px;
  }
  .privacy-policy > span:first-child { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
  .privacy-policy > span:last-child { font-size: 18px; }
  .demo-section + .meet { padding-top: 12px; }
  .meet { display: block; padding-bottom: 32px; }
  .meet-icon { display: none; }
  .meet-copy {
    display: grid; grid-template-columns: minmax(0, 1fr) 132px;
    column-gap: 16px; row-gap: 12px; align-items: center; width: 100%;
  }
  .meet .eyebrow { grid-column: 1 / -1; margin: 0 0 2px; font-size: 10px; }
  .meet h2 { grid-column: 1; grid-row: 2; font-size: clamp(20px, 6vw, 28px); line-height: 1.3; word-break: keep-all; }
  .meet-action { grid-column: 2; grid-row: 2; flex-direction: column; align-items: stretch; gap: 8px; }
  .meet-action .button { width: 100%; min-width: 0; min-height: 48px; padding: 12px 10px; gap: 8px; font-size: 13px; line-height: 1.4; text-align: center; }
  .meet-copy > p:not(.eyebrow) { grid-column: 1 / -1; grid-row: 3; font-size: 14px; line-height: 1.65; max-width: none; margin: 2px 0 0; }
  .meet-body-line { display: block; }

  .faq-section { gap: 22px; padding-top: 30px; padding-bottom: 48px; }
}

@media (max-width: 360px) {
  .demo-copy { padding: 16px; gap: 12px; }
  .demo-copy h3 { font-size: 18px; }
  .meet-copy { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 12px; }
}
