/* =========================================================================
   ApSystem — Landing + Login
   Estilo "Palco": tipografia cinética (Archivo, eixo de largura), cortes
   secos com borrão vertical, escuro quente. Cada produto tem o seu mundo:
   MesaVIVA (brasa) · NavalhaVIVA (aço) · CamarimVIVO (rosé). A ApSystem é o ouro.
   Regra de ouro do layout: cada seção cabe em uma tela.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5; scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--fundo); color: var(--texto); font-family: var(--corpo); overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ul { list-style: none; }
img, svg, video { display: block; }
img, video { max-width: 100%; }
button, input { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input::placeholder { color: color-mix(in oklab, currentColor 45%, transparent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ouro); color: var(--tinta-ouro); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #2a2420; border-radius: 10px; }
* { scrollbar-width: thin; scrollbar-color: #2a2420 transparent; }

:root {
  --fundo: #120E0C; --fundo-2: #0B0807; --card: #1C1613; --campo: #231C18;
  --linha: #352A24; --linha-forte: #4D3E33;
  --ouro: #EEBD8E; --ouro-2: #B4885D; --tinta-ouro: #2C1600;
  --brasa: #D7351F; --brasa-2: #FF7A4C;
  --aco: #BFD4E2; --aco-2: #6F93AA;
  --rose: #F2B3C6; --rose-2: #C9607F;
  --creme: #F6EDE3; --texto: #EAE1DD; --texto-2: #D4C4B7; --texto-3: #9C8E83;
  --verde: #6CCB5F; --erro: #FFB4AB;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --corpo: 'Manrope', system-ui, sans-serif;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --nav: 4.5rem;
  /* tema do produto (cada seção troca) */
  --p1: var(--ouro); --p2: var(--ouro-2); --pt: var(--tinta-ouro); --pf: var(--fundo);
}
.tema-mesa { --p1: var(--brasa-2); --p2: var(--brasa); --pt: #fff; --pf: #140D0B; }
.tema-navalha { --p1: var(--aco); --p2: var(--aco-2); --pt: #0D1114; --pf: #0D1114; }
.tema-camarim { --p1: var(--rose); --p2: var(--rose-2); --pt: #2A0F19; --pf: #150D11; }

.container { width: 100%; max-width: 82rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* Cada seção = uma tela */
.tela { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav) + 2.5vh) 0 3.5vh; overflow: hidden; isolation: isolate; }

.selo { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .95rem; border-radius: 999px; background: color-mix(in oklab, var(--p1) 10%, transparent); border: 1px solid color-mix(in oklab, var(--p1) 30%, transparent); color: var(--p1); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.selo .ponto, .vivo { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); animation: pulsar 1.8s infinite; flex-shrink: 0; }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(108,203,95,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(108,203,95,0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 3.2rem; padding: 0 1.6rem; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s var(--curva), box-shadow .2s, background-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-ouro { background-image: linear-gradient(135deg, var(--ouro), var(--ouro-2)); color: var(--tinta-ouro); box-shadow: 0 10px 30px rgba(238,189,142,.22); }
.btn-produto { background-image: linear-gradient(135deg, var(--p1), var(--p2)); color: var(--pt); box-shadow: 0 10px 30px color-mix(in oklab, var(--p2) 35%, transparent); }
.btn-vidro { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--creme); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-vidro:hover { background: rgba(255,255,255,.1); }

/* Tipografia */
.titulo { font-family: var(--display); font-weight: 900; font-stretch: 82%; text-transform: uppercase; font-size: clamp(2rem, min(5.4vw, 8.4vh), 4.6rem); line-height: .92; color: var(--creme); margin: .9rem 0 1rem; }
.titulo .cor { color: var(--p1); }
.lead { font-size: clamp(.95rem, min(1.4vw, 2.2vh), 1.15rem); line-height: 1.6; color: var(--texto-2); max-width: 40rem; }
.k { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .82; letter-spacing: -.01em; white-space: nowrap; display: block; }
.k .l { display: inline-block; font-stretch: var(--w, 100%); }
.k.fx-a { filter: url(#borrao-a); }
.k.fx-b, .reel-linhas.fx-b { filter: url(#borrao-b); }
.medindo .l { font-stretch: 100% !important; }
.k.medindo { display: inline-block !important; width: max-content !important; align-self: flex-start !important; }

[data-revela] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--curva), transform .8s var(--curva); transition-delay: var(--atraso, 0s); }
[data-revela].visivel { opacity: 1; transform: none; }

/* Logos */
.marca-svg { display: block; flex-shrink: 0; }
.logo-linha { display: inline-flex; align-items: center; gap: 0; font-family: var(--display); font-weight: 900; font-stretch: 88%; text-transform: uppercase; letter-spacing: .01em; color: var(--creme); line-height: 1; }
.logo-linha b { color: var(--p1); font-weight: 900; }
.logo-linha .marca-svg { margin-right: .6rem; }

/* ---------- Navegação ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solida { background: rgba(18,14,12,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: rgba(77,62,51,.45); }
.nav-dentro { height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { font-size: 1.3rem; }
.nav-links { display: none; gap: 1.6rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.nav-links a { position: relative; padding: .4rem 0; display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.nav-links a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c, var(--ouro)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--curva); }
.nav-links a:hover, .nav-links a.ativo { color: var(--creme); }
.nav-links a:hover::after, .nav-links a.ativo::after { transform: scaleX(1); }
.nav-dir { display: flex; align-items: center; gap: .75rem; }
.nav-login { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); padding: .5rem .25rem; }
.nav-login:hover { color: var(--ouro); }
.nav .btn { height: 2.5rem; padding: 0 1.1rem; font-size: .66rem; }
@media (min-width: 1000px) { .nav-links { display: flex; } }

/* ---------- Fundo vivo ---------- */
.fundo-vivo { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(55% 45% at var(--mx, 70%) var(--my, 35%), color-mix(in oklab, var(--p1) 12%, transparent), transparent 70%),
  radial-gradient(70% 55% at 50% 120%, color-mix(in oklab, var(--p2) 45%, transparent), transparent 70%),
  var(--pf); }
.brasas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.brasas i { position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--p1); box-shadow: 0 0 8px var(--p2); opacity: 0; animation: subir var(--d) linear infinite; animation-delay: var(--a); }
@keyframes subir { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .85; } 100% { transform: translate(var(--dx), -105vh); opacity: 0; } }
.grao { position: absolute; inset: -50%; z-index: -1; opacity: .055; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grao 1s steps(4) infinite; }
@keyframes grao { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(1%,3%); } }

/* ---------- Hero ---------- */
.hero-topo { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero-topo { grid-template-columns: minmax(0, 1fr) auto; } }
.hero-pre, .hero-pos { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, min(2.4vw, 3.6vh), 1.9rem); color: var(--texto-2); }
.hero-pre { margin: 1rem 0 .3rem; }
.hero-pos { margin-top: .45rem; color: var(--creme); }
.hero-pos em { font-style: normal; color: var(--ouro); }
.hero-palavra { color: var(--creme); }
.hero-sub { margin-top: 1.1rem; }
.hero-marca { display: none; }
@media (min-width: 1024px) { .hero-marca { display: block; width: min(30vh, 260px); filter: drop-shadow(0 20px 60px rgba(238,189,142,.15)); } }
.portas { margin-top: clamp(1.4rem, 4vh, 2.6rem); display: grid; gap: .9rem; }
@media (min-width: 768px) { .portas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.porta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; padding: clamp(.9rem, 2.2vh, 1.4rem) 1.2rem; border-radius: 1.4rem; background: color-mix(in oklab, var(--pf) 70%, #000 0%); border: 1px solid color-mix(in oklab, var(--p1) 22%, transparent); transition: transform .4s var(--curva), border-color .3s; isolation: isolate; }
.porta::before { content: ''; position: absolute; inset: auto -30% -70% -30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, color-mix(in oklab, var(--p2) 55%, transparent), transparent); opacity: .55; transition: opacity .3s; }
.porta:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--p1) 60%, transparent); }
.porta:hover::before { opacity: .9; }
.porta .marca-svg { width: clamp(3rem, 7vh, 3.8rem); height: auto; }
.porta-texto { flex: 1; min-width: 0; }
.porta-nome { font-size: clamp(1.15rem, 2.4vh, 1.5rem); }
.porta-de { display: block; margin-top: .3rem; font-size: .82rem; color: var(--texto-2); line-height: 1.35; }
.porta .seta { color: var(--p1); transition: transform .3s var(--curva); }
.porta:hover .seta { transform: translateX(5px); }

