/* RD Cloud — Custom design tokens & utilities (works alongside Tailwind Play CDN) */
:root {
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --primary-blue: #0b4dba;
    --primary-blue-hover: #083e96;
    --accent-cyan: #0e7490;
    --accent-cyan-hover: #155e75;
    --accent-orange: #ea580c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0b1220;
    background: #f8fafc;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-x {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .container-x {
        padding: 0 1.5rem;
    }
}

/* Section padding */
.section-pad {
    padding: 3.5rem 0;
}
@media (min-width: 768px) {
    .section-pad {
        padding: 5rem 0;
    }
}
@media (min-width: 1024px) {
    .section-pad {
        padding: 6rem 0;
    }
}

/* Eyebrow */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1d4ed8;
}

/* Hero gradient + speedlines */
.hero-wash {
    background:
        radial-gradient(900px 420px at 15% 10%, rgba(11, 77, 186, 0.12) 0%, rgba(11, 77, 186, 0) 60%),
        radial-gradient(700px 360px at 85% 25%, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0) 55%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.speedline {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: rgba(11, 77, 186, 0.18);
    filter: blur(0.2px);
    animation: speedline 2.6s linear infinite;
}
.speedline.orange {
    background: rgba(8, 145, 178, 0.22);
}
@keyframes speedline {
    0% {
        transform: translateX(-12%);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(18%);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .speedline {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Subtle noise overlay */
.noise::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* Trust logos */
.trust-logo {
    filter: grayscale(1);
    opacity: 0.65;
    transition:
        filter 200ms ease,
        opacity 200ms ease;
}
.trust-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Card hover */
.card-hoverable {
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}
.card-hoverable:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(2, 6, 23, 0.08);
}

.pricing-popular {
    box-shadow: 0 18px 50px rgba(8, 145, 178, 0.18);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 100ms ease;
}
.btn:active {
    transform: scale(0.98);
}
.btn-lg {
    padding: 0.85rem 1.35rem;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.25);
}
.btn-primary:hover {
    background: var(--accent-cyan-hover);
}
.btn-secondary {
    background: var(--primary-blue);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--primary-blue-hover);
}
.btn-outline {
    background: #fff;
    color: #1e3a8a;
    border-color: #c7d7f7;
}
.btn-outline:hover {
    background: #eff6ff;
    color: #1e3a8a;
}
.btn-ghost {
    background: transparent;
    color: #334155;
}
.btn-ghost:hover {
    color: #1d4ed8;
    background: #f1f5f9;
}
.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.04);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 0.5rem;
    background: var(--primary-blue);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}
.mobile-menu.is-open {
    display: block;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 1rem;
    padding: 0 1.25rem;
    transition: box-shadow 200ms ease;
}
.accordion-item.is-open {
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}
.accordion-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-size: 1rem;
}
.accordion-trigger .chev {
    transition: transform 200ms ease;
}
.accordion-item.is-open .accordion-trigger .chev {
    transform: rotate(180deg);
}
.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 250ms ease;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}
.accordion-item.is-open .accordion-content {
    max-height: 600px;
    padding-bottom: 1rem;
}

/* Floating WhatsApp */
.fab-whatsapp {
    position: fixed;
    z-index: 50;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.45);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease;
}
.fab-whatsapp:hover {
    transform: scale(1.05);
}

/* Decorative checkmark circle */
.check-pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    margin-top: 0.15rem;
}
.check-pill.orange {
    background: #ffedd5;
    color: #c2410c;
}
.check-pill.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Pricing badge */
.badge-popular {
    position: absolute;
    top: -0.85rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-cyan);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

/* Subtle pricing card */
.plan-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .plan-card {
        padding: 1.75rem;
    }
}
.plan-card.is-popular {
    border-color: #fed7aa;
    box-shadow: 0 18px 50px rgba(8, 145, 178, 0.18);
    outline: 1px solid #fed7aa;
}

/* Divider */
.divider-soft {
    height: 1px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(2, 6, 23, 0.08),
        transparent
    );
}

/* Footer */
footer.site-footer {
    background: #020617;
    color: #cbd5e1;
}
footer.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}
footer.site-footer a:hover {
    color: #fff;
}

