/**
 * Mega Oficina — Landpage de vendas
 * assets/css/landpage.css
 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #38bdf8;
    --text-color: #334155;
    --bg-light: #f1f5f9;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius-pill: 50px;
    --shadow-cta: 0 8px 20px rgba(37, 99, 235, 0.35);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.display-4, .display-5, .display-6 {
    font-family: var(--font-display);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.periodo-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ——— Navbar ——— */
.navbar-custom {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .navbar-brand img { max-height: 48px; }
}

.nav-link-custom {
    font-size: 1rem;
    font-weight: 700 !important;
    transition: color 0.25s ease;
}

.nav-link-custom:hover {
    color: var(--primary-color) !important;
}

.btn-nav-entrar {
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #e2e8f0;
    color: var(--secondary-color);
    background: #fff;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-nav-entrar:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
}

/* ——— Hero ——— */
.hero-section {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.35), transparent 55%),
        linear-gradient(145deg, #020617 0%, #0f172a 45%, #1e293b 100%);
    color: #fff;
    padding: 130px 0 90px;
    position: relative;
    overflow: hidden;
}

.brand-hero {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.brand-hero span {
    background: linear-gradient(90deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
    color: #cbd5e1;
    max-width: 34rem;
}

.segment-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #e0f2fe;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ——— Buttons ——— */
.btn-custom {
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-cta);
    color: #fff;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-hero {
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ——— Product mock ——— */
.product-mock {
    background: #0b1220;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: mockIn 0.8s ease-out;
}

@keyframes mockIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.mock-topbar {
    background: #111827;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mock-body {
    display: flex;
    min-height: 320px;
}

.mock-side {
    width: 72px;
    background: #020617;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mock-side i {
    color: #64748b;
    font-size: 1.1rem;
}

.mock-side i.active {
    color: var(--accent-color);
}

.mock-main {
    flex: 1;
    padding: 18px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    min-width: 0;
}

.mock-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.82rem;
    color: #cbd5e1;
}

.mock-row:last-child {
    border-bottom: none;
}

.mock-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .mock-body { min-height: 260px; }
    .mock-side { width: 56px; }
}

/* ——— Features / steps ——— */
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 28px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.plano-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.plano-tag-pro { background: #dbeafe; color: #1d4ed8; }
.plano-tag-ultra { background: #fef3c7; color: #b45309; }
.plano-tag-todos { background: #ecfdf5; color: #047857; }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.2rem;
}

/* ——— Pricing ——— */
.card-plano {
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #fff;
}

.card-plano:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.plano-destaque {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    position: relative;
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #fff;
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.periodo-switch {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid #e2e8f0;
}

.periodo-btn {
    border: none;
    background: transparent;
    border-radius: 40px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.periodo-btn:hover {
    color: var(--primary-color);
    background: #eff6ff;
}

.periodo-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.periodo-btn .eco-badge {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    margin-top: 2px;
}

.periodo-btn.active .eco-badge {
    color: #fef08a;
}

.preco-riscado {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}

.economia-chip {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

.total-periodo {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    min-height: 1.3em;
}

.preco-valor {
    font-weight: 800;
}

/* ——— Compare table ——— */
.compare-table {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.compare-table thead th {
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.compare-table thead th:first-child {
    text-align: left;
}

.compare-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.compare-check {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
}

.compare-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626 !important;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
}

.compare-x .bi {
    color: #dc2626 !important;
    font-size: inherit;
}

/* ——— FAQ ——— */
.accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #bfdbfe;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    border-radius: 12px !important;
    overflow: hidden;
}

/* ——— WhatsApp float ——— */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease;
    text-decoration: none;
    animation: pulseZap 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}

@keyframes pulseZap {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7); }
}

.trust-badges i {
    color: #fbbf24;
    font-size: 1.1rem;
}

/* ——— Loading ——— */
#grid-planos .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}
