/* ============================================================
   SESMT Digital — Landing Pages
   ------------------------------------------------------------
   Ordem do arquivo (a cascata depende dela):
     1. Design tokens
     2. Reset e elementos globais
     3. Componentes das LPs de módulo (.card, .grid-3, .btn, .step…)
     4. Header, footer e hero — precedência final
   A home carrega index.css por cima desta base.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
/*
   Superfícies em elevação sobre o navy da marca. Cada camada é um degrau
   perceptível; o conteúdo sobe conforme ganha importância. Todos os pares
   texto x superfície abaixo passam WCAG AA.
*/
:root {
    /* Superfícies, do fundo para a frente */
    --surface-sunken: #000f20;
    --surface-base: #021B35;
    --surface-raised: #0a2544;
    --surface-overlay: #123055;
    --surface-line: #1d3f68;

    /* Texto */
    --text-primary: #f2f6fb;
    --text-secondary: #b8cbe0;
    --text-muted: #8aa3bf;

    /* Acento e estados. O âmbar e o coral marcam gravidade, não decoram. */
    --accent: #4fd8d8;
    --accent-strong: #7fe8e8;
    --accent-ink: #00121f;   /* texto sobre fundo de acento */
    --state-warn: #ffc44d;
    --state-danger: #ff8a8a;
    --state-ok: #6ee7a8;

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;

    /*
       Compatibilidade: os componentes herdados foram escritos para um tema
       claro e referenciam estes nomes. Apontá-los para a escala escura
       corrige o contraste na origem, em vez de sobrescrever caso a caso.
    */
    --bg-dark: var(--surface-base);
    --bg-darker: var(--surface-sunken);
    --card-bg: var(--surface-raised);
    --text-white: var(--text-primary);
    --text-gray: var(--text-secondary);
    --primary-color: var(--text-primary);
    --primary-light: var(--surface-overlay);
    --accent-color: var(--accent);
    --accent-hover: var(--accent-strong);
    --text-color: var(--text-secondary);
    --text-light: var(--text-muted);
    --white: var(--text-primary);
    --light-bg: var(--surface-raised);
    --danger-color: var(--state-danger);
    --success-color: var(--state-ok);
    --warning-color: var(--state-warn);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------- 2. Reset e elementos globais ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* compensa o header fixo */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    background: linear-gradient(135deg, #021B35 0%, #06345F 100%);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    /* Encosta na última seção: a margem abria uma fresta do body. */
    margin-top: 0;
    color: var(--text-gray);
}

/* ---------- 3. Componentes das LPs de módulo ---------- */



/* Removido: body { width: fit-content } em telas < 380px fazia o body
   crescer junto com o conteúdo mais largo, criando rolagem horizontal
   em vez de conter o layout. */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Remove o gap de baseline abaixo das imagens nas LPs de módulo.
   A home mantém as imagens inline, como no design original. */
.page-modulo img {
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-muted {
    color: var(--text-light);
}

.mt-2 {
    margin-top: 2rem;
}

.pl-2 {
    padding-left: 2rem;
}

.section {
    padding: 5rem 0;
}

/*
   As seções encostam uma na outra. O respiro de 10px do design anterior
   abria uma fresta que deixava o fundo do body aparecer entre as faixas,
   lendo como uma segunda cor no meio do conteúdo.
*/
.page-modulo .section {
    margin-top: 0;
}

/*
   Faixas de seção. O ritmo da página vem da elevação, não de inverter o
   tema: seções alternam entre a base e um degrau acima, e a faixa "dark"
   afunda para marcar os blocos de consequência e de público-alvo.
*/
.bg-light {
    background-color: var(--surface-raised);
}

.bg-dark {
    background-color: var(--surface-sunken);
}

.section-dark {
    background-color: var(--surface-sunken);
    color: var(--text-secondary);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--text-primary);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* Espaçamento acima das linhas, exclusivo das LPs de módulo. */
.page-modulo .row {
    margin-top: 3rem;
}

.align-center {
    align-items: center;
}

.col-half {
    flex: 1;
    min-width: min(300px, 100%);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    /* Texto escuro: branco sobre o teal fica em 1.7 de contraste. */
    color: var(--accent-ink);
    border: 2px solid var(--accent);
    font-weight: 700;
}

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-left: 1rem;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-highlight {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

/* Hero Section */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(79, 216, 216, 0.1);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 216, 216, 0.3);
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero .subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.trust-indicators {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 600px) {
    .trust-indicators span {
        display: grid!important;
    }
}

.trust-indicators i {
    color: var(--accent-color);
}

/* Problem Section */
.section-header {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.card {
    background: var(--surface-raised);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid var(--surface-line);
}

.card:hover {
    transform: translateY(-4px);
    background: var(--surface-overlay);
    border-color: rgba(79, 216, 216, 0.35);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* Centralizada no card: o auto nas laterais faz a caixa de largura
       fixa se alinhar ao eixo do conteúdo. */
    margin: 0 auto 1.5rem;
    background-color: rgba(79, 216, 216, 0.1);
    border: 1px solid rgba(79, 216, 216, 0.25);
    color: var(--accent);
}

.icon-box.danger {
    background-color: rgba(255, 138, 138, 0.1);
    border-color: rgba(255, 138, 138, 0.3);
    color: var(--state-danger);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Consequences Section */
.danger-list {
    margin-top: 2rem;
}

.danger-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.danger-list i {
    color: var(--danger-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.danger-list strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.danger-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    /* inline-block não encolhe abaixo da palavra mais longa; sem o teto, vaza da coluna. */
    max-width: 100%;
}

.stat-card h3 {
    font-size: 5rem;
    color: var(--danger-color);
    line-height: 1;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

/*
   Título em frase, não em número ("Antes do vencimento"). Na fonte cheia a
   palavra mais longa não cabe na coluna abaixo de ~1220px; a fonte acompanha
   a tela e volta aos 5rem a partir daí.
*/
.stat-card-phrase h3 {
    font-size: clamp(2rem, 8.5vw - 1.5rem, 5rem);
}

.stat-card p {
    color: white;
    font-size: 1.25rem;
}

/* Hero que ocupa a tela inteira, para páginas sem header e sem rodapé. */
.hero-centered-screen {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* SIPAT: O que é */
.sipat-about {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: center;
}

.sipat-about-card {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(79, 216, 216, 0.16), transparent 60%),
        var(--surface-overlay);
    border: 1px solid var(--surface-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.sipat-about-title {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.1;
    color: var(--text-primary);
}

.sipat-about-title span {
    color: var(--accent);
}

.sipat-about-lead {
    position: relative;
    z-index: 1;
    max-width: 26rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sipat-about-card-icon {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    font-size: 9rem;
    color: var(--accent);
    opacity: 0.07;
    pointer-events: none;
}

.sipat-about-heading {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.sipat-about-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sipat-about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sipat-about-features li {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-line);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.sipat-about-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: rgba(79, 216, 216, 0.12);
    color: var(--accent);
}

@media (max-width: 991px) {
    .sipat-about {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 599px) {
    .sipat-about-card {
        padding: 2rem 1.5rem;
    }

    .sipat-about-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .sipat-about-features li {
        flex-direction: row;
        align-items: center;
    }
}

/* SIPAT: Consequências */
.sipat-problem {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: stretch;
}

.sipat-problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sipat-problem-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--surface-raised);
    border: 1px solid var(--surface-line);
    text-align: left;
}

.sipat-problem-list strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.sipat-problem-list p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sipat-problem-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 138, 138, 0.12);
    color: var(--state-danger);
    font-size: 1.2rem;
}

.sipat-problem-callout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 77, 0.14), transparent 60%),
        var(--surface-overlay);
    border: 1px solid var(--surface-line);
    border-left: 4px solid var(--state-warn);
    text-align: left;
}

.sipat-problem-equation {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.sipat-problem-equation span {
    color: var(--state-warn);
}

.sipat-problem-callout p:not(.sipat-problem-equation) {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sipat-problem-callout .btn {
    margin-top: 0.5rem;
}

/* SIPAT: Gestão baseada em dados */
.sipat-manager {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: center;
}

.sipat-manager-text h2 {
    margin: 1rem 0;
}

.sipat-manager-lead {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sipat-manager-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sipat-manager-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: var(--surface-raised);
    border: 1px solid var(--surface-line);
}

.sipat-manager-feature .sipat-about-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
}

.sipat-manager-feature h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.sipat-manager-feature p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sipat-manager-media {
    position: relative;
}

.sipat-manager-media::before {
    content: "";
    position: absolute;
    inset: 8% 6%;
    background: radial-gradient(closest-side, rgba(79, 216, 216, 0.28), transparent);
    filter: blur(40px);
    z-index: 0;
}

.sipat-manager-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
    border: 1px solid var(--surface-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
    .sipat-problem,
    .sipat-manager {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 599px) {
    .sipat-problem-list li,
    .sipat-manager-feature {
        padding: 1.25rem;
    }

    .sipat-problem-callout {
        padding: 2rem 1.5rem;
    }
}

/* Solution Section */
.tag {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Telas do produto: a proporção vem de width/height do HTML, sem recorte. */
.feature-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid var(--surface-line);
}

/*
   As imagens dos módulos possuem resolução alta e atributo width no HTML.
   Sem flex-basis: 0, o tamanho intrínseco pode alargar a primeira coluna e
   empurrar o conteúdo da segunda para fora do viewport.
*/
.page-modulo #solucao .row {
    gap: clamp(2rem, 4vw, 4rem);
}

.page-modulo #solucao .col-half {
    flex: 1 1 0;
    min-width: 0;
}

.page-modulo #solucao .feature-img {
    max-height: 560px;
}

/* Espaçamento entre itens de feature, exclusivo das LPs de módulo. */
.page-modulo .feature-item {
    margin-bottom: 2.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-item p {
    color: var(--text-light);
}

/* Benefits Section */
.benefit-box {
    text-align: center;
    padding: 2rem;
    background: var(--surface-raised);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
    transition: var(--transition);
}

.benefit-box:hover {
    background: var(--surface-overlay);
    border-color: rgba(79, 216, 216, 0.35);
    transform: translateY(-4px);
}

.benefit-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.benefit-box h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.benefit-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--white);
}

.step h4 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.step-line {
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--surface-line), rgba(79, 216, 216, 0.45));
    z-index: 1;
    display: none;
    /* Hidden on mobile, could be shown on larger screens with complex calc, simplifying for now */
}

