/* =====================================================================
   PREVI — landing page

   Ideia condutora: no PREVI, o que já aconteceu é fato e o que vem é
   previsão. A página inteira fala essa língua:
       traço sólido  = fato, já registrado
       traço pontilhado = previsão, ainda por vir
   O fundo de grade vem do mundo do assunto (papel de planilha, calendário
   de parede, extrato). Os valores usam fonte monoespaçada, como extrato
   de banco — dinheiro com cara de instrumento, não de anúncio.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
    /* superfícies */
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f1f1f8;
    --line: #e5e5ef;
    --line-strong: #d0d0e0;

    /* texto */
    --ink: #12122a;
    --ink-2: #4c4c66;
    --ink-3: #8a8aa4;

    /* marca */
    --brand: #4f46e5;
    --brand-hi: #6d68f0;
    --brand-soft: #eef0ff;
    --brand-line: #c7c4f7;
    --on-brand: #ffffff;

    /* dados */
    --up: #12925a;
    --up-soft: #e7f7ee;
    --down: #d92d20;

    /* profundidade — sombras em camadas, não uma só */
    --sh-1: 0 1px 2px rgba(18, 18, 42, .05);
    --sh-2: 0 1px 2px rgba(18, 18, 42, .04), 0 8px 20px rgba(18, 18, 42, .07);
    --sh-3: 0 2px 4px rgba(18, 18, 42, .04), 0 14px 30px rgba(18, 18, 42, .09), 0 36px 70px rgba(18, 18, 42, .09);
    --sh-brand: 0 8px 24px rgba(79, 70, 229, .30);

    --grid-line: rgba(18, 18, 42, .05);

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --ring: 0 0 0 3px rgba(79, 70, 229, .35);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a12;
        --surface: #14141f;
        --surface-2: #1b1b29;
        --line: #262636;
        --line-strong: #35354c;

        --ink: #f3f3f8;
        --ink-2: #aeaec6;
        --ink-3: #6e6e8a;

        --brand: #6d68f0;
        --brand-hi: #8f8bff;
        --brand-soft: #1b1938;
        --brand-line: #3a3670;

        --up: #3bc687;
        --up-soft: #102b21;
        --down: #f37066;

        --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
        --sh-2: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .45);
        --sh-3: 0 2px 6px rgba(0, 0, 0, .4), 0 16px 34px rgba(0, 0, 0, .5), 0 40px 80px rgba(0, 0, 0, .45);
        --sh-brand: 0 10px 30px rgba(109, 104, 240, .35);

        --grid-line: rgba(255, 255, 255, .045);

        --ring: 0 0 0 3px rgba(143, 139, 255, .4);
    }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16.5px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}

h1, h2, h3 {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin: 0;
    font-variation-settings: 'opsz' 48;
}

p { margin: 0; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.wrap-narrow { max-width: 780px; }

.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }

/* valores em dinheiro: monoespaçado e tabular, como extrato */
.num {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* rótulo de seção — maiúsculas espaçadas, como cabeçalho de planilha */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .18s ease,
                background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--brand);
    border-color: transparent;
    color: var(--on-brand);
    box-shadow: var(--sh-brand);
}
.btn-primary:hover { background: var(--brand-hi); box-shadow: 0 12px 32px rgba(79, 70, 229, .40); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }

.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: var(--r-md); }

/* seta que anda no hover — micro-interação, uma só */
.btn .arw { transition: transform .18s cubic-bezier(.2, .8, .3, 1); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--brand), var(--brand-hi));
    color: #fff;
    box-shadow: var(--sh-brand);
    flex: 0 0 auto;
}
.brand-mark svg { display: block; }
.brand-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---------- cabeçalho ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.header-nav { display: flex; gap: 24px; margin-left: 10px; flex: 1; }
.header-nav a {
    position: relative;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1.5px;
    background: var(--brand);
    transition: right .25s cubic-bezier(.2, .8, .3, 1);
}
.header-nav a:hover { color: var(--ink); text-decoration: none; }
.header-nav a:hover::after { right: 0; }
.header-actions { display: flex; gap: 10px; }

@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 84px 0 72px;
    overflow: hidden;
}

/* grade de planilha, desvanecendo nas bordas */
.hero::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 760px;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 78%);
    mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}
