/* ══ CELULAR · tudo o que muda só no telefone (30/10/2026) ═══════════════════
   Regra da casa: o desktop não muda. Tudo aqui vive em media queries de largura
   (≤ 640 px), de altura ou de (hover:none). Os seletores levam "body" na frente para
   vencerem as regras dos outros arquivos sem precisar de !important. O plano está em
   PLANO-CELULAR.md. */

/* ── <picture> das fotos responsivas: invólucro sem caixa, o <img> fica no layout como antes ── */
.hero-photo picture,.hcard-media picture,.fp-hero picture,.film-act picture{display:contents}

/* ── toque: nada gruda no :hover ──────────────────────────────────────────── */
@media (hover:none){
  body{-webkit-tap-highlight-color:transparent}
  body .hcard:hover{border-color:var(--w06);box-shadow:none}
  body .hcard:hover .hcard-media img,body .hcard:hover .hcard-media video{transform:none;opacity:.92}
  body .hcard:hover .card-orb{opacity:.55;transform:none}
  body .mode-card:hover,body .pg-card:hover,body .api-card:hover{transform:none;border-color:var(--w06);background:var(--bg2)}
  body .film-act:hover img{opacity:.6;transform:none}
  body .film-act[aria-pressed=true] img{opacity:1;transform:scale(1.025)}
  body .flow-step:hover .flow-node,body .flow-step:hover .flow-card{transform:none;box-shadow:none}
  body .cta:hover,body .hd-cta:hover,body .beta-button:hover{transform:none}
  body .cta:active,body .hd-cta:active,body .beta-button:active,body .film-act:active,body .plugin-tab:active{transform:scale(.985);transition-duration:.12s}
}

