/* ==========================================================
   JV — estilos da LP (requer jv-design-system/*)
   Geometria do hero: Figma 3:12 normalizado para 1440px.
   --u = 1px do layout de 1440 (no palco do hero, escala para preencher a tela).
   Obs.: não usar transform para posicionar nada dentro de [data-hero]
   — motion.css zera transforms no prefers-reduced-motion.
   ========================================================== */

.br-d { display: none; }
html, body { overflow-x: clip; } /* nada girando/deslocando gera scroll horizontal */

/* ==========================================================
   1. HERO — cena presa ao scroll
   .hero-scroll dá a "pista"; .hero-stage fica preso (sticky).
   Variáveis (js/lp.js, já com easing):
     --p  progresso bruto 0 → 1
     --a  chegada do João (0 → 1 nos primeiros 55%)
     --b  empurrão final de câmera (0 → 1 nos 45% restantes)
   ========================================================== */
.hero {
  position: relative;
  overflow: clip;              /* clip (não hidden) para não quebrar o sticky */
  background: var(--bg-hero);
  container-type: inline-size;
  --u: calc(min(100cqw, 1440px) / 1440);
}
.hero-scroll { position: relative; height: 210svh; }
.hero-stage  { position: sticky; top: 0; height: 100svh; overflow: hidden; --p: 1; --a: 1; --b: 0; }
.js .hero-stage { --p: 0; --a: 0; }
.hero-canvas { position: absolute; inset: 0; transform: scale(calc(1 + var(--b) * .045)); transform-origin: 50% 100%; }

/* ---- Mobile / retrato: foto grande ancorada na curva, logo atrás da cabeça ---- */
.hero-stage { --pw: min(100cqw, 50svh); }             /* largura da foto */
.hero-photo-wrap { position: absolute; left: 50%; width: var(--pw); margin-left: calc(var(--pw) / -2); bottom: calc(11px - var(--pw) * .137); }
.hero-photo-img  { width: 100%; height: auto; }
.hero-brand { position: absolute; left: 3cqw; width: 94cqw; bottom: calc(11px + var(--pw) * 1.272 - 43.3cqw); }
.hero-mono  { width: 100%; height: auto; }
.hero-tag--lockup { display: none; }

.hero-luz { position: absolute; top: -40svh; left: -20cqw; width: 180cqw; pointer-events: none; }
.hero-luz img { width: 100%; height: auto; }

.hero-curve { position: absolute; left: 0; bottom: 0; height: 40px; margin: 0; z-index: 2; }

/* ---- Entrada (load): o "JV" é revelado por um wipe diagonal de 45° (o corte do J) ---- */
.js [data-hero] .hero-mono {
  clip-path: polygon(0 100%, 0 100%, 0 100%);
  transition: opacity var(--dur-hero) var(--ease-out), transform var(--dur-hero) var(--ease-out), clip-path 1.3s var(--ease-inout) 100ms;
}
.js [data-hero].is-loaded .hero-mono { opacity: 1; clip-path: polygon(0 100%, 0 -100%, 200% 100%); }

/* ---- Coreografia do scroll ---- */
/* logo: começa protagonista e recua para 45% (DESIGN_SYSTEM §6.1) quando o João chega */
.hero-brand { transform: scale(calc(1.06 - var(--a) * .06)); transform-origin: 50% 70%; opacity: calc(.9 - var(--a) * .45); }
/* João: sobe de trás da curva, com leve zoom out */
.hero-photo-wrap {
  transform: translate3d(0, calc((1 - var(--a)) * 62%), 0) scale(calc(1.08 - var(--a) * .08));
  transform-origin: 50% 100%;
  opacity: min(calc(var(--a) * 2.4), 1);
  will-change: transform, opacity;
}
/* luz acende conforme ele chega */
.hero-luz { opacity: calc(var(--light-overlay-opacity) * (.35 + var(--a) * .65)); }

.hero-hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(40px + var(--sp-5)); display: grid; justify-items: center; gap: var(--sp-2);
  font-size: var(--fs-micro); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--jv-smoke); opacity: calc(1 - var(--p) * 6); pointer-events: none; }
