:root {
    --bg: #f2f6ff;
    --text: #111827;
    --primary: #0f4cdb;
    --primary-hover: #0b3db3;
    --accent: #15a2ff;
    --surface: #ffffff;
    --dark: #0a1a44;
    --muted: #5b6780;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background:
        radial-gradient(circle at 85% 10%, rgba(21, 162, 255, 0.12), transparent 35%),
        radial-gradient(circle at 15% 25%, rgba(15, 76, 219, 0.1), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Montserrat para chamadas de ações */
.menu a,
.login-link,
.signup-link,
#cta-button,
.ghost-link,
.plano-cta,
.cta-link {
    font-family: "Montserrat", sans-serif;
}

.container {
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #dbe4ff;
    backdrop-filter: blur(8px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-footer {
    border-top: 1px solid #dbe4ff;
    border-bottom: 0;
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

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

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

.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p, .legal-content li {
    color: var(--muted);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0.9rem 0;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.logo-mark {
    display: block;
    width: auto;
    height: 34px;
}

.header-content nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.auth-actions {
    margin-left: auto;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.login-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    border: 1px solid #c9d8ff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-link:hover,
.login-link:focus-visible {
    background: #eaf1ff;
    border-color: #9bb7ff;
}

.signup-link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    border: 1px solid #048ba3;
    background: #048ba3;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.signup-link:hover,
.signup-link:focus-visible {
    background: #037a8f;
    border-color: #037a8f;
}

.menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--dark);
    color: var(--dark);
}

.hero {
    margin-top: 0;
    padding: 2.5rem 0;
    background:
        linear-gradient(rgba(10, 26, 68, 0.78), rgba(10, 26, 68, 0.78)),
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
    color: #fff;
    border-radius: 0;
    box-shadow: 0 22px 42px rgba(15, 76, 219, 0.24);
    min-height: calc(100vh - 74px);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    justify-items: stretch;
    min-height: calc(100vh - 74px);
    padding-top: clamp(2rem, 8vh, 5rem);
    padding-bottom: clamp(1.5rem, 6vh, 4rem);
}

.hero::after {
    content: "";
    position: absolute;
    inset: -30% auto auto 65%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 162, 255, 0.35) 0%, rgba(21, 162, 255, 0) 70%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    margin: 0 0 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #e0edff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    text-align: left;
}

.hero-description {
    color: #d6e4ff;
    max-width: 52ch;
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.hero-copy {
    max-width: 620px;
    align-self: start;
    margin-top: clamp(0.5rem, 3vh, 2rem);
}

.hero_copy_direita {
    align-self: stretch;
    margin-top: 0;
    width: 100%;
    height: auto;
    min-height: 530px;
    position: relative;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider for Hero Right Content */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 530px;
    max-height: min(100%, 640px);
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* iPhone Pro Max Mockup */
.iphone-mockup {
    position: relative;
    width: auto;
    height: min(100%, 640px);
    aspect-ratio: 260 / 530;
    margin: 0 auto;
}

.iphone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 3.5rem;
    padding: 12px;
    box-shadow: 
        0 0 0 2px #333,
        0 0 0 5px #111,
        0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 2.8rem;
    overflow: hidden;
    z-index: 1;
}

.iphone-dynamic-island {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 1rem;
    z-index: 10;
}

.iphone-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -2px;
    width: 2px;
    height: 40px;
    background: #333;
    border-radius: 2px 0 0 2px;
}

.iphone-frame::after {
    content: "";
    position: absolute;
    top: 25%;
    right: -2px;
    width: 2px;
    height: 60px;
    background: #333;
    border-radius: 0 2px 2px 0;
}

/* Mockup Container Redesign */
.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-window {
    width: 100%;
    height: 520px;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.4);
}

.dashboard-sidebar {
    width: 60px;
    background: #f8faff;
    border-right: 1px solid #edf2f7;
    padding: 1.2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
}

.sidebar-item {
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: #edf2f7;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-item:hover {
    background: #e2e8f0;
}

.sidebar-item.active {
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(15, 76, 219, 0.3);
}

.dashboard-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: hidden;
    display: none; /* Escondido por padrão */
    animation: fadeInView 0.5s ease-out;
}

.dashboard-main.view-active {
    display: flex;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp Chat View Styles */
.db-chat-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.5rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    position: relative;
    line-height: 1.4;
}

.chat-bubble.received {
    align-self: flex-start;
    background: #f0f2f5;
    color: var(--dark);
    border-bottom-left-radius: 0.2rem;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: #dcf8c6;
    color: var(--dark);
    border-bottom-right-radius: 0.2rem;
}

.chat-bubble.status {
    align-self: center;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.chat-time {
    display: block;
    font-size: 0.6rem;
    margin-top: 0.3rem;
    opacity: 0.6;
    text-align: right;
}

/* Notifications View Styles */
.db-notifications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.8rem;
    border-left: 4px solid transparent;
}

.db-alert.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.db-alert.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-content strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
}

.alert-content p {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Tax Regime View Styles */
.db-tax-info {
    padding: 0.5rem;
}

.tax-card {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
}

.tax-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.tax-card h4 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.tax-card p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.tax-limit {
    margin-top: 1rem;
}

.limit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.limit-bar {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.limit-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.db-title span {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
}

.db-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.db-balance {
    text-align: right;
}

.db-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.db-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

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

.db-card {
    background: #fff;
    border: 1px solid #f0f4f8;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.db-chart-card {
    grid-column: 1 / -1;
}

.db-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.db-card-header h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dark);
}

.db-trend {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
}

.db-trend.up {
    background: #ecfdf5;
    color: #10b981;
}

.db-chart-container {
    height: 120px;
    width: 100%;
}

.db-svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.db-chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawChart 2s ease-out forwards;
}

