/* Deus das Promos — v15
   Uma folha de estilo para o site todo. Cada página escolhe o tema na <body>:
   theme-home (Olimpo), theme-motos (asfalto) ou theme-tcg (cartas). */

@font-face {
    font-family: "Big Shoulders";
    src: url("/assets/fonts/big-shoulders.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Figtree";
    src: url("/assets/fonts/figtree.woff2") format("woff2");
    font-weight: 300 900;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --display: "Big Shoulders", "Arial Narrow", sans-serif;
    --body: "Figtree", system-ui, sans-serif;

    --whats: #25d366;
    --whats-hover: #2ee676;
    --whats-ink: #04210f;
    --tag: #ffc53d;
    --tag-ink: #2a1600;

    /* tema padrão: Olimpo */
    --bg: #140b26;
    --surface: #1d1236;
    --line: rgba(232, 220, 255, .12);
    --text: #f5efff;
    --muted: #b9aecb;
    --accent: #ffc53d;
    --glow: rgba(139, 77, 255, .32);

    --radius-lg: 28px;
    --radius-md: 16px;
    --gutter: clamp(16px, 4vw, 40px);
}

.theme-motos {
    --bg: #15110d;
    --surface: #211a13;
    --line: rgba(255, 220, 190, .12);
    --text: #f7f1ea;
    --muted: #bdb1a3;
    --accent: #ff7a1a;
    --glow: rgba(255, 106, 19, .30);
}

.theme-tcg {
    --bg: #160c2b;
    --surface: #23143f;
    --line: rgba(232, 220, 255, .12);
    --text: #f5efff;
    --muted: #bcb0d0;
    --accent: #ffc53d;
    --glow: rgba(139, 77, 255, .38);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font: 400 1.0625rem/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* Degradê de fundo (fica parado atrás do conteúdo, inclusive no celular) */
body { position: relative; isolation: isolate; background: var(--bg); }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--backdrop);
}
:root {
    --backdrop:
        radial-gradient(42rem 34rem at 6% 18%, rgba(155, 56, 255, .30), transparent 70%),
        radial-gradient(46rem 36rem at 96% 78%, rgba(36, 92, 255, .24), transparent 70%),
        radial-gradient(30rem 24rem at 70% 4%, rgba(255, 197, 61, .07), transparent 70%),
        linear-gradient(135deg, #1a0d33 0%, #0e0720 52%, #0a0c24 100%);
}
.theme-motos {
    --backdrop:
        radial-gradient(44rem 36rem at 4% 12%, rgba(255, 85, 0, .36), transparent 70%),
        radial-gradient(50rem 40rem at 98% 34%, rgba(255, 119, 0, .26), transparent 70%),
        radial-gradient(40rem 32rem at 40% 105%, rgba(160, 60, 0, .40), transparent 70%),
        linear-gradient(150deg, #22160c 0%, #140e09 55%, #0e0a07 100%);
}
.theme-tcg {
    --backdrop:
        radial-gradient(42rem 34rem at 4% 14%, rgba(155, 56, 255, .32), transparent 70%),
        radial-gradient(46rem 36rem at 98% 36%, rgba(255, 197, 61, .12), transparent 70%),
        radial-gradient(40rem 30rem at 45% 105%, rgba(60, 110, 255, .22), transparent 70%),
        linear-gradient(150deg, #1d0f3a 0%, #140a2a 55%, #0d0820 100%);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }

/* ---------- Faixa de ofertas (topo) ---------- */
.ticker-wrap {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 197, 61, .22);
    background: rgba(6, 4, 14, .72);
    backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.theme-motos .ticker-wrap { border-bottom-color: rgba(255, 122, 26, .28); background: rgba(10, 6, 3, .7); }
.ticker {
    display: flex;
    width: max-content;
    animation: ticker 48s linear infinite;
    will-change: transform;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker-group { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.ticker-item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 11px 26px;
    white-space: nowrap;
    color: #ddd4ea;
    font-size: .88rem;
    font-weight: 600;
}
.ticker-item::after { content: "ϟ"; margin-left: 26px; color: var(--tag); font-weight: 700; }
.ticker-was { color: #8f86a0; font-weight: 500; font-size: .82rem; }
.ticker-now { color: var(--tag); font: 800 1.12rem/1 var(--display); letter-spacing: .01em; }
.theme-motos .ticker-item { color: #eadfd2; }
.theme-motos .ticker-was { color: #9c8f80; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Topo ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 800 1.65rem/1 var(--display);
    letter-spacing: .005em;
    text-decoration: none;
}
.brand svg { width: 22px; height: 26px; color: var(--tag); }
.topbar-link { color: var(--muted); font-size: .95rem; text-decoration: none; }
.topbar-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Tipografia ---------- */
.display {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.005em;
    text-wrap: balance;
}
h1.display { font-size: clamp(3rem, 7.4vw, 6.4rem); }
.h1-line { display: block; }
h1.display:has(.h1-line) { font-size: clamp(2.9rem, 5.6vw, 5.4rem); }
h2.display { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.lede { max-width: 34em; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }

/* ---------- Botão do WhatsApp ---------- */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 26px 0 22px;
    border-radius: 999px;
    background: var(--whats);
    color: var(--whats-ink);
    font: 700 1.08rem/1 var(--body);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, .28);
    transition: background-color .18s, transform .18s;
}
.cta:hover { background: var(--whats-hover); transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.cta svg { flex: 0 0 26px; width: 26px; height: 26px; }
.cta:focus-visible { outline-color: #fff; border-radius: 999px; }

.proof { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.proof strong { color: var(--text); font-weight: 700; }

/* ---------- Etiqueta de preço "R$ 0" (o elemento-assinatura) ---------- */
.tag {
    position: absolute;
    z-index: 3;
    display: grid;
    justify-items: start;
    margin: 0;
    padding: 10px 16px 10px 30px;
    color: var(--tag-ink);
    background:
        radial-gradient(circle at 15px 50%, var(--bg) 0 5px, transparent 5.5px),
        var(--tag);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
    transform: rotate(-9deg);
    transform-origin: 0 50%;
    animation: tag-swing 1.6s cubic-bezier(.3, 1.6, .5, 1) .35s both;
}
.tag { gap: 3px; }
.tag small { font: 700 .78rem/1 var(--body); letter-spacing: .02em; }
.tag strong { font: 900 2.3rem/.9 var(--display); letter-spacing: -.01em; }

@keyframes tag-swing {
    0% { transform: rotate(-38deg); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: rotate(-9deg); opacity: 1; }
}

/* ---------- Página inicial: duas portas ---------- */
.home-intro { display: grid; gap: 14px; padding: clamp(16px, 4vw, 44px) 0 clamp(22px, 4vw, 36px); }
.home-intro h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.door {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--door-bg);
    color: var(--door-text);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
}
.door-motos {
    --door-bg: rgba(30, 20, 12, .82);
    --door-text: #f7f1ea;
    --door-muted: #c8b9a7;
    --door-glow: rgba(255, 106, 19, .42);
    --door-accent: #ff7a1a;
}
.door-tcg {
    --door-bg: rgba(38, 18, 72, .78);
    --door-text: #f5efff;
    --door-muted: #c4b6dc;
    --door-glow: rgba(150, 90, 255, .5);
    --door-accent: #ffc53d;
}
.door::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(70% 45% at 50% 30%, var(--door-glow), transparent 75%);
}
.door-art {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(300px, 30vw, 380px);
    padding-top: 26px;
}
.door-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.door-motos .door-art img { width: auto; max-width: 100%; height: 94%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.door .tag { top: 26px; right: 26px; }
.door-motos .tag { --bg: #1e140c; }
.door-tcg .tag { --bg: #2a1450; }
.door-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px clamp(22px, 3vw, 36px) clamp(24px, 3vw, 34px); }
.door-copy h2 { font-size: clamp(3.4rem, 6vw, 5.4rem); color: var(--door-text); }
.door-emoji { display: inline-block; margin-left: .18em; font-size: .62em; vertical-align: .12em; }
.door-copy > p { max-width: 30em; min-height: 3.1em; margin: 10px 0 22px; color: var(--door-muted); }
.door .proof { color: var(--door-muted); }
.door .proof strong { color: var(--door-text); }
.door-more {
    margin-top: 16px;
    color: var(--door-accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.door-more:hover { color: var(--door-text); }

.promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 34px;
    margin: clamp(26px, 4vw, 40px) 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .98rem;
}
.promises li { display: inline-flex; align-items: center; gap: 9px; }
.promises svg { width: 13px; height: 17px; color: var(--tag); flex: 0 0 auto; }

/* ---------- Páginas de nicho ---------- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(10px, 3vw, 40px) 0 clamp(40px, 6vw, 80px);
}
.hero-copy { display: grid; justify-items: start; gap: 22px; }
.hero-copy .proof { margin-top: -6px; }
.hero-copy .lede-after { margin-top: 6px; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.hero-art { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-art::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: -1;
    background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero-art img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.hero-art .tag { top: 4%; right: -2%; }
.hero-art .tag strong { font-size: 2.8rem; }

.section { padding: clamp(44px, 7vw, 88px) 0; border-top: 1px solid var(--line); }

.sample { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.sample-copy { display: grid; gap: 16px; justify-items: start; }
.sample-copy p { max-width: 32em; margin: 0; color: var(--muted); }

/* Balão no estilo do WhatsApp: mostra o que a pessoa recebe */
.chat {
    margin: 0;
    padding: 18px 16px 20px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.4px) 0 0 / 14px 14px,
        #0b141a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.chat figcaption { margin: 0 0 12px; color: #8696a0; font-size: .8rem; text-align: center; }
.bubble {
    position: relative;
    max-width: 340px;
    padding: 5px 5px 7px;
    border-radius: 0 12px 12px 12px;
    background: #202222;
    color: #e9edef;
    font-size: .95rem;
    line-height: 1.45;
}
.bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    border-top: 0 solid transparent;
    border-right: 8px solid #202222;
    border-bottom: 10px solid transparent;
}
.bubble-author { display: block; margin: 2px 6px 5px; color: #53bdeb; font-size: .85rem; font-weight: 700; }
.bubble-author-green { color: #25d366; }
.bubble-photo { width: 100%; height: auto; margin-bottom: 8px; border-radius: 8px; }
.bubble p { margin: 0; padding: 0 6px; overflow-wrap: anywhere; }
.bubble p.gap { margin-top: 1.05em; }
.bubble .was { color: #8696a0; text-decoration: line-through; }
.bubble .now { color: #e9edef; font-weight: 800; }
.bubble .link { color: #21c063; text-decoration: underline; }
.bubble time { display: block; margin-top: 2px; padding-right: 6px; color: #8696a0; font-size: .7rem; text-align: right; }

.steps h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
    content: counter(step);
    font: 800 4.2rem/.8 var(--display);
    color: var(--accent);
}
.steps strong { font-size: 1.15rem; }
.steps span { color: var(--muted); }

.closing { display: grid; justify-items: center; gap: 22px; text-align: center; }
.closing h2 { max-width: 14em; }
.closing .lede { margin-inline: auto; }

/* ---------- Rodapé ---------- */
.site-footer {
    margin-top: clamp(30px, 5vw, 60px);
    padding: 28px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.6;
}
.site-footer p { max-width: 70em; margin: 0 0 6px; }
.site-footer a { color: var(--text); }

/* ---------- Páginas de texto (privacidade, 404) ---------- */
.doc { max-width: 40em; padding: clamp(16px, 4vw, 40px) 0; }
.doc h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: 10px; }
.doc .updated { margin: 0 0 28px; color: var(--muted); font-size: .9rem; }
.doc h2 { margin: 34px 0 8px; font: 800 1.9rem/1 var(--display); }
.doc p, .doc li { color: #d8cfe6; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent); }
.doc .cta { margin-top: 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .doors { grid-template-columns: 1fr; }
    .door-art { height: clamp(260px, 62vw, 360px); }
    .hero { grid-template-columns: 1fr; }
    .hero-art { order: -1; width: min(72%, 360px); }
    .sample { grid-template-columns: 1fr; }
    .chat { max-width: 440px; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .topbar { min-height: 64px; }
    .brand { font-size: 1.4rem; }
    .home-intro { padding-top: 6px; }
    .display { line-height: 1; }
    .door-copy > p { min-height: 0; }
    .door-copy { padding: 18px 20px 24px; }
    .cta { width: 100%; }
    .door .tag { top: 18px; right: 18px; }
    .tag strong { font-size: 1.9rem; }
    .hero { gap: 18px; padding-top: 0; }
    .hero-art { width: min(64%, 260px); }
    .hero-art .tag { right: -14%; top: 0; }
    .hero-art .tag strong { font-size: 2.1rem; }
    .steps ol { grid-template-columns: 1fr; }
    .steps li { grid-template-columns: 54px 1fr; column-gap: 12px; }
    .steps li::before { grid-row: span 2; font-size: 3.4rem; }
    .ticker-item { padding: 10px 18px; font-size: .84rem; }
    .ticker-item::after { margin-left: 18px; }
    .promises { flex-direction: column; align-items: flex-start; padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker { animation: none; }
    .ticker-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .ticker-group[aria-hidden="true"] { display: none; }
    .tag { animation: none; }
    .cta { transition: none; }
    .cta:hover { transform: none; }
}