/* Footer contact rows */
.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 200ms ease, transform 150ms ease;
}
.footer-contact:hover {
    color: #fff;
    transform: translateX(2px);
}
.footer-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    flex: none;
}

/* Company card — CNPJ + Address spotlight */
.company-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.75rem;
    background:
        radial-gradient(800px 320px at 0% 0%, rgba(11, 77, 186, 0.30) 0%, rgba(11, 77, 186, 0) 60%),
        radial-gradient(700px 320px at 100% 100%, rgba(14, 116, 144, 0.30) 0%, rgba(14, 116, 144, 0) 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.company-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(96, 165, 250, 0.20) 50%, rgba(34, 211, 238, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@media (min-width: 768px) {
    .company-card { padding: 2.25rem 2.5rem; }
}

.company-card__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.20);
    margin-bottom: 1.5rem;
}
.company-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #0e7490, #0b4dba);
    color: #ecfeff;
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.40);
    flex: none;
}

.company-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .company-card__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}
.company-card__item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
}
.company-card__item--wide { grid-column: span 1; }
@media (min-width: 768px) {
    .company-card__item--wide { grid-column: span 2; }
}
.company-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #67e8f9;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.company-card__value {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
}

.company-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.20);
}
.company-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #a5f3fc;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   PLANS SECTION — Enhanced visual
   ========================================================================== */
.plans-section {
    background:
        radial-gradient(900px 480px at 12% 0%, rgba(11, 77, 186, 0.08) 0%, rgba(11, 77, 186, 0) 60%),
        radial-gradient(700px 420px at 88% 100%, rgba(8, 145, 178, 0.08) 0%, rgba(8, 145, 178, 0) 55%),
        linear-gradient(180deg, #f1f5f9 0%, #f8fafc 60%, #ffffff 100%);
}
.plans-glow {
    position: absolute;
    pointer-events: none;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
}
.plans-glow--a {
    top: -6rem;
    left: -6rem;
    background: radial-gradient(closest-side, rgba(11, 77, 186, 0.35), transparent 70%);
}
.plans-glow--b {
    bottom: -8rem;
    right: -6rem;
    background: radial-gradient(closest-side, rgba(8, 145, 178, 0.35), transparent 70%);
}

.plan-card--enhanced {
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02), 0 12px 30px rgba(2, 6, 23, 0.04);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
@media (min-width: 640px) {
    .plan-card--enhanced { padding: 2rem 1.75rem; }
}
.plan-card--enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.10);
    border-color: #cbd5e1;
}

.plan-card--enhanced.is-popular {
    background:
        linear-gradient(180deg, rgba(8, 145, 178, 0.06) 0%, rgba(255, 255, 255, 0) 25%),
        #ffffff;
    border-color: #fed7aa;
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.18);
    outline: 1px solid #fed7aa;
    position: relative;
}
.plan-card--enhanced.is-popular::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 1.3rem;
    padding: 1px;
    background: linear-gradient(135deg, #f59e0b 0%, #0891b2 50%, #0b4dba 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.plan-card__head { position: relative; }

.plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 0.85rem;
    margin-bottom: 0.75rem;
}
.plan-icon--cyan { background: linear-gradient(135deg, #cffafe, #ecfeff); color: #0891b2; box-shadow: inset 0 0 0 1px #a5f3fc; }
.plan-icon--orange { background: linear-gradient(135deg, #ffedd5, #fff7ed); color: #c2410c; box-shadow: inset 0 0 0 1px #fed7aa; }
.plan-icon--blue { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }

.plan-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}
.plan-specs__item {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.plan-specs__flag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #047857;
    border: 1px solid #bbf7d0;
    font-size: 0.72rem;
    font-weight: 700;
}

.ribbon-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #0891b2, #0b4dba);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.25);
}
.ribbon-promo--orange {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.30);
}

.badge-popular {
    position: absolute;
    top: -0.95rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
    white-space: nowrap;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.30);
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

/* ==========================================================================
   MIGRATIONS MOCKUP
   ========================================================================== */
@keyframes migration-spin {
    to { transform: rotate(360deg); }
}
.migration-spinner svg {
    animation: migration-spin 1.4s linear infinite;
    transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: reduce) {
    .migration-spinner svg { animation: none; }
}

/* ==========================================================================
   AI BUILDER CARDS
   ========================================================================== */
.builder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
}
.builder-card__logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.builder-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.builder-pill--blue { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; }
.builder-pill--cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); color: #fff; }
.builder-pill--orange { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }

