/* ============================================================
   Flow Landing Page — Design System & Styles
   ============================================================ */

/* --- Design Tokens (replicados do web-app para independencia) --- */
:root {
    --primary: #5a5981;
    --primary-dark: #3f3e5d;
    --primary-light: #e8e7f2;
    --text-main: #3f3e5d;
    --text-muted: #797c9b;
    --text-title: #5a5981;
    --bg-body: #f6f6f6;
    --bg-card: #ffffff;
    --white: #ffffff;
    --input-border: #e0e0e0;
    --nav-bg: #ffffff;
    --feedback-success-bg: #dff3e7;
    --feedback-success-border: #9bd0b3;
    --feedback-success-text: #1f6a3f;
    --feedback-error-bg: #fbe4e6;
    --feedback-error-border: #efb0b7;
    --feedback-error-text: #9b2531;
}

.dark-mode {
    --bg-body: #3d415e;
    --bg-card: #2c2f48;
    --primary-light: #3f3e5d;
    --text-main: #f6f6f6;
    --text-muted: #a0a3bd;
    --text-title: #f6f6f6;
    --input-border: #5a5981;
    --nav-bg: #2c2f48;
    --feedback-success-bg: #284b36;
    --feedback-success-border: #4f906b;
    --feedback-success-text: #d9f2e5;
    --feedback-error-bg: #5a232b;
    --feedback-error-border: #b05562;
    --feedback-error-text: #ffd8dd;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 89, 129, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-inverted {
    background-color: var(--white);
    color: var(--primary);
}

.btn-inverted:hover {
    background-color: #f0eff8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* --- Section Base --- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-card);
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-title);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* --- Fade-in Animation --- */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Definição canônica (GEO: bloco extraível "o que é o Flow") --- */
.definition {
    padding: 3.5rem 0;
    background-color: var(--bg-body);
}

.definition-inner {
    max-width: 820px;
}

.definition-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 1rem;
}

.definition-lead {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.definition-facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem 2rem;
}

.definition-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.98rem;
    color: var(--text-main);
}

.definition-facts i {
    color: var(--primary);
    margin-top: 0.2rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.dark-mode .definition-facts i {
    color: var(--white);
}

@media (max-width: 768px) {
    .definition-facts {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.dark-mode .navbar {
    background: rgba(44, 47, 72, 0.88);
}

.navbar.scrolled {
    border-bottom-color: var(--input-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    height: 44px;
    line-height: 0;
}

.navbar-logo img {
    height: 100%;
    width: auto;
}

/* Theme-aware logo swap — claro em light mode, escuro em dark mode */
.logo-claro-only { display: block; }
.logo-escuro-only { display: none; }
.dark-mode .logo-claro-only { display: none; }
.dark-mode .logo-escuro-only { display: block; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--primary);
}

.dark-mode .navbar-links a:hover {
    color: var(--white);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.navbar-cta {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    z-index: 99;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--input-border);
}

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
    padding: 5rem 0 4rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.dark-mode .hero-badge {
    color: var(--white);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title-line { display: block; }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* F1 — linha de garantias honestas do trial sob os CTAs do hero */
.hero-trial-perks {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.hero-trial-perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-trial-perks li i {
    color: var(--feedback-success-text);
    font-size: 0.85rem;
}

/* Hero Visual — CSS-only illustration */
.hero-visual {
    position: relative;
    height: 460px;
}

.hero-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(90, 89, 129, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.dark-mode .hero-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dark-mode .hero-card-icon {
    color: var(--white);
}

.hero-card-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-title);
    margin-bottom: 0.15rem;
}

.hero-card-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-card-1 {
    top: 5%;
    left: 0;
    z-index: 3;
}

.hero-card-2 {
    top: 30%;
    left: 12%;
    z-index: 2;
}

.hero-card-3 {
    top: 55%;
    left: 4%;
    z-index: 1;
}

.hero-card-4 {
    top: 78%;
    left: 20%;
    z-index: 4;
}

/* Decorative circle */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
    z-index: 0;
    opacity: 0.6;
}

.dark-mode .hero-visual::before {
    background: linear-gradient(135deg, rgba(90, 89, 129, 0.2) 0%, transparent 70%);
}

/* ============================================================
   3. TRUST BAR
   ============================================================ */
.trust-bar {
    padding: 3rem 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--input-border);
    border-bottom: 1px solid var(--input-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-grid.trust-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dark-mode .trust-icon {
    color: var(--white);
}

.trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.trust-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Clickable trust item (abre painel de módulos) */
.trust-item-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background-color 0.2s, transform 0.2s;
}

.trust-item-toggle:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.trust-item-toggle .trust-chevron {
    font-size: 0.7rem;
    margin-left: 0.35rem;
    transition: transform 0.25s;
}

.trust-item-toggle[aria-expanded="true"] .trust-chevron {
    transform: rotate(180deg);
}

/* Painel expansível com lista de módulos */
.modules-panel {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--input-border);
    animation: modulesFadeIn 0.35s ease-out;
}

@keyframes modulesFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.module-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--bg-body);
    font-size: 0.92rem;
    color: var(--text-main);
}

