/* ============================================
   PRAXIS CONSULTIVA — LP contabilidade médica
   Conceito: edição consultiva (editorial revista
   + construtivismo nos 20% de destaque)
   Base: escuro como padrão · papel como contraste
   ============================================ */

@import url('fonts-face.css');

/* Anti-flash: esconde elementos personalizados até o servidor popular */
html.lp-loading .js-personalize {
    visibility: hidden;
}

/* INVARIANTE TÉCNICO (não remover): evita scroll horizontal no mobile.
   clip no body (não cria scroll container) preserva position: sticky. */
html {
    overflow-x: hidden;
}

body {
    overflow-x: clip;
}

/* ============ TOKENS ============ */
:root {
    /* cores — grupo escuro (padrão) */
    --bg: #141B22;
    --bg-2: #10161C;
    --surface: #1C252E;
    --surface-2: #232E38;
    /* cores — grupo papel (alternativo) */
    --paper: #F4EFE4;
    --paper-2: #ECE6D6;
    /* texto */
    --text: #F4EFE4;
    --ink: #1B232B;
    --muted: #9AA7B1;
    --muted-ink: #5C6B76;
    /* bordas/linhas */
    --line: rgba(244, 239, 228, 0.14);
    --line-strong: rgba(244, 239, 228, 0.28);
    --line-paper: rgba(27, 35, 43, 0.16);
    /* acento único */
    --accent: #C43E2F;
    --accent-strong: #E05A48;
    --accent-ink: #A62E21;
    --sheet: #FFFFFF;
    /* fontes (self-hosted em fonts/) */
    --font-display: 'Libre Bodoni', Georgia, serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, monospace;
    /* sistema */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 10px;
    --radius-full: 50%;
    --line-w: 1px;
    --shadow-deep: 0 30px 90px rgba(0, 0, 0, 0.55);
    --shadow-lift: 0 16px 50px rgba(0, 0, 0, 0.35);
    --container: 1240px;
    --gap: clamp(72px, 9vw, 140px);
    --transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.2s ease;
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--paper); }

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

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

.container {
    width: min(var(--container), 100% - clamp(32px, 7vw, 96px));
    margin-inline: auto;
}

