/* =========================================================================
   FRETE PASS — Design System CSS
   Inspirado no design-system.html (Together AI): minimalista, branco,
   dark zones, mono labels, cards bordered, badges sutis, orbs gradientes.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Brand */
    --color-brand-magenta: #ef2cc1;
    --color-brand-orange: #fc4c02;
    --color-dark-blue: #010120;
    --color-soft-lavender: #bdbbff;
    --color-brand-green: #00A859;
    --color-brand-green-dark: #00723F;
    --color-black-40: #00000066;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', Consolas, monospace;

    /* Light tokens (default) */
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text-primary: #000000;
    --text-secondary: #00000066;
    --text-muted: #00000066;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(0, 0, 0, 0.08);
    --badge-bg: rgba(0, 0, 0, 0.04);
    --shadow-card: rgba(1, 1, 32, 0.1) 0px 4px 10px;

    /* Radius scale */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 40px;
    --space-10: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ============== NAV ============== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 40px;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.nav-left { display: flex; align-items: center; gap: 20px; justify-self: start; }
.nav-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.nav-brand .logo-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-orange));
}
.nav-brand img.logo-img { height: 32px; width: auto; }

.nav-links { display: flex; gap: 32px; align-items: center; justify-self: center; }
.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.16px;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

.nav-cta-wrapper { justify-self: end; }
.nav-cta {
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* User pill (logged-in) */
.nav-user {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    font-size: 14px;
}
.nav-user .pill-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-orange));
}
.nav-user a { text-decoration: none; color: var(--text-secondary); }

/* Mobile menu toggle */
.nav-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.nav-mobile-toggle span {
    display: block; width: 16px; height: 1px; background: var(--text-primary);
    position: relative;
}
.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
    content: ''; position: absolute; left: 0; width: 16px; height: 1px; background: var(--text-primary);
}
.nav-mobile-toggle span::before { top: -5px; }
.nav-mobile-toggle span::after { top: 5px; }

/* ============== HERO ============== */
.hero {
    position: relative;
    width: 100vw;
    height: 70vh;
    min-height: 480px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--color-dark-blue);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
/* Scrim lateral esquerdo — gradiente CLARO para garantir contraste ao texto escuro */
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.88) 28%,
        rgba(255, 255, 255, 0.62) 48%,
        rgba(255, 255, 255, 0.22) 62%,
        transparent 78%);
}
.hero__text {
    position: absolute !important;
    top: 50% !important;
    left: 64px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    max-width: 560px !important;
    z-index: 10 !important;
    text-align: left !important;
    padding: 32px !important;
    color: #0d1726;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(1, 1, 32, 0.18);
}
.hero__text .mono-label {
    color: #0d1726;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.hero__text h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin-bottom: 20px;
    color: #0d1726;
}
.hero__text h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--color-brand-green), var(--color-brand-green-dark));
    border-radius: 2px;
}
.hero__text p {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: -0.18px;
    color: #2c3a4e;
    margin: 0 0 32px;
    max-width: 100%;
}
.hero__text .hero-buttons { justify-content: flex-start; }
.hero__text .hero-buttons .btn-dark-solid {
    background: var(--color-brand-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 168, 89, 0.4);
}
.hero__text .hero-buttons .btn-dark-solid:hover { background: var(--color-brand-green-dark); }
.hero__text .hero-buttons .btn-outlined {
    color: #0d1726;
    border-color: #0d1726;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}
.hero__text .hero-buttons .btn-outlined:hover {
    background: rgba(13, 23, 38, 0.06);
    border-color: #0d1726;
}
.hero > * { position: relative; }
.hero h1 {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.10;
    letter-spacing: -1.92px;
    margin-bottom: 24px;
}
.hero p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.30;
    letter-spacing: -0.18px;
    margin: 0 auto 40px;
    max-width: 640px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============== MONO LABEL & SECTIONS ============== */
.mono-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}
.section-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.section-heading {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.8px;
    margin-bottom: 48px;
}
.section-headingSmall {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.22px;
    margin-bottom: 20px;
}
.section-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark zone section — research/CTA */
.section-dark {
    background: var(--color-dark-blue);
    color: var(--color-white);
}
.section-dark .section-title { color: var(--color-soft-lavender); }
.section-dark .section-heading,
.section-dark .section-headingSmall { color: var(--color-white); }
.section-dark p { color: rgba(255, 255, 255, 0.7); }
.section-dark .section { color: var(--color-white); }

