/* HOME_V2_MOBILE_FINAL_POLISH_UAT_GUARD_V1
   Final mobile polish for IKIGAI Home V2.
   Scope: compact preferred landing page only. */

@media (max-width: 860px) {
  html,
  body {
    overflow-x: hidden;
  }

  body main#top {
    width: 100%;
  }

  body main#top > section {
    width: min(100% - 22px, 790px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 760px) {
  body main#top > section {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 22px 16px;
    border-radius: 22px;
  }

  body main#top > section.hero {
    padding-top: 26px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(14px);
  }

  .hero h1,
  .section-heading h2,
  .bonus-proof-heading h2,
  .home-v2-inline-cta h3 {
    text-wrap: balance;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 44px);
    line-height: 1.08;
  }

  .hero-subtitle,
  .section-heading p,
  .home-v2-inline-cta p {
    font-size: 16px;
    line-height: 1.65;
  }

  .bonus-proof-grid {
    gap: 16px;
  }

  .bonus-proof-card {
    border-radius: 18px;
    padding: 8px;
  }

  .bonus-proof-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .ikg-youtube-inline {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .ikg-youtube-play {
    width: 62px;
    height: 62px;
  }

  .ikg-youtube-play::before {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
  }

  .home-v2-inline-cta {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .home-v2-sticky-cta {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 10px;
    border-radius: 18px;
  }

  .home-v2-sticky-cta__copy strong {
    font-size: 13px;
  }

  .home-v2-sticky-cta__copy span {
    font-size: 11.5px;
  }

  .home-v2-sticky-cta .home-v2-cta-button {
    min-height: 40px;
    padding: 9px 13px;
  }

  .home-v2-final-cta-polish::after {
    max-width: 100% !important;
  }
}

@media (max-width: 520px) {
  body main#top > section {
    width: min(100% - 16px, 790px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.8vw, 38px);
  }

  .bonus-proof-heading h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .comparison-image,
  .comparison-table,
  .comparison-section img {
    max-width: 100%;
    height: auto;
  }

  .home-v2-cta-button {
    width: 100%;
  }

  .home-v2-cta-note {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .home-v2-sticky-cta {
    gap: 8px;
  }

  .home-v2-sticky-cta__copy span {
    display: none;
  }

  .home-v2-sticky-cta .home-v2-cta-button {
    flex: 0 0 auto;
  }
}