/* ============ TIPOGRAFIA ============ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }

h2 {
    font-size: clamp(30px, 3.6vw, 54px);
    margin-bottom: 22px;
    max-width: 18ch;
}

h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; letter-spacing: 0; }

p { font-size: 16px; line-height: 1.68; }

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.kicker-dark { color: var(--muted); }
.kicker-paper { color: var(--muted-ink); }

.rubric {
    display: inline-block;
    width: 38px;
    height: 3px;
    background: var(--accent);
    flex-shrink: 0;
}

.cap-lead {
    max-width: 58ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.paper-group .cap-lead { color: var(--muted-ink); }

/* ============ BOTÕES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--paper);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    box-shadow: 0 10px 34px rgba(196, 62, 47, 0.32);
    position: relative;
    padding-right: 38px;
}

.btn-primary::after {
    content: '↗';
    position: absolute;
    right: 15px;
    font-size: 13px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 44px rgba(196, 62, 47, 0.45); }
.btn-primary:hover::after { transform: translate(2px, -2px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-lg { padding: 17px 30px; font-size: 15.5px; }
.btn-xl { padding: 20px 42px; font-size: 16.5px; }

.btn-arrow { font-size: 15px; color: var(--accent-strong); }

/* ============ NAVBAR — masthead editorial ============ */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.navbar-wrapper.hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.hero-folio {
    position: absolute;
    top: 112px;
    left: 0;
    writing-mode: vertical-lr;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    height: calc(100svh - 168px);
    padding-left: 13px;
    border-left: 1px solid var(--line-strong);
    pointer-events: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px max(24px, calc((100% - var(--container)) / 2));
    background: rgba(20, 27, 34, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.navbar-brand .brand-logo { width: 34px; height: 34px; }

.brand-name {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.brand-suffix {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.navbar-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-links a:hover { color: var(--text); }
.navbar-links a:hover::after { transform: scaleX(1); }

.navbar-cta { flex-shrink: 0; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: var(--transition-fast);
}

/* ============ DRAWER MOBILE (esquerda) ============ */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2001;
    width: min(86vw, 340px);
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
    padding: 26px 22px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.drawer-brand { display: flex; align-items: center; gap: 12px; }

.drawer-brand img { width: 38px; height: 38px; }

.drawer-brand-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.drawer-slogan {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.drawer-close:hover { color: var(--accent-strong); border-color: var(--accent); }

.drawer-nav {
    flex: 1;
    padding: 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}

.drawer-nav a .drawer-icon {
    width: 22px;
    height: 22px;
    color: var(--muted);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.drawer-nav a:hover { background: var(--surface); border-left-color: var(--accent); }
.drawer-nav a:hover .drawer-icon { color: var(--accent-strong); }

.drawer-contact {
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.drawer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
    min-width: 0;
    flex-wrap: wrap;
}

.contact-icon { color: var(--accent); flex-shrink: 0; }

.drawer-footer { padding: 16px 22px 26px; }

.drawer-footer .btn { width: 100%; }
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: calc(112px + 24px) 0 clamp(40px, 6vh, 72px);
    background:
        radial-gradient(ellipse at 78% 30%, rgba(196, 62, 47, 0.11) 0%, transparent 50%),
        radial-gradient(ellipse at 12% 92%, rgba(154, 167, 177, 0.05) 0%, transparent 55%),
        var(--bg);
    overflow: hidden;
}

.hero-rings {
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    width: min(70vw, 900px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-copy h1 {
    font-size: clamp(42px, 5.4vw, 88px);
    margin-bottom: 26px;
}

.h1-accent { color: var(--accent); }

.hero-lead {
    font-size: clamp(16px, 1.35vw, 19px);
    color: var(--muted);
    max-width: 52ch;
    margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-stage {
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
}

/* iluminação atrás da caixa de chat (glow quente de papel + halo de acento) */
.hero-stage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(46vw, 560px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, rgba(244, 239, 228, 0.30) 0%, rgba(244, 239, 228, 0.10) 42%, transparent 70%),
        radial-gradient(circle at 58% 40%, rgba(196, 62, 47, 0.20) 0%, transparent 55%),
        radial-gradient(circle at 42% 60%, rgba(196, 62, 47, 0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: glow-breathe 5.5s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* figura do conceito: extrato ao fundo (integrada ao conceito, sem competir com a caixa) */
.hero-extract {
    position: absolute;
    right: -90px;
    top: 42px;
    width: min(52vw, 560px);
    z-index: 0;
    pointer-events: none;
    filter: saturate(0.55);
}

.dre-bg {
    width: 100%;
    height: auto;
    opacity: 0.32;
    transform: rotate(2.5deg);
}

.hero-chips { position: relative; }

.hero-chip {
    pointer-events: none;
    position: absolute;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(20, 27, 34, 0.85);
    border: 1px solid var(--line-strong);
    padding: 7px 13px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    animation: chip-float 6s ease-in-out infinite;
}

.chip-1 { top: -30px; right: 6%; }
.chip-2 { bottom: -20px; left: -4%; animation-delay: 2.4s; }

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ticker mono na base do hero */
.hero-ticker {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    padding: 12px 0;
}

.ticker-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee 30s linear infinite;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.tick-dot { color: var(--accent); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============ CAIXA DE CHAT — CARTA SELADA (A10) ============ */
.hero-chat-box {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    background: var(--paper);
    color: var(--ink);
    border: 1px solid rgba(27, 35, 43, 0.16);
    border-radius: 2px;
    padding: 30px 30px 24px;
    box-shadow: var(--shadow-deep), 0 0 0 1px rgba(244, 239, 228, 0.05);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
}

/* dobra do papel no canto superior direito (aba desenhada sobre o canto, sem clipar) */
.hero-chat-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 34px solid var(--paper-2);
    border-left: 34px solid transparent;
    pointer-events: none;
    z-index: 3;
}

.hero-chat-box::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -1px;
    width: 1px;
    height: 10px;
    background: rgba(27, 35, 43, 0.18);
    pointer-events: none;
    z-index: 3;
}

.hero-chat-box:hover { transform: translateY(-4px); }

/* Estado minimizado NEUTRALIZADO: a caixa jamais fica transparente nem some.
   O bot flutuante (main.js) continua aparecendo quando a caixa sai da viewport. */
.hero-chat-box.minimized {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* selo de lacre (como lacre de cera) */
.chat-box-seal {
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 66px;
    height: 66px;
    z-index: 5;
    color: var(--accent);
    background: var(--paper);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(8deg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-chat-box:hover .chat-box-seal { transform: rotate(0deg) scale(1.06); }

.chat-box-seal svg { width: 46px; height: 46px; }

.chat-box-tag {
    position: absolute;
    top: -11px;
    left: 22px;
    z-index: 4;
    background: var(--paper);
    border: 1px solid rgba(27, 35, 43, 0.22);
    padding: 3px 11px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
}

.chat-box-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-paper);
}

.chat-box-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--ink);
    animation: avatar-ring 2.6s ease-out infinite;
}

@keyframes avatar-ring {
    0% { box-shadow: 0 0 0 0 rgba(196, 62, 47, 0.35); }
    70% { box-shadow: 0 0 0 9px rgba(196, 62, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 62, 47, 0); }
}

.chat-box-info { flex: 1; min-width: 0; }

.chat-box-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}

.chat-box-role {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-ink);
    margin-top: 3px;
}

.chat-box-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--accent-ink);
    font-weight: 600;
    margin-top: 6px;
}

.chat-box-status .online-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: var(--radius-full);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 62, 47, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(196, 62, 47, 0); }
}

.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.wave b { width: 2px; height: 40%; background: var(--accent); border-radius: 1px; animation: wave 1.3s ease-in-out infinite; }
.wave b:nth-child(2) { animation-delay: 0.18s; }
.wave b:nth-child(3) { animation-delay: 0.36s; }
@keyframes wave { 0%, 100% { height: 35%; } 50% { height: 100%; } }

.chat-box-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-bubble {
    max-width: 88%;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.55;
}

.chat-bubble.bot {
    background: rgba(27, 35, 43, 0.06);
    border: 1px solid var(--line-paper);
    color: var(--ink);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--paper);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* simulação de conversa viva (desligada se o servidor preencher as mensagens) */
.chat-teaser {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.chat-teaser.on { opacity: 1; visibility: visible; }
.chat-teaser .chat-bubble { opacity: 0; transform: translateY(8px); }
.chat-teaser.on .chat-teaser-typing { animation: teaser-cycle 9s infinite 0.5s; }
.chat-teaser.on .chat-teaser-msg { animation: teaser-cycle 9s infinite 4.8s; }
@keyframes teaser-cycle {
    0%, 6% { opacity: 0; transform: translateY(8px); }
    14%, 48% { opacity: 1; transform: none; }
    56%, 100% { opacity: 0; transform: translateY(-4px); }
}

.chat-box-cta { width: 100%; display: flex; flex-direction: column; gap: 11px; }

.chat-box-cta .btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }

.chat-box-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-ink);
    min-width: 0;
}