/* ============== BUTTONS ============== */
.btn-dark-solid,
.btn-outlined,
.btn-brand-solid,
.btn-glass-dark {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-display);
    letter-spacing: -0.16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.1s;
    border: 1px solid transparent;
}
.btn-dark-solid {
    background: var(--color-dark-blue);
    color: var(--color-white);
    font-weight: 500;
}
.btn-outlined {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 400;
}
.btn-brand-solid {
    background: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-orange));
    color: var(--color-white);
    font-weight: 500;
}
.btn-glass-dark {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.section-dark .btn-outlined { color: var(--color-white); border-color: rgba(255, 255, 255, 0.2); }
.btn-dark-solid:hover, .btn-outlined:hover, .btn-brand-solid:hover, .btn-glass-dark:hover { opacity: 0.85; }
.btn-dark-solid:active, .btn-outlined:active, .btn-brand-solid:active, .btn-glass-dark:active { transform: translateY(1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.6); border-top-color: transparent;
    border-radius: 50%; animation: fp-spin 0.7s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* ============== BADGE ============== */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--badge-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}
.badge-brand {
    background: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-orange));
    color: var(--color-white);
    border: none;
}
.badge-dark {
    background: var(--color-dark-blue);
    color: var(--color-white);
    border: none;
}
.badge-success { background: rgba(40, 167, 69, 0.1); color: #155724; border-color: rgba(40, 167, 69, 0.3); }
.badge-warning { background: rgba(255, 193, 7, 0.1); color: #856404; border-color: rgba(255, 193, 7, 0.3); }
.badge-danger  { background: rgba(220, 53, 69, 0.1);  color: #721c24; border-color: rgba(220, 53, 69, 0.3); }
.badge-info    { background: rgba(189, 187, 255, 0.15); color: var(--color-dark-blue); border-color: rgba(189, 187, 255, 0.5); }
.section-dark .badge { background: rgba(255, 255, 255, 0.08); color: var(--color-white); border-color: rgba(255, 255, 255, 0.15); }

/* ============== CARDS ============== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
}
.card-bordered { border: 1px solid var(--border-color); }
.card-elevated { border: 1px solid var(--border-color); box-shadow: var(--shadow-card); }
.card-stat {
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
}
.card h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.22px;
    margin-bottom: 12px;
}
.card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.16px;
}
.card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.card-stat .stat-number {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.10;
    letter-spacing: -1.92px;
    margin-bottom: 8px;
}
.card-stat .stat-caption {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.40;
}
.section-dark .card,
.section-dark .card-bordered,
.section-dark .card-elevated,
.section-dark .card-stat {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}
.section-dark .card h3 { color: var(--color-white); }
.section-dark .card p { color: rgba(255, 255, 255, 0.6); }
.section-dark .card-label { color: rgba(255, 255, 255, 0.5); }
.section-dark .card-stat { color: var(--color-white); }
.section-dark .card-stat .stat-caption { color: rgba(255, 255, 255, 0.6); }

/* ============== TABLES ============== */
.table-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
}
table.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
table.ds-table thead th {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--text-secondary);
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    white-space: nowrap;
}
table.ds-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}
table.ds-table tbody tr:last-child td { border-bottom: none; }
table.ds-table tbody tr:hover td { background: rgba(239, 44, 193, 0.03); }
table.ds-table .td-actions { display: inline-flex; gap: 10px; align-items: center; }
table.ds-table .td-actions a {
    font-size: 13px; text-decoration: none; color: var(--text-secondary);
    padding: 4px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-color);
    transition: opacity 0.2s;
}
table.ds-table .td-actions a:hover { opacity: 0.7; background: var(--glass-bg); }