@media (max-width:768px){
  /* ── base ── */
  html{scroll-padding-top:104px}            /* cabeçalho 56 + abas 48: as âncoras param abaixo deles */
  body{overscroll-behavior-y:none}

  /* ── cabeçalho: 56 px, logo com alvo de 44, botão menor ── */
  body>header{height:56px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
  body .logo{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
  body>header{grid-template-columns:1fr auto}
  body .hd-cta{padding:8px 14px;font-size:12px;min-height:36px}

  /* ── hero ── */
  body .hero{min-height:100vh;min-height:100svh;padding:88px 0 112px}
  body .hero-body{padding:0 22px}
  body .hero-eye{font-size:9px;margin-bottom:18px}
  body .hero-title{font-size:clamp(34px,9.4vw,46px);margin-bottom:18px}
  body .hero-sub{font-size:15px;line-height:1.55;margin-bottom:32px}
  body .hero-foot{padding:4px 0}
  body .hero-mq{animation-duration:60s;padding:12px 0}
  body .hmq-text{font-size:clamp(30px,9vw,44px)}
  body .hmq-sep{font-size:clamp(18px,5vw,26px);margin:0 18px}

  /* ── abas: viram o menu do celular, presas abaixo do cabeçalho, sem cortar a primeira ── */
  body .plugin-tabs{position:sticky;top:56px;z-index:90;justify-content:flex-start;gap:4px;padding:0 12px;height:48px;align-items:center;
    background:rgba(8,8,8,.86);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);
    scroll-snap-type:x proximity;scroll-padding:0 12px;
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 28px),transparent)}
  body .plugin-tab{scroll-snap-align:start;min-height:40px;display:inline-flex;align-items:center;padding:0 14px;font-size:12.5px}
  body .plugin-tab.active{background:rgba(245,245,247,.09)}
  body #smart-editor{top:-104px}

  /* ── modos: carrossel horizontal com snap; o próximo card espia à direita; a página rola na vertical normalmente ── */
  body section.sec#modos{padding:72px 0 64px}
  body #modos .sec-head{padding:0 22px;margin-bottom:28px}
  body #modos .sec-title{font-size:clamp(28px,8.2vw,36px)}
  body #modos .sec-desc{font-size:14.5px}
  body .hcards{display:flex;flex-direction:row;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:0 22px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
  body .hcards::-webkit-scrollbar{display:none}
  body .hcard{flex:0 0 min(84vw,340px);scroll-snap-align:center;flex-direction:column;height:auto;border-radius:14px}
  body .hcard-media{aspect-ratio:4/3!important}
  body .hcard-media-overlay{background:linear-gradient(180deg,transparent 55%,rgba(14,14,14,.7) 100%)!important}
  body .hcard-body{padding:20px 20px 22px;gap:7px}
  body .hcard-title{font-size:26px}
  body .hcard-desc{font-size:14px;line-height:1.6}
  body .hcard-pill{font-size:10.5px;padding:5px 11px}
  body .hcard-num{font-size:9px}
  body .hcards-prog{display:flex;align-items:center;justify-content:space-between;margin:16px 22px 0}
  body .hcards-count{font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.14em;color:var(--w40)}
  body .hcards-count b{font-weight:500;color:var(--w)}
  body .hcards-dots{display:flex;gap:6px}
  body .hcards-dots i{display:block;width:18px;height:2px;border-radius:1px;background:var(--w14);transition:background .3s,width .3s}
  body .hcards-dots i.on{background:var(--w);width:28px}

  /* ── seu tempo: pilha vertical com três zonas (relógio, palco, legenda), nada centralizado por cima de nada ── */
  body #tempo.js-on .tp-track{height:300vh;height:300svh}
  body #tempo .tp-pin,body #tempo.js-on .tp-pin{display:flex;flex-direction:column;align-items:stretch;padding:112px 16px 18px;height:100vh;height:100svh}
  body #tempo .tp-eye{position:static;display:inline-flex;align-self:center;margin:0 0 4px;font-size:8.5px}
  body #tempo.js-on .tp-act{position:relative;inset:auto;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:0;max-width:none}
  body #tempo .tp-eye2{font-size:9.5px;margin-top:2px}
  body #tempo .tp-clock{font-size:clamp(56px,20vw,88px);line-height:.95;margin:6px auto 2px}
  body #tempo .tp-unit{font-size:10px}
  body #tempo .tp-head{margin:8px auto 0;font-size:13px;line-height:1.35;max-width:32ch}
  body #tempo .tp-field{flex:0 1 auto;height:clamp(280px,46svh,400px);min-height:0;margin:10px auto 0}
  body #tempo .tp-pay .tp-gold{font-size:clamp(15px,4.4vw,19px)}
  body #tempo .tp-legend{flex:none;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
  body #tempo .tp-lg{grid-template-columns:auto 1fr;column-gap:8px}
  body #tempo .tp-lg b{font-size:16px}
  body #tempo .tp-lg span{font-size:9.5px;letter-spacing:.12em}
  body #tempo .tp-lg small{display:none}

  /* ── dentro do app: carrossel das telas reais; a janela inclinada do desktop fica escondida ── */
  body .tela3d{padding:72px 0 64px;overflow:visible;background:var(--bg)}
  body .tela3d-wrap{display:none}
  body .tour-head{text-align:center;padding:0 22px;margin-bottom:26px}
  body .tour-head .sec-eye{justify-content:center;margin-bottom:12px}
  body .tour-title{margin:0;font-size:clamp(26px,7.6vw,32px);font-weight:200;letter-spacing:-.04em;line-height:1.06;color:var(--w)}
  body .tour-title em{font-style:italic;color:var(--w55)}
  body .tour-rail{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:0 22px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
  body .tour-rail::-webkit-scrollbar{display:none}
  body .tour-slide{flex:0 0 min(84vw,340px);scroll-snap-align:center;margin:0}
  body .tour-win{border-radius:12px;overflow:hidden;border:1px solid var(--w10);background:#0b0b0d;box-shadow:0 24px 60px -30px rgba(0,0,0,.85)}
  body .tour-win .tela3d-bar{height:26px;padding:0 10px;gap:6px}
  body .tour-win .tela3d-bar i{width:8px;height:8px}
  body .tour-win .tela3d-bar span{font-size:10px;margin-left:6px}
  body .tour-view{aspect-ratio:16/10;background:#0b0b0d;display:flex;align-items:center}
  body .tour-view img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
  body .tour-cap{margin:14px 2px 0;display:grid;gap:4px}
  body .tour-cap b{font-size:18px;font-weight:400;letter-spacing:-.02em;color:var(--w)}
  body .tour-cap span{font-size:13px;line-height:1.5;color:var(--w55)}

  /* ── Filme Pro, abertura ── */
  body .fp-hero{height:72vh;height:72svh;min-height:520px}
  body .fp-hero img{object-position:50% 35%}
  body .fp-hero-in{left:20px;right:20px;bottom:52px}
  body .fp-hero-in h2{font-size:clamp(28px,8.4vw,34px);letter-spacing:-.045em;text-wrap:balance}
  body .fp-hero-in p{font-size:14.5px;margin-top:14px}
  body .fp-tags{margin-top:18px;gap:6px}
  body .fp-tags span{font-size:10.5px;padding:7px 11px}

  /* ── Filme Pro: duração em controle segmentado, momentos com snap e fade, timeline compacta ── */
  body #filme-pro{width:calc(100% - 40px);padding-top:28px}
  body .film-duration,body .film-act-rail,body .film-act-copy{display:none}
  body .fp-phone-line{display:block;margin:0 0 22px;font-size:clamp(20px,5.8vw,24px);font-weight:200;letter-spacing:-.03em;line-height:1.25;color:var(--w)}
  body #filme-pro .np-tl{margin:18px 0 28px}
  body .np-tl--phone .np-tl__disclaimer{display:none}
  body .film-duration{flex-direction:column;align-items:stretch;gap:16px;margin:28px 0 26px}
  body .film-duration>div:first-child{display:flex;align-items:baseline;gap:12px;min-width:0}
  body .film-duration strong{margin-top:0;font-size:40px}
  body .film-duration-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--w14);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.02)}
  body .film-duration-buttons button{min-height:44px;padding:0;border:0;border-radius:0;font-size:12.5px;color:var(--w55);transition:background .25s,color .25s}
  body .film-duration-buttons button+button{border-left:1px solid var(--w10)}
  body .film-duration-buttons button[aria-pressed=true]{background:var(--w);color:#080808}
  body .film-duration>p{margin-left:0;font-size:12.5px}
  body #filme-pro .film-act{aspect-ratio:1.6}
  body .film-act>span{font-size:13px;bottom:12px;left:12px;gap:8px}
  body .film-moments ul{padding:0 0 4px;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
  body .film-moments li{scroll-snap-align:start;font-size:12.5px;padding:6px 15px 6px 6px}
  body .film-moments img,body .film-moments__more span{width:32px;height:32px}
  body .np-tl--phone .np-tl__canvas{min-width:100%}
  body .np-tl--phone{--tl-head:40px}
  body .np-tl--phone .np-tl__track--hide{display:none}
  body .np-tl--phone .np-tl__track--video{height:56px}
  body .np-tl--phone .np-tl__track--audio{height:38px}
  body .np-tl--phone .np-tl__clip-label{font-size:10px;line-height:12px}
  body .np-tl--phone .np-tl__clip--tight .np-tl__clip-label{display:none}
  body .np-tl--phone .np-tl__clip{box-shadow:inset 0 12px 0 #425568e6}
  body .np-tl--phone .np-tl__clip:after{inset:12px 0 0}
  body .np-tl--phone .np-tl__clip--audio svg{height:20px}
  body .np-tl--phone .np-tl__ruler{font-size:10px}
  body .np-tl--phone .np-tl__tick:nth-child(even){visibility:hidden}
  body .np-tl--phone .np-tl__transport{min-height:48px;gap:10px}
  body .np-tl--phone .np-tl__play{width:44px;height:44px;margin-left:-8px}
  body .np-tl--phone .np-tl__play svg{width:15px;height:15px}
  body .np-tl--phone [data-tl-seek]{height:44px}
  body .np-tl--phone .np-tl__time{font-size:11px}
  body .np-tl--phone .np-tl__scroll-hint{display:none}
  body .np-tl--phone .np-tl__playhead{top:19px}
  body .film-act-copy h3{font-size:19px}
  body .film-act-copy p{font-size:14px;line-height:1.7}
  body .film-options h3{font-size:15px}
  body .film-options p{font-size:13px}
  body .film-pro-footnote{font-size:11.5px}

  /* ── tecnologias: grade 2 × 4, sem as tags ── */
  body .apis-sec{padding:64px 20px 72px}
  body .apis-title{font-size:clamp(26px,8vw,34px)!important}
  body .apis-lead{font-size:14px}
  body .apis-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body .api-card{flex-direction:column;gap:9px;padding:14px 12px 13px}
  body .api-card img{margin-top:0}
  body .api-card b{font-size:12px}
  body .api-card i{font-size:9.5px;letter-spacing:.1em;margin-top:4px}
  body .api-tags{display:none}
  body .api-on{font-size:0;gap:0}
  body .api-on::before{animation:none}

  /* ── FASK ── */
  body .nupia-fask{padding:56px 0 24px}
  body .nf-head h2{font-size:clamp(30px,9vw,40px)}
  body .nf-head p{font-size:14px;max-width:34ch}
  body .nf-stage{height:clamp(260px,38svh,340px)}
  body .nf-caption strong{font-size:13px}
  body .nf-caption p{font-size:13px}

  /* ── o seu mês: pilha vertical (título, calendário, legenda, frase), calendário maior e legível ── */
  body #agenda.js-on .tp-track{height:250vh;height:250svh}
  body #agenda .tp-pin,body #agenda.js-on .tp-pin{display:flex;flex-direction:column;align-items:stretch;padding:112px 14px 18px;height:100vh;height:100svh}
  body #agenda .tp-eye{position:static;display:inline-flex;align-self:center;margin:0 0 6px;font-size:8.5px}
  body #agenda.js-on .tp-act{position:relative;inset:auto;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:0;max-width:none}
  body #agenda .tp-btitle{font-size:clamp(22px,6.5vw,30px);text-align:center}
  body #agenda .tp-b{width:100%;max-width:560px;margin:0 auto;text-align:center}
  body .am{margin-left:auto;margin-right:auto}
  body .am-top{padding:0 2px}
  body #agenda .tp-bcap,body #agenda .tp-bend{text-align:center}
  body .am{margin-top:12px}
  body .am-top{margin-bottom:10px}
  body .am-ttl{font-size:18px}
  body .am-nav i,body .am-hoje{height:26px;border-radius:7px}
  body .am-nav i{width:26px;font-size:15px}
  body .am-hoje{font-size:11px;padding:0 9px}
  body .am-dow{font-size:10px;letter-spacing:.1em;padding:8px 0 7px}
  body .am-d{height:clamp(46px,8svh,72px);padding:5px 4px;font-size:11px}
  body .am-n{min-width:18px;height:18px;padding:0 4px;border-radius:9px}
  body .am-ev{left:2px;right:2px;bottom:5px;height:22px;gap:3px;padding:0 3px;border-radius:5px}
  body .am-ev::before{flex-basis:2px;height:12px}
  body .am-ev b{font-size:10px;font-weight:500;letter-spacing:-.02em}
  body .am-lv{font-size:17px;left:6px;bottom:7px}
  body .am-leg{gap:10px 14px;font-size:11px;margin-top:12px}
  body .am-leg .hand-lv{font-size:14px}
  body #agenda .tp-bcap{margin-top:14px;font-size:13px}
  body #agenda .tp-bend{margin-top:14px;font-size:clamp(24px,7vw,32px)}

  /* ── horas de volta: respiro antes de prender, trilho mais curto, relógio abaixo do cabeçalho ── */
  body #horas-de-volta{padding-top:14svh;background:var(--bg)}
  body #horas-de-volta .np-hl--fim{height:230vh;height:230svh}
  body #horas-de-volta .np-hl__sticky{height:100vh;height:100svh}
  body #horas-de-volta .hv-watch{top:118px;right:16px;width:64px}
  body #horas-de-volta .np-hl__bar{bottom:max(28px,env(safe-area-inset-bottom))}
  body .hv-t1{font-size:clamp(26px,7.5vw,34px)}
  body .hv-t2{font-size:13px;letter-spacing:.18em;margin-top:14px}

  /* ── beta ── */
  body .beta-card{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  body .beta-word{font-size:34vw;top:8px}
  body .beta-intro{font-size:9.5px;letter-spacing:.2em}
  body .beta-edition{font-size:10px}
  body .beta-launch>div{font-size:10px}
  body .beta-launch small{font-size:10.5px}

  /* ── FAQ ── */
  body section.sec#faq{padding:72px 20px 64px}
  body #faq .sec-title{font-size:clamp(30px,8.6vw,38px)}
  body .faq-q{padding:20px 2px;font-size:15.5px;line-height:1.35}
  body .faq-ans.open{max-height:1400px}
  body .faq-ans-inner{font-size:14px}

  /* ── rodapé ── */
  body footer{padding:56px 20px calc(28px + env(safe-area-inset-bottom))}
  body .ft-row{gap:2px 10px;margin-bottom:12px}
  body .ft-row a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-size:12.5px}
  body .ft-family{font-size:11.5px}
  body .ft-copy{font-size:11px}
  body .ft-legal{font-size:10.5px;line-height:1.7;padding:0}
}

/* telefones baixos (iPhone com as barras do Safari abertas, Android compacto) */
@media (max-width:768px) and (max-height:720px){
  body #tempo .tp-pin,body #tempo.js-on .tp-pin{padding-top:108px}
  body #tempo .tp-clock{font-size:clamp(48px,16vw,64px)}
  body #tempo .tp-head{display:none}
  body #tempo .tp-field{height:clamp(250px,44svh,320px)}
  body #tempo .tp-legend{margin-top:6px}
  body #tempo .tp-lg b{font-size:14px}
  body #agenda .tp-pin,body #agenda.js-on .tp-pin{padding-top:108px}
  body .am-d{height:clamp(40px,7svh,56px)}
  body .am-ev{height:19px}
  body .am-ev b{font-size:9px}
  body .am-lv{font-size:15px}
  body .am-leg{display:none}
  body #agenda .tp-bend{margin-top:10px;font-size:22px}
  body #horas-de-volta .hv-watch{width:52px;top:112px}
}

/* ── fora do telefone a dica de arrastar do app não existe ── */
@media (min-width:769px){
  .tela3d-hint,.hcards-dots,.hcards-prog,.fp-phone-line,.tour{display:none}
}
.fp-phone-line{display:none}