.module-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dark-mode .module-item i {
    color: var(--white);
}

/* ============================================================
   4. PROBLEM → SOLUTION
   ============================================================ */
.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ps-column-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ps-column-title.problem {
    color: var(--feedback-error-text);
}

.ps-column-title.solution {
    color: var(--feedback-success-text);
}

.ps-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: transform 0.2s;
}

.ps-item:hover {
    transform: translateX(4px);
}

.ps-item.problem {
    background: var(--feedback-error-bg);
    border-left: 3px solid var(--feedback-error-border);
}

.ps-item.solution {
    background: var(--feedback-success-bg);
    border-left: 3px solid var(--feedback-success-border);
}

.ps-item i {
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ps-item.problem i {
    color: var(--feedback-error-text);
}

.ps-item.solution i {
    color: var(--feedback-success-text);
}

.ps-item-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================================
   5. FEATURES
   ============================================================ */
.features-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Faixa "Novidades" — cards com destaque visual */
.features-highlight-grid .feature-card-highlight {
    position: relative;
    border: 1px solid var(--primary-light);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-card) 45%);
}

.dark-mode .features-highlight-grid .feature-card-highlight {
    background: linear-gradient(180deg, rgba(90, 89, 129, 0.35) 0%, var(--bg-card) 55%);
    border-color: rgba(90, 89, 129, 0.5);
}

.feature-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    line-height: 1;
}

/* Variante para destaques que não são mais "Novo" */
.feature-badge-alt {
    background: var(--text-muted);
}

.dark-mode .feature-badge-alt {
    background: var(--primary-light); /* #3f3e5d no escuro — garante contraste do texto branco */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 89, 129, 0.12);
    border-color: var(--primary-light);
}

.dark-mode .feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.dark-mode .feature-icon {
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   5b. TELAS DO SISTEMA (galeria com abas)
   ============================================================ */
.screens-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.screens-tab {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--input-border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.screens-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dark-mode .screens-tab:hover {
    color: var(--white);
}

.screens-tab[aria-selected="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.screens-panel:focus {
    outline: none;
}

/* Moldura de browser em CSS puro */
.screens-frame {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: 0 12px 40px rgba(90, 89, 129, 0.14);
    overflow: hidden;
}

.dark-mode .screens-frame {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.screens-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--input-border);
    background: var(--bg-body);
}

.screens-frame-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--input-border);
}

.screens-frame img {
    width: 100%;
    height: auto;
}

/* Swap claro/escuro com especificidade acima de `.screens-frame img` —
   sem isso o display:block genérico vencia o display:none do tema. */
.screens-frame img.logo-claro-only {
    display: block;
}

.screens-frame img.logo-escuro-only {
    display: none;
}

.dark-mode .screens-frame img.logo-claro-only {
    display: none;
}

.dark-mode .screens-frame img.logo-escuro-only {
    display: block;
}

.screens-frame figcaption {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--input-border);
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
}

/* Moldura de celular (capturas mobile) */
.screens-frame--phone {
    max-width: 330px;
    border-radius: 30px;
    border-width: 2px;
}

.screens-frame-notch {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0 0.35rem;
    background: var(--bg-body);
}

.screens-frame-notch::after {
    content: "";
    width: 90px;
    height: 8px;
    border-radius: 999px;
    background: var(--input-border);
}

/* Carrossel de capturas dentro de cada aba (anterior/próxima) */
.screens-slide[hidden] {
    display: none;
}

.screens-slide-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.screens-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--input-border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.screens-slide-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dark-mode .screens-slide-btn:hover {
    color: var(--white);
}

.screens-slide-count {
    min-width: 56px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   6. MULTIUNIDADE / REDES
   ============================================================ */
.section-title--left {
    text-align: left;
}

.section-subtitle--left {
    text-align: left;
    margin-left: 0;
}

.multiunit-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.multiunit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.multiunit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.multiunit-list i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dark-mode .multiunit-list i {
    color: var(--white);
}

/* Mockup CSS reutilizando .hero-card */
.multiunit-visual {
    position: relative;
    height: 380px;
}

.multiunit-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
    z-index: 0;
    opacity: 0.6;
}

.dark-mode .multiunit-visual::before {
    background: linear-gradient(135deg, rgba(90, 89, 129, 0.2) 0%, transparent 70%);
}

.multiunit-card-1 {
    top: 8%;
    left: 6%;
    z-index: 2;
}

