/* Páginas institucionais dos funis (/afiliados, /bio): CSS próprio, sem Tailwind nem base.css da oferta.
   Marca: fundo #080808, vermelho #e11d2a, Geist auto-hospedada. Mobile-first; nada rola na horizontal em 320 px. */

@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-mono-latin.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-raised: #0e0e10;
  --fg: #f5f2f2;
  --fg-2: rgba(245, 242, 242, .74);
  --fg-3: rgba(245, 242, 242, .5);
  --accent: #e11d2a;
  --accent-hover: #ff3b47;
  --accent-soft: rgba(225, 29, 42, .14);
  --accent-ring: rgba(225, 29, 42, .55);
  --card: rgba(255, 255, 255, .04);
  --card-strong: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --ok: #3ddc84;
  --radius: 18px;
  --radius-sm: 12px;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(18px, 5vw, 36px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); overflow-x: clip; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

/* Entrada suave: só opacidade e escala. Translate em elemento posicionado quebra o layout (lição do modal da oferta). */
@keyframes pg-in { from { opacity: 0; scale: .985; } to { opacity: 1; scale: 1; } }
.pg-in { animation: pg-in .5s ease-out both; }
.pg-in--2 { animation-delay: .08s; }
.pg-in--3 { animation-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pg-in { animation: none; }
  .pg-btn, .pg-card, .bio-link, .pg-copy button, .pg-faq summary::after { transition: none; }
}

.pg-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pg-narrow { max-width: 760px; }

/* ---------- Topo ---------- */
.pg-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(8, 8, 8, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pg-nav .pg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.pg-logo { display: inline-flex; }
.pg-logo img { height: 28px; width: auto; }
.pg-langs { display: flex; gap: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pg-langs a { text-decoration: none; color: var(--fg-3); padding: 6px 9px; border-radius: 999px; border: 1px solid transparent; }
.pg-langs a:hover { color: var(--fg); }
.pg-langs a[aria-current="page"] { color: var(--fg); border-color: var(--line-strong); background: var(--card); }

/* ---------- Hero ---------- */
.pg-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(44px, 9vw, 104px) clamp(36px, 6vw, 72px); }
.pg-hero::before {
  content: ""; position: absolute; left: -20%; right: -20%; top: -40%; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 70% 20%, rgba(225, 29, 42, .22), transparent 70%), radial-gradient(45% 40% at 15% 80%, rgba(225, 29, 42, .1), transparent 70%);
}
.pg-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .pg-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.pg-hero__grid > * { min-width: 0; }
.pg-hero__stats { margin-top: clamp(28px, 5vw, 48px); }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2);
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.pg-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
@media (max-width: 379px) { .pg-eyebrow { font-size: 11px; letter-spacing: .05em; max-width: 100%; } }
.pg-h1 { font-size: clamp(2.1rem, 5.2vw + .6rem, 3.9rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 700; margin: 22px 0 18px; text-wrap: balance; }
.pg-h1 em { font-style: normal; color: var(--accent-hover); }
.pg-lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.25rem); color: var(--fg-2); max-width: var(--measure); margin: 0 0 28px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-trust { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--fg-3); font-size: 14px; }
.pg-trust li { display: inline-flex; align-items: center; gap: 8px; }
.pg-trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Botões ---------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.pg-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(225, 29, 42, .28); }
.pg-btn--primary:hover { background: var(--accent-hover); box-shadow: 0 12px 34px rgba(225, 29, 42, .36); }
.pg-btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.pg-btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: var(--card); }
.pg-btn.is-soon { opacity: .6; cursor: default; box-shadow: none; }

/* ---------- Recibo do hero ---------- */
.pg-receipt {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03)); border: 1px solid var(--line-strong); border-radius: 22px; padding: 22px;
  font-family: var(--mono); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pg-receipt__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.pg-receipt__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--fg-2); }
.pg-receipt__row span:last-child { color: var(--fg); white-space: nowrap; }
.pg-receipt__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.pg-receipt__total small { display: block; font-size: 12px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
.pg-receipt__total strong { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--accent-hover); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.pg-receipt__foot { margin: 14px 0 0; font-size: 12px; color: var(--fg-3); line-height: 1.5; }

/* ---------- Faixa de números ---------- */
.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.pg-stats div { padding: 18px 10px; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.pg-stats div:first-child { border-left: 0; }
.pg-stats strong { display: block; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -.02em; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-stats span { display: block; font-size: 13px; color: var(--fg-3); margin-top: 4px; }

/* ---------- Seções ---------- */
.pg-section { padding-block: clamp(44px, 7vw, 88px); border-top: 1px solid var(--line); }
.pg-section--tint { background: var(--bg-raised); }
.pg-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hover); margin: 0 0 12px; }
.pg-h2 { font-size: clamp(1.6rem, 2.4vw + .6rem, 2.4rem); line-height: 1.12; letter-spacing: -.022em; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.pg-sub { color: var(--fg-2); max-width: var(--measure); margin: 0 0 32px; font-size: 1.05rem; }
.pg-section .pg-h2:last-of-type { margin-bottom: 28px; }
.pg-section .pg-h2 + .pg-sub { margin-top: -10px; }

.pg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pg-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; transition: border-color .18s ease, background .18s ease; }
.pg-card:hover { border-color: var(--line-strong); background: var(--card-strong); }
.pg-card h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -.01em; }
.pg-card p { margin: 0; color: var(--fg-2); font-size: .97rem; }