.hero-hint > * { animation: jv-fade-in .6s var(--ease-out) 1.6s both; }
.hero-hint i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: jv-fade-in .6s var(--ease-out) 1.6s both, jv-hint 1.6s var(--ease-inout) 2.2s infinite; }
@keyframes jv-fade-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes jv-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---- Texto do hero ---- */
.hero-body { position: relative; background: var(--bg); text-align: center; padding: var(--sp-5) 0 var(--section-y); }
.hero-tag--inline { margin: 0 0 var(--sp-4); }
.hero-title { max-width: 20ch; margin-inline: auto; }
.hero-lead { margin: var(--sp-5) auto 0; }
.hero-lead p { margin: 0; }
.hero-lead .jv-proof-line { margin-top: var(--sp-3); }
.hero-cta { margin-top: var(--sp-7); }

/* ---- Paisagem ≥ 768px: composição do Figma, escalada para preencher a tela ---- */
@media (min-width: 768px) and (orientation: landscape) {
  .hero-stage { --u: min(calc(100cqw / 1100), calc(100svh / 640)); }
  .hero-canvas { top: auto; bottom: 0; left: 50%; height: calc(622 * var(--u)); width: calc(1440 * var(--u)); margin-left: calc(-720 * var(--u)); }

  .hero-brand { left: calc(248 * var(--u)); top: calc(81 * var(--u)); bottom: auto; width: calc(994 * var(--u)); }
  .hero-tag--lockup {
    display: block; position: absolute; left: 69.4%; top: 75.2%; margin: 0;
    font-size: calc(58 * var(--u)); line-height: .95; font-weight: var(--fw-light);
    text-transform: uppercase; letter-spacing: .02em; color: var(--jv-smoke);
  }

  .hero-luz { left: calc(267 * var(--u)); top: calc(-737.5 * var(--u)); width: calc(1481.4 * var(--u)); }
  .hero-photo-wrap { left: calc(509 * var(--u)); top: calc(26 * var(--u)); bottom: auto; width: calc(410 * var(--u)); margin-left: 0; }
  .hero-curve { height: calc(85.2 * var(--u)); }
  .hero-hint { bottom: calc(85.2 * var(--u) * .08); }
  .hero-hint i { display: none; }
  .hero-tag--inline { display: none; }
}

@media (min-width: 768px) {
  .br-d { display: inline; }
  .hero-body { padding: var(--sp-7) 0 var(--sp-9); }
  .hero-title { max-width: none; }
  .hero-lead { max-width: 70ch; margin-top: var(--sp-6); }
  .hero-lead .jv-proof-line { margin-top: 0; }
  .hero-btn { min-width: min(588px, 100%); min-height: 72px; padding-block: var(--sp-3); font-size: var(--fs-h3); }
}

/* ==========================================================
   BASE DAS SEÇÕES
   ========================================================== */
.jv-section, .final { overflow-x: clip; }
.jv-h2 strong { font-weight: var(--fw-bold); color: var(--accent); }
.jv-section--light .jv-h2 strong { color: var(--text-on-light); background: linear-gradient(transparent 62%, var(--accent) 62%); }
.jv-section--light .jv-lead { color: color-mix(in srgb, var(--jv-ink) 78%, transparent); }
.jv-section--light .jv-hl { color: inherit; }

/* índice técnico da seção (microdetalhe, ref. VYRA) */
.sec-index { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); font-size: var(--fs-micro); font-weight: var(--fw-medium); letter-spacing: var(--ls-wide); color: var(--jv-smoke); }
.sec-index::before { content: ''; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 100%,30% 100%,0 70%); }
.sec-index::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.jv-section--light .sec-index { color: color-mix(in srgb, var(--jv-ink) 65%, transparent); }

.sec-head { max-width: 760px; margin-bottom: var(--sp-8); }
.jv-h2 + .jv-lead, .sec-head .jv-lead { margin: var(--sp-5) 0 0; }

.cta-row { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-top: var(--sp-8); }

/* Botões estáticos: sem deslocamento com o mouse */
.jv-btn--primary:active { transform: none; }

/* Reveal "tilt" — sobe e assenta girando (linguagem Cartas da Madu, versão mais seca) */
.js [data-reveal="tilt"] { transform: translate3d(0, 60px, 0) rotate(calc(var(--r, 0deg) * 4)); transition: opacity var(--dur-slow) var(--ease-out) var(--delay, 0ms), transform 1s var(--ease-out) var(--delay, 0ms); }
.js [data-reveal="tilt"].is-in { transform: rotate(var(--r, 0deg)); }

