/* Páginas de captura por modalidade (/m-prime, /jiu-jitsu-feminino, /jiu-jitsu-kids-meninas, /jiu-jitsu-kids-meninos).
   Tema claro da MFIT (tokens do site.css). A página dos meninos usa .tema-sw: identidade Soul Work (preto, osso, brasa, Anton).
   Nada aqui esconde conteúdo sem JS: os estados iniciais das animações só valem com html.js. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800-latin.woff2) format("woff2"); }
@font-face { font-family: Anton; font-weight: 400; font-display: swap; src: url(../fonts/anton-400-latin.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); }

:root {
  --bg: #f8f9fa; --bg-2: #ffffff; --bg-3: #eef0f3;
  --linha: rgba(17, 17, 19, .09); --texto: #111113; --suave: #55555f;
  --acento: #ff00ff; --acento-texto: #c000c0; --acento-hover: #ff4dff; --no-acento: #0b0b0c;
  --sombra: 0 1px 2px rgba(17, 17, 19, .04), 0 18px 44px -22px rgba(17, 17, 19, .22);
  --raio: 16px; --raio-bloco: 28px; --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --titulo: 800 1em/1.06 Poppins, Arial, sans-serif;
  color-scheme: light;
}
.tema-sw {
  --bg: #0e0e0e; --bg-2: #191917; --bg-3: #23231f;
  --linha: rgba(244, 241, 234, .12); --texto: #f4f1ea; --suave: #c9c5ba;
  --acento: #e23a2e; --acento-texto: #ff6a5c; --acento-hover: #f04a3e; --no-acento: #fff;
  --sombra: 0 18px 44px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--texto); font: 400 1.0625rem/1.65 Poppins, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.tema-sw body, body.tema-sw { font-family: Inter, Arial, sans-serif; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: 14px; }
.h2 { font: var(--titulo); font-size: clamp(1.8rem, 3.8vw, 2.9rem); max-width: 22ch; }
.tema-sw .h2, .tema-sw h1, .tema-sw h3 { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; line-height: 1.02; }
.lead { color: var(--suave); font-size: 1.08rem; max-width: 60ch; margin-top: 16px; }

/* Topo */
.topo { position: absolute; inset: 0 0 auto; z-index: 5; padding-block: 18px; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topo img { height: 34px; width: auto; }
.topo a.mini { font-size: .86rem; font-weight: 600; text-decoration: none; color: var(--suave); }

/* 1. Hero com formulário */
.hero { position: relative; padding-block: 92px 56px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font: var(--titulo); font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--acento-texto); }
.hero__sub { margin-top: 18px; color: var(--suave); font-size: 1.1rem; max-width: 52ch; }
.hero__foto { display: block; position: relative; border-radius: var(--raio-bloco); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 5; background: var(--bg-3); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding-block: 110px 80px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
  .hero__foto { aspect-ratio: 5 / 6; }
  .hero__lado { position: sticky; top: 24px; margin-top: 34px; }
}

/* Formulário */
.form { position: relative; background: var(--bg-2); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--sombra), inset 0 0 0 1px var(--linha); margin-top: 26px; max-width: 480px; }
.form h2 { font: 700 1.25rem/1.2 Poppins, Arial, sans-serif; letter-spacing: -.01em; }
.tema-sw .form h2 { font: 400 1.5rem/1.1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.form p.form__sub { color: var(--suave); font-size: .92rem; margin-top: 4px; }
.campo { display: block; margin-top: 14px; }
.campo span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.campo input { width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--linha); background: var(--bg); color: var(--texto); font: 500 1.05rem Poppins, Arial, sans-serif; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.campo input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 18%, transparent); }
.campo input[aria-invalid="true"] { border-color: #d22; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 18px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--acento); color: var(--no-acento); font: 700 1.02rem Poppins, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.tema-sw .btn { font-family: Inter, Arial, sans-serif; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; }
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: brilho 4.5s 1.5s infinite; }
@keyframes brilho { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (hover: hover) { .btn:hover { background: var(--acento-hover); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--acento) 70%, transparent); } .btn:hover::after { transform: translateX(4px); } }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn--auto { width: auto; }
.form__nota { font-size: .78rem; color: var(--suave); margin-top: 12px; }
.form__nota a { color: inherit; }
.form__erro { color: #d22; font-size: .9rem; font-weight: 600; margin-top: 10px; min-height: 1em; }
.tema-sw .form__erro, .tema-sw .campo input[aria-invalid="true"] { color: #ff8a80; border-color: #ff8a80; }

/* 2. Vídeo de vendas */
.video { background: var(--bg-2); }
.video__caixa { position: relative; margin-top: 32px; border-radius: var(--raio-bloco); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--sombra); }
.video__caixa video { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05) 60%); cursor: pointer; color: #fff; }
.video__play span { display: grid; place-items: center; width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--acento); color: var(--no-acento); box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 60%, transparent); animation: pulso 2.2s infinite; transition: transform .25s var(--ease); }
.video__play svg { width: 34%; margin-left: 6%; }
.video__play:hover span { transform: scale(1.07); }
.video__play small { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acento) 55%, transparent); } 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 4. Como funciona */
.passos { display: grid; gap: 16px; margin-top: 36px; padding: 0; list-style: none; counter-reset: p; }
.passo { position: relative; padding: 26px; border-radius: var(--raio-bloco); background: var(--bg-2); box-shadow: var(--sombra), inset 0 0 0 1px var(--linha); transition: transform .35s var(--ease), box-shadow .35s; }
.passo:hover { transform: translateY(-4px); }
.passo__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento-texto); margin-bottom: 16px; transition: transform .45s var(--ease); }
.passo:hover .passo__icone, .passo.ativo .passo__icone { transform: rotate(-8deg) scale(1.08); }
.passo__icone svg { width: 26px; height: 26px; }
.passo h3 { font: 700 1.15rem/1.25 Poppins, Arial, sans-serif; }
.tema-sw .passo h3 { font: 400 1.35rem/1.1 Anton, Impact, sans-serif; }
.passo p { color: var(--suave); margin-top: 8px; font-size: .98rem; }
.passo::after { counter-increment: p; content: "0" counter(p); position: absolute; top: 22px; right: 24px; font: 800 .9rem Poppins, sans-serif; color: var(--suave); opacity: .5; }
@media (min-width: 760px) { .passos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .passos { grid-template-columns: repeat(4, 1fr); } }

