/* ==========================================================
   JV PERSONAL TRAINER — componentes base (requer tokens.css)
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: var(--fw-light); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.jv-container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.jv-section   { padding-block: var(--section-y); position: relative; }
.jv-section--light { background: var(--surface-light); color: var(--text-on-light); }

/* ---------- Tipografia ---------- */
/* Padrão do Figma: frase em Light + fechamento em Bold verde */
.jv-headline { font-size: var(--fs-h1); line-height: var(--lh-head); letter-spacing: var(--ls-head); font-weight: var(--fw-light); text-transform: uppercase; margin: 0; }
.jv-headline strong, .jv-hl { font-weight: var(--fw-bold); color: var(--accent); }
.jv-section--light .jv-headline strong { color: var(--text-on-light); background: linear-gradient(transparent 62%, var(--accent) 62%); }
.jv-h2   { font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: var(--fw-light); text-transform: uppercase; margin: 0; }
.jv-lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 62ch; }
.jv-proof-line { font-weight: var(--fw-bold); color: var(--accent); text-transform: uppercase; letter-spacing: .02em; } /* "Treino estruturado. Acompanhamento próximo..." */
.jv-tag { font-size: var(--fs-small); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--jv-smoke); font-weight: var(--fw-regular); }

/* ---------- Botões ---------- */
.jv-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-4) var(--sp-7); border: 0; border-radius: var(--radius-cta); font: var(--fw-bold) 1rem/1.15 var(--font); text-transform: uppercase; text-align: center; cursor: pointer; text-decoration: none; transition: transform var(--dur-base) var(--ease-snap), box-shadow var(--dur-base) var(--ease-out), background var(--dur-fast); }
.jv-btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.jv-btn--primary:hover { box-shadow: var(--shadow-cta), var(--jv-volt-glow); }
.jv-btn--primary:active { transform: scale(.97); }
.jv-btn--glass { background: var(--glass-bg); color: var(--text); border: var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.jv-btn--block { width: 100%; }
@media (max-width: 640px) { .jv-btn { width: 100%; padding-inline: var(--sp-5); } }

/* ---------- Card chanfrado (assinatura do "J") ---------- */
.jv-card { background: var(--surface); padding: var(--sp-6); clip-path: var(--clip-chamfer); position: relative; }
.jv-card--light { background: var(--jv-white); color: var(--text-on-light); }
.jv-card--accent { background: var(--accent); color: var(--on-accent); }
.jv-card::before { content: ''; position: absolute; left: 0; bottom: 0; width: var(--chamfer); height: var(--chamfer); background: linear-gradient(45deg, var(--accent) 50%, transparent 50%); opacity: .9; } /* “quina” verde no corte */

/* ---------- Chip / selo ---------- */
.jv-chip { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 6px 14px; border-radius: var(--radius-pill); background: var(--jv-volt-dim); color: var(--accent); font-size: var(--fs-small); font-weight: var(--fw-medium); }

/* ---------- Glass panel (métricas sobre foto, ref. "Forge your best self") ---------- */
.jv-glass { background: var(--glass-bg); border: var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-radius: var(--radius-md); padding: var(--sp-5); }
.jv-stat__num { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: 1; color: var(--text); }
.jv-stat__label { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Antes/Depois ---------- */
.jv-compare { position: relative; overflow: hidden; clip-path: var(--clip-chamfer); aspect-ratio: 4/5; --pos: 50%; }
.jv-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jv-compare .after { clip-path: inset(0 0 0 var(--pos)); }
.jv-compare::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); box-shadow: var(--jv-volt-glow); }
.jv-compare input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; }

/* ---------- Régua (ref. LP rosa: "chega de recomeçar") ---------- */
.jv-ruler { height: 28px; position: relative; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 1px, transparent 1px 12px); }
.jv-ruler__fill { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 12px); }

/* ---------- Check list ---------- */
.jv-checks { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.jv-checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--sp-3); }
.jv-checks li::before { content: ''; width: 22px; height: 22px; margin-top: 2px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 100%,30% 100%,0 70%); }

/* ---------- Plano / preço ---------- */
.jv-plan { background: var(--surface); border: 1px solid var(--border); padding: var(--sp-7) var(--sp-6); clip-path: var(--clip-chamfer-tr); }
.jv-plan--featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.jv-plan__price { font-size: var(--fs-display); font-weight: var(--fw-bold); line-height: 1; }

/* ---------- FAQ ---------- */
.jv-faq details { border-bottom: 1px solid var(--border); padding-block: var(--sp-5); }
.jv-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: var(--fw-medium); }
.jv-faq summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.jv-faq details[open] summary::after { transform: rotate(45deg); }

/* ---------- Header ---------- */
.jv-header { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky); padding-block: var(--sp-4); transition: background var(--dur-base), backdrop-filter var(--dur-base); }
.jv-header.is-scrolled { background: rgba(34,34,34,.72); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--border); }

/* ---------- Divisor curvo (Figma: Vector 1 separando hero) ---------- */
.jv-curve { display: block; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--bg); margin-top: -1px; }

/* ---------- WhatsApp flutuante ---------- */
.jv-fab { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-sticky); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
