/* Definição das Cores e Fontes como Variáveis CSS (Matching Home) */
:root {
    --bg: #111827;
    --card-bg: #1F2937;
    --border: #374151;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #94a3b8;
    --accent-primary: #7C3AED;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --gold: #F59E0B;
    --gold-hover: #D97706;

    --font-poppins: 'Poppins', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-poppins);
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-outfit);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1400px;
    /* Consistent with other pages */
    margin: 0 auto;
    padding: 0 60px;
    /* Standard Side Spacing */
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.section-padding {
    padding: 60px 0;
}

/* BRANDED SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #7C3AED;
    border-radius: 4px;
    border: 2px solid #111827;
}

::-webkit-scrollbar-thumb:hover {
    background: #6D28D9;
}

/* HERO SECTION */
.hero {
    padding: 140px 0 60px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Premium Gradient Glow */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, var(--accent-primary) 0%, rgba(17, 24, 39, 0) 70%);
    opacity: 0.25;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero>.container {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BILLING TOGGLE (Pill Style) */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.billing-toggle {
    background: rgba(31, 41, 55, 0.6);
    /* Glassy default */
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    position: relative;
    backdrop-filter: blur(8px);
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-poppins);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    font-weight: 600;
}

.badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34D399;
    /* Brighter green for dark mode */
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.toggle-btn.active .badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* PRICING GRID */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly narrower minmax */
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    /* Constraint grid width for "smaller cards" feel */
    margin: 0 auto;
}

/* GLASSMORPHIC CARDS */
.pricing-card {
    background: rgba(30, 41, 59, 0.4);
    /* Glass baselayer */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 20px;
    padding: 24px;
    /* Reduced padding (was 32px) */
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-8px);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Recommended Highlight */
.pricing-card.recommended {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.3);
    background: rgba(30, 41, 59, 0.5);
}

.pricing-card.recommended:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-primary);
}

.recommended-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 12px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.card-header {
    margin-bottom: 20px;
}

/* Icons */
.icon-wrapper {
    width: 40px;
    /* Smaller icon wrapper */
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-wrapper .material-icons {
    font-size: 20px;
}

/* Smaller icon */

.color-gray {
    background: rgba(156, 163, 175, 0.1);
    color: #9CA3AF;
    border: 1px solid rgba(156, 163, 175, 0.1);
}

.color-primary {
    background: rgba(124, 58, 237, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.color-gold {
    background: rgba(245, 158, 11, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-header h3 {
    font-size: 20px;
    /* Smaller heading */
    font-weight: 600;
    margin-bottom: 4px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Price */
.price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.currency {
    font-size: 16px;
    font-weight: 500;
    margin-right: 2px;
    color: var(--text-secondary);
}

.amount {
    font-size: 32px;
    /* Smaller price font */
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.period {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-left: 4px;
}

.billing-info {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    height: 16px;
    font-weight: 500;
}

/* Action Buttons */
.btn-action {
    display: block;
    width: 100%;
    padding: 10px;
    /* Reduced padding */
    border-radius: 50px;
    /* Pill Shape */
    text-align: center;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-gray {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-gray:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    color: #111827;
    font-weight: 700;
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}

/* Features List */
.features-list h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 600;
}

.features-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Tighter gap */
}

.features-list li {
    display: flex;
    align-items: center;
    /* Center alignment */
    font-size: 13px;
    /* Smaller text */
    color: var(--text-secondary);
    line-height: 1.4;
}

.features-list li::before {
    content: "check_circle";
    font-family: 'Material Icons';
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

/* Check Colors */
.features-list #list-free li::before {
    color: #4B5563;
}

.features-list #list-plus li::before {
    color: #A78BFA;
}

.features-list #list-premium li::before {
    color: #FBBF24;
}

/* Skeleton */
.skeleton {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 80%;
}

.skeleton::before {
    content: none !important;
}

/* COMPARISON TABLE */
.comparison {
    padding-top: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-toggle-compare {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--font-poppins);
}

.btn-toggle-compare:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    color: white;
}

.btn-toggle-compare .material-icons {
    transition: transform 0.3s;
    font-size: 18px;
}

.btn-toggle-compare.open .material-icons {
    transform: rotate(180deg);
}

.comparison-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
    margin-top: 40px;
}

.comparison-wrapper.open {
    opacity: 1;
    max-height: 2000px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-outfit);
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.check-icon {
    color: #10B981;
    font-size: 20px;
    vertical-align: middle;
}

.dash-icon {
    color: #374151;
    font-size: 20px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 32px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
        font-size: 12px;
    }

    .comparison-table th {
        font-size: 13px;
    }

    .col-feature {
        width: 35%;
    }
}