.chat-box-statusbar .sb-live { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.chat-box-statusbar .sb-live .online-dot { width: 7px; height: 7px; flex-shrink: 0; }
.chat-box-statusbar .sb-ref { color: var(--ink); font-weight: 700; }

/* ============ FLOATING BOT ============ */
.floating-bot {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 900;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lift);
}

.floating-bot.visible { opacity: 1; visibility: visible; transform: scale(1); }
.floating-bot:hover { transform: scale(1.08); }

.floating-bot img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent);
}

.floating-bot .floating-pulse {
    position: absolute;
    inset: -5px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent);
    animation: floating-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes floating-ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.floating-bot .floating-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: var(--radius-full);
}

/* ============ CHAT MODAL (direita, full-height) ============ */
.chat-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(5, 8, 10, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.chat-modal-overlay.active { opacity: 1; visibility: visible; }

.chat-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 440px;
    max-width: 100%;
    background: var(--bg-2);
    color: var(--text);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 70px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.chat-modal.active { transform: translateX(0); }

.chat-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--bg);
}

.chat-modal-header .modal-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent);
}

.chat-modal-header .modal-info { flex: 1; min-width: 0; }
.chat-modal-header .modal-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.chat-modal-header .modal-role { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.chat-modal-header .modal-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--accent-strong); font-weight: 600; margin-top: 3px; }
.chat-modal-header .modal-status .online-dot { width: 7px; height: 7px; background: var(--accent); border-radius: var(--radius-full); animation: pulse-green 2s infinite; }

.chat-modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chat-modal-close:hover { color: var(--accent-strong); border-color: var(--accent); }

.chat-modal-body {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-modal-body .chat-bubble { animation: none; opacity: 1; }

.chat-modal-body .chat-bubble.bot {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}

.modal-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    max-width: 85%;
}

.typing-dots { display: flex; gap: 4px; }
.typing-dots span { width: 7px; height: 7px; background: var(--accent); border-radius: var(--radius-full); animation: typing-bounce 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    background: var(--bg);
    min-width: 0;
}

.chat-modal-footer input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.chat-modal-footer input:focus { border-color: var(--accent); }
.chat-modal-footer input::placeholder { color: var(--muted); }

.chat-modal-footer .send-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    font-size: 16px;
    transition: var(--transition-fast);
}

