/* ==========================================================
   8URSOS - HOME MOBILE v32
   Correcoes cirurgicas baseadas em capturas reais de celular.
   Escopo: somente a home em telas ate 680px, com um pequeno
   ajuste de ergonomia do menu ate 960px.
   Nenhuma regra deste arquivo atua no desktop > 960px.
   ========================================================== */

@media (max-width: 960px) {
  .home-page .mobile-menu {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 680px) {
  /* Header / menu */
  .home-page .mobile-menu {
    max-height: calc(100dvh - 68px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* --------------------------------------------------------
     HERO
     Problema real identificado: o mascote absoluto era mais
     alto que o proprio .hero-visual e invadia os CTAs acima.
     No mobile ele passa a participar do fluxo normal.
     -------------------------------------------------------- */
  .home-page .hero {
    min-height: auto;
  }

  .home-page .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-page .hero-copy {
    width: 100%;
    padding: 34px 0 12px;
  }

  .home-page .hero .eyebrow {
    margin-bottom: 12px;
    font-size: .66rem;
  }

  .home-page .hero h1 {
    max-width: 9.4ch;
    margin-bottom: 18px;
    font-size: clamp(2.65rem, 12vw, 3.35rem);
    line-height: .96;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .home-page .hero-lead {
    max-width: none;
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-page .hero-actions .button {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .home-page .hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin: 10px 0 0;
    overflow: visible;
  }

  .home-page .hero-visual picture {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
  }

  .home-page .hero-visual picture .hero-mascot,
  .home-page .hero-mascot {
    position: static;
    display: block;
    width: auto;
    height: min(52svh, 430px);
    max-width: 76vw;
    max-height: 430px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    filter: drop-shadow(0 18px 20px rgba(39,26,18,.16));
  }

  .home-page .hero-visual::before {
    width: min(72vw, 290px);
    left: 50%;
    top: 15%;
    transform: translateX(-50%);
    box-shadow:
      0 0 0 28px rgba(187,152,93,.07),
      0 0 0 72px rgba(187,152,93,.035);
  }

  .home-page .hero-visual .particle-field {
    inset: 0;
  }

  /* --------------------------------------------------------
     RITMO VERTICAL
     Reduz os vazios percebidos entre Hero, bloco comercial e
     "Da atencao ao caixa" sem comprimir a leitura.
     -------------------------------------------------------- */
  .home-page .commercial-section {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .home-page .commercial-section .section-head {
    margin-bottom: 28px;
  }

  .home-page .commercial-section .section-head h2 {
    font-size: clamp(2.2rem, 10.5vw, 2.55rem);
    line-height: 1;
  }

  .home-page .value-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .home-page .value-card h3 {
    margin-top: 30px;
  }

  .home-page .purchase-path-section {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
  }

  .home-page .purchase-path-section .eyebrow {
    margin-bottom: 16px;
  }

  /* --------------------------------------------------------
     TITULO "NAO VENDEMOS PRESENCA DIGITAL"
     Reproduz no mobile a hierarquia editorial do desktop,
     mas em escala adequada a 320-430px.
     -------------------------------------------------------- */
  .home-page .purchase-path-section .result-headline {
    max-width: 100%;
    margin: 0 0 28px;
    line-height: 1;
    letter-spacing: 0;
  }

  .home-page .purchase-path-section .result-headline-first {
    display: block;
    max-width: 12.5ch;
    font-family: var(--body);
    font-size: clamp(1.9rem, 8.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.04em;
    color: var(--ink);
  }

  .home-page .purchase-path-section .result-headline-second {
    display: block;
    max-width: 12ch;
    margin-top: .22em;
    font-family: var(--display);
    font-size: clamp(2.25rem, 10.5vw, 2.75rem);
    font-weight: 600;
    font-style: italic;
    line-height: .98;
    letter-spacing: -.04em;
    color: var(--rust);
  }

  .home-page .conversion-list article {
    gap: 6px;
    padding: 20px 0;
  }

  .home-page .conversion-list span {
    line-height: 1.5;
  }

  .home-page .purchase-path-section .conversion-claim-v24 {
    margin-top: 24px;
    padding-top: 18px;
  }

  /* --------------------------------------------------------
     WHATSAPP FLUTUANTE
     Menor, com safe area e menos disputa com o conteudo.
     -------------------------------------------------------- */
  .home-page .whatsapp-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 390px) {
  .home-page .hero-copy {
    padding-top: 28px;
  }

  .home-page .hero h1 {
    font-size: clamp(2.45rem, 12vw, 2.95rem);
  }

  .home-page .hero-visual picture .hero-mascot,
  .home-page .hero-mascot {
    height: min(49svh, 400px);
    max-width: 72vw;
  }

  .home-page .purchase-path-section .result-headline-first {
    font-size: clamp(1.8rem, 8.7vw, 2.05rem);
  }

  .home-page .purchase-path-section .result-headline-second {
    font-size: clamp(2.15rem, 10.5vw, 2.5rem);
  }
}
