/* ===================================================================
   FF ANÁLISES — página de vendas
   Mesmo sistema visual do app: grafite/preto, Space Grotesk, magenta #FF1BFF.
   =================================================================== */

@font-face { font-family: 'Space Grotesk'; src: url('/static/assets/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --bg: #0B0B0D;
    --panel: #060607;
    --panel-2: #121215;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #F6F6F8;
    --text-2: #A6A6B0;
    --text-3: #74747E;
    --accent: #FF1BFF;
    --accent-ink: #1A001A;
    --accent-soft: rgba(255, 27, 255, 0.12);
    --accent-line: rgba(255, 27, 255, 0.4);
    --accent-glow: rgba(255, 27, 255, 0.35);
    --cyan: #22D3EE;
    --green: #3DE89B;
    --yellow: #FFD233;
    --pink: #FF4D8F;
    --violet: #7B5CFF;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --r: 16px;
    --wrap: 1180px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-2); }

/* ---------- chuva binária (js/components/binary-rain.js) ---------- */
:where(.has-binary-rain) { position: relative; }
.has-binary-rain { isolation: isolate; overflow: hidden; }
.has-binary-rain > .binary-rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.5; }

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
    border: 1px solid var(--line-2); background: var(--panel-2); transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
    white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 34px -10px var(--accent-glow); }
.btn-primary:hover { background: #FF4BFF; border-color: #FF4BFF; box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- topo ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 11, 13, 0.78); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; text-transform: uppercase; }
.brand img { width: 44px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 520px) { .nav-cta .btn-ghost-nav { display: none; } .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 40px; position: relative; }
.hero::before {
    content: ''; position: absolute; inset: -200px 0 auto; height: 760px; z-index: -2; pointer-events: none;
    background: radial-gradient(50% 60% at 50% 0%, rgba(255, 27, 255, 0.22), transparent 70%);
}
.hero-rain { position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
    font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700;
    margin: 18px auto 22px; max-width: 980px; text-align: center;
}
.hero .eyebrow, .hero .lead, .hero .cta-row { text-align: center; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 760px; margin: 0 auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--text-3); text-align: center; }