/* ============== FORMS ============== */
.ds-form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--text-secondary);
}
.field input,
.field select,
.field textarea {
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-display);
    letter-spacing: -0.16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-soft-lavender);
    box-shadow: 0 0 0 3px rgba(189, 187, 255, 0.25);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-help { font-size: 12px; color: var(--text-muted); }
.section-dark .field input,
.section-dark .field select,
.section-dark .field textarea {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
}
.section-dark .field input::placeholder,
.section-dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.section-dark .field label { color: rgba(255, 255, 255, 0.5); }

.form-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 24px;
}

form .errorlist,
.field .errorlist {
    list-style: none;
    color: #c01030;
    font-family: var(--font-mono);
    font-size: 12px;
    margin-top: 6px;
}

/* ============== AUTH PAGES ============== */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--color-dark-blue);
    position: relative;
    overflow: hidden;
}
.auth-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(239, 44, 193, 0.10) 0%,
        rgba(189, 187, 255, 0.12) 35%,
        rgba(1, 1, 32, 0) 100%);
    pointer-events: none;
}
.auth-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-card);
}
.auth-card .auth-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.28px;
    margin-bottom: 4px;
}
.auth-card .auth-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .field { gap: 6px; }
.auth-form button { margin-top: 8px; }
.auth-link { margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-link a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ============== FOOTER ============== */
.footer {
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 64px 40px 30px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand img.logo-img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.5; }
.footer h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    margin-bottom: 16px;
    color: var(--color-soft-lavender);
    font-weight: 500;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}
.footer ul li a:hover { opacity: 0.7; }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============== MESSAGES ============== */
.fp-messages { max-width: 1200px; margin: 24px auto 0; padding: 0 40px; }
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid transparent;
    font-size: 14px;
}
.alert-info { background: rgba(189, 187, 255, 0.15); color: var(--color-dark-blue); border-color: rgba(189, 187, 255, 0.4); }
.alert-success { background: rgba(40, 167, 69, 0.08); color: #155724; border-color: rgba(40, 167, 69, 0.25); }
.alert-warning { background: rgba(255, 193, 7, 0.08); color: #856404; border-color: rgba(255, 193, 7, 0.25); }
.alert-danger { background: rgba(220, 53, 69, 0.08); color: #721c24; border-color: rgba(220, 53, 69, 0.25); }

/* ============== TOOLBAR / FILTERS ============== */
.toolbar {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
    margin-bottom: 24px;
}
.toolbar .search-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-size: 15px;
    min-width: 240px; flex: 1 1 240px;
    font-family: var(--font-display);
}
.toolbar select { padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-card); font-size: 15px; font-family: var(--font-display); }
.toolbar .spacer { flex: 1; }

/* ============== PAGINATION ============== */
.pagination {
    display: flex; gap: 12px; align-items: center;
    margin-top: 32px;
    font-size: 14px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
}
.pagination .current { background: var(--color-dark-blue); color: var(--color-white); border-color: var(--color-dark-blue); }

/* ============== EMPTY STATE ============== */
.empty-state {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    text-align: center;
    color: var(--text-secondary);
}
.empty-state h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* ============== FAQ ============== */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
}
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.18px;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border-color); }
.faq-item p { padding: 20px 24px; color: var(--text-secondary); }