@keyframes drawChart {
    to { stroke-dashoffset: 0; }
}

.db-chart-area {
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.db-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-mini {
    flex: 1;
}

.db-mini-val {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.db-mini-val strong {
    font-size: 1.1rem;
}

.db-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: #f0f7ff;
    color: var(--primary);
    border-radius: 0.3rem;
    font-weight: 700;
}

.db-badge.pending {
    background: #fff7ed;
    color: #f59e0b;
}

.db-recent h4 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

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

.db-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.db-item-icon.green { background: #dcfce7; color: #166534; }
.db-item-icon.blue { background: #dbeafe; color: #1e40af; }

.db-item-info span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.db-item-info small {
    font-size: 0.65rem;
    color: var(--muted);
}

/* Floating Elements */
.db-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 3;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    border: 1px solid rgba(255,255,255,0.5);
}

.db-float-card.card-a {
    top: -20px;
    right: -30px;
    animation: float 4s ease-in-out infinite;
}

.db-float-card.card-b {
    bottom: -15px;
    left: -30px;
    animation: float 4s ease-in-out infinite reverse;
}

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

@media (max-width: 600px) {
    .dashboard-window {
        height: 520px;
    }
    .db-grid {
        grid-template-columns: 1fr;
    }
    .db-float-card {
        display: none;
    }
}

.hero-dashboard {
    background: rgba(6, 18, 56, 0.45);
    border: 1px solid rgba(180, 206, 255, 0.35);
    border-radius: 0.9rem;
    padding: 0.9rem;
    box-shadow: 0 16px 28px rgba(4, 13, 38, 0.35);
    max-width: 360px;
    width: 100%;
}

.hero-dashboard h2 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    color: #dce9ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-stack {
    display: grid;
    gap: 0.5rem;
}

.stack-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.legend-item {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.legend-item.credito {
    color: #5cf4b1;
}

.legend-item.debito {
    color: #ff8d8d;
}

.stack-bar {
    display: flex;
    width: 100%;
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(188, 211, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.stack-segment {
    display: block;
    height: 100%;
}

.stack-segment.credito {
    background: linear-gradient(90deg, #1dcf93, #33e9aa);
}

.stack-segment.debito {
    background: linear-gradient(90deg, #f04d5e, #ff6a6a);
}

.stack-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.stack-values strong {
    font-size: 0.84rem;
}

.value-credito {
    color: #87f8c9;
}

.value-debito {
    color: #ff9fa7;
}

.dashboard-metrics {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.dashboard-metrics article {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(188, 211, 255, 0.25);
    border-radius: 0.65rem;
    padding: 0.6rem;
}

.dashboard-metrics span {
    display: block;
    color: #cfe2ff;
    font-size: 0.74rem;
    margin-bottom: 0.2rem;
}

.dashboard-metrics strong {
    color: #fff;
    font-size: 1.02rem;
}

.ai-highlight {
    margin-top: 1.25rem;
    padding: 1.3rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #ffffff, #f3f8ff);
    border: 1px solid #dbe4ff;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.ai-kicker {
    margin: 0 0 0.45rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ai-highlight h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.ai-highlight p {
    margin: 0;
    color: var(--muted);
}

.ai-pillars {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.ai-pillars li {
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid #d5e4ff;
    background: #fff;
    color: #16316e;
    font-weight: 600;
}

.hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#cta-button {
    margin-top: 0;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

#cta-button:hover {
    background: var(--primary-hover);
}

.ghost-link {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.7rem;
    padding: 1.2rem;
    backdrop-filter: blur(2px);
}

/* Clients Section */
.clients-section {
    background: #fff;
    padding: 2.5rem 0;
    border-bottom: 1px solid #dbe4ff;
    position: relative;
}

.clients-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 2rem, 1100px);
    height: 1px;
    background: linear-gradient(to right, transparent, #dbe4ff, transparent);
}

.clients-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.clients-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.clients-list {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    animation: scroll-clients 30s linear infinite;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.client-logo {
    font-size: 1.5rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.client-item:hover .client-logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 0;
    }
    .clients-track {
        gap: 2.5rem;
        animation-duration: 20s;
    }
    .client-item {
        font-size: 0.95rem;
    }
    .client-logo {
        font-size: 1.2rem;
    }
}

.hero-panel h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.hero-panel ul {
    margin: 0;
    padding-left: 1.2rem;
}

.hero-panel li {
    margin-bottom: 0.6rem;
    color: #e7f0ff;
}


/* Plans Section */
.class_planos {
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid #dbe4ff;
    position: relative;
}

.class_planos::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #dbe4ff, transparent);
}

.planos-header {
    text-align: center;
    margin-bottom: 3rem;
}

.planos-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.planos-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.plano-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plano-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 76, 219, 0.1);
    border-color: var(--primary);
}

.plano-card.featured {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    transform: scale(1.05);
    z-index: 2;
}

.plano-card.featured:hover {
    box-shadow: 0 25px 50px rgba(10, 26, 68, 0.3);
}

.plano-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    border-radius: 999px;
}

.featured .plano-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.plano-card h3 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
}

.plano-price {
    margin-bottom: 2rem;
}

.plano-price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    vertical-align: top;
}

.plano-price .amount {
    font-size: 3rem;
    font-weight: 800;
}

.plano-price .period {
    color: var(--muted);
    font-size: 0.9rem;
}

.featured .plano-price .period {
    color: #cbd5e1;
}

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

.plano-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.plano-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.featured .plano-features li::before {
    color: #4ade80;
}

.plano-cta {
    display: block;
    text-align: center;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.plano-cta:hover {
    background: var(--primary-hover);
}

.featured .plano-cta {
    background: #fff;
    color: var(--dark);
}

.featured .plano-cta:hover {
    background: #f1f5f9;
}

@media (max-width: 900px) {
    .plano-card.featured {
        transform: none;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.benefits-section {
    padding: 6rem 0;
    position: relative;
    isolation: isolate;
}

.benefits-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(21, 162, 255, 0.18), transparent 42%),
        radial-gradient(circle at 86% 12%, rgba(15, 76, 219, 0.2), transparent 40%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #d8e5ff;
    box-shadow: 0 18px 36px rgba(10, 26, 68, 0.08);
    z-index: -1;
}

.benefits-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 1.75rem;
}

.benefits-header .badge {
    background: rgba(15, 76, 219, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.benefits-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark);
    margin: 1rem 0;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.benefits-header p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    text-wrap: pretty;
}

.card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9));
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    border: 1px solid #dbe6ff;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.4;
}

