/* Business Registration Page Styles */

:root {
    /* Cores do Flutter App - Padronização */
    --gradient-start: #f8fafc;
    --gradient-end: #e2e8f0;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body.business-register-page {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

/* Garantir espaço para header fixo em todas as seções */
body.business-register-page section,
body.business-register-page div[id*="section"],
body.business-register-page div[id*="sistema"],
body.business-register-page div[id*="agenda"] {
    scroll-margin-top: 100px;
}

/* Padding superior para primeira seção visível */
body.business-register-page section:first-of-type,
body.business-register-page > div:first-of-type,
body.business-register-page #hero-section section,
body.business-register-page #hero-section > section:first-child {
    padding-top: 50px !important;
    margin-top: 0 !important;
}

/* Espaçamento lateral para todas as seções */
body.business-register-page section {
    padding-left: 3rem;
    padding-right: 3rem;
    scroll-margin-top: 100px;
}

body.business-register-page .container {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 4rem;
    margin-top: 60px; /* Espaço entre o header e o conteúdo */
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-metrics {
    margin-top: 3rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.feature-block {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
}

.feature-mockup {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 4rem;
    background: white;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Sobrescrever estilos do pricing-grid para garantir layout correto */
.pricing-section .pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 2rem;
    width: 100%;
}

.pricing-section .pricing-left-column {
    width: 100% !important;
    min-width: 0;
    flex: 1;
}

.pricing-section .pricing-left-column * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Telas médias - reduzir card de preço */
@media (max-width: 1024px) {
    .pricing-section .pricing-grid {
        grid-template-columns: 1fr 320px !important;
        gap: 1.5rem;
    }
}

/* Telas menores - coluna única */
@media (max-width: 900px) {
    .pricing-section .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-features i {
    color: #10b981;
    font-size: 1.125rem;
}

.pricing-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.pricing-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pricing-btn.secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.pricing-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    body.business-register-page section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    body.business-register-page .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-section {
        margin-top: 60px;
    }

    body.business-register-page section:first-of-type,
    body.business-register-page > div:first-of-type,
    body.business-register-page #hero-section section {
        padding-top: 50px !important;
    }
}

@media (max-width: 768px) {
    body.business-register-page section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    body.business-register-page .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Ajustar scroll-margin para telas menores */
    body.business-register-page section,
    body.business-register-page div[id*="section"],
    body.business-register-page div[id*="sistema"],
    body.business-register-page div[id*="agenda"] {
        scroll-margin-top: 80px;
    }

    body.business-register-page section:first-of-type,
    body.business-register-page > div:first-of-type,
    body.business-register-page #hero-section section {
        padding-top: 50px !important;
    }

    .hero-section {
        padding: 3rem 2rem;
        margin-top: 60px;
    }

    .features-section {
        padding: 4rem 2rem;
    }

    .pricing-section {
        padding: 4rem 2rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-metrics {
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .feature-block {
        padding: 2rem;
    }

    .feature-header {
        flex-direction: column;
        text-align: center;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body.business-register-page section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.business-register-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Ajustar scroll-margin para mobile */
    body.business-register-page section,
    body.business-register-page div[id*="section"],
    body.business-register-page div[id*="sistema"],
    body.business-register-page div[id*="agenda"] {
        scroll-margin-top: 70px;
    }

    body.business-register-page section:first-of-type,
    body.business-register-page > div:first-of-type,
    body.business-register-page #hero-section section {
        padding-top: 50px !important;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
        margin-top: 50px;
    }

    .features-section {
        padding: 3rem 1.5rem;
    }

    .pricing-section {
        padding: 3rem 1.5rem;
    }
}