/* 5. Galeria (fotos e clipes do midia.json) */
.galeria { background: var(--bg-2); }
.grade { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: 10px; margin-top: 32px; }
.grade figure { position: relative; margin: 0; border-radius: var(--raio); overflow: hidden; background: var(--bg-3); }
.grade img, .grade video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.grade figure:hover img, .grade figure:hover video { transform: scale(1.04); }
.grade figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; color: #fff; font-size: .8rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.grade .alto { grid-row: span 2; }
.grade .largo { grid-column: span 2; }
@media (min-width: 760px) { .grade { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; } }

/* 6. Dúvidas */
.duvidas__lista { margin-top: 30px; display: grid; gap: 10px; max-width: 820px; }
.duvidas details { border-radius: var(--raio); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--linha); padding: 0 22px; }
.duvidas summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 600; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento-texto); font-size: 1.2rem; transition: transform .3s var(--ease); }
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas details p { padding-bottom: 20px; color: var(--suave); }

/* 7. Fechamento */
.final__caixa { border-radius: var(--raio-bloco); padding: clamp(28px, 5vw, 56px); background: #0b0b0c; color: #f4f4f4; display: grid; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.final__caixa::before { content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -30vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acento) 45%, transparent), transparent); opacity: .35; pointer-events: none; }
.final__caixa > * { position: relative; }
.final__caixa .h2 { color: #fff; }
.final__caixa p { color: #d6d6db; margin-top: 12px; max-width: 52ch; }
.final__caixa .form { margin-top: 0; color: var(--texto); }
.tema-sw .final__caixa { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--linha); }
@media (min-width: 900px) { .final__caixa { grid-template-columns: 1fr .9fr; gap: 48px; } }

.rodape { padding-block: 36px 110px; font-size: .85rem; color: var(--suave); text-align: center; }
.rodape a { color: inherit; }

/* Barra fixa no celular */
.barra { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; transform: translateY(140%); transition: transform .45s var(--ease); }
.barra.mostra { transform: none; }
.barra .btn { margin: 0; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); }
@media (min-width: 900px) { .barra { display: none; } .rodape { padding-bottom: 36px; } }

/* Página de obrigado */
.obrigado { min-height: 100svh; display: grid; place-items: center; padding: 32px var(--gutter); text-align: center; }
.obrigado__caixa { max-width: 560px; }
.obrigado img.logo { height: 40px; width: auto; margin: 0 auto 36px; }
.obrigado .check { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento-texto); }
.obrigado .check svg { width: 42px; height: 42px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: risco .7s .2s var(--ease) forwards; }
@keyframes risco { to { stroke-dashoffset: 0; } }
.obrigado h1 { font: var(--titulo); font-size: clamp(2rem, 6vw, 3rem); }
.obrigado p { color: var(--suave); margin-top: 16px; font-size: 1.1rem; }
.obrigado .btn { max-width: 420px; margin-top: 28px; background: #25d366; color: #0b0b0c; }
.obrigado .btn::after { content: none; }
.obrigado .btn svg { width: 22px; height: 22px; }
.obrigado small { display: block; margin-top: 16px; color: var(--suave); font-size: .85rem; }

/* Animações de entrada (só com JS e sem pedido de menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-revela] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--atraso, 0s); }
  html.js [data-revela].visto { opacity: 1; transform: none; }
  html.js .hero__foto img { animation: zoom 1.6s var(--ease) both; }
  @keyframes zoom { from { transform: scale(1.08); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .btn::before, .video__play span { animation: none; } }