@media (min-width: 768px) {
    .step-line {
        display: block;
        width: 75%;
        left: 12.5%;
    }
}

/* ICP Section */
.icp-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.icp-item {
    text-align: center;
    max-width: 200px;
}

.icp-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.icp-item:hover i {
    color: white;
}

/* Authority */
.authority-box {
    background-color: var(--surface-raised);
    border-left: 3px solid var(--accent);
    padding: 3rem;
    border-radius: 0 1rem 1rem 0;
}

.authority-content h3 {
    margin-bottom: 1rem;
}

.authority-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--surface-sunken) 0%, var(--surface-overlay) 100%);
    color: var(--text-secondary);
    padding: 6rem 0;
}

.cta-container h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.125rem;
}

.cta-form-wrapper {
    background: var(--surface-raised);
    padding: 1rem;
    border-radius: 1rem;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cta-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-family: var(--font-body);
    font-size: 1rem;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--surface-sunken);
    color: var(--text-muted);
    padding: 2rem 0;
    border-top: 1px solid var(--surface-line);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: white;
    font-weight: 700;
}

/* Colunas do rodapé (_FooterLanding). Em 2 colunas, cada lado empilha seus blocos
   para a linha não herdar a altura da lista de links. */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "brand links contact social";
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand   { grid-area: brand; }
.footer-links   { grid-area: links; }
.footer-contact { grid-area: contact; }
.footer-social  { grid-area: social; }