.chat-modal-footer .send-btn:hover { background: var(--accent-strong); transform: scale(1.05); }

/* fluxo do chat (elementos injetados pelo main.js) */
.chat-flow-input {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px;
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}

.chat-flow-input:focus { border-color: var(--accent); }

.chat-flow-send {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--accent);
    border: none;
    color: var(--paper);
    cursor: pointer;
    font-size: 16px;
}

.chat-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.chat-option-btn {
    width: 100%;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.chat-option-btn:hover { background: var(--surface-2); border-color: var(--accent); }

.chat-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}

.chat-checkbox-option.checked { border-color: var(--accent); background: var(--surface-2); }

.chat-flow-continue {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    margin-top: 8px;
    background: var(--accent);
    color: var(--paper);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
}

.chat-summary { width: 100%; max-width: 100%; }

.chat-summary-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }

.chat-summary-table td {
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.chat-summary-table td:first-child { font-weight: 600; color: var(--muted); }
.chat-summary-table td:last-child { color: var(--text); text-align: right; }

.chat-lgpd {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 12px;
    color: var(--muted);
}

.chat-lgpd input { margin-top: 2px; accent-color: var(--accent); }

.chat-end-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.chat-end-actions .btn { flex: 1; text-align: center; font-size: 13px; padding: 12px 14px; }

/* ============ CAPÍTULOS — BASE ============ */
.cap {
    position: relative;
    z-index: 1;
    padding: var(--gap) 0;
    background: var(--bg);
    overflow: hidden;
}

.paper-group {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(27, 35, 43, 0.07) 1px, transparent 1.6px);
    background-size: 28px 28px;
    color: var(--ink);
}

.cap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 85% 15%, rgba(244, 239, 228, 0.04) 0%, transparent 55%);
}

.paper-group::after {
    background: radial-gradient(ellipse at 85% 15%, rgba(27, 35, 43, 0.05) 0%, transparent 55%);
}

.cap .container { position: relative; z-index: 2; }

.split-head h2 { max-width: 22ch; }

/* ============ CAP 01 — DIAGNÓSTICO (ledger) ============ */
.ledger {
    margin-top: 48px;
    border-top: 1px solid var(--line-strong);
}

.ledger-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 64px;
    gap: 22px;
    align-items: center;
    padding: 24px 8px;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 0;
}

.ledger-row:hover { background: rgba(244, 239, 228, 0.03); padding-left: 18px; }

.ledger-code {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--accent-strong);
}

.ledger-body { min-width: 0; }

.ledger-body h3 { margin-bottom: 5px; color: var(--text); }

.ledger-body p { color: var(--muted); font-size: 15px; max-width: 62ch; }

.ledger-cota {
    position: relative;
    width: 100%;
    height: 1px;
    background: var(--line-strong);
}

.ledger-cota::before, .ledger-cota::after {
    content: '';
    position: absolute;
    top: -3.5px;
    width: 1px;
    height: 8px;
    background: var(--accent);
}

.ledger-cota::before { left: 0; }
.ledger-cota::after { right: 0; }

.ledger-foot {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: right;
}

/* ============ CAP 02 — INÉRCIA (momento pôster) ============ */
.cap-inercia { padding-top: calc(var(--gap) * 0.8); }

.poster-title {
    position: relative;
    display: inline-block;
    font-size: clamp(56px, 10.5vw, 168px);
    line-height: 0.94;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    color: var(--text);
    z-index: 1;
}

.poster-title::after {
    content: '';
    position: absolute;
    left: -1.5%;
    bottom: 4%;
    width: 103%;
    height: 0.14em;
    background: var(--accent);
    transform: rotate(-1.6deg);
    z-index: -1;
}

.inercia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 44px);
    border-top: 1px solid var(--line-strong);
    padding-top: 36px;
}

.inercia-item { min-width: 0; }

.inercia-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 6px;
}

.inercia-unit {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.inercia-item p { color: var(--muted); font-size: 15px; max-width: 30ch; }

.inercia-close {
    margin-top: 44px;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 30px);
    color: var(--text);
    max-width: 30ch;
}

/* ============ CAP 03 — INFORME (grupo papel) ============ */
.cap-informe .cap-lead, .paper-group p { color: var(--muted-ink); }

.informe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.informe-copy h2 { color: var(--ink); }

.informe-copy > p { margin-bottom: 26px; }

.informe-quote {
    position: relative;
    margin-top: 36px;
    padding: 30px 32px 30px 36px;
    border-left: 3px solid var(--accent);
    background: var(--bg);
    color: var(--text);
    max-width: 44ch;
    box-shadow: var(--shadow-lift);
}