/* brilho da marca atrás do título */
.hero::after {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    width: 900px;
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
    filter: blur(20px);
    opacity: .55;
    pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; text-align: center; }

.hero h1 {
    margin: 22px 0 0;
    font-size: clamp(38px, 6.4vw, 68px);
    font-variation-settings: 'opsz' 72;
}
.hero h1 .line-2 {
    display: block;
    color: var(--brand);
}
.lead {
    max-width: 620px;
    margin: 22px auto 0;
    font-size: clamp(16.5px, 2vw, 19px);
    color: var(--ink-2);
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-note {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--ink-3);
}

/* ---------- a régua dos meses (elemento assinatura) ---------- */
.forecast {
    position: relative;
    margin: 60px auto 0;
    max-width: 1000px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-3);
    padding: 22px 22px 26px;
    text-align: left;
}

.forecast-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 4px 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.forecast-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.forecast-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.forecast-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.fc-month {
    position: relative;
    border-radius: var(--r-md);
    padding: 16px 15px 15px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

/* o mês corrente é fato: preenchido, borda sólida, marcado pela marca */
.fc-month.is-now {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    box-shadow: var(--sh-1);
}

/* os meses seguintes são previsão: borda pontilhada */
.fc-month.is-next {
    background: transparent;
    border-style: dashed;
    border-color: var(--line-strong);
}

.fc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.fc-mon {
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--ink-2);
}
.fc-month.is-now .fc-mon { color: var(--brand); }
.fc-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
}
.fc-value {
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: clamp(15px, 1.7vw, 19px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.fc-month.is-next .fc-value { color: var(--ink-2); }

.fc-bar {
    height: 92px;
    margin: 14px 0 10px;
    display: flex;
    align-items: flex-end;
}
.fc-fill {
    width: 100%;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, transparent));
    transform-origin: bottom;
    transform: scaleY(0);
    animation: fc-grow .85s cubic-bezier(.2, .8, .3, 1) forwards;
    animation-delay: calc(.45s + var(--i) * .13s);
}
.fc-month.is-next .fc-fill {
    background: repeating-linear-gradient(
        -45deg,
        color-mix(in srgb, var(--brand) 42%, transparent) 0 5px,
        transparent 5px 10px
    );
    border: 1px dashed var(--brand-line);
}
@keyframes fc-grow { to { transform: scaleY(1); } }

.fc-detail {
    font-size: 12.5px;
    color: var(--ink-3);
}

.forecast-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
}
.forecast-foot svg { flex: 0 0 auto; margin-top: 4px; }
.forecast-foot strong { color: var(--ink); font-weight: 650; }

@media (max-width: 820px) {
    .forecast-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fc-month:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
    .forecast { padding: 18px 14px 20px; border-radius: var(--r-lg); }
    .forecast-track { gap: 9px; }
    .fc-month { padding: 13px 10px; }
    .fc-bar { height: 64px; margin: 12px 0 8px; }
    .fc-tag { display: none; }          /* o fundo já marca o mês corrente */
    .fc-value { font-size: 15px; }
    .fc-detail { font-size: 11.5px; }
    .forecast-head { flex-direction: column; gap: 2px; align-items: flex-start; }
}

/* ---------- barra de garantias ---------- */
.trust {
    border-block: 1px solid var(--line);
    background: var(--surface);
}
.trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}
.trust-item {
    background: var(--surface);
    padding: 26px 24px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.trust-item svg { width: 19px; height: 19px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.trust-item strong { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.trust-item span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 800px) { .trust-inner { grid-template-columns: 1fr; } }

/* ---------- seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 {
    margin: 16px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    font-variation-settings: 'opsz' 40;
}
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

/* ---------- blocos de demonstração (IA e casal) ---------- */
.showcase {
    display: grid;
    /* minmax(0, ...) deixa a coluna encolher abaixo do conteúdo — sem isso o
       bloco do convite empurra a página e cria rolagem lateral no celular. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}
.showcase > * { min-width: 0; }
.showcase.is-flipped .showcase-visual { order: -1; }
@media (max-width: 900px) {
    .showcase { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .showcase.is-flipped .showcase-visual { order: 0; }
}

.showcase h2 { font-size: clamp(26px, 3.4vw, 36px); }
.showcase-body { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); min-width: 0; }
.checklist li span { min-width: 0; }
.checklist svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; margin-top: 4px; }
.checklist strong { color: var(--ink); font-weight: 650; }

.showcase .btn { margin-top: 30px; }

/* -- demonstração da leitura de fatura -- */
.ai-demo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-3);
    padding: 20px;
    display: grid;
    gap: 14px;
}
.ai-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--surface-2);
}
.ai-file svg { width: 22px; height: 22px; color: var(--down); flex: 0 0 auto; }
.ai-file-name { font-size: 14px; font-weight: 600; }
.ai-file-meta { font-size: 12px; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; }