@media (max-width: 1099px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto 1fr;
        grid-template-areas:
            "brand   links"
            "contact links"
            "contact social";
        row-gap: 2.5rem;
    }
}

@media (max-width: 599px) {
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas: "brand" "links" "contact" "social";
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Hide nav links on mobile for simplicity in this MVP */
    .row {
        flex-direction: column;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }

    .col-half {
        width: 100%;
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .page-modulo #solucao .row {
        gap: 0;
    }

    .page-modulo #solucao .col-half {
        flex-basis: auto;
    }

    .page-modulo #solucao .feature-img {
        max-height: none;
    }

    .icp-grid {
        gap: 2rem;
    }

    .authority-box {
        padding: 1.5rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-line {
        display: none;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-card h3 {
        font-size: 3.5rem;
    }

    .stat-card-phrase h3 {
        font-size: clamp(2rem, 17vw - 1.25rem, 3.5rem);
    }
}

/* Utilities */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Split Hero Layout (for Landing Pages) */
.hero-content-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1.2;
    max-width: 650px;
    padding-right: 1rem;
    text-align: left;
}

.hero-form {
    flex: 1;
    max-width: 500px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-form h3 {
    text-align: left;
    color: #001f3f;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Mobile Responsive for Split Hero */
@media (max-width: 991px) {
    .hero-content-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
        padding-right: 0;
    }

    .hero-form {
        width: 100%;
        max-width: 100%;
    }

    .hero-form h3 {
        text-align: center;
    }
}

/* Pulse Animation */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.btn-pulse {
    animation: pulse-animation 2s infinite;

}

/* FAQ Styles */
details.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(57, 204, 204, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item[open] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(57, 204, 204, 0.6);
}

summary.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
    /* Light blue updated */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    list-style: none;
    /* Remove default arrow */
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '\F282';
    /* Bootstrap Icons 'chevron-down' */
    font-family: 'bootstrap-icons';
    font-size: 1.2rem;
    transition: transform 0.3s;
}

