/* Landing do Cogninvest (cogninvest.com.br).
 *
 * HTML estático, sem framework: carrega instantâneo e o Google lê tudo sem
 * executar JS. Os tokens repetem os `--ds-*` do app (frontend/src/styles.css)
 * para a pessoa reconhecer o mesmo produto ao clicar em "Criar conta".
 * Laranja (--accent) só na ação principal: criar a conta. */

/* Inter, a mesma fonte do app, servida pelo próprio site (sem Google).
   Variável: um arquivo por alfabeto. Declarada até 700, como no app: o 800 e o
   900 do CSS saem como 700. */
@font-face {
    font-family: 'Inter App';
    font-style: normal;
    font-display: swap;
    font-weight: 100 700;
    src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: 'Inter App';
    font-style: normal;
    font-display: swap;
    font-weight: 100 700;
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    --bg: #0B1220;
    --surface: #121A2B;
    --elevated: #17213A;
    --border: #232E45;
    --border-strong: #334163;
    --text: #F1F5F9;
    --muted: #8C99B4;
    --faint: #5C6A87;
    --brand: #14B8A6;
    --brand-soft: rgba(20, 184, 166, .14);
    --brand-line: rgba(20, 184, 166, .35);
    --accent: #F97316;
    --accent-ink: #1A0A00;
    --success: #34D399;
    --danger: #F87171;
    --raio: 20px;
    --largura: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter App', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

p { margin: 0; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

.pular {
    position: absolute; left: 12px; top: -60px; z-index: 10;
    padding: 8px 14px; border-radius: 10px; background: var(--brand); color: var(--accent-ink);
}
.pular:focus { top: 12px; }

/* ── Botões ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 14px;
    font-weight: 700; font-size: 15px; border: 1px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--principal { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(249, 115, 22, .7); }
.btn--principal:hover { background: #FB8A3C; }

.btn--secundario { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--secundario:hover { border-color: var(--brand-line); background: var(--surface); }

.btn--pequeno { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* ── Topo ───────────────────────────────────────────────────────────────── */

.topo {
    position: sticky; top: 0; z-index: 5;
    background: rgba(11, 18, 32, .82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topo .container { display: flex; align-items: center; gap: 16px; height: 64px; }

.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; letter-spacing: -.03em; }
.marca:hover { text-decoration: none; }
.marca img { width: 34px; height: 34px; border-radius: 10px; }
.marca__nome b { font-weight: 900; color: var(--text); }
.marca__nome span {
    font-weight: 600;
    background: linear-gradient(90deg, #3B82F6, #2DD4BF 60%, #34D399);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.topo nav { display: none; gap: 24px; margin-left: 24px; }
.topo nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.topo nav a:hover { color: var(--text); text-decoration: none; }

.topo__acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topo__entrar { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 10px; }
.topo__entrar:hover { color: var(--text); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
    content: ''; position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none;
    background:
        radial-gradient(40% 50% at 70% 30%, rgba(20, 184, 166, .18), transparent 70%),
        radial-gradient(35% 45% at 20% 10%, rgba(59, 130, 246, .14), transparent 70%);
}
.hero .container { position: relative; display: grid; gap: 40px; }

.selo {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.selo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero h1 { font-size: clamp(34px, 8vw, 58px); font-weight: 900; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 34ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__nota { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ── Celular (moldura dos prints) ───────────────────────────────────────── */

.celular {
    position: relative; width: min(300px, 78vw); margin: 0 auto;
    padding: 10px; border-radius: 42px;
    background: linear-gradient(160deg, #26324d, #0d1424);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--border-strong), 0 0 60px -20px rgba(20, 184, 166, .35);
}
.celular img { border-radius: 32px; background: var(--bg); aspect-ratio: 640 / 1173; width: 100%; }

.hero__visual { position: relative; }
/* O segundo celular espia pela direita: à esquerda, ele cobria o fim do título. */
.hero__visual .celular--atras {
    display: none; position: absolute; top: 56px; right: -24px; width: 240px;
    transform: rotate(6deg); opacity: .5; filter: saturate(.8);
}

/* ── Seções ─────────────────────────────────────────────────────────────── */

.secao { padding: 72px 0; border-top: 1px solid var(--border); }
.secao__cabeca { max-width: 640px; margin-bottom: 40px; }
.secao__sobre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.secao h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.secao__cabeca p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.secao__cabeca .secao__sobre { color: var(--brand); font-size: 13px; margin-top: 0; }

/* Um app no lugar de vários */
.troca { padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.troca li {
    list-style: none; display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
}
.troca__antes { color: var(--faint); font-size: 13px; text-decoration: line-through; }
.troca__agora { font-weight: 600; }
.troca svg { flex: none; margin-top: 3px; color: var(--brand); }

/* Módulos: texto + celular, alternando lado no desktop */
.modulo { display: grid; gap: 36px; align-items: center; }
.modulo + .modulo { margin-top: 88px; }
.modulo h3 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin-bottom: 14px; }
.modulo__texto > p { color: var(--muted); font-size: 17px; }
.modulo__texto > .secao__sobre { color: var(--brand); font-size: 13px; }
.modulo__rotulo { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }

.lista-check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 12px; }
.lista-check li::before {
    content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314B8A6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.lista-check b { font-weight: 600; }
.lista-check span { color: var(--muted); }

/* Telegram: a conversa desenhada em HTML (texto real, legível pelo Google) */
.chat {
    max-width: 380px; margin: 0 auto; padding: 18px; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--border);
    display: grid; gap: 10px; font-size: 15px;
}
.chat__topo { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.chat__topo img { width: 36px; height: 36px; border-radius: 50%; }
.chat__topo b { display: block; font-size: 15px; }
.chat__topo small { color: var(--muted); font-size: 12px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.45; }
.msg--eu { justify-self: end; background: #1F4F59; border-bottom-right-radius: 5px; }
.msg--bot { justify-self: start; background: var(--elevated); border-bottom-left-radius: 5px; }
.msg__botoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__botoes span { padding: 5px 11px; border-radius: 10px; font-size: 13px; background: rgba(255, 255, 255, .07); border: 1px solid var(--border-strong); }
.msg__botoes span.on { border-color: var(--brand-line); color: var(--brand); }

/* Segurança e grade de cartões */
.cartoes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cartao { padding: 22px; border-radius: var(--raio); background: var(--surface); border: 1px solid var(--border); }
.cartao h3 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -.01em; }
.cartao p { color: var(--muted); font-size: 15px; }
.icone {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.nota-honesta { margin-top: 20px; color: var(--faint); font-size: 14px; max-width: 760px; }

/* Glossário: o "i" do app mostrado de verdade */
.dica-demo {
    padding: 22px; border-radius: var(--raio); background: var(--elevated);
    border: 1px solid var(--brand-line); max-width: 460px;
}
.dica-demo__termo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dica-demo__termo i {
    font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; border: 1.5px solid var(--muted); color: var(--muted);
}
.dica-demo p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.dica-demo p strong { color: var(--text); font-weight: 600; }

/* Perguntas frequentes */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.faq summary {
    cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* Chamada final */
.final {
    text-align: center; padding: 56px 24px; border-radius: 28px;
    background: radial-gradient(60% 80% at 50% 0%, rgba(20, 184, 166, .2), transparent 70%), var(--elevated);
    border: 1px solid var(--brand-line);
}
.final h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 900; }
.final p { color: var(--muted); margin: 14px auto 28px; max-width: 46ch; }
.final .hero__nota { margin-top: 16px; }

/* Rodapé */
.rodape { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.rodape .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.rodape a { color: var(--muted); }

/* ── Preços (precos.html) ───────────────────────────────────────────────── */

.periodo {
    display: inline-flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.periodo button {
    font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
    padding: 9px 18px; border-radius: 10px; border: 0; background: transparent;
}
.periodo button[aria-pressed='true'] { background: var(--elevated); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.periodo small { color: var(--success); font-weight: 700; margin-left: 6px; }

.planos { display: grid; gap: 16px; margin-top: 32px; }
.plano {
    position: relative; display: flex; flex-direction: column; padding: 28px 24px;
    border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
}
.plano--destaque { background: var(--elevated); border-color: var(--brand-line); box-shadow: 0 30px 60px -30px rgba(20, 184, 166, .35); }
.plano__fita {
    position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; background: var(--brand); color: #06201C;
}
.plano h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.plano__para { color: var(--muted); font-size: 14px; margin-top: 4px; }
.plano__preco { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plano__preco b { font-size: 40px; font-weight: 900; letter-spacing: -.03em; }
.plano__preco span { color: var(--muted); font-size: 15px; }
.plano__equivale { color: var(--muted); font-size: 14px; min-height: 22px; }
.plano__equivale strong { color: var(--success); font-weight: 600; }
.plano .lista-check { margin: 22px 0 28px; flex: 1; align-content: start; font-size: 15px; }
.plano .btn { width: 100%; }

.fundador {
    display: grid; gap: 16px; align-items: center; margin-top: 28px; padding: 24px; border-radius: 24px;
    background: linear-gradient(120deg, rgba(249, 115, 22, .12), rgba(20, 184, 166, .1));
    border: 1px solid rgba(249, 115, 22, .35);
}
.fundador h2 { font-size: 20px; font-weight: 800; }
.fundador p { color: var(--muted); margin-top: 6px; }
.fundador .fundador__preco { color: var(--text); margin: 0; }
.fundador__preco { font-size: 30px; font-weight: 900; white-space: nowrap; }
.fundador__preco s { color: var(--faint); font-size: 17px; font-weight: 600; margin-right: 6px; }

.sempre { margin-top: 28px; }

/* ── Guias (landing/guias/) ─────────────────────────────────────────────── */
/* Texto longo para ler: coluna estreita, letra maior e espaço entre blocos. */

.artigo { max-width: 720px; padding: 40px 0 72px; font-size: 17px; }
.artigo__trilha { font-size: 14px; color: var(--faint); }
.artigo__trilha a { color: var(--muted); }
.artigo h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 900; margin: 14px 0 16px; }
.artigo__resumo { color: var(--muted); font-size: 19px; }
.artigo__data { color: var(--faint); font-size: 14px; margin-top: 14px; }
.artigo h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin: 48px 0 14px; }
.artigo h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.artigo p + p, .artigo p + ul, .artigo p + ol, .artigo ul + p, .artigo ol + p { margin-top: 14px; }
.artigo ul, .artigo ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.artigo li::marker { color: var(--brand); }
.artigo strong { font-weight: 600; }

.exemplo { margin: 22px 0; padding: 20px 22px; border-radius: var(--raio); background: var(--surface); border: 1px solid var(--border); }
.exemplo__titulo { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.exemplo p { color: var(--muted); }
.exemplo p strong { color: var(--text); }

.tabela { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.tabela th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tabela td:not(:first-child), .tabela th:not(:first-child) { text-align: right; }
.tabela tfoot td { font-weight: 600; border-bottom: 0; }
.tabela-rolagem { overflow-x: auto; }

@media (max-width: 480px) {
    .tabela { font-size: 14px; }
    .tabela th, .tabela td { padding: 8px 6px; }
}

.artigo .final { margin-top: 56px; }
.artigo .final h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); }

.guias { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.guias a { display: block; color: var(--text); }
.guias a:hover { text-decoration: none; border-color: var(--brand-line); }
.guias .cartao h3 { margin-top: 0; }
.guias__ler { display: inline-block; margin-top: 12px; color: var(--brand); font-size: 14px; font-weight: 600; }

/* ── Desktop ────────────────────────────────────────────────────────────── */

@media (min-width: 720px) {
    .planos { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .fundador { grid-template-columns: 1fr auto auto; }
}

@media (min-width: 1024px) {
    .container { padding: 0 32px; }
    .topo nav { display: flex; }
    .hero { padding: 80px 0 96px; }
    .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
    .hero__visual .celular--atras { display: block; }
    .secao { padding: 104px 0; }
    .modulo { grid-template-columns: 1fr 1fr; gap: 72px; }
    .modulo--inverso .modulo__visual { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .faq summary::after { transition: none; }
    .btn:hover { transform: none; }
}