/* Foto chanfrada: o wipe (data-reveal="clip") fica no figure, o chanfro na img */
.jv-photo { position: relative; margin: 0; }
.jv-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; clip-path: var(--clip-chamfer); }
.jv-photo::after { content: ''; position: absolute; left: -8px; bottom: -8px; width: calc(var(--chamfer) + 8px); height: calc(var(--chamfer) + 8px);
  background: linear-gradient(45deg, transparent calc(50% - 2px), var(--accent) calc(50% - 2px) calc(50% + 1px), transparent calc(50% + 1px)); }

/* ---------- 2. A frustração ---------- */
.frus { display: grid; gap: var(--sp-8); align-items: center; }
.frus__card { padding: var(--sp-7) var(--sp-6); color: var(--text); }
.frus__ruler { height: 44px; }
.frus__ruler--sm { height: 16px; margin-top: var(--sp-2); opacity: .6; }
.frus__close { margin: var(--sp-6) 0 0; font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-head); text-transform: uppercase; }

/* ---------- 3. O método (linha do tempo) ---------- */
.method { display: grid; gap: var(--sp-8); }
.method__media { max-width: 460px; width: 100%; justify-self: center; }
.timeline { --s: 0; position: relative; list-style: none; margin: var(--sp-7) 0 0; padding: 0 0 0 56px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--jv-steel); }
.timeline::after { background: var(--accent); transform-origin: top; transform: scaleY(min(calc(var(--s) * 1.6), 1)); }
.timeline li { position: relative; padding-bottom: var(--sp-6); }
.timeline li:last-child { padding-bottom: 0; }
.tl__num { position: absolute; left: -56px; top: 0; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--accent); }
.timeline h3 { margin: 4px 0 var(--sp-2); font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-head); }
.timeline p { margin: 0; color: var(--text-muted); }
.method__quote { margin: var(--sp-8) 0 0; padding-left: var(--sp-5); border-left: 2px solid var(--accent); font-size: var(--fs-h3); line-height: 1.35; }
.method__quote strong { font-weight: var(--fw-bold); }

/* ---------- 4. Consultoria online ---------- */
.consult { background: var(--surface); }
.consult__grid { display: grid; gap: var(--sp-8); align-items: center; }
.consult__list { margin: var(--sp-6) 0 0; font-weight: var(--fw-regular); }
.consult__plan { padding: var(--sp-8) var(--sp-7); background: var(--bg); }
.plan__label { margin: 0 0 var(--sp-4); }
.plan__pitch { margin: 0 0 var(--sp-7); font-size: var(--fs-h2); font-weight: var(--fw-light); line-height: var(--lh-head); text-transform: uppercase; }
.plan__pitch strong { display: block; font-weight: var(--fw-bold); color: var(--accent); }

/* "Saiba mais" → WhatsApp: logo + seta (o número nunca aparece) */
.btn-ic { width: 20px; height: 20px; flex: none; }
.btn-more { gap: var(--sp-3); }

/* ---------- 5. Para quem é ---------- */
.audience { text-align: center; }
.audience .sec-index { justify-content: center; }
.audience .jv-lead { margin-inline: auto; }
.audience__chips { list-style: none; padding: 0; margin: var(--sp-7) auto 0; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.audience__chips .jv-chip { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-lead); }

/* ---------- 6. Objeções ---------- */
.obj__grid { display: grid; gap: var(--sp-5); }
.obj { padding: var(--sp-7) var(--sp-6); }
.obj__q { margin: 0 0 var(--sp-3); font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-head); }
.obj p { margin: 0; color: color-mix(in srgb, var(--jv-ink) 78%, transparent); }

/* ---------- 7. Personal presencial (secundário, menor) ---------- */
.pres { max-width: 760px; margin-inline: auto; padding: var(--sp-7) var(--sp-6); border: 1px solid var(--border); }
.pres__title { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-medium); }
.pres__text { margin: var(--sp-2) 0 var(--sp-6); color: var(--text-muted); }
.pres__table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-6); font-size: var(--fs-small); }
.pres__table th { text-align: left; padding: 0 0 var(--sp-3); font-size: var(--fs-micro); font-weight: var(--fw-medium); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--jv-smoke); border-bottom: 1px solid var(--border); }
.pres__table td { padding: var(--sp-3) 0; border-bottom: 1px solid var(--border); }
.pres__table th:last-child, .pres__table td:last-child { text-align: right; }
.pres__table td:last-child { font-weight: var(--fw-bold); }

/* ---------- 8. Quem é o João Victor ---------- */
.about { --s: 0; }
.about__word { position: absolute; left: 0; right: 0; top: var(--sp-7); margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font-size: var(--fs-mega); font-weight: var(--fw-bold); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1);
  transform: scale(calc(1.18 - var(--s) * .18)); transform-origin: 50% 0; }