.informe-quote p {
    font-family: var(--font-display);
    font-size: clamp(19px, 1.9vw, 26px);
    line-height: 1.3;
    color: var(--text);
}

.informe-quote .quote-seal circle { stroke: var(--accent-strong); }
.informe-quote .quote-seal text { fill: var(--accent-strong); }

.quote-seal {
    position: absolute;
    right: -26px;
    bottom: -26px;
    width: 92px;
    height: 92px;
    transform: rotate(-10deg);
    filter: drop-shadow(0 6px 16px rgba(27, 35, 43, 0.18));
}

.quote-seal svg { width: 100%; height: 100%; }

.informe-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    border: 1px solid var(--line-paper);
    background: var(--sheet);
    padding: 30px;
    box-shadow: 0 14px 40px rgba(27, 35, 43, 0.07);
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 10px;
}

.stat-unit { font-size: 0.55em; color: var(--muted-ink); }

.stat-label {
    display: block;
    font-size: 13.5px;
    color: var(--muted-ink);
    line-height: 1.45;
    max-width: 22ch;
}

.stat-foot {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--line-paper);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

/* moldura de imagem com cantoneiras */
.photo-frame {
    position: relative;
    margin-top: 64px;
    padding: 0;
}

.photo-frame::before, .photo-frame::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    z-index: 3;
    pointer-events: none;
}

.photo-frame::before { top: -8px; left: -8px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.photo-frame::after { bottom: -8px; right: -8px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.photo-frame img {
    width: 100%;
    height: clamp(260px, 38vw, 460px);
    object-fit: cover;
    filter: sepia(0.32) saturate(0.82) contrast(1.02);
    border: 1px solid var(--line-paper);
}

.photo-frame figcaption, .fig-caption, .chart-note {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

.fig-code { color: var(--accent-ink); font-weight: 700; }

/* ============ CAP 04 — CURVA (grupo papel) ============ */
.curva-head { margin-bottom: 40px; }

.curva-chart {
    position: relative;
    border: 1px solid var(--line-paper);
    background: var(--sheet);
    padding: clamp(16px, 3vw, 34px);
    box-shadow: 0 14px 40px rgba(27, 35, 43, 0.07);
}

.chart-svg { width: 100%; height: auto; display: block; }

.chart-draw {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

.chart-note { margin-top: 12px; }

.curva-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid var(--line-paper);
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--sheet);
    transition: var(--transition-fast);
}

.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ============ CAP 05 — O QUE MUDA (grupo papel) ============ */
.muda-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.muda-list h2 { color: var(--ink); }

.muda-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--line-paper);
    transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 0;
}

.muda-item:last-of-type { border-bottom: 1px solid var(--line-paper); }

.muda-item:hover { padding-left: 12px; }

.muda-code {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--accent-ink);
}

.muda-item h3 { margin-bottom: 5px; color: var(--ink); }

.muda-item p { color: var(--muted-ink); font-size: 15px; max-width: 52ch; }

.muda-figure { position: sticky; top: 120px; }

.dre-fig {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 50px rgba(27, 35, 43, 0.16));
}

/* ============ INTERLÚDIO — vazio intencional (quebra do scroll) ============ */
.cap-interlude {
    padding: clamp(150px, 20vw, 300px) 0;
    text-align: center;
}

.cap-interlude::after {
    background: radial-gradient(ellipse at 50% 50%, rgba(27, 35, 43, 0.07) 0%, transparent 60%);
}

.interlude-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    position: relative;
    z-index: 2;
}

.interlude-stamp {
    width: clamp(180px, 22vw, 260px);
    height: auto;
    display: block;
    transform: rotate(-9deg);
    animation: stamp-float 7s ease-in-out infinite;
    filter: drop-shadow(0 16px 40px rgba(27, 35, 43, 0.18));
}

@keyframes stamp-float {
    0%, 100% { transform: rotate(-9deg) translateY(0); }
    50% { transform: rotate(-7deg) translateY(-14px); }
}

.interlude-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

/* ============ CAP 06 — REGISTROS (grupo escuro) ============ */

.prova-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.prova-photo {
    position: relative;
    margin: 0;
}

.prova-photo::before, .prova-photo::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
    pointer-events: none;
}