details[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Contact Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Changed from flex/visibility hidden to none */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    /* Activate flex when active */
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 2.5rem 2rem 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    /* É um botão: sem fundo nem borda do navegador. Cinza com 4.8 de contraste sobre o branco. */
    background: none;
    border: 0;
    padding: 0.25rem;
    color: #6b7280;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

/* End of landing.css */

/* Modal Form Styles */
.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content input[type="tel"],
.modal-content select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background: #f8fafc;
    transition: all 0.3s;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.modal-content input[type="submit"] {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    height: auto;
    font-size: 1rem;
}

.modal-content input[type="submit"]:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}
/* ============================================================
   4. Header, footer e hero das LPs — precedência final
   ============================================================ */
/* Fixed Header - Glassmorphism */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
    font-size: 1rem;
    display: block;
}

.header.scrolled .nav-link {
    color: #001f3f;
    text-shadow: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-indicators {
    display: inline-flex;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
        margin-left: auto;
        position: relative;
        z-index: 10002;
    }

    .header.scrolled .mobile-toggle {
        color: #001f3f;
    }

    .mobile-toggle .bi-x {
        color: #fff !important;
    }

    /* Force close icon white */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(2, 27, 53, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        /* Fechado, o menu fica encostado na borda direita com largura zero.
           Deslocá-lo com translateX(100%) estenderia a largura rolável do
           documento e criaria barra de rolagem horizontal na página toda. */
        left: auto;
        right: 0;
        width: 0;
        transition: width 0.3s ease, visibility 0.3s;
        z-index: 9998;
        overflow: hidden;
        padding: 8rem 0 2rem;
        visibility: hidden;
    }

    .nav-menu.active {
        width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
        overflow-y: auto;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        color: #fff !important;
        font-size: 0.95rem;
        padding: 0.75rem 0;
        white-space: normal;
    }

    /* Align Hero Buttons Side-by-Side */
    .hero-cta {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* Aligns with left-aligned hero text */
        gap: 0.8rem;
        /*flex-wrap: wrap;*/
        margin-top: 1.5rem;
    }

    .hero-cta .btn {
        width: auto !important;
        display: inline-flex !important;
        margin-bottom: 0 !important;
        flex: 0 1 auto;
    }
}