/* ---------- Passos ---------- */
.pg-steps { counter-reset: passo; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: 0; margin: 0; list-style: none; }
.pg-steps li { counter-increment: passo; padding: 24px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.pg-steps li::before { content: counter(passo, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent-hover); letter-spacing: .08em; display: block; margin-bottom: 14px; }
.pg-steps h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pg-steps p { margin: 0; color: var(--fg-2); font-size: .97rem; }

/* ---------- Cartões de conta ---------- */
.pg-math { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pg-math div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; min-width: 0; }
.pg-math div:nth-child(2) { border-color: var(--accent-ring); background: var(--accent-soft); }
.pg-math small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.pg-math strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-note { margin: 16px 0 0; color: var(--fg-3); font-size: 13px; max-width: var(--measure); }

/* ---------- Kit ---------- */
.pg-copy { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 16px 14px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.pg-copy p { margin: 0; font-size: .95rem; color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-copy__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-copy__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.pg-copy button { background: var(--card-strong); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.pg-copy button:hover { border-color: rgba(255, 255, 255, .3); }
.pg-copy button.is-done { background: rgba(61, 220, 132, .16); border-color: rgba(61, 220, 132, .5); color: var(--ok); }
.pg-kit-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Regras ---------- */
.pg-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 760px; }
.pg-rules li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--fg-2); font-size: .97rem; }
.pg-rules li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent-ring); background: var(--accent-soft); margin-top: 3px; }

/* ---------- Em breve ---------- */
.pg-soon { display: grid; gap: 20px; align-items: center; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--accent-ring); border-radius: 22px; background: linear-gradient(135deg, rgba(225, 29, 42, .16), rgba(225, 29, 42, .04)); }
@media (min-width: 760px) { .pg-soon { grid-template-columns: minmax(0, 1fr) auto; } }
.pg-soon > * { min-width: 0; }
.pg-soon h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.015em; }
.pg-soon p { margin: 0; color: var(--fg-2); max-width: 56ch; }
.pg-soon .pg-kicker { margin-bottom: 8px; }

/* ---------- Perguntas ---------- */
.pg-faq { max-width: 760px; display: grid; gap: 10px; }
.pg-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.pg-faq details[open] { border-color: var(--line-strong); }
.pg-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-hover); font-size: 1.25rem; line-height: 1; flex: none; transition: rotate .18s ease; }
.pg-faq details[open] summary::after { rotate: 45deg; }
.pg-faq p { margin: 0 0 16px; color: var(--fg-2); }

/* ---------- Chamada final ---------- */
.pg-final { text-align: center; }
.pg-final .pg-actions { justify-content: center; }

/* ---------- Rodapé ---------- */
.pg-footer { border-top: 1px solid var(--line); padding-block: 28px 44px; color: var(--fg-3); font-size: 14px; }
.pg-footer .pg-wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.pg-footer nav:not(.pg-langs) { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pg-footer a { color: var(--fg-2); text-decoration: none; }
.pg-footer a:hover { color: var(--fg); }
.pg-footer p { margin: 0; flex-basis: 100%; }

/* ---------- Link na bio ---------- */
.bio { min-height: 100dvh; display: flex; flex-direction: column; padding-block: 36px 40px; position: relative; isolation: isolate; overflow: clip; }
.bio::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60vh; z-index: -1; pointer-events: none; background: radial-gradient(70% 50% at 50% 0%, rgba(225, 29, 42, .22), transparent 70%); }
.bio .pg-wrap { max-width: 520px; display: grid; gap: 22px; flex: 1; align-content: start; }
.bio-head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.bio-head img { height: 34px; width: auto; }
.bio-head h1 { margin: 0; font-size: clamp(1.25rem, 4.5vw, 1.5rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
.bio-head p { margin: 0; color: var(--fg-3); font-size: 14px; }
.bio-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bio-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .18s ease, background .18s ease, scale .18s ease;
}
.bio-link:hover { border-color: var(--line-strong); background: var(--card-strong); }
.bio-link:active { scale: .99; }
.bio-link > span { min-width: 0; }
.bio-link strong { display: block; font-weight: 600; font-size: 1.02rem; }
.bio-link small { display: block; color: var(--fg-3); font-size: 13px; margin-top: 2px; }
.bio-link svg { width: 20px; height: 20px; color: var(--fg-3); flex: none; }
.bio-link--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(225, 29, 42, .28); }
.bio-link--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.bio-link--primary small, .bio-link--primary svg { color: rgba(255, 255, 255, .82); }
.bio-foot { text-align: center; color: var(--fg-3); font-size: 12px; margin-top: auto; padding-top: 24px; display: grid; gap: 10px; justify-items: center; }
.bio-foot a { color: var(--fg-3); }
.bio-foot .pg-langs { justify-content: center; }

/* ---------- Landing limpa /modelo (anúncios TikTok e Google) ---------- */
.pg-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pg-shots figure { margin: 0; min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--card); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.pg-shots figure:nth-child(2) { translate: 0 -18px; }
.pg-shots img { width: 100%; aspect-ratio: 720 / 964; object-fit: cover; }
.pg-shots figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); padding: 8px 10px; }
@media (max-width: 379px) { .pg-shots { gap: 6px; } .pg-shots figure:nth-child(2) { translate: none; } .pg-shots figcaption { font-size: 10px; letter-spacing: .03em; } }
.pg-shot-app { margin: 0; min-width: 0; max-width: 420px; justify-self: center; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--card); }
.pg-shot-app img { width: 100%; }
.pg-shot-app figcaption { font-size: 13px; color: var(--fg-3); padding: 10px 14px; }