.multiunit-card-2 {
    top: 38%;
    left: 22%;
    z-index: 3;
}

.multiunit-card-3 {
    top: 68%;
    left: 8%;
    z-index: 4;
}

/* ============================================================
   6b. PROVA SOCIAL
   ============================================================ */
.social-proof {
    padding: 3rem 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--input-border);
    border-bottom: 1px solid var(--input-border);
}

.social-proof-quote {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

.social-proof-quote i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.dark-mode .social-proof-quote i {
    color: var(--white);
}

/* ============================================================
   7. PILLARS
   ============================================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pillar-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s, box-shadow 0.25s;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 89, 129, 0.1);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.2rem;
}

.dark-mode .pillar-icon {
    color: var(--white);
}

.pillar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   7. CTA FINAL
   ============================================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.35rem;
    text-align: left;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-field textarea {
    resize: vertical;
    min-height: 84px;
}

.form-field select option {
    color: var(--text-main);
    background: var(--bg-card);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
}

.form-field--full {
    grid-column: 1 / -1;
}

/* Honeypot: fora da viewport (não usar display:none — bots detectam) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 600px;
    margin: 0 auto 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.consent-field input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.1rem;
    cursor: pointer;
}

.contact-form-message {
    max-width: 600px;
    margin: 0 auto 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    background: var(--feedback-error-bg);
    color: var(--feedback-error-text);
    border: 1px solid var(--feedback-error-border);
}

/* F3a — instrução "confira seu e-mail" após o submit do trial */
.contact-trial-success {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    text-align: center;
    background: var(--feedback-success-bg);
    color: var(--feedback-success-text);
    border: 1px solid var(--feedback-success-border);
}

.contact-trial-success[hidden] {
    display: none;
}

.contact-trial-success-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.contact-trial-success h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.contact-trial-success p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.contact-trial-success-hint {
    font-size: 0.85rem;
    opacity: 0.85;
}

.contact-form-message[hidden] {
    display: none;
}

/* ===== Pricing pública (PLAN-06) ===== */
.pricing-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.pricing-status {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 30px rgba(90, 89, 129, 0.08);
}

.pricing-card--featured {
    border-color: var(--primary);
    box-shadow: 0 12px 38px rgba(90, 89, 129, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.75rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.pricing-card-name {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--text-title);
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--text-main);
}

.pricing-card-price strong {
    font-size: 2rem;
    color: var(--text-title);
}

.pricing-card-per {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-card-annual {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-card-desc {
    margin: 1rem 0 1.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.pricing-card-cta {
    margin-top: auto;
    justify-content: center;
    text-align: center;
}

.pricing-addons {
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.pricing-addons-title {
    font-size: 1.05rem;
    color: var(--text-title);
    margin: 0 0 1rem;
    text-align: center;
}

.pricing-addons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.pricing-addon {
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.pricing-addon-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.pricing-addon-name {
    font-weight: 600;
    color: var(--text-main);
}

.pricing-addon-price {
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
}

.pricing-addon-desc {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 2rem auto 0;
    max-width: 600px;
}

/* Fallback de preço sem JS (GEO-02): visível só quando o grid interativo não
   roda (crawler / navegador sem JS). Estilo enxuto e legível. */
.pricing-noscript-list {
    list-style: none;
    max-width: 640px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-noscript-list li {
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
}

.pricing-noscript-addons,
.pricing-noscript-trial {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 640px;
    margin: 1rem auto 0;
}

/* --- Para quem é o Flow (GEO: critério de fit extraível) --- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 1.75rem;
}

.audience-card-title {
    font-size: 1.1rem;
    color: var(--text-title);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.audience-card-title i {
    color: var(--primary);
}

.dark-mode .audience-card-title i {
    color: var(--white);
}

.audience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.audience-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-main);
    font-size: 0.97rem;
    line-height: 1.5;
}

.audience-list li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.8rem;
    color: var(--primary);
}

.dark-mode .audience-list li::before {
    color: var(--white);
}

@media (max-width: 768px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FAQ / Dúvidas (GEO: pares Q&A extraíveis, <details>/<summary>) --- */
.faq-section {
    background: var(--bg-card);
}

.faq-inner {
    max-width: 820px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--bg-body);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    list-style: none;
}

/* Remove o marcador nativo do <summary> (seta padrão) em todos os navegadores */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.dark-mode .faq-question::after {
    color: var(--text-main);
}

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

.faq-question:hover {
    color: var(--primary);
}

.dark-mode .faq-question:hover {
    color: var(--white);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 12px;
}

.faq-answer {
    padding: 0 1.35rem 1.2rem;
    color: var(--text-main);
    line-height: 1.65;
}

.faq-answer p {
    font-size: 0.97rem;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 0.98rem;
        padding: 1rem 1.1rem;
    }

    .faq-answer {
        padding: 0 1.1rem 1.1rem;
    }
}

.contact-submit {
    min-width: 180px;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 300px;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.contact-divider span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.btn-inverted-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-inverted-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Toast */
.landing-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.landing-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.landing-toast.success {
    background: var(--feedback-success-bg);
    color: var(--feedback-success-text);
    border: 1px solid var(--feedback-success-border);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer {
    padding: 3rem 0 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--input-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 56px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid var(--input-border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 360px;
        order: -1;
    }

    .hero-card-1 { top: 0; left: 0; }
    .hero-card-2 { top: 25%; left: 25%; }
    .hero-card-3 { top: 50%; left: 5%; }
    .hero-card-4 { top: 75%; left: 22%; }

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

    .multiunit-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .multiunit-visual {
        height: 320px;
        order: -1;
    }

    .multiunit-card-1 { top: 5%; left: 5%; }
    .multiunit-card-2 { top: 35%; left: 28%; }
    .multiunit-card-3 { top: 65%; left: 10%; }

    .trust-grid.trust-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 2rem;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .navbar-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar-logo {
        height: 36px;
    }

    .footer-logo {
        height: 48px;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero-visual {
        height: 340px;
    }

    .hero-card {
        padding: 1rem;
    }

    /* Largura previsível: sem isto o card faz shrink-wrap na largura restante
       (limitada pelo left), o texto quebra demais, o card cresce e invade o de
       baixo. `max(68%, 220px)` mantém ~243px no viewport ~390px (visual folgado)
       e garante ≥220px em telas de 320px, onde 68% (196px) estreitava a ponto de
       o próprio TÍTULO ("Flow Prontuário/Financeiro") quebrar em 2 linhas e o
       card de baixo ficar parcialmente coberto. Escopado à .hero-visual para não
       afetar os cards do multiunit. */
    .hero-visual .hero-card {
        width: max(68%, 220px);
    }

    /* left + largura sempre < 100% da hero-visual (checado em 320px, onde a
       largura trava em 220px: 22% de 288 = 63px, 63+220 = 283 < 288) →
       sem overflow horizontal */
    .hero-card-1 { top: 0; left: 0; }
    .hero-card-2 { top: 27%; left: 22%; }
    .hero-card-3 { top: 53%; left: 2%; }
    .hero-card-4 { top: 79%; left: 22%; }

    .hero-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-card-text strong {
        font-size: 0.85rem;
    }

    .hero-card-text span {
        font-size: 0.75rem;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .trust-grid.trust-grid-5 {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.5rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .multiunit-visual {
        height: 300px;
    }

    .multiunit-visual .hero-card {
        padding: 1rem;
    }

    /* Tabs viram trilho com scroll horizontal no mobile */
    .screens-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .screens-tabs::-webkit-scrollbar {
        display: none;
    }

    .screens-tab {
        flex-shrink: 0;
    }

    .social-proof {
        padding: 2.5rem 0;
    }

    .social-proof-quote {
        font-size: 1rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

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

    .pillars-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .pillar-card {
        padding: 1.5rem 1rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .multiunit-content .btn-large {
        width: 100%;
    }

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

    .trust-grid.trust-grid-5 {
        grid-template-columns: 1fr;
    }

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

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

/* ============================================================
   Página legal (Política de Privacidade — LEGAL-16)
   ============================================================ */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.legal-page h1 {
    color: var(--text-title);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--text-title);
    font-size: 1.3rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
}

.dark-mode .legal-page a {
    color: var(--text-main);
}

.legal-note {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.legal-note p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1.25rem 3rem;
    }

    .legal-page h1 {
        font-size: 1.6rem;
    }
}

/* ========== Blog / artigos editoriais (GF2-A) ==========
   Régua de prosa própria do blog, espelhando a .legal-page (mesma largura de
   leitura e hierarquia), mas com nome semântico e h3/lead p/ artigos.
   Só usa variáveis de tema — funciona em claro e escuro, sem cor hardcoded. */
.article-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-page h1 {
    color: var(--text-title);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.article-lead {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.article-page h2 {
    color: var(--text-title);
    font-size: 1.4rem;
    margin: 2.5rem 0 0.75rem;
}

.article-page h3 {
    color: var(--text-title);
    font-size: 1.1rem;
    margin: 1.75rem 0 0.5rem;
}

.article-page p,
.article-page li {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 0.9rem;
}

.article-page ul {
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
}

.article-page a {
    color: var(--primary);
    text-decoration: underline;
}

.dark-mode .article-page a {
    color: var(--text-main);
}

/* Bloco de CTA ao fim do artigo — reusa .legal-note (fundo suave temático) */
.article-cta {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .article-page {
        padding: 6rem 1.25rem 3rem;
    }

    .article-page h1 {
        font-size: 1.6rem;
    }
}