.prova-photo::before { top: -8px; left: -8px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.prova-photo::after { bottom: -8px; right: -8px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.prova-photo img {
    width: 100%;
    height: clamp(320px, 44vw, 520px);
    object-fit: cover;
    filter: sepia(0.3) saturate(0.8) contrast(1.04);
    border: 1px solid var(--line);
}

.prova-photo figcaption {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.prova-quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.24;
    color: var(--text);
    margin: 30px 0 26px;
    max-width: 26ch;
}

.prova-sig {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 10px;
}

.prova-data {
    font-size: 14px;
    color: var(--muted);
}

/* ============ CAP 07 — FAQ (roupagem editorial) ============ */
.faq-head { margin-bottom: 40px; }
.faq-head h2 { max-width: 20ch; }

.faq-list { border-top: 1px solid var(--line-strong); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 40px;
    gap: 18px;
    align-items: center;
    padding: 24px 8px;
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    transition: padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 0;
}

.faq-question:hover { padding-left: 18px; }

.faq-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--accent-strong);
}

.faq-q {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.7vw, 23px);
    line-height: 1.25;
}

.faq-marker {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-full);
    justify-self: end;
    transition: var(--transition);
}

.faq-marker::before, .faq-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    transition: var(--transition);
}

.faq-marker::before { width: 10px; height: 1.5px; }
.faq-marker::after { width: 1.5px; height: 10px; }

.faq-item.active .faq-marker { border-color: var(--accent); transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
    padding: 0 8px 24px 136px;
    color: var(--muted);
    max-width: 62ch;
    font-size: 15px;
}

/* ============ CAP 08 — CTA FINAL ============ */
.cap-cta {
    text-align: center;
    padding-top: calc(var(--gap) * 1.2);
    padding-bottom: calc(var(--gap) * 1.2);
}

.cap-cta .kicker { justify-content: center; }

.cta-title {
    font-size: clamp(38px, 6vw, 88px);
    max-width: 22ch;
    margin-inline: auto;
    margin-bottom: 26px;
}

.cta-lead {
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 17px;
}

.cta-actions { margin-bottom: 48px; }

.cta-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 36px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.cta-channel {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chan-ico { color: var(--accent-strong); }

/* ============ FOOTER — encerramento da edição ============ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: clamp(64px, 9vw, 120px) 0 36px;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    left: 50%;
    bottom: -0.32em;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(120px, 22vw, 340px);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    opacity: 0.045;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.footer .container { position: relative; z-index: 2; }

.footer.pre-hide .container > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer.pre-hide.revealed .container > * {
    opacity: 1;
    transform: none;
}

.footer.pre-hide .footer-watermark {
    transform: translateY(28px);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer.pre-hide.revealed .footer-watermark {
    transform: none;
    opacity: 0.045;
}

.footer.pre-hide.revealed .container > *:nth-child(2) { transition-delay: 0.12s; }
.footer.pre-hide.revealed .container > *:nth-child(3) { transition-delay: 0.24s; }

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(32px, 5vw, 80px);
    flex-wrap: wrap;
}

.footer-colophon { flex: 1 1 340px; }

.footer-mark {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 600;
    line-height: 1;
    color: var(--text);
    margin-bottom: 10px;
}

.footer-mark-suffix {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(10px, 1vw, 13px);
    font-weight: 400;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-edition {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 12px;
}

.footer-slogan {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 26px);
    color: var(--muted);
    font-style: normal;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 6vw, 96px);
    padding: 6px 0;
}

.footer-linkcol { min-width: 0; }

.footer-col-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 14px;
}

.footer-linkcol a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-linkcol a:hover { color: var(--text); }

.footer-bottom {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 0;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--muted);
}

.footer-social a:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

.footer-social svg { width: 16px; height: 16px; }

.footer-top {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.footer-top:hover { color: var(--accent-strong); }

/* ============ REVEAL + STAGGER ============ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.08s;
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-group.visible > * { opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.23s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.41s; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-group > * { opacity: 1; transform: none; }
}


/* ============ REFINAMENTO — números de capítulo, fundo do CAP 02, seletor de regime ============ */
.cap::before {
    content: attr(data-cap);
    position: absolute;
    top: 14px;
    right: clamp(16px, 4vw, 56px);
    font-family: var(--font-display);
    font-size: clamp(64px, 9vw, 150px);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    opacity: 0.045;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

.paper-group::before { color: var(--ink); opacity: 0.05; }

/* fundo do CAP 02 — foto tratada em duotone, com parallax */
.inercia-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.inercia-bg img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0.14;
    filter: sepia(0.55) saturate(0.65) contrast(1.05);
}

.cap-inercia::after {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(196, 62, 47, 0.10) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(20, 27, 34, 0.55), rgba(20, 27, 34, 0.9));
}