/* ============== DEPOIMENTOS ============== */
.testimonial {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    background: var(--bg-card);
}
.testimonial .role-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.055px;
    color: var(--color-brand-magenta);
    margin-bottom: 4px;
}
.testimonial blockquote {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.testimonial cite { font-size: 14px; color: var(--text-secondary); font-style: normal; }

/* ============== CTA / CONTATO ============== */
.cta-box {
    background: var(--color-dark-blue);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(239, 44, 193, 0.12) 0%,
        rgba(189, 187, 255, 0.08) 40%,
        transparent 80%);
    pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { font-size: 36px; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.72px; }
.cta-box p { color: rgba(255, 255, 255, 0.7); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 16px;
    width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.contact-form select option { color: #000; }
.contact-form button { margin-top: 8px; }

/* ============== DASHBOARD ============== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ============== CHAT IA ============== */
.chat-wrap { max-width: 800px; }
.chat-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    padding: 20px;
}
.chat-log {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    padding: 8px;
    margin-bottom: 16px;
}
.chat-bubble {
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    max-width: 90%;
    line-height: 1.5;
    font-size: 15px;
    white-space: pre-wrap;
}
.chat-bubble--user {
    background: rgba(189, 187, 255, 0.25);
    margin-left: auto;
    border: 1px solid rgba(189, 187, 255, 0.4);
}
.chat-bubble--ai {
    background: rgba(239, 44, 193, 0.06);
    border: 1px solid rgba(239, 44, 193, 0.15);
}
.chat-form {
    display: flex; gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.chat-form input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px; font-family: var(--font-display);
}

/* ============== NOTIFICATION TOAST ============== */
#notification-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: var(--color-dark-blue);
    color: var(--color-white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    max-width: 360px;
    display: none;
}
#notification-toast strong#notify-title { display: block; margin-bottom: 4px; }
#notification-toast span#notify-body { font-size: 14px; opacity: 0.8; }

/* ============== HELPERS ============== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.muted { color: var(--text-secondary); }
.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.ml-auto { margin-left: auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ============== HERO CAROUSEL ============== */
.hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}
.hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}
.hero-carousel__slide.is-active { opacity: 1; }
.hero-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-carousel__dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.hero-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.hero-carousel__dot.is-active {
    background: linear-gradient(135deg, var(--color-brand-magenta), var(--color-brand-orange));
    transform: scale(1.25);
}
.hero-hero__carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.85) 100%);
    pointer-events: none;
}

/* ============== WHATSAPP FLOATING BUTTON ============== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    box-shadow: rgba(37, 211, 102, 0.4) 0px 6px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: rgba(37, 211, 102, 0.5) 0px 8px 24px;
}
.whatsapp-fab:active { transform: translateY(0) scale(1); }
.whatsapp-fab svg { width: 28px; height: 28px; display: block; }
.whatsapp-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.55;
    z-index: -1;
    animation: fp-wa-pulse 2.4s ease-out infinite;
}
@keyframes fp-wa-pulse {
    0%   { transform: scale(1);    opacity: 0.55; }
    70%  { transform: scale(1.6);   opacity: 0;    }
    100% { transform: scale(1.6);   opacity: 0;    }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .nav { padding: 12px 20px; grid-template-columns: auto 1fr; }
    .nav-links { display: none; }
    .nav-cta-wrapper { grid-column: 2; justify-self: end; }
    .hero { height: 60vh; min-height: 360px; padding: 0; }
    .hero-scrim { background: linear-gradient(180deg,
        rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 50%, rgba(255,255,255,0.65) 100%); }
    .hero__text { top: 50% !important; left: 16px !important; right: 16px !important; max-width: none !important; padding: 24px !important; }
    .hero__text h1 { font-size: 30px; letter-spacing: -1px; }
    .hero__text p { font-size: 15px; margin-left: 0; margin-right: 0; max-width: 100%; }
    .hero__text .hero-buttons { flex-wrap: wrap; }
    .hero-carousel__dots { bottom: 10px; }
    .section { padding: 60px 20px; }
    .section-heading { font-size: 28px; letter-spacing: -0.42px; }
    .card-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .contact-form { grid-template-columns: 1fr; }
    .cta-box { padding: 48px 24px; }
    .cta-box h2 { font-size: 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-mobile-toggle { display: inline-flex; }
    .whatsapp-fab { width: 50px; height: 50px; bottom: 18px; right: 18px; }
    .whatsapp-fab svg { width: 24px; height: 24px; }
}