.about__grid { position: relative; display: grid; gap: var(--sp-8); align-items: center; }
.about__media { max-width: 460px; width: 100%; justify-self: center; }
.about__seal { margin: var(--sp-6) 0 0; }
.about__marquee { margin-top: var(--sp-9); }
.about__marquee .jv-marquee__track { text-transform: uppercase; }
.about__marquee .jv-marquee__track span { padding-right: .4em; }

/* ---------- 9. Prova social (hidden até haver material) ---------- */
.proofs { background: var(--surface); }
.proofs__grid { display: grid; gap: var(--sp-5); margin: var(--sp-7) 0; }
.proof-slot { margin: 0; aspect-ratio: 9 / 16; background: var(--bg); clip-path: var(--clip-chamfer); }
.compare { margin: 0; max-width: 420px; }
.jv-compare .knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 1; pointer-events: none; border-radius: 50%; background: var(--accent); box-shadow: var(--jv-volt-glow); }
.jv-compare input { z-index: 2; }

/* ---------- 10. FAQ ---------- */
.faq__grid { display: grid; gap: var(--sp-7); }
.jv-faq summary { gap: var(--sp-4); font-size: var(--fs-lead); }
.jv-faq summary::-webkit-details-marker { display: none; }
.jv-faq details p { margin: var(--sp-3) 0 0; color: var(--text-muted); max-width: 62ch; }

/* ---------- 11. CTA final ---------- */
.final { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); text-align: center; padding-block: var(--section-y); --s: 0; }
.final__mega { position: absolute; left: 50%; top: 50%; margin: 0; pointer-events: none; font-size: calc(var(--fs-mega) * 2.2); font-weight: var(--fw-bold); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--jv-ink) 14%, transparent);
  transform: translate(-50%, -50%) scale(calc(1.25 - var(--s) * .25)); }
.final__inner { position: relative; }
.final__title { font-size: var(--fs-h1); max-width: 18ch; margin-inline: auto; }
.final .final__title strong { color: var(--on-accent); }
.jv-btn--ink { background: var(--jv-ink); color: var(--accent); box-shadow: var(--shadow-cta); }
.jv-btn--ink:hover { box-shadow: var(--shadow-cta), 0 0 0 4px color-mix(in srgb, var(--jv-ink) 20%, transparent); }

/* ---------- Footer + FAB ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: var(--sp-7) calc(var(--sp-7) + 60px); font-size: var(--fs-small); color: var(--jv-smoke); }
.footer__inner { display: grid; gap: var(--sp-3); justify-items: center; text-align: center; }
.footer__inner p { margin: 0; }
.footer__logo { width: 72px; height: auto; }
.jv-fab { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.jv-fab:hover { box-shadow: var(--shadow-cta), var(--jv-volt-glow); }
.jv-fab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ==========================================================
   BREAKPOINTS DAS SEÇÕES
   ========================================================== */
@media (min-width: 768px) {
  .obj__grid, .proofs__grid { grid-template-columns: repeat(3, 1fr); }
  .pres { padding: var(--sp-8) var(--sp-7); }
  .pres__table { font-size: var(--fs-body); }
}
@media (min-width: 960px) {
  .frus { grid-template-columns: 1.15fr .85fr; gap: var(--sp-9); }
  .method { grid-template-columns: .85fr 1.15fr; gap: var(--sp-9); align-items: start; }
  .method__media { position: sticky; top: 10vh; max-width: none; }
  .consult__grid { grid-template-columns: 1.1fr .9fr; gap: var(--sp-9); }
  .about__grid { grid-template-columns: .9fr 1.1fr; gap: var(--sp-9); }
  .about__media { max-width: none; }
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: var(--sp-9); align-items: start; }
  .faq__side { position: sticky; top: var(--sp-8); }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  /* motion.css força opacity:1 em tudo do hero — manter a luz a 23% e o monograma a 45% */
  .js [data-hero] .hero-luz { opacity: var(--light-overlay-opacity) !important; }
  .js [data-hero] .hero-mono { opacity: .45 !important; }
  .hero-scroll { height: auto; }
  .hero-stage { position: relative; }
  .hero-hint { display: none; }
  .timeline::after { transform: none; }
  .about__word, .final__mega { transform: none; }
  .final__mega { left: 0; right: 0; top: 0; text-align: center; }
}