.hero-shot { position: relative; margin: 64px auto 0; max-width: 1120px; }
.frame {
    border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #000;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 80px -30px var(--accent-glow);
}
.frame-bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: #101013; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A2A30; }
.frame-bar span { margin-left: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.phone {
    width: 230px; border-radius: 34px; padding: 9px; background: #050506; border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 50px -20px var(--accent-glow);
}
.phone img { border-radius: 26px; }
.hero-shot .phone { position: absolute; right: -28px; bottom: -48px; }
@media (max-width: 900px) { .hero-shot .phone { width: 150px; right: -6px; bottom: -36px; border-radius: 24px; padding: 6px; } .hero-shot .phone img { border-radius: 19px; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 96px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: var(--panel); padding: 24px 22px; }
.fact b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.fact span { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fact { padding: 18px 16px; } .fact b { font-size: 22px; } .fact span { font-size: 14px; } }

/* ---------- seções ---------- */
section { padding: 110px 0 0; scroll-margin-top: 60px; }
.sec-head { max-width: 780px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; margin-top: 12px; }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.sec-head p { color: var(--text-2); font-size: 18px; margin-top: 16px; }

/* passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.step-n { font-family: var(--mono); color: var(--accent); font-size: 28px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.step h3 { font-size: 22px; margin: 10px 0 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.step .shot { margin-top: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF1BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
    border: 1px solid var(--accent-line);
}

/* galeria (o app por dentro) */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 280px; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .tile img { height: auto; aspect-ratio: 16 / 10; } }
.tile figcaption { padding: 16px 18px 18px; display: grid; gap: 2px; }
.tile figcaption b { font-size: 18px; }
.tile figcaption span { color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

.slides-row { margin-top: 72px; }
.sec-head.small { margin-bottom: 22px; }
.slides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slides figure { margin: 0; }
.slides img { border-radius: 12px; border: 1px solid var(--line-2); }
.slides figcaption { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-top: 10px; letter-spacing: 0.04em; }
@media (max-width: 640px) { .slides { grid-template-columns: 1fr; } }

.mobile-row { display: flex; align-items: center; justify-content: center; gap: 56px; margin-top: 80px; }
.phones { display: flex; gap: 22px; justify-content: center; }
.phones .phone { width: min(240px, 42vw); }
.mobile-text h3 { font-size: clamp(26px, 3vw, 34px); }
.mobile-text p { color: var(--text-2); margin-top: 6px; font-size: 18px; }
@media (max-width: 800px) { .mobile-row { flex-direction: column; gap: 28px; text-align: center; } }

/* pontuação */
.score { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.score table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.score th, .score td { padding: 16px 10px; text-align: center; border-left: 1px solid var(--line); }
.score th:first-child, .score td:first-child { text-align: left; padding-left: 22px; border-left: 0; color: var(--text-2); font-weight: 500; }
.score thead th { font-family: var(--mono); font-size: 13px; color: var(--text-2); font-weight: 500; border-bottom: 1px solid var(--line); }
.score td { font-size: 22px; font-weight: 700; }
.score td.top { color: var(--accent); }
.score-pills { display: none; }
@media (max-width: 640px) {
    .score { display: none; }
    .score-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .score-pills div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
    .score-pills div:first-child { border-color: var(--accent-line); }
    .score-pills span { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
    .score-pills b { font-size: 22px; }
    .score-pills div:first-child b { color: var(--accent); }
}
.score-note { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; color: var(--text-2); font-size: 16px; }
.score-note b { color: var(--text); }
.score-note.center { justify-content: center; font-size: 18px; }

/* selos da conta */
#conta { padding-top: 90px; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badge { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 17px; }
.badge svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
@media (max-width: 1000px) { .badges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .badge { padding: 16px; font-size: 15px; gap: 10px; } }

/* oferta */
.offer {
    display: grid; grid-template-columns: 6fr 5fr; gap: 0; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--accent-line); background: #000; box-shadow: 0 0 90px -30px var(--accent-glow);
}
.offer-main { padding: 44px; }
.offer-main h2 { font-size: clamp(28px, 3.4vw, 40px); }
.offer-side { padding: 44px; background: linear-gradient(160deg, rgba(255, 27, 255, 0.16), rgba(123, 92, 255, 0.08)); border-left: 1px solid var(--accent-line); display: flex; flex-direction: column; justify-content: center; }
.price { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.price-note { color: var(--text-2); margin: 12px 0 26px; font-size: 15px; }
.offer-side .btn { width: 100%; }
.offer-side .fine { font-size: 13px; color: var(--text-3); margin-top: 14px; text-align: center; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } .offer-side { border-left: 0; border-top: 1px solid var(--accent-line); } .offer-main, .offer-side { padding: 30px 24px; } }

/* dúvidas */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; max-width: 760px; }

/* final */
.final { margin-top: 120px; padding: 90px 0; text-align: center; border-top: 1px solid var(--line); position: relative; }
.final h2 { max-width: 820px; margin: 12px auto 0; }
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* páginas de documentos (privacidade, termos) */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 12px; }
.legal-date { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.legal .lead { margin: 24px 0 0; }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 20px; margin: 36px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); font-size: 15px; color: var(--text-2); }
.legal-toc a:hover { color: var(--accent); }
.legal section { padding-top: 40px; scroll-margin-top: 80px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 14px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 8px; }
.legal b { color: var(--text); font-weight: 600; }
.legal a:not(.btn), .foot a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal a:not(.btn):hover { color: var(--accent); text-decoration-color: var(--accent); }
.legal .mono { font-size: 0.9em; color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 520px) { .legal { padding-top: 40px; } .legal-toc { padding: 16px; } }

/* barra fixa no celular */
.mbar { display: none; }
@media (max-width: 700px) {
    .mbar {
        display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 10px; padding: 10px;
        border-radius: 16px; background: rgba(8, 8, 10, 0.92); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
        transform: translateY(140%); transition: transform .3s;
    }
    .mbar.show { transform: none; }
    .mbar .btn { flex: 1; height: 46px; }
    body { padding-bottom: 20px; }
}

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
