/* PrivaLock — acabamento responsivo mobile v1 (20/10/2026)
   Esta folha é carregada DEPOIS de styles.css, prl-share.css e prl-stories.css.
   Somente regras de viewport <= 1090px: desktop >= 1091px permanece intocado.
*/
@media (max-width: 1090px) {
  .site-header .header-inner,
  .hero .hero-inner,
  .app-layout,
  .plans-grid,
  .how-layout,
  .faq-layout,
  .footer-inner,
  .contact-box { min-width: 0; }

  .site-header .header-inner > *,
  .app-layout > *,
  .plans-grid > *,
  .how-layout > *,
  .faq-layout > * { min-width: 0; }

  .main-menu { z-index: 50; }
  .main-menu.open { display: flex; }
  .main-menu a { white-space: normal; }

  .plan-card .plan-info h3 { white-space: normal !important; overflow-wrap: break-word; }
  .plan-card .plan-info { min-width: 0; }
  .plan-card .prl-stories-buttons { min-width: 0; }
}

/* Tablets compactos: abandona a apresentação do app em três colunas. */
@media (min-width: 761px) and (max-width: 930px) {
  .app-layout {
    grid-template-columns: minmax(185px, .65fr) minmax(0, 1.35fr);
    column-gap: 22px;
    row-gap: 15px;
    padding: 25px;
  }
  .phone-area { grid-column: 1; grid-row: 1; height: 320px; }
  .phone-frame { left: 50%; top: 2px; transform: translateX(-50%) rotate(-2deg); }
  .app-content { grid-column: 2; grid-row: 1; }
  .app-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-list li { white-space: normal; }
  .promo-tiles { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .promo-tiles img { max-width: 100%; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card { min-width: 0; }
}

/* Celulares e tablets verticais. */
@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  #inicio, #beneficios, #aplicativo, #planos, #como-funciona, #faq, #contato { scroll-margin-top: 86px; }
  body { min-width: 0; }
  main, section, .site-footer { max-width: 100%; }
  .container { width: calc(100% - 32px); max-width: 600px; margin-inline: auto; }

  /* Cabeçalho compacto, porém com menu realmente utilizável. */
  .site-header { position: sticky; top: 0; inset: auto; z-index: 1000; background: rgba(255,255,255,.98); }
  .site-header .header-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .site-header .brand-logo-wrap { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 106px); }
  .site-header .brand-logo-full { display: block; height: auto; width: auto; max-height: 50px; max-width: min(200px, 100%); object-fit: contain; }
  .site-header .header-whatsapp { display: none; }
  .site-header .header-instagram { flex: 0 0 42px; height: 42px; width: 42px; margin: 0 0 0 auto; }
  .site-header .menu-toggle { order: initial; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 10px; }
  .site-header .main-menu {
    left: 0; right: 0; top: 100%; width: 100%; max-height: calc(100dvh - 70px);
    overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px 20px;
    background: #fff; box-shadow: 0 18px 24px rgba(0,0,0,.12);
    border-bottom: 1px solid #e6e8ef;
  }
  .site-header .main-menu a { font-size: 15px; line-height: 1.35; padding: 12px 4px; color: #151922; }

  /* Principal: cada elemento em uma coluna, sem imagens forçando largura. */
  .hero { height: auto; min-height: 0; overflow: hidden; }
  .hero-inner { height: auto; min-height: 0; padding-top: 31px; padding-bottom: 20px; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero .kicker { font-size: 10px; letter-spacing: .18em; line-height: 1.5; }
  .hero h1 { font-size: clamp(35px, 9.3vw, 57px); line-height: 1.03; letter-spacing: -.055em; margin: 12px 0 14px; max-width: 100%; }
  .hero-copy p { max-width: 560px; font-size: 14px; line-height: 1.6; overflow-wrap: break-word; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 19px; }
  .hero-actions .button { min-width: 0; min-height: 48px; padding: 11px 8px; font-size: 12px; line-height: 1.3; white-space: normal; text-align: center; }
  .hero-actions .button .icon { width: 17px; height: 17px; }
  .hero-art { display: none; }
  .hero-mobile-image { display: block; width: 100%; margin: 23px 0 0; border-radius: 15px; overflow: hidden; }
  .hero-mobile-image img { display: block; width: 100%; height: auto; object-fit: contain; }
  .hero-mobile-image::after { background: none; }

  .hero .container:has(.feature-bar) { width: calc(100% - 32px) !important; max-width: 600px; }
  .feature-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; backdrop-filter: none; }
  .feature { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 70px; padding: 10px; border: 1px solid #e7e9ef !important; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(12,18,28,.045); font-size: 11px; line-height: 1.35; }
  .feature:last-child { grid-column: 1 / -1; justify-content: center; }
  .feature span:last-child { min-width: 0; overflow-wrap: break-word; }
  .feature-icon { flex: 0 0 37px; height: 37px; width: 37px; }
  .feature-icon .icon { height: 23px; width: 23px; }

  /* Aplicativo: apresentação linear e imagem real do app preservada. */
  .app-showcase { padding: 21px 0 0; }
  .app-layout { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 20px; width: calc(100% - 32px); max-width: 600px; padding: 23px 17px !important; border-radius: 17px; }
  .app-content { grid-column: 1 !important; grid-row: 1 !important; width: 100%; padding: 0; }
  .app-content .kicker { font-size: 10px; letter-spacing: .18em; }
  .app-content h2 { font-size: clamp(30px, 8.4vw, 42px); line-height: 1.07; letter-spacing: -.05em; margin: 9px 0 12px; }
  .app-content > p:not(.app-footnote) { font-size: 13px; line-height: 1.6; max-width: 100%; }
  .app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 0; margin: 16px 0 0; }
  .app-list li { min-width: 0; font-size: 12px; line-height: 1.4; white-space: normal; align-items: flex-start; overflow-wrap: break-word; }
  .app-list .check { flex: 0 0 20px; }
  .app-footnote { display: block; font-size: 11px; line-height: 1.55; }
  .app-cta { font-size: 13px; margin-top: 14px; }
  .phone-area { grid-column: 1 !important; grid-row: 2 !important; width: 100%; height: 352px; overflow: hidden; }
  .phone-frame { left: 50% !important; top: 5px; width: 192px; height: 344px; transform: translateX(-50%) rotate(-2deg); }
  .promo-tiles { grid-column: 1 !important; grid-row: 3 !important; display: grid; grid-template-columns: 1fr; width: 100%; gap: 11px; justify-items: stretch; }
  .promo-tiles img { width: 100%; max-width: 100%; height: auto; border-radius: 12px; }

  /* Planos: cartões lineares e todos os botões com largura consistente. */
  .pricing { padding: 38px 0 32px; }
  .pricing-heading { margin: 0 auto 20px; }
  .pricing-heading h2 { font-size: clamp(25px, 7vw, 35px); line-height: 1.15; }
  .pricing-heading p { font-size: 13px; line-height: 1.55; margin-top: 8px; }
  .plans-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
  .plan-card, .plan-card.plan-featured {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    width: 100%; min-width: 0; max-width: 100%; min-height: 0 !important; height: auto !important;
    padding: 18px !important; gap: 0; overflow: hidden;
    border-radius: 16px !important;
  }
  .plan-card .plan-image, .plan-card.plan-featured .plan-image {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100%; min-width: 0; height: 169px; margin: 0 0 14px !important;
    padding: 8px !important; border-radius: 13px;
  }
  .plan-card .plan-image img, .plan-card.plan-featured .plan-image img {
    display: block !important; width: 100%; max-width: 100% !important;
    height: 149px !important; max-height: 149px !important; object-fit: contain;
    margin: auto !important;
  }
  .plan-card .plan-info, .plan-card.plan-featured .plan-info {
    display: flex !important; flex-direction: column !important; flex: 0 1 auto;
    width: 100%; height: auto !important; min-height: 0; min-width: 0;
    padding: 0 !important; margin: 0;
  }
  .plan-card .plan-badge { align-self: flex-start; font-size: 11px; padding: 5px 9px; }
  .plan-card h3, .plan-card.plan-featured h3 { min-height: 0 !important; white-space: normal !important; font-size: 20px; line-height: 1.2 !important; margin: 11px 0 9px !important; }
  .plan-card .plan-price, .plan-card.plan-featured .plan-price { font-size: 29px !important; line-height: 1.15 !important; margin: 0 0 2px !important; }
  .plan-card .plan-price-label { font-size: 12px !important; margin: 0 0 8px !important; }
  .plan-card .prl-mensalidade-v2 { margin: 12px 0 !important; width: 100% !important; min-height: 0 !important; padding: 12px 14px !important; }
  .plan-card .prl-mensalidade-v2 span { font-size: 11px !important; }
  .plan-card .prl-mensalidade-v2 strong { font-size: 25px !important; }
  .plan-card .prl-mensalidade-v2 small { font-size: 12px !important; }
  .plan-card .plan-info ul { flex: 0 0 auto !important; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0 !important; margin: 9px 0 13px !important; }
  .plan-card .plan-info li { margin: 0 !important; font-size: 13px !important; line-height: 1.35 !important; align-items: flex-start; }
  .plan-card .plan-info li::before { margin-top: 1px; }
  .plan-card .plan-action {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important; max-width: none !important; min-height: 47px !important;
    margin: 12px 0 0 !important; padding: 11px 14px !important;
    align-self: stretch !important; font-size: 13px !important; text-align: center;
  }
  .plan-card .prl-botao-compartilhar {
    width: 100% !important; max-width: none !important; min-height: 47px !important;
    margin: 10px 0 0 !important; padding: 11px 12px !important; font-size: 13px !important;
  }
  .plan-card .prl-stories-buttons {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100% !important; max-width: none !important; margin: 10px 0 0 !important; gap: 9px;
  }
  .plan-card .prl-story-btn { min-width: 0; min-height: 46px; padding: 8px 7px; font-size: 12px; line-height: 1.3; text-align: center; white-space: normal; }
  .plan-card .prl-story-symbol { flex: 0 0 auto; }
  .price-disclaimer { max-width: 100%; padding-inline: 3px; font-size: 12px; line-height: 1.65 !important; margin-top: 20px !important; }
  .prl-propriedade-v2 { align-items: flex-start; width: 100%; gap: 12px; padding: 16px !important; margin-top: 20px !important; }
  .prl-propriedade-v2 > div:last-child { min-width: 0; }
  .prl-propriedade-v2 h3 { font-size: 18px; }
  .prl-propriedade-v2 p { font-size: 12px; line-height: 1.65; overflow-wrap: break-word; }

  /* Etapas, dúvidas e contato: conteúdo sem duas colunas apertadas. */
  .how { padding: 50px 0 38px; }
  .how-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .how-copy h2, .faq-section h2, .contact-box h2 { font-size: clamp(30px, 8.4vw, 41px); line-height: 1.12; margin: 10px 0 14px; }
  .how-copy > p, .faq-layout > div:first-child > p, .contact-box p { font-size: 13px; line-height: 1.65; }
  .how-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .how-step { min-width: 0; padding: 17px; }
  .how-step h3 { font-size: 15px; line-height: 1.3; }
  .how-step p { font-size: 12px; }
  .faq-section { padding: 44px 0 45px; }
  .faq-list { gap: 10px; }
  .faq-list details { min-width: 0; padding: 0 16px; border-radius: 12px; }
  .faq-list summary { padding: 17px 25px 17px 0; font-size: 13px; line-height: 1.45; overflow-wrap: break-word; }
  .faq-list summary::after { top: 13px; }
  .faq-list details p { font-size: 12px; line-height: 1.7; padding-right: 0; }
  .contact-section { padding: 7px 0 43px; }
  .contact-box { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 25px 19px; border-radius: 16px; }
  .contact-box > div { min-width: 0; }
  .contact-box .contact-email { overflow-wrap: anywhere; }
  .button-contact { width: 100%; min-width: 0; min-height: 48px; white-space: normal; text-align: center; }

  /* Rodapé de uma coluna, links não cortados. */
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 25px; padding: 35px 0 27px; }
  .footer-brand, .footer-inner > div { min-width: 0; }
  .footer-inner a, .footer-inner span, .footer-inner p { overflow-wrap: anywhere; }
  .footer-logo-full { max-width: 195px; height: auto; max-height: 44px; }
  .copyright { padding: 18px 0 20px; text-align: center; font-size: 11px; }
  .float-wa { right: 13px; bottom: max(13px,env(safe-area-inset-bottom)); width: 54px; height: 54px; }

  /* Modal para preparar Stories em uma tela pequena. */
  #prl-stories-modal { padding: 12px; }
  #prl-stories-modal .prl-stories-dialog { width: 100%; max-width: 540px; max-height: calc(100dvh - 24px); padding: 18px; }
  #prl-stories-modal .prl-stories-details { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  #prl-stories-modal #prl-stories-thumb { width: 84px; margin-inline: auto; }
  #prl-stories-modal .prl-stories-steps { padding: 9px 10px; }
}