.ai-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
}
.ai-flow::before, .ai-flow::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--brand-line));
}
.ai-flow::after { background: linear-gradient(90deg, var(--brand-line), transparent); }

.ai-rows { display: grid; gap: 8px; }
.ai-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(8px);
}
.is-visible .ai-row {
    animation: row-in .5s cubic-bezier(.2, .8, .3, 1) forwards;
    animation-delay: calc(var(--i) * .12s);
}
@keyframes row-in { to { opacity: 1; transform: translateY(0); } }

.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ai-desc { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.ai-cat {
    display: block;
    font-size: 11.5px;
    color: var(--ink-3);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: .04em;
}
.ai-amount {
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 600;
}

/* -- demonstração do convite -- */
.invite-demo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-3);
    padding: 28px;
}
.invite-people {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 21px;
    color: #fff;
    border: 3px solid var(--surface);
    box-shadow: var(--sh-2);
}
.avatar-1 { background: linear-gradient(140deg, var(--brand), var(--brand-hi)); }
.avatar-2 { background: linear-gradient(140deg, #0d9488, #14b8a6); margin-left: -16px; }

.invite-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--brand-line);
    border-radius: var(--r-md);
    background: var(--brand-soft);
    margin-bottom: 20px;
}
.invite-link code {
    flex: 1 1 0;
    min-width: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--brand);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.invite-copy {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    white-space: nowrap;
}

.shared-view { display: grid; gap: 9px; }
.shared-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 14px;
}
.shared-who {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--ink-3);
}
.shared-amount { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 600; flex: 0 0 auto; }

/* ---------- grade de recursos ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}
.feature {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--sh-1);
    transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
    border-color: var(--line-strong);
}
.feature h3 { margin: 18px 0 9px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand);
    border: 1px solid var(--brand-line);
}
.feature-icon svg { width: 21px; height: 21px; }

/* ---------- passos ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    max-width: 760px;
}
.steps li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 22px;
    padding: 26px 0;
    border-bottom: 1px dashed var(--line-strong);
}
.steps li:first-child { border-top: 1px dashed var(--line-strong); }
.step-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--brand);
    padding-top: 4px;
}
.steps h3 { font-size: 19px; letter-spacing: -0.02em; }
.steps p { margin-top: 7px; color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 22px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--sh-1); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-right: 1.8px solid var(--ink-3);
    border-bottom: 1.8px solid var(--ink-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s cubic-bezier(.2, .8, .3, 1);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- cta final ---------- */
.final-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 72%);
    mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 72%);
}
.final-cta > .wrap { position: relative; }
.final-cta h2 { font-size: clamp(28px, 4.4vw, 46px); font-variation-settings: 'opsz' 44; }
.final-cta p { margin: 18px auto 32px; color: var(--ink-2); max-width: 520px; font-size: 17px; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 46px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; letter-spacing: -0.02em; }
.footer-brand p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: var(--ink-2); font-size: 14.5px; }
.footer-legal { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line); }
.footer-legal p { font-size: 13px; color: var(--ink-3); }

/* ---------- páginas de texto ---------- */
.legal { padding: 64px 0 90px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 40px; font-family: 'IBM Plex Mono', monospace; }
.legal h2 { font-size: 20px; margin: 38px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }

/* ---------- revelação no scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1);
    transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* entrada do hero, em sequência */
.hero-in {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-up .8s cubic-bezier(.2, .8, .3, 1) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes hero-up { to { opacity: 1; transform: none; } }

/* ---------- quem prefere menos movimento não vê nenhum ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-in { opacity: 1; transform: none; }
    .fc-fill { transform: scaleY(1); }
    .ai-row { opacity: 1; transform: none; }
}