/* seletor interativo de regime */
.regime-select {
    margin-top: 34px;
    border: 1px solid var(--line-paper);
    background: var(--sheet);
    padding: 26px 28px 28px;
    box-shadow: 0 14px 40px rgba(27, 35, 43, 0.07);
}

.regime-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted-ink);
    margin-bottom: 18px;
}

.regime-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
    margin-bottom: 26px;
}

.regime-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line-paper);
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-align: left;
    transition: var(--transition-fast);
}

.regime-btn-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.regime-btn-pct {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: var(--muted-ink);
    transition: var(--transition-fast);
}

.regime-btn:hover { border-color: var(--accent); }

.regime-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
    box-shadow: 0 12px 30px rgba(196, 62, 47, 0.25);
    transform: translateY(-2px);
}

.regime-btn.active .regime-btn-pct { color: var(--paper); }

.regime-readout {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line-paper);
    padding-top: 20px;
    flex-wrap: wrap;
}

.regime-num {
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 600;
    line-height: 0.9;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.regime-suffix {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-ink);
}

.regime-desc {
    max-width: 34ch;
    color: var(--muted-ink);
    font-size: 14.5px;
    margin: 0;
}

/* pulso nos pontos finais do gráfico */
.chart-end {
    transform-box: fill-box;
    transform-origin: center;
    animation: end-pulse 2.6s ease-out infinite;
}

.chart-end-com { animation-delay: 0.7s; }

@keyframes end-pulse {
    0%, 100% { r: 5; opacity: 1; }
    50% { r: 8; opacity: 0.55; }
}

/* micro-polimento: stats com relevo no hover */
.stat { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.stat:hover { transform: translateX(6px); }

.chart-note, .fig-caption { display: flex; align-items: center; gap: 8px; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1300px) {
    .hero-folio { display: none; }
}

@media (max-width: 900px) {
    .cap::before { font-size: clamp(44px, 14vw, 80px); opacity: 0.06; }

    .regime-buttons { grid-template-columns: 1fr; }
    .regime-readout { flex-direction: column; align-items: flex-start; }

    .hero {
        min-height: 0;
        padding: 130px 0 56px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-rings {
        right: -220px;
        width: 130vw;
        opacity: 0.6;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-extract { opacity: 0.5; right: -120px; top: 10px; width: 70vw; }

    .hero-stage { margin-top: 44px; }

    .hero-chip {
    pointer-events: none; display: none; }

    .informe-grid, .muda-grid, .prova-grid {
        grid-template-columns: 1fr;
    }

    .muda-figure { position: static; margin-top: 40px; }

    .quote-seal { right: 0; }

    .faq-question { grid-template-columns: 76px minmax(0, 1fr) 34px; }
    .faq-answer p { padding-left: 94px; }

    .inercia-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .navbar-folio { display: none; }

    .navbar {
        padding: 10px 16px;
        border-radius: 999px;
        margin: 10px 12px 0;
        background: rgba(20, 27, 34, 0.9);
        border: 1px solid var(--line);
    }

    .navbar-wrapper { top: 0; }

    .navbar-links, .navbar-cta { display: none; }

    .hamburger { display: flex; }

    .navbar-brand .brand-logo { width: 30px; height: 30px; }
    .brand-name { font-size: 18px; }
    .brand-suffix { display: none; }

    .hero { padding-top: 120px; }

    .hero-copy h1 { font-size: clamp(40px, 11vw, 58px); }

    .hero-ticker { padding: 10px 0; }
    .ticker-track { font-size: 9px; gap: 12px; }

    .chat-box-seal { right: -12px; bottom: 40px; width: 56px; height: 56px; }

    .ledger-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
    .ledger-cota { display: none; }

    .poster-title { font-size: clamp(48px, 16vw, 84px); }

    .informe-stats { grid-template-columns: 1fr 1fr; padding: 22px; }

    .faq-question { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
    .faq-num { font-size: 9px; }
    .faq-answer p { padding: 0 4px 20px; }

    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }

    .chat-modal { width: 100%; }

    .cta-channels { flex-direction: column; align-items: center; gap: 12px; }
}

/* ============ BARRA DE SCROLL PERSONALIZADA ============ */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: #2B3642;
    border: 3px solid var(--bg-2);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: var(--bg-2); }

html { scrollbar-width: thin; scrollbar-color: #2B3642 var(--bg-2); }

/* ícones svg de contato (horário/endereço) */
.contact-icon svg, .chan-ico svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============ TELA DE LOADING ============ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(196, 62, 47, 0.10) 0%, transparent 55%),
        var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.loader-seal {
    width: 86px;
    height: 86px;
    color: var(--paper);
    margin-bottom: 4px;
}

.loader-ring {
    stroke: currentColor;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: loader-draw 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loader-ring:nth-child(2) { animation-delay: 0.25s; opacity: 0.6; }
.loader-p { animation-delay: 0.5s; }

@keyframes loader-draw {
    to { stroke-dashoffset: 0; }
}

.loader-word {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.02em;
}

.loader-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 8px;
}

.loader-track {
    width: 200px;
    height: 2px;
    background: var(--surface);
    overflow: hidden;
}

.loader-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.18s linear;
}

.loader-pct {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--muted);
}