.builder-card__mock {
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    overflow: hidden;
    background: #f8fafc;
}
.builder-card__bar {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

/* ==========================================================================
   POTENCIA SECTION (Managed hosting power)
   ========================================================================== */
.potencia-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.potencia-tag--emerald { background: #d1fae5; color: #047857; }
.potencia-tag--cyan { background: #cffafe; color: #0e7490; }
.potencia-tag--orange { background: #ffedd5; color: #c2410c; }

.potencia-mock {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.10);
    overflow: hidden;
}
.potencia-mock::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(11, 77, 186, 0.12), rgba(8, 145, 178, 0.12));
    filter: blur(40px);
    z-index: -1;
}
.potencia-mock__bar {
    display: inline-flex;
    margin: 0.85rem 0.85rem 0;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

/* Focus ring */
:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
html.dark body {
    background: #0b1220;
    color: #e2e8f0;
}

/* Smooth transition when switching themes */
html, body, header, section, footer,
.plan-card, .plan-card--enhanced, .accordion-item, .builder-card,
.company-card__item, .site-header.is-scrolled, .potencia-mock {
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

/* Header */
html.dark .site-header { color: #e2e8f0; }
html.dark .site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: #1e293b;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
html.dark #theme-toggle { color: #e2e8f0; }
html.dark #theme-toggle:hover { background-color: #1e293b; }

/* Hero gradient */
html.dark .hero-wash {
    background:
        radial-gradient(900px 420px at 15% 10%, rgba(34, 211, 238, 0.18) 0%, rgba(11, 77, 186, 0) 60%),
        radial-gradient(700px 360px at 85% 25%, rgba(96, 165, 250, 0.12) 0%, rgba(8, 145, 178, 0) 55%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

/* Mobile menu */
html.dark .mobile-menu { background-color: #0f172a !important; border-color: #1e293b !important; }

/* Tailwind utility overrides for dark mode */
html.dark .bg-white { background-color: #111827 !important; }
html.dark .bg-slate-50 { background-color: #0f172a !important; }
html.dark .bg-slate-100 { background-color: #1e293b !important; }
html.dark .bg-blue-50 { background-color: rgba(11, 77, 186, 0.18) !important; }
html.dark .bg-cyan-50 { background-color: rgba(14, 116, 144, 0.18) !important; }
html.dark .bg-orange-50 { background-color: rgba(234, 88, 12, 0.15) !important; }
html.dark .bg-emerald-50 { background-color: rgba(16, 185, 129, 0.15) !important; }
html.dark .bg-amber-50 { background-color: rgba(245, 158, 11, 0.15) !important; }
html.dark .bg-indigo-50 { background-color: rgba(67, 56, 202, 0.18) !important; }
html.dark .bg-gradient-to-b,
html.dark .bg-gradient-to-br,
html.dark .bg-gradient-to-r { background-image: none !important; background-color: #0f172a !important; }

html.dark .text-slate-900 { color: #f1f5f9 !important; }
html.dark .text-slate-800 { color: #e2e8f0 !important; }
html.dark .text-slate-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600 { color: #94a3b8 !important; }
html.dark .text-slate-500 { color: #94a3b8 !important; }
html.dark .text-slate-400 { color: #94a3b8 !important; }

html.dark .border-slate-200 { border-color: #1f2937 !important; }
html.dark .border-slate-100 { border-color: #1f2937 !important; }
html.dark .border-slate-300 { border-color: #334155 !important; }
html.dark .border-y { border-color: #1f2937 !important; }
html.dark .border-t { border-color: #1f2937 !important; }
html.dark .border-b { border-color: #1f2937 !important; }
html.dark .divide-slate-200 > * + * { border-color: #1f2937 !important; }

/* Hover states */
html.dark .hover\:bg-slate-100:hover { background-color: #1e293b !important; }
html.dark .hover\:bg-slate-50:hover { background-color: #111827 !important; }

/* Accordion */
html.dark .accordion-item {
    background: #111827;
    border-color: #1f2937;
}
html.dark .accordion-trigger { color: #f1f5f9; }
html.dark .accordion-content { color: #94a3b8; }

/* Plan card */
html.dark .plan-card,
html.dark .plan-card--enhanced {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.30);
}
html.dark .plan-card--enhanced:hover {
    border-color: #334155;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.50);
}
html.dark .plan-card--enhanced.is-popular {
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.10) 0%, rgba(17, 24, 39, 0) 25%), #111827;
}
html.dark .plan-specs__item {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
html.dark .plan-specs__flag {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.10));
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}
html.dark .plan-specs { border-top-color: #1f2937; }

/* Plan icons keep colored badges but tone down background */
html.dark .plan-icon--cyan { background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.06)); color: #67e8f9; }
html.dark .plan-icon--orange { background: linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(234, 88, 12, 0.06)); color: #fdba74; }
html.dark .plan-icon--blue { background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.06)); color: #93c5fd; }

/* Plans section */
html.dark .plans-section {
    background:
        radial-gradient(900px 480px at 12% 0%, rgba(34, 211, 238, 0.08) 0%, rgba(11, 77, 186, 0) 60%),
        radial-gradient(700px 420px at 88% 100%, rgba(96, 165, 250, 0.06) 0%, rgba(8, 145, 178, 0) 55%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #111827 100%);
}

/* Buttons */
html.dark .btn-outline {
    background: #111827;
    color: #93c5fd;
    border-color: #334155;
}
html.dark .btn-outline:hover {
    background: #1e293b;
    color: #bfdbfe;
}
html.dark .btn-ghost { color: #cbd5e1; }
html.dark .btn-ghost:hover {
    color: #93c5fd;
    background: #1e293b;
}

/* Builder cards */
html.dark .builder-card {
    background: #111827;
    border-color: #1f2937;
}
html.dark .builder-card__mock {
    background: #0f172a;
    border-color: #1f2937;
}
html.dark .builder-card__bar {
    background: #111827;
    border-bottom-color: #1f2937;
    color: #94a3b8;
}

/* Potencia / managed hosting mock */
html.dark .potencia-mock {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.50);
}
html.dark .potencia-mock__bar {
    background: #0f172a;
    border-color: #1f2937;
    color: #94a3b8;
}

/* Eyebrow accent */
html.dark .eyebrow { color: #93c5fd; }

/* Check pills tone for dark */
html.dark .check-pill { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
html.dark .check-pill.orange { background: rgba(234, 88, 12, 0.18); color: #fdba74; }
html.dark .check-pill.blue { background: rgba(37, 99, 235, 0.20); color: #93c5fd; }

/* Trust logos no longer needed (section removed) */
html.dark .divider-soft {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.18), transparent);
}

/* Hover link colors */
html.dark .hover\:text-blue-700:hover { color: #93c5fd !important; }
html.dark .text-blue-700 { color: #93c5fd !important; }
html.dark .text-blue-600 { color: #60a5fa !important; }
html.dark .text-cyan-700 { color: #67e8f9 !important; }
html.dark .text-cyan-600 { color: #22d3ee !important; }
html.dark .text-emerald-700 { color: #6ee7b7 !important; }
html.dark .text-orange-700 { color: #fdba74 !important; }
html.dark .text-orange-600 { color: #fb923c !important; }

/* Focus ring tuning in dark */
html.dark :focus-visible { outline-color: #60a5fa; }

/* Footer already dark, just make sure it blends */
html.dark footer.site-footer { background: #020617; }

/* Toggle icon visibility */
html.dark [data-icon-sun] { display: none !important; }
html.dark [data-icon-moon] { display: inline !important; }


/* ==========================================================================
   LEGAL PAGES (Terms, Privacy, Anti-spam)
   ========================================================================== */
.legal-page {
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(11, 77, 186, 0.08) 0%, rgba(11, 77, 186, 0) 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.legal-hero {
    padding: 4rem 0 2rem;
}
.legal-content {
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
    color: #334155;
    font-size: 0.97rem;
    line-height: 1.75;
}
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.25rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5rem 0 0.5rem;
}
.legal-content p { margin: 0.65rem 0; }
.legal-content ul, .legal-content ol {
    margin: 0.5rem 0 0.85rem 1.25rem;
    padding-left: 1rem;
}
.legal-content li { margin: 0.3rem 0; }
.legal-content strong { color: #0b1220; font-weight: 700; }
.legal-content a {
    color: #1d4ed8;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: #0b4dba; }
.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.legal-card {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 0.9rem;
    color: #475569;
}

/* ==========================================================================
   HERO PERFORMANCE SCORE CARDS (PageSpeed + GTmetrix)
   ========================================================================== */
.score-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.12);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 168px;
    z-index: 3;
}
.score-card--google {
    flex-direction: row;
}
.score-card--gtmetrix {
    flex-direction: column;
    align-items: flex-start;
    min-width: 132px;
    padding: 0.9rem 1.1rem;
}
.score-ring {
    flex: none;
    line-height: 0;
}
.score-card__brand { line-height: 1.1; }
.score-card__google {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.score-card__google span { display: inline-block; }
.score-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-top: 0.1rem;
    letter-spacing: 0.01em;
}
.score-card__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.score-card__gtmetrix {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (LGPD)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 2rem);
    max-width: 64rem;
    z-index: 60;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.22);
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 250ms ease;
    opacity: 0;
    pointer-events: none;
}
.cookie-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}
.cookie-banner__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}
.cookie-banner__body { flex: 1; min-width: 0; }
.cookie-banner__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.cookie-banner__text {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0.25rem 0 0;
}
.cookie-banner__text a { color: #1d4ed8; text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cookie-banner__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    transition: background-color 180ms ease, color 180ms ease, transform 100ms ease;
}
.cookie-banner__btn:active { transform: scale(0.97); }
.cookie-banner__btn--primary { background: #0e7490; color: #fff; }
.cookie-banner__btn--primary:hover { background: #155e75; }
.cookie-banner__btn--ghost {
    background: #f1f5f9;
    color: #334155;
}
.cookie-banner__btn--ghost:hover { background: #e2e8f0; }

/* ==========================================================================
   LEGAL TOC (sticky sidebar)
   ========================================================================== */
.legal-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .legal-shell {
        grid-template-columns: 16rem 1fr;
        gap: 3.5rem;
    }
}
.legal-toc {
    display: none;
}
@media (min-width: 1024px) {
    .legal-toc {
        display: block;
        position: sticky;
        top: 5rem;
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        padding-right: 0.5rem;
    }
}
.legal-toc__title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #1d4ed8;
    margin: 0 0 0.85rem;
}
.legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e2e8f0;
}
.legal-toc__list a {
    display: block;
    padding: 0.5rem 0.9rem;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.legal-toc__list a:hover {
    color: #0b4dba;
    background: #f8fafc;
    border-radius: 0 0.4rem 0.4rem 0;
}
.legal-toc__list a.is-active {
    color: #0b4dba;
    border-left-color: #0b4dba;
    font-weight: 600;
    background: #eff6ff;
    border-radius: 0 0.4rem 0.4rem 0;
}
.legal-content {
    max-width: none;
    margin: 0;
    padding: 0;
}
.legal-content h2 {
    scroll-margin-top: 5rem;
}

/* ==========================================================================
   MARQUEE — Infinite scrolling differentiators bar (below hero)
   ========================================================================== */
.marquee-section {
    position: relative;
    background: linear-gradient(135deg, #0e7490 0%, #0b4dba 100%);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(2, 6, 23, 0.10);
}
.marquee-section::before,
.marquee-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6rem;
    z-index: 2;
    pointer-events: none;
}
.marquee-section::before {
    left: 0;
    background: linear-gradient(90deg, rgba(14, 116, 144, 1) 0%, rgba(14, 116, 144, 0) 100%);
}
.marquee-section::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(11, 77, 186, 1) 0%, rgba(11, 77, 186, 0) 100%);
}
.marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
    padding: 1rem 0;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex: none;
}
.marquee__dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
    flex: none;
}
@keyframes marquee-scroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
}
@media (min-width: 768px) {
    .marquee__track { gap: 3.5rem; padding: 1.15rem 0; }
    .marquee__item { font-size: 1rem; }
}