/* Telas estreitas: cards e textos permanecem inteiros em 320–390 px. */
@media (max-width: 390px) {
  .container, .hero .container:has(.feature-bar), .app-layout { width: calc(100% - 28px) !important; }
  .site-header .header-inner { gap: 6px; height: 66px; }
  .site-header .brand-logo-full { max-width: min(172px, 100%); max-height: 43px; }
  .site-header .brand-logo-wrap { max-width: calc(100% - 96px); }
  .site-header .header-instagram { flex-basis: 40px; width: 40px; height: 40px; }
  .site-header .menu-toggle { flex-basis: 42px; width: 42px; height: 42px; }
  .hero h1 { font-size: clamp(34px, 9.8vw, 39px); }
  .hero-actions .button { font-size: 11px; padding-inline: 6px; }
  .feature { padding: 8px; gap: 7px; font-size: 10.5px; }
  .feature-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .feature-icon .icon { width: 21px; height: 21px; }
  .app-layout { padding: 21px 14px !important; }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .plan-card, .plan-card.plan-featured { padding: 16px !important; }
  .plan-card .plan-image { height: 153px; }
  .plan-card .plan-image img { height: 136px !important; max-height: 136px !important; }
  .plan-card .prl-story-btn { gap: 4px; font-size: 11px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1090px) and (prefers-reduced-motion: reduce) {
  .site-header .menu-toggle, .plan-card .prl-story-btn { transition: none !important; }
}