/* ---------- Reel ---------- */
.reel { position: relative; height: 480vh; }
.reel-palco { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; background: var(--rf, var(--brasa)); color: var(--rt, #fff); transition: background-color .25s; }
.reel-barras { display: flex; gap: 6px; padding: calc(var(--nav) + .8rem) 1.25rem 0; }
.reel-barras i { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in oklab, currentColor 28%, transparent); overflow: hidden; }
.reel-barras i b { display: block; height: 100%; width: 0; background: currentColor; }
.reel-topo { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.25rem 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.reel-topo .prod { display: inline-flex; align-items: center; gap: .5rem; }
.reel-linhas { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 1.25rem; gap: .2rem; min-height: 0; }
.reel-legenda { margin: 0 1.25rem 1.6rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: 999px; background: color-mix(in oklab, currentColor 14%, transparent); font-weight: 800; font-size: clamp(.85rem, 1.6vw, 1.05rem); }
@media (min-width: 1024px) { .reel-barras, .reel-topo { padding-left: 3rem; padding-right: 3rem; } .reel-linhas { padding: 0 3rem; } .reel-legenda { margin-left: 3rem; } }

/* ---------- Mundo de cada produto ---------- */
.mundo-grade { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .mundo-grade { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; } }
.mundo-texto { min-width: 0; }
.mundo-logo { display: flex; align-items: center; gap: .8rem; }
.mundo-logo .marca-svg { width: clamp(2.6rem, 6vh, 3.4rem); height: auto; }
.mundo-logo .logo-linha { font-size: clamp(1.4rem, 3.4vh, 2rem); }
.mundo-logo small { display: block; font-family: var(--corpo); font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--texto-3); margin-top: .35rem; text-transform: uppercase; font-stretch: 100%; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin: clamp(.9rem, 2.4vh, 1.6rem) 0 clamp(.6rem, 1.6vh, 1rem); }
.chip { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--linha-forte); color: var(--texto-2); font-weight: 800; font-size: .82rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--p1); color: var(--creme); }
.chip[aria-pressed="true"] { background: var(--p1); color: var(--pt); border-color: var(--p1); }
.mundo-nome { color: var(--creme); margin-bottom: .6rem; }
.mundo-frase { font-family: var(--display); font-stretch: 85%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, min(2.2vw, 3.4vh), 1.8rem); line-height: 1.05; color: var(--p1); }
.lista { margin-top: clamp(.8rem, 2.2vh, 1.4rem); display: grid; gap: .65rem 1.4rem; }
@media (min-width: 640px) { .lista { grid-template-columns: 1fr 1fr; } }
.lista li { display: flex; gap: .65rem; align-items: flex-start; color: var(--texto-2); line-height: 1.45; font-size: clamp(.88rem, 1.9vh, 1rem); }
.lista li svg { flex-shrink: 0; color: var(--p1); margin-top: 2px; }
.mundo-acoes { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1rem, 3vh, 1.8rem); }
.troca { animation: entrar .55s var(--curva); }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Celular ---------- */
.celular { position: relative; height: min(600px, calc(100svh - var(--nav) - 9vh)); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #3a2f28, #0b0807 40%, #2a221d); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 60px color-mix(in oklab, var(--p2) 25%, transparent); margin: 0 auto; }
@media (max-width: 1023px) { .mundo .celular { display: none; } }
.celular-tela { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #2A1A10; }
.celular-ilha { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 32%; height: 20px; border-radius: 12px; background: #000; z-index: 5; }
.tela-app { position: absolute; inset: 0; background: var(--tf, #FBF7F2); color: var(--tc, #1E1712); padding: 2.8rem .85rem .85rem; display: flex; flex-direction: column; gap: .5rem; font-size: .68rem; }
.tela-app .cab { display: flex; align-items: center; gap: .5rem; }
.tela-app .cab .lg { width: 30px; height: 30px; border-radius: 50%; background: var(--ta); }
.tela-app .cab b { font-size: .78rem; }
.tela-app .cab small, .tela-app .item small { display: block; opacity: .65; font-size: .6rem; }
.tela-app .titulo-app { font-family: var(--display); font-stretch: 78%; font-weight: 900; font-size: 1.25rem; text-transform: uppercase; line-height: 1; margin-top: .3rem; }
.tela-app .item { display: flex; align-items: center; gap: .55rem; padding: .5rem; border-radius: 12px; background: var(--tb, #fff); border: 1px solid var(--tl, #EADFD3); }
.tela-app .item .ft { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.tela-app .item div { flex: 1; min-width: 0; }
.tela-app .item b { display: block; font-size: .7rem; }
.tela-app .item .pr { font-weight: 800; font-size: .7rem; }
.tela-app .rodape-app { margin-top: auto; padding: .75rem; border-radius: 999px; background: var(--ta); color: var(--tbtn, #fff); text-align: center; font-weight: 800; font-size: .72rem; }

/* ---------- Bastidores (MesaVIVA) ---------- */
.grade-telas { display: grid; gap: .9rem; margin-top: clamp(1rem, 3vh, 2rem); }
@media (min-width: 768px) { .grade-telas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bloco { position: relative; overflow: hidden; border-radius: 1.4rem; border: 1px solid var(--linha); background: var(--card); padding: clamp(1rem, 2.4vh, 1.4rem); display: flex; flex-direction: column; gap: .55rem; transition: border-color .3s, transform .4s var(--curva); }
.bloco:hover { border-color: color-mix(in oklab, var(--p1) 45%, transparent); transform: translateY(-3px); }
.bloco .rot { font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--p1); }
.bloco h3 { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: clamp(1.1rem, 2.6vh, 1.45rem); line-height: 1; text-transform: uppercase; color: var(--creme); }
.bloco p { color: var(--texto-2); line-height: 1.5; font-size: clamp(.8rem, 1.8vh, .9rem); }
.ilus { margin-top: auto; border-radius: 1rem; background: #0F0B09; border: 1px solid var(--linha); padding: .7rem; display: flex; flex-direction: column; gap: .4rem; font-size: .68rem; }
.ilus .chamado { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 12px; background: #1E5A8A; color: #fff; }
.ilus .chamado.verde { background: #24533F; }
.ilus .chamado .mesa { font-family: var(--display); font-stretch: 80%; font-weight: 900; font-size: 1.2rem; line-height: 1; }
.ilus .chamado .t { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ilus .colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.ilus .colunas div { display: flex; flex-direction: column; gap: .3rem; }
.ilus .colunas b { font-size: .55rem; letter-spacing: .12em; color: var(--texto-3); }
.ilus .ticket { padding: .4rem; border-radius: 8px; background: #F7EFE6; color: #1E1712; border-top: 3px solid var(--c); font-weight: 700; font-size: .58rem; line-height: 1.25; }
.ilus .barras { display: flex; align-items: flex-end; gap: .35rem; height: 4.2rem; }
.ilus .barras i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--linha-forte); height: var(--h); transform-origin: bottom; animation: crescer 1.2s var(--curva) both; animation-delay: var(--a, 0s); }
.ilus .barras i.alta { background: linear-gradient(180deg, var(--p1), var(--p2)); }
@keyframes crescer { from { transform: scaleY(0); } }
.ilus .pin { display: flex; gap: .4rem; justify-content: center; }
.ilus .pin i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--creme); }
.ilus .pin i.on { background: var(--creme); }
.ilus .tecla { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.ilus .tecla span { padding: .35rem 0; border-radius: 8px; background: var(--campo); text-align: center; font-weight: 800; color: var(--creme); }
.ilus .grande { display: flex; align-items: center; gap: .7rem; padding: .65rem; border-radius: 12px; background: #2F7D4F; color: #fff; }
.ilus .grande .big { font-family: var(--display); font-stretch: 78%; font-weight: 900; font-size: 1.35rem; }
.ilus .cubo { display: flex; align-items: center; gap: .7rem; }
.ilus .cubo .prato { width: 62px; height: 26px; border-radius: 50%; background: #F4EFE8; box-shadow: inset 0 -4px 0 #D8CFC3; position: relative; transform: perspective(200px) rotateX(55deg); animation: girar-prato 6s linear infinite; }
.ilus .cubo .prato::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: #B8502E; }
@keyframes girar-prato { to { transform: perspective(200px) rotateX(55deg) rotateZ(360deg); } }

/* ---------- Brinde Match ---------- */
.match-grade { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .match-grade { grid-template-columns: .8fr 1.2fr; gap: 3rem; } }
.match-logo { width: min(300px, 36vh, 60vw); margin: 0 auto; }
.match-logo .tr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.match-logo.visivel .tr { animation: tracar 1.2s var(--curva) forwards; }
.match-logo.visivel .tr.d2 { animation-delay: .25s; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
.match-logo .liq { opacity: 0; }
.match-logo.visivel .liq { animation: aparecer .6s ease forwards 1.1s; }
@keyframes aparecer { to { opacity: 1; } }
.match-logo .ce { transform-origin: 0 38px; }
.match-logo.visivel .ce.e { animation: brindeE .5s ease-in-out 1.5s; }
.match-logo.visivel .ce.d { animation: brindeD .5s ease-in-out 1.5s; }
@keyframes brindeE { 40% { transform: rotate(9deg); } 60% { transform: rotate(-3deg); } }
@keyframes brindeD { 40% { transform: rotate(-9deg); } 60% { transform: rotate(3deg); } }
.match-logo .faisca { opacity: 0; transform-origin: 0 0; }
.match-logo.visivel .faisca { animation: faisca .8s ease-out 1.65s; }
@keyframes faisca { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.extra { margin-top: clamp(.9rem, 2.4vh, 1.6rem); padding: 1rem 1.2rem; border-radius: 1.2rem; border: 1px solid color-mix(in oklab, var(--p1) 35%, transparent); background: color-mix(in oklab, var(--p2) 10%, transparent); display: flex; gap: .9rem; align-items: center; }
.extra .ic { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--p2); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.extra b { color: var(--creme); }
.extra p { color: var(--texto-2); font-size: .9rem; line-height: 1.45; }

/* ---------- Seu vídeo ---------- */
.video-grade { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .video-grade { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 3rem; } }
.passos { margin-top: clamp(.8rem, 2.4vh, 1.5rem); display: grid; gap: .8rem; }
.passos li { display: flex; gap: .9rem; align-items: flex-start; }
.passos .n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--linha-forte); font-family: var(--display); font-weight: 900; color: var(--ouro); }
.passos b { display: block; color: var(--creme); }
.passos span { color: var(--texto-2); font-size: clamp(.85rem, 1.8vh, .95rem); line-height: 1.45; }
.video-acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1rem, 3vh, 1.8rem); align-items: center; }
.btn-arquivo { position: relative; overflow: hidden; }
.btn-arquivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.video-nota { font-size: .85rem; color: var(--texto-3); }
.aparelhos { display: flex; align-items: flex-end; justify-content: center; gap: 1.4rem; }
.aparelhos .celular { height: min(480px, calc(100svh - var(--nav) - 14vh)); margin: 0; }
.tablet { height: min(250px, 30vh); aspect-ratio: 4 / 3; border-radius: 24px; padding: 9px; background: linear-gradient(160deg, #3a2f28, #0b0807 40%, #2a221d); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.tablet .celular-tela { border-radius: 16px; }
@media (max-width: 640px) { .tablet { display: none; } .aparelhos .celular { height: 52vh; } }
.abertura { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 2.8rem .9rem .9rem; color: #F7EFE6; }
.abertura-video { position: absolute; inset: 0; background: radial-gradient(90% 45% at 50% 82%, #B0461C, transparent 70%), radial-gradient(60% 30% at 40% 70%, #E0612A88, transparent 70%), #2A1A10; animation: respirar 5s ease-in-out infinite; }
@keyframes respirar { 50% { filter: brightness(1.18) saturate(1.1); } }
.abertura video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abertura-veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.abertura-logo { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--brasa); display: grid; place-items: center; text-align: center; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 1rem; line-height: .9; box-shadow: 0 0 0 6px rgba(0,0,0,.25); margin-top: 1rem; }
.abertura-botoes { position: relative; margin-top: auto; width: 100%; }
.abertura-botoes span { display: block; padding: .75rem; border-radius: 999px; background: #F7EFE6; color: #1E1712; text-align: center; font-weight: 800; font-size: .7rem; }
.tablet .abertura { padding-top: 1rem; }
.tablet .abertura-logo { width: 64px; height: 64px; font-size: .8rem; margin-top: .4rem; }
.foco { position: absolute; z-index: 7; left: var(--fx, 50%); top: var(--fy, 45%); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; transition: left .3s var(--curva), top .3s var(--curva); }
.alvo { cursor: crosshair; }

/* ---------- Monte o seu (recursos) ---------- */
.monte-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.abas { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--linha); }
.aba { height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; font-weight: 800; font-size: .8rem; color: var(--texto-2); display: inline-flex; align-items: center; gap: .45rem; transition: background-color .25s, color .25s; }
.aba i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.aba[aria-selected="true"] { background: var(--creme); color: var(--fundo); }
.monte-corpo { display: grid; gap: 1rem; margin-top: clamp(1rem, 2.8vh, 1.8rem); }
@media (min-width: 1024px) { .monte-corpo { grid-template-columns: minmax(0, 1fr) 20rem; } }
.pecas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; align-content: start; }
@media (min-width: 768px) { .pecas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.peca { position: relative; text-align: left; padding: clamp(.65rem, 1.6vh, .95rem); border-radius: 1rem; background: var(--card); border: 1.5px solid var(--linha); display: flex; flex-direction: column; gap: .35rem; transition: border-color .2s, background-color .2s, transform .25s var(--curva); min-height: clamp(5.4rem, 13vh, 7.6rem); }
.peca:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--p1) 45%, transparent); }
.peca[aria-pressed="true"] { border-color: var(--p1); background: color-mix(in oklab, var(--p2) 14%, var(--card)); }
.peca .topo-peca { display: flex; align-items: center; justify-content: space-between; color: var(--p1); }
.peca .marcar { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--linha-forte); display: grid; place-items: center; color: var(--pt); transition: background-color .2s, border-color .2s; }
.peca[aria-pressed="true"] .marcar { background: var(--p1); border-color: var(--p1); }
.peca[aria-pressed="false"] .marcar svg { opacity: 0; }
.peca b { color: var(--creme); font-size: clamp(.82rem, 1.8vh, .95rem); line-height: 1.2; }
.peca span.d { color: var(--texto-3); font-size: clamp(.7rem, 1.5vh, .8rem); line-height: 1.35; }
.peca em { position: absolute; top: .55rem; right: 2.2rem; font-style: normal; font-size: .55rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--p1); }
.resumo { border-radius: 1.4rem; padding: 1.3rem; background: linear-gradient(180deg, color-mix(in oklab, var(--p2) 18%, var(--card)), var(--card)); border: 1px solid color-mix(in oklab, var(--p1) 35%, transparent); display: flex; flex-direction: column; gap: .8rem; }
.resumo .num { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 7vh, 3.6rem); line-height: .9; color: var(--p1); }
.resumo .tags { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 22vh; overflow: auto; }
.resumo .tags span { padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .72rem; font-weight: 700; color: var(--texto-2); }
.resumo p { font-size: .85rem; color: var(--texto-2); line-height: 1.45; }
.resumo .btn { width: 100%; margin-top: auto; }

/* ---------- Planos ---------- */
.planos-grade { display: grid; gap: 1.2rem; margin-top: clamp(1rem, 3vh, 2rem); }
@media (min-width: 900px) { .planos-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.planos-msg { grid-column: 1 / -1; text-align: center; color: var(--texto-3); padding: 2rem 1rem; border: 1px dashed var(--linha-forte); border-radius: 1.4rem; }
.planos-msg a { color: var(--ouro); font-weight: 800; text-decoration: underline; }
.plano { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.2rem, 3vh, 1.8rem); border-radius: 1.6rem; background: var(--campo); border: 1px solid var(--linha); transition: border-color .3s, transform .4s var(--curva); }
.plano:hover { border-color: var(--linha-forte); transform: translateY(-4px); }
.plano.destaque { background: linear-gradient(180deg, #2e2622, #201916); border: 2px solid rgba(238,189,142,.45); }
.fita { position: absolute; top: 1.2rem; right: -2.4rem; background: var(--ouro); color: var(--tinta-ouro); font-size: .62rem; font-weight: 800; padding: .3rem 3rem; transform: rotate(45deg); letter-spacing: .18em; text-transform: uppercase; }
.plano-nome h3 { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 1.7rem; text-transform: uppercase; color: var(--creme); }
.plano-preco { margin: clamp(.8rem, 2.4vh, 1.4rem) 0; display: flex; align-items: baseline; gap: .4rem; }
.plano-preco .valor, .plano-preco .gratis { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 6vh, 3rem); line-height: 1; color: var(--ouro); }
.plano-preco .mes { color: var(--texto-2); font-size: .9rem; }
.plano ul { flex: 1; display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.plano li { display: flex; gap: .6rem; align-items: center; color: var(--texto); font-size: .92rem; }
.plano li svg { color: var(--ouro); flex-shrink: 0; }
.plano-botao { width: 100%; height: 3.1rem; border-radius: .9rem; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.plano-botao.comum { background: var(--linha); color: var(--ouro); }
.plano-botao.comum:hover { background: var(--ouro); color: var(--tinta-ouro); }
.plano-botao.principal { background-image: linear-gradient(135deg, var(--ouro), var(--ouro-2)); color: var(--tinta-ouro); }

/* ---------- CTA + rodapé ---------- */
.cta-caixa { position: relative; overflow: hidden; border-radius: 2.4rem; padding: clamp(2rem, 7vh, 5rem) 1.5rem; background: var(--brasa); color: #fff; text-align: center; isolation: isolate; }
.cta-caixa::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 50% 120%, rgba(0,0,0,.35), transparent); }
.cta-caixa p { max-width: 40rem; margin: 1.4rem auto 0; font-size: clamp(.95rem, 2.2vh, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.9); }
.cta-pedido { margin: 1rem auto 0; max-width: 40rem; font-size: .9rem; font-weight: 700; padding: .6rem 1rem; border-radius: 999px; background: rgba(0,0,0,.18); }
.cta-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: clamp(1.2rem, 3.6vh, 2.2rem); }
.btn-claro { background: #fff; color: var(--brasa); }
.btn-linha { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.rodape { background: var(--fundo-2); border-top: 1px solid var(--linha); padding: 4rem 0 2.5rem; }
.rodape-topo { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .rodape-topo { grid-template-columns: 1.2fr 2fr; } }
.rodape-marca p { color: var(--texto-2); margin-top: 1rem; line-height: 1.6; max-width: 22rem; }
.rodape-colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 640px) { .rodape-colunas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rodape h5 { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--creme); margin-bottom: .9rem; display: flex; align-items: center; gap: .45rem; }
.rodape h5 i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.rodape li { margin-bottom: .6rem; color: var(--texto-2); font-size: .9rem; }
.rodape li a:hover { color: var(--ouro); }
.rodape-gigante { margin-top: 3rem; color: var(--card); text-align: center; user-select: none; }
.rodape-base { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--texto-3); font-size: .85rem; }

/* =========================================================================
   LOGIN
   ========================================================================= */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; position: relative; overflow: hidden; isolation: isolate; }
.login-voltar { position: absolute; top: 1.6rem; left: 1.6rem; display: flex; align-items: center; gap: .5rem; color: var(--texto-3); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; z-index: 2; }
.login-voltar:hover { color: var(--ouro); }
.login-caixa { width: 100%; max-width: 23rem; padding: 1.6rem 1.6rem; border-radius: 1.5rem; background: rgba(28,22,19,.78); border: 1px solid var(--linha); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.login-topo { text-align: center; margin-bottom: 1.2rem; display: flex; flex-direction: column; align-items: center; }
.login-topo .marca-svg { width: 56px; height: auto; margin-bottom: .6rem; }
.login-logo { font-size: 1.7rem; }
.login-aviso { display: inline-block; margin-top: .6rem; padding: .35rem 1rem; border-radius: 999px; background: rgba(238,189,142,.08); border: 1px solid rgba(238,189,142,.22); color: var(--ouro); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-marcas { margin-top: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.login-marcas span { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--linha-forte); font-size: .7rem; font-weight: 800; color: var(--texto-2); }
.login-marcas span i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.login-form > :not(:last-child) { margin-bottom: .85rem; }
.login-erro { background: rgba(255,180,171,.1); border: 1px solid rgba(255,180,171,.45); color: var(--erro); font-size: .88rem; padding: .9rem; border-radius: .9rem; text-align: center; }
.rotulo { display: block; margin-bottom: .45rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); }
.campo-wrap { position: relative; }
.campo-icone { position: absolute; inset: 0 auto 0 0; padding-left: 1rem; display: flex; align-items: center; color: var(--texto-3); pointer-events: none; }
.campo-icone svg { width: 1.2rem; height: 1.2rem; }
.campo { width: 100%; height: 3.3rem; padding: 0 1rem 0 3rem; border-radius: 1rem; background: var(--campo); border: 1px solid var(--linha-forte); color: var(--texto); outline: none; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.campo:focus { border-color: var(--ouro); box-shadow: 0 0 0 4px rgba(238,189,142,.12); }
.login-botao { width: 100%; height: 3.3rem; margin-top: .5rem; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; background-image: linear-gradient(135deg, var(--ouro), var(--ouro-2)); color: var(--tinta-ouro); transition: transform .2s; }
.login-botao:hover { transform: translateY(-2px); }
.login-botao:disabled { opacity: .55; transform: none; }
.modal-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(11,8,7,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; }
.modal { width: 100%; max-width: 27rem; padding: 2rem; border-radius: 2rem; background: var(--campo); border: 1px solid var(--linha-forte); }
.modal-topo { text-align: center; margin-bottom: 1.4rem; display: flex; flex-direction: column; align-items: center; }
.modal-alerta { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,180,171,.1); border: 1px solid rgba(255,180,171,.25); color: var(--erro); margin-bottom: 1rem; }
.modal-alerta svg { width: 1.8rem; height: 1.8rem; }
.modal h2 { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 1.6rem; text-transform: uppercase; color: var(--creme); }
.modal-texto { margin-top: .6rem; font-size: .88rem; line-height: 1.6; color: var(--texto-2); }
.modal-texto .nome { color: var(--ouro); font-weight: 800; }
.modal-form > :not(:last-child) { margin-bottom: 1rem; }
.modal-erro { background: rgba(255,180,171,.1); border: 1px solid rgba(255,180,171,.35); color: var(--erro); font-size: .82rem; padding: .7rem; border-radius: .7rem; text-align: center; }
.campo-modal { width: 100%; height: 3.2rem; padding: 0 1rem; border-radius: .9rem; background: var(--card); border: 1px solid var(--linha-forte); color: var(--texto); outline: none; }
.campo-modal:focus { border-color: var(--ouro); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .brasas, .grao { display: none; }
  [data-revela] { opacity: 1; transform: none; }
}

/* ---------- Ajustes para caber em uma tela ---------- */
@media (max-height: 900px) and (min-width: 768px) {
  #bastidores .lead { display: none; }
  #bastidores .titulo { font-size: clamp(1.8rem, 6.5vh, 3.4rem); }
  .bloco { gap: .4rem; }
  .bloco p { font-size: .8rem; }
  .peca { min-height: 0; }
  .peca span.d { display: none; }
  #monte .lead { display: none; }
}
@media (max-width: 767px) {
  .grade-telas, .pecas { grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; }
  .grade-telas::-webkit-scrollbar, .pecas::-webkit-scrollbar { display: none; }
  .grade-telas { grid-auto-columns: 82%; }
  .grade-telas > *, .pecas > * { scroll-snap-align: start; }
  .pecas { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 46%; }
  .peca span.d { display: none; }
  .resumo p, .resumo .tags { display: none; }
  .resumo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
  .resumo .num { font-size: 2.4rem; }
  .resumo .btn { margin-top: 0; }
  .match-logo { width: min(200px, 24vh); }
  #match .lead, #video .passos, #bastidores .lead { display: none; }
  .aparelhos .celular { height: 40vh; }
  .rolar-dica { display: block; }
}

@media (max-width: 520px) { .nav .btn { display: none; } }
.abas { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.aba { flex-shrink: 0; }

/* ---------- Pedido (especialista / criar conta) ---------- */
.modal { position: relative; }
.modal-fechar { position: absolute; top: .9rem; right: .9rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--texto-3); display: grid; place-items: center; }
.modal-fechar:hover { color: var(--creme); background: rgba(255,255,255,.06); }
.pedido-contexto { margin-top: .8rem; display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: rgba(238,189,142,.08); border: 1px solid rgba(238,189,142,.22); color: var(--ouro); font-size: .75rem; font-weight: 800; }
.pedido-ok { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pedido-ok[hidden] { display: none; }
.pedido-ok-icone { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: rgba(108,203,95,.14); border: 1px solid rgba(108,203,95,.4); color: var(--verde); margin-bottom: .4rem; }
.pedido-ok h2 { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 1.6rem; text-transform: uppercase; color: var(--creme); }
.pedido-ok .login-botao { margin-top: 1rem; }

/* ---------- Planos: quantos o admin cadastrar ---------- */
@media (min-width: 900px) { .planos-grade { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }

/* ---------- Celular: nada pode passar da largura da tela ---------- */
.hero-topo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hero-topo { grid-template-columns: minmax(0, 1fr) auto; } }
.hero-topo > *, .mundo-grade > *, .video-grade > *, .match-grade > *, .monte-corpo > * { min-width: 0; }
.selo { max-width: 100%; white-space: normal; line-height: 1.35; }
.selo .ponto { align-self: center; }
.plano-preco { flex-wrap: wrap; }
.plano-preco .valor { white-space: nowrap; font-size: clamp(1.8rem, min(2.5vw, 6vh), 3rem); }
.plano ul { align-content: start; }

/* ---------- Planos por produto (abas) ---------- */
.planos-abas { margin: 1.2rem auto 0; }
.planos-abas .aba[aria-selected="true"] { background: var(--creme); color: var(--fundo); }

/* ---------- Login: instrução, spinner e carregando ---------- */
.login-instrucao { margin-top: .6rem; color: var(--texto-2); font-size: .9rem; }
.spin { display: inline-block; width: 1rem; height: 1rem; margin-right: .55rem; vertical-align: -.15rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar-spin .8s linear infinite; }
@keyframes girar-spin { to { transform: rotate(360deg); } }
.login-botao { display: inline-flex; align-items: center; justify-content: center; }
/* O spinner continua girando mesmo com "reduzir movimento": é aviso de espera */
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; } }

/* Login mais compacto: cabe inteiro em notebook com o navegador em 100% */
.login .campo { height: 2.85rem; border-radius: .85rem; font-size: .9rem; }
.login .login-botao { height: 2.85rem; }