.card-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 30px -10px rgba(15, 76, 219, 0.3), 0 12px 12px -8px rgba(10, 26, 68, 0.15);
    border-color: var(--primary);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Specific Card Styles with Color accents */
.card-mei {
    border-bottom: 4px solid #0f4cdb;
}
.card-mei .card-icon-wrapper { background: #eef2ff; color: #0f4cdb; }

.card-simples {
    border-bottom: 4px solid #15a2ff;
}
.card-simples .card-icon-wrapper { background: #e0f2fe; color: #15a2ff; }

.card-whatsapp {
    border-bottom: 4px solid #10b981;
}
.card-whatsapp .card-icon-wrapper { background: #ecfdf5; color: #10b981; }

.card-automacao {
    border-bottom: 4px solid #6366f1;
}
.card-automacao .card-icon-wrapper { background: #eef2ff; color: #6366f1; }


.card-performance {
    border-bottom: 4px solid #8b5cf6;
}
.card-performance .card-icon-wrapper { background: #f5f3ff; color: #8b5cf6; }

.card-certificado {
    border-bottom: 4px solid #f43f5e;
}
.card-certificado .card-icon-wrapper { background: #fff1f2; color: #f43f5e; }

/* Subtle Background Patterns on hover */
.card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.05;
}

.card-content, .card-icon-wrapper {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    .benefits-section {
        padding: 4rem 0;
    }
}

.how-it-works {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    border: 1px solid #dbe4ff;
}

.how-it-works ol {
    color: var(--muted);
}

.how-it-works h2,
.cta-banner h2 {
    margin-top: 0;
}

.cta-banner {
    margin: 1.5rem 0 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0a1a44, #153579);
    color: #fff;
}

.cta-link {
    display: inline-block;
    margin-top: 0.75rem;
    text-decoration: none;
    background: #fff;
    color: #0a1a44;
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
}

.cta-link:hover {
    background: #dbe4ff;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 1.8rem 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.25rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

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

    .hero h1 {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-dashboard {
        width: min(100%, 460px);
    }

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

    .ai-highlight {
        grid-template-columns: 1fr;
    }

    .hero_copy_direita {
        width: 100%;
        height: auto;
        max-width: 527px;
        aspect-ratio: 527 / 352.24;
        transform: scale(0.85); /* Slightly scale down for small screens */
    }

    .chart-card {
        width: 180px;
        height: 130px;
    }

    .metric-card {
        width: 130px;
        left: 10%;
    }

    .next-send {
        width: 150px;
        right: 10%;
    }

    .notification-float {
        padding: 0.4rem 0.6rem;
        transform: scale(0.8);
    }

    .header-content {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-content nav {
        position: static;
        transform: none;
    }

    .auth-actions {
        margin-left: 0;
    }

    .menu {
        flex-wrap: wrap;
    }
}
/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
    width: 120px;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 80px;
    }
}
