/* ==========================================================================
   Calcularte + Shopee Landing Page
   Standalone CSS — unified design system with Shopee brand accents
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
}

a {
    color: #198B86;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0e625e;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #1fa59f, #198B86);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 139, 134, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #198B86, #0e625e);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 139, 134, 0.4);
}

.btn-primary.btn-large {
    font-size: 1.25rem;
    padding: 18px 48px;
}

.btn-secondary {
    display: inline-block;
    color: #198B86;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 24px;
    border: 2px solid #198B86;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(25, 139, 134, 0.08);
    color: #198B86;
}

/* ---------- Header ---------- */
.landing-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
}

.nav-link:hover {
    color: #198B86;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, #fff5f0 0%, #ffeee6 40%, #fff 100%);
    padding: 80px 0 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.highlight-shopee {
    color: #EE4D2D;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero Cards Carousel */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cards-carousel {
    display: grid;
    width: 100%;
}

.hero-card {
    grid-area: 1 / 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(238, 77, 45, 0.15);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.card-header {
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #EE4D2D;
}

.card-body {
    padding: 20px 24px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #555;
}

.card-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.card-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

.card-row.highlight {
    background: #fff5f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0 0;
}

.card-row.highlight .card-value {
    color: #EE4D2D;
    font-size: 1.1rem;
}

.card-warning {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #8D6E00;
    line-height: 1.4;
}

/* ---------- Taxas Table Section ---------- */
.taxas-section {
    padding: 80px 0;
    background: #fff;
}

.taxas-section h2,
.info-section h2,
.como-funciona h2,
.diferencial-section h2,
.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* Styled Taxas Table */
.taxas-table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
}

.taxas-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.taxas-table thead th {
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    color: #fff;
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.taxas-table tbody tr {
    transition: background-color 0.2s;
}

.taxas-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.taxas-table tbody tr:hover {
    background: #fff5f0;
}

.taxas-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.taxas-table td:first-child {
    font-weight: 600;
}

/* Faixa badges */
.faixa-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    margin-right: 6px;
}

.faixa-badge.faixa-1 { background: #E53935; }
.faixa-badge.faixa-2 { background: #EE4D2D; }
.faixa-badge.faixa-3 { background: #198B86; }
.faixa-badge.faixa-4 { background: #198B86; }
.faixa-badge.faixa-5 { background: #198B86; }

.taxa-bold {
    font-weight: 700;
    color: #1a1a1a;
}

/* Note boxes */
.note-box {
    background: #FFF8E1;
    border-left: 4px solid #FFB300;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #5D4037;
    line-height: 1.6;
}

.note-box strong {
    color: #E65100;
}

/* Frontier / zona desfavorável alert */
.frontier-alert {
    background: linear-gradient(135deg, #FFF3E0, #FFF8E1);
    border: 1px solid #FFB74D;
    border-left: 5px solid #EE4D2D;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.frontier-alert strong {
    color: #EE4D2D;
}

.frontier-alert .alert-icon {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* ---------- Info Section (O que saber) ---------- */
.info-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #eee;
    border-left: 5px solid #198B86;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1.05rem;
    color: #198B86;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ---------- Como Funciona ---------- */
.como-funciona {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff5f0 0%, #fff 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
    padding: 0 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EE4D2D, #FF6633);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(238, 77, 45, 0.25);
}

.step h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ---------- Diferenciais ---------- */
.diferencial-section {
    padding: 80px 0;
    background: #fff;
}

.diferencial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.diferencial {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.diferencial:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.diferencial-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diferencial h3 {
    font-size: 1rem;
    color: #EE4D2D;
    margin-bottom: 6px;
}

.diferencial p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ---------- CTA Final ---------- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(160deg, #EE4D2D, #FF6633);
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-section .btn-primary {
    background: #fff;
    color: #EE4D2D;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    background: #fff5f0;
    color: #CC3300;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.link-help, .link-blog {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-help:hover, .link-blog:hover {
    color: #fff;
}

.cta-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Footer ---------- */
.landing-footer {
    padding: 24px 0;
    background: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
}

.landing-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #888;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ccc;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    /* Info cards: stacked */
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Steps: stacked vertically */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .step {
        padding: 32px 16px;
        border-bottom: 1px solid #e0e0e0;
    }

    .step:last-child {
        border-bottom: none;
    }

    .step-number {
        margin-bottom: 16px;
    }

    /* Diferenciais: stacked */
    .diferencial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .diferencial {
        flex-wrap: wrap;
        padding: 16px;
        gap: 0;
    }

    .diferencial-icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        margin-right: 10px;
    }

    .diferencial > div:last-child {
        flex: 1;
    }

    .diferencial h3 {
        margin-bottom: 0;
        line-height: 36px;
    }

    .diferencial p {
        flex-basis: 100%;
        margin-top: 8px;
    }

    .container {
        padding: 0 16px;
    }

    .landing-footer .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-nav {
        gap: 16px;
    }

    .cta-links {
        flex-direction: column;
        gap: 8px;
    }

    .cta-separator {
        display: none;
    }

    .btn-primary.btn-large {
        font-size: 1.1rem;
        padding: 16px 32px;
    }

    .taxas-section,
    .info-section,
    .como-funciona,
    .diferencial-section,
    .cta-section {
        padding: 48px 0;
    }

    /* Table: scroll on small screens */
    .taxas-table {
        min-width: 500px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .diferencial {
        padding: 14px;
        gap: 10px;
    }

    .diferencial-icon {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