/* ============ PAINEL ESQUERDO (sobre o blur, junto com a modal) ============ */
.chat-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 440px;
    z-index: 9999;
    background:
        radial-gradient(ellipse at 78% 42%, rgba(244, 239, 228, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 90%, rgba(196, 62, 47, 0.06) 0%, transparent 50%),
        var(--bg-2);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.chat-panel.active { transform: translateX(0); }

.chat-panel-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition-fast);
    z-index: 3;
}

.chat-panel-close:hover { color: var(--accent-strong); border-color: var(--accent); }

.chat-panel-inner {
    padding: clamp(32px, 5.5vh, 60px) clamp(36px, 4.5vw, 72px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-panel-main {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: center;
    flex: 1;
}

.chat-panel-copy { min-width: 0; }

.chat-panel-figure {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-panel-figure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(34vw, 460px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 239, 228, 0.08) 0%, transparent 62%);
    pointer-events: none;
}

.panel-dre {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.45));
}

.panel-dre-caption {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--muted);
}

.chat-panel-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 26px;
}

.chat-panel-kicker::before {
    content: '';
    width: 30px;
    height: 2.5px;
    background: var(--accent);
}

.chat-panel-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.2vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 16ch;
}

.chat-panel-lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 34px;
    max-width: 38ch;
}

.chat-panel-steps {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    border-top: 1px solid var(--line);
}

.chat-panel-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.cps-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent-strong);
    padding-top: 4px;
}

.cps-body { min-width: 0; }

.cps-body h4 {
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.cps-body p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

.chat-panel-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    min-width: 0;
}

.chat-panel-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.chat-panel-foot-info { min-width: 0; }

.chat-panel-who {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.chat-panel-role {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.chat-panel-lgpd {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============ PROVA SOCIAL EXTRA ============ */
.prova-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: 72px;
    border-top: 1px solid var(--line);
    padding-top: 44px;
}

.prova-mini {
    border-left: 2px solid transparent;
    padding-left: 22px;
    transition: border-color 0.3s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.prova-mini:hover { border-left-color: var(--accent); padding-left: 28px; }

.prova-mini p {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 14px;
}

.prova-mini-sig {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============ INTERLÚDIO: linha de assinatura ============ */
.interlude-line {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 32px);
    color: var(--ink);
    max-width: 20ch;
    margin-inline: auto;
}

/* ============ GRÁFICO: pontos interativos ============ */
.chart-pt {
    cursor: pointer;
    transition: r 0.25s ease, stroke-width 0.25s ease;
}

.chart-pt:hover {
    r: 7.5;
    stroke-width: 2.5;
}

.chart-pt-com:hover { stroke: var(--accent-strong); }

/* ============ DRE: hover nos lançamentos ============ */
.dre-fig .dre-row text {
    transition: fill 0.25s ease;
}

.dre-fig .dre-row:hover text {
    fill: var(--accent-ink);
    font-weight: 700;
}

/* ============ FOCO VISÍVEL ============ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .chat-panel-main { grid-template-columns: 1fr; }
    .chat-panel-figure { display: none; }
}

@media (max-width: 768px) {
    .chat-panel { display: none; }
    .prova-extra { grid-template-columns: 1fr; }
}

/* ============ BARRA DE COOKIES / LGPD ============ */
.cookie-bar {
    position: fixed; left: 18px; bottom: 18px; z-index: 10000;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(130%); opacity: 0; visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s ease;
}
.cookie-bar.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-texto { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.cookie-acoes { display: flex; gap: 10px; }
.cookie-btn {
    padding: 10px 16px; font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
    border: 1px solid var(--line); background: transparent; color: var(--muted);
    transition: var(--transition-fast); border-radius: var(--radius-sm);
}
.cookie-btn--accept { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-btn--accept:hover { background: var(--accent-strong); }
.cookie-btn--essential:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 640px) {
    .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