/* Adjust layout for fixed header */
/* O header fixo (~107px) cobre o topo do hero: o padding de cima soma essa
   altura para o respiro visível acima do conteúdo igualar o de baixo (5rem). */
.hero {
    padding-top: 11.75rem;
    padding-bottom: 5rem;
}

/* Split Hero Layout */
.hero-content {
    display: flex;
    align-items: flex-start; /* Align top to handle different heights better */
    justify-content: space-between;
    gap: 2rem; /* Reduced gap from 4rem */
    max-width: 1200px; /* Ensure container can go wide enough */
    margin: 0 auto;
}

.hero-text {
    flex: 1.2; /* Give text slightly more space */
    max-width: 650px; /* Increased from 600px */
    padding-right: 1rem;
}

.hero-form {
    flex: 1;
    max-width: 500px; /* Increased from 480px */
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
    /*min-height: 840px; !* Stabilize layout height *!*/
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero com formulário no mobile (home e LPs de produto). O header fixo tem
   107px, então 8.75rem deixa ~2rem de respiro acima do conteúdo; menos padding
   lateral e entre blocos traz o formulário para perto da dobra. O padding-right
   zerado desfaz o do .hero-text acima, que descentralizava o texto. O :has()
   deixa de fora os heroes centralizados (Planos, Privacidade, FISP). */
@media (max-width: 991px) {
    .hero:has(.hero-form) {
        padding-top: 8.75rem;
        padding-bottom: 3rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.75rem;
    }

    .hero-content:has(> .hero-form) {
        padding: 0 1.25rem;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 0;
    }

    .hero-text .badge { margin-bottom: 1rem; }
    .hero-text h1 { margin-bottom: 1rem; }

    .hero-text .subheadline {
        font-size: 1.05rem;
        margin: 0 auto 1.5rem;
    }

    .hero-text .hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .hero-text .hero-actions .btn { margin: 0; }
    .hero-text .trust-indicators { margin-top: 1.25rem; }

    .hero-form {
        width: 100%;
        max-width: 100%;
    }

    .hero .hero-form { padding: 1.5rem 1.25rem; }

    /* Adjust alignment of text inside form for mobile if needed */
    .hero-form h3 {
        text-align: center;
    }
}

/* Celular: os botões do hero não cabem lado a lado; empilhados em largura
   total viram alvos de toque maiores e alinhados com o formulário. */
@media (max-width: 479px) {
    .hero-content:has(> .hero-form) { padding: 0 1rem; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text .hero-actions .btn { flex: 1 1 100%; }
    .hero .hero-form { padding: 1.25rem 1rem; }
}

/*
   Celular estreito (abaixo de 360px). Os três indicadores numa linha só não
   cabem e empurram o hero para fora da tela; aqui eles quebram em linhas.
*/
@media (max-width: 359px) {
    .trust-indicators {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 1rem;
    }
}

/* CTA Pulse Animation */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@media (max-width: 530px) {
    .hero-actions .btn-outline {
        margin-top: 1rem;
        margin-right: 1rem;
    }
}

/* ICP Card Styling */
.icp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.icp-item {
    background: rgba(255, 255, 255, 0.05); /* Glass effect for dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem; /* Taller padding by default */
    transition: transform 0.3s ease, background 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: none;
}

.icp-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.icp-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.icp-item p {
    font-size: 1.1rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* Mobile Responsive for ICP Cards */
@media (max-width: 768px) {
    .icp-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0;
        margin: 2rem 0; /* Reset margins */
    }

    .icp-item {
        padding: 4rem 2rem;
        width: 100%; /* Force item to full width */
        box-sizing: border-box; /* Ensure padding doesn't overflow width */
    }

    .icp-item i {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .icp-item p {
        font-size: 1.25rem;
    }
}


/* ---------- Selo de roadmap ----------
   Marca recursos que ainda não estão disponíveis. Precisa ser legível
   sem depender só da cor, por isso traz o texto "Em breve" por extenso. */
.badge-roadmap {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    color: #ffd479;
    background: rgba(255, 190, 60, 0.12);
    border: 1px solid rgba(255, 190, 60, 0.45);
}

/* ---------- Seção "Para quem é" (ICP) ----------
   O título era um <h1> duplicado; virou <h2> pela semântica, e estas regras
   preservam o peso visual que ele tinha. */
.icp-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subheadline {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------- Bloco "Conecta com o Plano de Ação" ----------
   Aparece em todas as LPs de módulo, ligando o desvio detectado ali
   ao motor único de tratativa. */
.section.plano-acao-callout {
    /* Único bloco com tinta de acento: é o fio que liga este módulo ao
       motor de tratativa, e precisa se distinguir das faixas normais. */
    background-color: var(--surface-base);
    background-image:
        radial-gradient(120% 100% at 0% 0%, rgba(79, 216, 216, 0.09), transparent 60%);
    border-top: 1px solid rgba(79, 216, 216, 0.22);
    border-bottom: 1px solid rgba(79, 216, 216, 0.22);
}

.pac-box {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.pac-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 2rem;
    color: var(--accent);
    background: rgba(57, 204, 204, 0.1);
    border: 1px solid rgba(57, 204, 204, 0.3);
}

.pac-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pac-content h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: #fff;
}

.pac-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.pac-content strong { color: #fff; }

.pac-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.pac-link:hover { gap: 0.9rem; }

@media (max-width: 700px) {
    .pac-box { flex-direction: column; gap: 1.25rem; }
    .pac-content h2 { font-size: 1.5rem; }
}

/* ============================================================
   Página de planos
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hero-compact { padding-bottom: 3rem; }

.hero-centered {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-centered .subheadline { max-width: 680px; }

/* ---------- Cartões ---------- */
.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    align-items: stretch;
}

.plano-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.plano-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 204, 204, 0.35);
}

.plano-destaque {
    border-color: var(--accent);
    background: rgba(57, 204, 204, 0.06);
}

.plano-tag {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    background: var(--accent);
    color: #001f3f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plano-head { margin-bottom: 1.5rem; }

.plano-card h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plano-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    min-height: 3rem;
}

.plano-preco {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plano-valor {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.plano-consulte {
    font-size: 1.6rem;
    color: var(--accent);
}

.plano-periodo {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.plano-lista {
    flex-grow: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.plano-lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.plano-lista i {
    flex-shrink: 0;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.plano-heranca {
    color: #fff !important;
    font-weight: 600;
}

.plano-cta {
    width: 100%;
    justify-content: center;
}

.planos-nota {
    max-width: 640px;
    margin: 2.5rem auto 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

/* ---------- Tabela comparativa ---------- */
.tabela-wrap {
    overflow-x: auto;
    /* Sem max-width o wrapper cresce até caber a min-width da tabela e
       empurra a largura da página inteira em telas estreitas. */
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
}

.tabela-planos {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.tabela-planos th,
.tabela-planos td {
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tabela-planos thead th {
    position: sticky;
    top: 0;
    background: var(--bg-darker);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tabela-planos tbody th {
    color: var(--text-gray);
    font-weight: 500;
}

.tabela-planos td {
    color: var(--text-gray);
    text-align: center;
}

.tabela-planos tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.tabela-sim { color: var(--accent); }
.tabela-nao { color: rgba(255, 255, 255, 0.25); }

/* ---------- Formulário ---------- */
.planos-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.planos-form-texto h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.planos-form-texto p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.planos-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.planos-check li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    color: var(--text-gray);
}

.planos-check i { color: var(--accent); font-size: 0.85rem; }

@media (max-width: 900px) {
    .planos-form-wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Contenção horizontal ----------
   Elementos com largura intrínseca maior que a tela (tabelas, embeds,
   mídia) não devem empurrar a largura da página. */
img,
video,
iframe,
table,
pre {
    max-width: 100%;
}

iframe { border: 0; }

/* Palavras longas (URLs, e-mails) quebram em vez de esticar o bloco. */
h1, h2, h3, h4, h5, p, li, td, th, summary {
    overflow-wrap: break-word;
}

/* ============================================================
   Documentos longos (política de privacidade, termos)
   ============================================================ */
.doc {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-gray);
    line-height: 1.75;
}

.doc h2 {
    margin: 3rem 0 1rem;
    padding-top: 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.doc h2:first-child { margin-top: 0; }

.doc h3 {
    margin: 2rem 0 0.75rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.doc p { margin-bottom: 1rem; }

.doc ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.doc li { margin-bottom: 0.5rem; }

.doc strong { color: #fff; }

.doc a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc-meta {
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.doc-aviso,
.doc-nota {
    margin: 0 0 2.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: rgba(57, 204, 204, 0.06);
}

.doc-nota {
    margin: 3rem 0 0;
    border-left-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.doc-aviso p:last-child,
.doc-nota p:last-child { margin-bottom: 0; }


/* ---------- CTA do header ----------
   O .nav-link pinta os itens do menu de branco, o que também atingia o
   botão de ação. Sobre o teal, texto branco fica em 1.7 de contraste. */
.nav-menu .btn-primary,
.nav-menu .btn-primary:hover,
.nav-menu .btn-primary:focus {
    color: var(--accent-ink) !important;
}


/* ============================================================
   Ícones de estado e faixa de gravidade
   ------------------------------------------------------------
   O produto classifica todo desvio por gravidade, e o prazo sai
   dessa classificação. A faixa no topo do card usa o mesmo
   vocabulário: coral para o problema, teal para a solução.
   ============================================================ */
i.danger,
.icon-box.danger i {
    color: var(--state-danger);
    font-size: 1.75rem;
}

i.warn { color: var(--state-warn); }
i.ok { color: var(--state-ok); }

/* Cards de problema: filete superior coral */
.problem-card {
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--state-danger), transparent 85%);
}

/* Card de problema: ícone, título e texto no mesmo eixo central. */
.problem-card {
    text-align: center;
}

.problem-card > i {
    display: block;
    margin-bottom: 1rem;
}

/* Cards de benefício: filete teal, o lado da solução */
.benefit-box {
    position: relative;
    overflow: hidden;
}

.benefit-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 85%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-box:hover::before { opacity: 1; }


/* ============================================================
   Ritmo das seções
   ------------------------------------------------------------
   Duas faixas alternadas, com a emenda dissolvida: cada seção
   carrega um degradê curto no topo e na base que faz a cor
   encontrar a vizinha em vez de cortar. O nível afundado fica
   reservado aos momentos de pausa — consequência e chamada final.
   ============================================================ */
.section {
    position: relative;
    background-color: var(--surface-base);
}

.section.bg-light {
    background-color: var(--surface-raised);
}

.section.section-dark,
.section.bg-dark,
.cta-section {
    background-color: var(--surface-sunken);
    background-image: none;
}

/*
   Véu de transição. Fica sobre o fundo e abaixo do conteúdo, então
   não interfere em texto nem em cliques.
*/
.section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.16),
        rgba(0, 0, 0, 0) 100%
    );
}

/* A primeira seção depois do hero não precisa do véu: ali a emenda
   já é intencional, entre o hero transparente e a faixa seguinte. */
.hero + .section::after {
    display: none;
}

/* O conteúdo sobe acima do véu. */
.section > * {
    position: relative;
    z-index: 1;
}

/* ---------- CTA do header ----------
   O .nav-link pinta os itens do menu de branco, o que também atingia o
   botão de ação. Sobre o teal, texto branco fica em 1.7 de contraste. */
.nav-menu .btn-primary,
.nav-menu .btn-primary:hover,
.nav-menu .btn-primary:focus {
    color: var(--accent-ink) !important;
}


/* ============================================================
   Ícones de estado e faixa de gravidade
   ------------------------------------------------------------
   O produto classifica todo desvio por gravidade, e o prazo sai
   dessa classificação. A faixa no topo do card usa o mesmo
   vocabulário: coral para o problema, teal para a solução.
   ============================================================ */
i.danger,
.icon-box.danger i {
    color: var(--state-danger);
    font-size: 1.75rem;
}

i.warn { color: var(--state-warn); }
i.ok { color: var(--state-ok); }

/* Cards de problema: filete superior coral */
.problem-card {
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--state-danger), transparent 85%);
}

/* Card de problema: ícone, título e texto no mesmo eixo central. */
.problem-card {
    text-align: center;
}

.problem-card > i {
    display: block;
    margin-bottom: 1rem;
}

/* Cards de benefício: filete teal, o lado da solução */
.benefit-box {
    position: relative;
    overflow: hidden;
}

.benefit-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 85%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-box:hover::before { opacity: 1; }


/* ============================================================
   Ritmo das seções
   ------------------------------------------------------------
   A página alternava entre cinco fundos diferentes sem lógica.
   Agora são dois níveis que se alternam, e o nível afundado fica
   reservado aos dois momentos que pedem pausa: a consequência do
   problema e a chamada final.
   ============================================================ */
.section {
    background-color: var(--surface-base);
}

.section.bg-light {
    background-color: var(--surface-raised);
}

.section.section-dark,
.section.bg-dark,
.cta-section {
    background-color: var(--surface-sunken);
    background-image: none;
}

/* Fio de luz entre faixas de mesmo nível, para a emenda não sumir. */
.section + .section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* ---------- Halo de acento ----------
   Brilho suave para a seção de roadmap, sobre a faixa afundada. */
.section-halo {
    position: relative;
    overflow: hidden;
}

.section-halo::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 70% 50%,
        rgba(79, 216, 216, 0.12) 0%,
        transparent 60%
    );
}

/* ---------- Footer ----------
   Fecha a página no nível mais profundo, com a emenda dissolvida. */
footer {
    position: relative;
    background-color: var(--surface-sunken);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent);
}

footer > * {
    position: relative;
    z-index: 1;
}

/* ---------- Formulário de leads ----------
   Componente próprio, compacto e sem dependências visuais de terceiros. */
.lead-form {
    position: relative;
    text-align: left;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.lead-field {
    min-width: 0;
}

.lead-field-wide {
    grid-column: 1 / -1;
}

.lead-field label {
    display: block;
    margin-bottom: 0.42rem;
    color: #18324a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lead-field input {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.9rem;
    border: 1px solid #cbd5df;
    border-radius: 9px;
    background: #f8fafc;
    color: #102a43;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-field input::placeholder {
    color: #8191a2;
}

.lead-field input:focus {
    outline: none;
    border-color: #168f96;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 143, 150, 0.13);
}

.lead-field input.is-invalid {
    border-color: #c23b43;
    box-shadow: 0 0 0 3px rgba(194, 59, 67, 0.1);
}

.lead-field-error {
    display: block;
    min-height: 1.1rem;
    padding-top: 0.22rem;
    color: #a52f37;
    font-size: 0.75rem;
}

.lead-submit {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #087f85 0%, #16a3a8 100%);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(8, 127, 133, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.lead-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 127, 133, 0.3);
}

.lead-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.lead-privacy {
    margin: 0.8rem 0 0;
    color: #66788a;
    font-size: 0.74rem;
    line-height: 1.45;
    text-align: center;
}

.lead-privacy a {
    color: #087f85;
    font-weight: 700;
}

.lead-form-status {
    display: none;
    margin-top: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.lead-form-status.is-success,
.lead-form-status.is-error {
    display: block;
}

.lead-form-status.is-success {
    border: 1px solid #99d5ba;
    background: #eefaf4;
    color: #17603f;
}

.lead-form-status.is-error {
    border: 1px solid #efb6ba;
    background: #fff3f3;
    color: #8e2930;
}

.lead-form-status a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.lead-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    .lead-form-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .lead-field-wide {
        grid-column: auto;
    }
}
