/* alfasu.com: adaptação do layout (protótipo desenhado em 1440px) para notebook, tablet e celular. */
body { width: auto; overflow-x: hidden; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); }
img { height: auto; }

/* ---------- Notebook ---------- */
@media (max-width: 1280px) {
  .nav { gap: 22px; }
  .nav a { font-size: 14.5px; }
  .h-xxl { font-size: 76px; }
  .band h2 { font-size: 54px; }
  .model h2 { font-size: 64px; }
  .cta h2 { font-size: 60px; }
  .poster-wrap, .poster { width: 400px; }
  .pay-vis { width: 520px; height: 620px; }
  .pay-vis .poster-wrap, .pay-vis .poster { width: 370px; }
  .pay-woman { width: 280px; }
  .chatbox, .store-grid, .metric-card { width: 100%; max-width: 560px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  body { font-size: 17px; }

  /* menu */
  .header { height: 72px; }
  .header .wrap { gap: 16px; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; cursor: pointer; padding: 0 11px; }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 24px 24px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px rgba(0,0,0,.4); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.on::after { display: none; }
  .nav a.on { color: var(--blue-300); }
  .nav .btn-entrar { margin: 18px 0 0; justify-content: center; border-bottom: 0; }
  body.menu-open .nav { display: flex; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* títulos */
  .h-xxl { font-size: 58px; }
  .h-xl { font-size: 50px; }
  .h-lg { font-size: 42px; }
  .h-md { font-size: 34px; }
  .lead { font-size: 19px; }
  .band h2, .model h2 { font-size: 44px; }
  .cta h2 { font-size: 46px; }
  .quote { font-size: 32px; }

  /* seções */
  .sec { padding: 96px 0; }
  .sec-tight { padding: 72px 0; }
  .hero, .hero[style] { min-height: 0 !important; padding: 150px 0 80px; }
  .band, .model, .video { min-height: 0; padding: 88px 0; }
  .cta { padding: 96px 0; }
  .mark-bg, .bignum, .model .bignum, .cta .mark { display: none; }
  .mt-l { margin-top: 48px; } .mt-xl { margin-top: 64px; }

  /* grades: tudo que é lado a lado vira coluna */
  .band .wrap, .band.rev .wrap, .model .wrap, .video .wrap, .video.rev .wrap,
  .wrap[style*="grid-template-columns"], div[style*="grid-template-columns:1fr 1fr;min-height"] { grid-template-columns: 1fr !important; gap: 48px !important; }
  .band.rev .copy, .video.rev .player { order: 0; }
  .band .visual { justify-content: flex-start; }
  .g3, .g4, .prod-grid, .brands, .thumbs, .contact-cards .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof, .feat-row, .prod-index, .process, .social-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { margin-top: 64px; }
  .proof b { font-size: 48px; }
  .flow { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .flow .arrow { height: 56px; transform: rotate(90deg); }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 13px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline div { display: grid; grid-template-columns: 28px 1fr; column-gap: 20px; padding-right: 0; }
  .timeline div::before { grid-row: span 2; }
  .timeline b { margin-top: 0; font-size: 28px; }
  .timeline span { margin-top: 6px; grid-column: 2; }
  .company-id { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer .top .brand { grid-column: 1 / -1; }
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .photos img:first-child { grid-row: auto; }
  .photos img[style*="span 2"] { grid-column: 1 / -1 !important; }

  /* painel escuro com padding fixo (home e desenvolvimento) */
  .dark[style*="padding:120px 110px"] { padding: 64px 24px !important; }
  div[style*="grid-template-columns:1fr 1fr;min-height"] { min-height: 0 !important; }
  div[style*="grid-template-columns:1fr 1fr;min-height"] > div:first-child { min-height: 320px; }
  div[style*="justify-content:space-between;align-items:flex-end"] { flex-direction: column; align-items: flex-start !important; gap: 24px !important; }

  /* peças com largura fixa */
  .poster-wrap, .poster { width: min(420px, 100%); }
  .pay-vis { width: 100%; max-width: 520px; height: auto; display: grid; grid-template-columns: 1fr; }
  .pay-vis .poster-wrap { position: relative; width: min(370px, 80%); }
  .pay-vis .poster { width: 100%; }
  .pay-woman { width: 45%; right: 0; }
  .inbox { width: 100%; }
  .browser .bar span { overflow: hidden; white-space: nowrap; }

  /* tabela comparativa com rolagem lateral */
  .cmp { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp th, .cmp td { padding: 18px 20px; min-width: 180px; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header .logo img { height: 30px; }

  .h-xxl { font-size: 40px; }
  .h-xl { font-size: 36px; }
  .h-lg { font-size: 32px; }
  .h-md, h2.h-md[style] { font-size: 28px !important; }
  .h-sm { font-size: 22px; }
  .lead, .lead[style] { font-size: 17px !important; }
  .band h2, .model h2 { font-size: 34px; }
  .model .n { font-size: 120px; }
  .cta h2 { font-size: 34px; }
  .quote { font-size: 26px; }
  .wordmark { font-size: 44px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .eyebrow::before { width: 24px; }
  .display[style*="font-size:64px"], .display[style*="font-size:52px"] { font-size: 44px !important; }

  .sec { padding: 72px 0; }
  .sec-tight { padding: 56px 0; }
  .hero, .hero[style] { padding: 120px 0 64px; }
  .band, .model, .video { padding: 64px 0; }
  .cta { padding: 72px 0; }

  .g2, .g3, .g4, .prod-grid, .thumbs, .contact-cards .g4, .model .hl, .form .row, .company-id, .social-row, .process { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands a { height: 110px; padding: 0 12px; }
  .brands img { max-width: 100%; max-height: 34px; }
  .brands img.tall { max-height: 52px; }
  .brands .wm { font-size: 22px; }
  .brands em { font-size: 22px; }
  .proof b { font-size: 38px; }
  .proof b small { font-size: 28px; }
  .footer .top { grid-template-columns: 1fr; }
  .footer .bottom { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 48px; }
  .footer { padding-top: 64px; }

  .actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .btn { justify-content: center; white-space: normal; text-align: center; padding: 16px 22px; font-size: 16px; }
  .band .link { flex-direction: column; align-items: flex-start; gap: 14px; }
  .band .plogo { margin-top: 24px; height: 60px; }
  .band .plogo img { max-height: 60px !important; height: auto !important; max-width: 260px; }
  .logo-plate img { height: 44px !important; }
  .card, .card.cc, .form, .feat-cloud { padding: 26px; }
  .card.cc span { font-size: 20px; }
  .flow .step { padding: 28px 24px; }
  .flow h3 { font-size: 24px; }
  .contact-cards { margin-top: -56px; }
  .photos { grid-auto-rows: 150px; gap: 10px; }
  .steps li { padding: 20px 20px 20px 64px; font-size: 16px; }
  .steps li::before { left: 20px; top: 20px; font-size: 20px; }
  .play { width: 72px; height: 72px; }
  .play svg { width: 28px; height: 28px; }
  .poster-wrap { padding: 16px 0; }
  .poster-wrap .halo { inset: -20px; }
  .pay-woman { display: none; }
  .chatbox .cb-body { padding: 18px; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox .ib-list { display: none; }
  .store-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-card { padding: 18px; }
  .st-card b { font-size: 17px; }
  .map { height: 300px; }
  .model-pick a { grid-template-columns: 48px 1fr; padding: 18px 20px; }
  .model-pick b { font-size: 30px; }
  .model-pick span { font-size: 19px; }
  .faq b { font-size: 16px; }
  .timeline b { font-size: 24px; }
}

/* conteúdo nunca estoura a largura no tablet e no celular */
@media (max-width: 1024px) {
  [style*="grid-template-columns"]:not(.card) { grid-template-columns: 1fr !important; gap: 40px !important; }
  .grid > *, .wrap > *, .band .wrap > *, .model .wrap > *, .video .wrap > * { min-width: 0; }
  .hero .glow { width: 600px; height: 600px; right: -300px; }
  .lead, p { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .card[style*="grid-template-columns:90px"] { grid-template-columns: 56px 1fr !important; padding: 22px !important; }
  .card[style*="grid-template-columns:90px"] .display { font-size: 36px !important; }
  .card[style*="grid-template-columns:90px"] h3 { font-size: 22px !important; }
  .poster-wrap .halo { inset: 0; }
}
@media (max-width: 640px) {
  .band .idx { flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
  .band .idx > span { white-space: normal; }
}
@media (max-width: 1024px) {
  .abcx-stack { grid-template-columns: 1fr; }
  .as-stage { height: auto; aspect-ratio: 16 / 11; }
  .as-w2 { top: 17%; } .as-w3 { top: 34%; }
  .as-names { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
}
@media (max-width: 640px) {
  .as-phone { width: 74px; border-width: 3px; border-radius: 10px; }
  .as-pos { width: 84px; right: -2%; }
  .as-names { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  #abcx .wrap { grid-template-columns: 1fr; }
  #abcx .abcx-stack { grid-template-columns: 1fr; }
  #abcx .as-stage { height: auto; aspect-ratio: 16 / 11; }
  #abcx .as-w2 { top: 17%; } #abcx .as-w3 { top: 34%; }
}
@media (max-width: 640px) {
  #abcx .as-phone { width: 74px; }
  #abcx .as-pos { width: 84px; bottom: -14px; }
}
@media (max-width: 1024px) { #abcx .as-pos { right: 0; } }
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; row-gap: 48px; }
  .hero-split .h-xxl { font-size: 58px; }
}
@media (max-width: 640px) {
  .hero-split .h-xxl { font-size: 40px; }
  .hero-split { row-gap: 36px; }
}
@media (max-width: 1024px) {
  .has-sub .caret { display: none; }
  .has-sub .sub { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub .sub a { padding: 9px 0 !important; border-bottom: 0; }
  .has-sub .sub b { color: rgba(255,255,255,.85); font-size: 15px; font-weight: 600; }
  .has-sub .sub span { display: none; }
  .has-sub .sub a.sub-all { display: none; }
  .has-sub > a { display: block; }
}
