/* ============================================================
   FRONT.CSS - Site público
   Cor primária injetada via --primary-color
   ============================================================ */

:root {
    --primary-color: #e8492b;
    --primary-dark: #c93a1f;
    --text-dark: #1f2430;
    --text-muted: #6b7280;
    --bg-light: #f4f5f7;
    --border-color: #e5e7eb;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text-dark);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }

/* Garante que o footer fique sempre no fim, mesmo com pouco conteúdo */
main { flex: 1 0 auto; }
footer.site-footer { flex-shrink: 0; }

/* -------------------- HEADER -------------------- */
.site-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 500;
}
.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}
.site-header .logo img { max-height: 34px; }

@media (min-width: 901px) {
    .site-header .header-inner { padding: 18px 0; }
    .site-header .logo img { max-height: 46px; }
}

@media (max-width: 900px) {
    /* Evita que a logo e o botão do menu (hamburger) fiquem grudados nas bordas da tela */
    .site-header .container { padding: 0 16px; }
    .site-header .header-inner { padding: 14px 0; gap: 12px; }
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}
.main-nav a:hover { color: var(--primary-color); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn-signin { font-size: 14px; font-weight: 600; }
.header-actions .btn-cta {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.header-actions .btn-cta:hover { background: var(--primary-dark); }

.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch .lang-menu {
    position: absolute;
    right: 0;
    top: 36px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    min-width: 130px;
    overflow: hidden;
}
.lang-switch .lang-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
}
.lang-switch .lang-menu a:hover { background: var(--bg-light); }

/* Hamburger (mobile) */
.hamburger-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    margin-right: 4px;
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 0; right: -280px;
        width: 260px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 20px;
        box-shadow: -8px 0 24px rgba(0,0,0,.1);
        transition: right .25s ease;
        z-index: 999;
    }
    .main-nav.open { right: 0; }
    .hamburger-toggle { display: block; }
    .header-actions .btn-signin { display: none; }
}

.nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 998;
}
.nav-overlay.open { display: block; }

/* -------------------- BRAND CONTACT / OWNER NOTICE -------------------- */
.brand-contact-band {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
}
.brand-contact-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.brand-contact-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.brand-contact-text strong { font-size: 13px; color: var(--text-dark); }
.brand-contact-text p { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.brand-contact-text a { color: var(--primary-color); font-weight: 600; }

@media (max-width: 700px) {
    .brand-contact-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* -------------------- HERO -------------------- */
.hero {
    background: var(--bg-light);
    padding: 70px 0;
    text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; margin: 0 0 16px; line-height: 1.15; }
.hero p.subtitle { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto 32px; }

.hero-demo-box {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    display: flex;
    gap: 10px;
}
.hero-demo-box input {
    flex: 1;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 15px;
}
.hero-demo-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}
.hero-demo-box button:hover { background: var(--primary-dark); }
.hero-demo-hint { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* -------------------- DEMO OPTIONS PANEL -------------------- */
.hero-demo-wrap { max-width: 940px; margin: 0 auto; }

.hero-demo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}
.hero-demo-toggle i { transition: transform .2s ease; }
.hero-demo-toggle.open i { transform: rotate(180deg); }
.hero-demo-toggle:hover { border-color: var(--primary-color); color: var(--primary-color); }

.demo-options-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 760px;
    margin: 16px auto 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.06);
    text-align: left;
}
.demo-options-panel.open { display: grid; }

.demo-options-col-title {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 4px 0 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}
.demo-options-panel > .demo-options-col-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.demo-field { margin-bottom: 14px; }
.demo-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.demo-field select,
.demo-field input[type="text"],
.demo-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
}
.demo-field select:disabled { color: var(--text-muted); cursor: not-allowed; background: var(--bg-light); }
.demo-field-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.demo-field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-field-row label { font-size: 13px; font-weight: 600; color: var(--text-dark); margin: 0; }

/* Toggle switch estilo checkbox de "sem anúncios / sem cookies" */
.demo-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.demo-switch input { opacity: 0; width: 0; height: 0; }
.demo-switch .slider {
    position: absolute; inset: 0;
    background: #d1d5db;
    border-radius: 22px;
    cursor: pointer;
    transition: background .2s ease;
}
.demo-switch .slider::before {
    content: '';
    position: absolute;
    height: 16px; width: 16px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.demo-switch input:checked + .slider { background: var(--primary-color); }
.demo-switch input:checked + .slider::before { transform: translateX(18px); }

.demo-slider-row { display: flex; align-items: center; gap: 12px; }
.demo-slider-row input[type="range"] { flex: 1; accent-color: var(--primary-color); }
.demo-slider-row input[type="number"] { width: 78px; flex-shrink: 0; text-align: center; }

.demo-size-summary {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}
.demo-size-summary strong { color: var(--text-dark); }

.demo-lock { font-size: 11px; color: var(--text-muted); margin-left: 4px; }

.demo-result { max-width: 760px; margin: 24px auto 0; text-align: left; }
.demo-result img { border-radius: 10px; border: 1px solid var(--border-color); width: 100%; }
.demo-result .demo-error { color: #991b1b; background: #fee2e2; padding: 12px 16px; border-radius: 8px; }
.demo-result-actions { margin-top: 16px; text-align: center; }
.btn-download-shot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color, #e8492b);
    color: #fff;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-download-shot svg { flex-shrink: 0; }
.btn-download-shot strong { font-weight: 800; }
.btn-download-shot:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.btn-download-shot:active { transform: translateY(0); }

/* -------------------- SECTIONS -------------------- */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: left;
}
.feature-card .icon { font-size: 26px; color: var(--primary-color); margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* -------------------- PRICING -------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 26px;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(232,73,43,.12);
}
.pricing-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}
.pricing-card h3 { font-size: 18px; margin: 8px 0 6px; }
.pricing-card .plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; min-height: 34px; }
.pricing-card .plan-number { font-size: 30px; font-weight: 800; }
.pricing-card .plan-label { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; }
.pricing-card ul li { padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.pricing-card ul li i { color: var(--primary-color); margin-top: 2px; }
.pricing-card .plan-price { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.pricing-card .plan-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.pricing-card .btn-signup {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
}
.pricing-card.popular .btn-signup { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* -------------------- CTA FOOTER BAND -------------------- */
.cta-band {
    background: var(--bg-light);
    padding: 60px 0;
}
.cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.cta-band h2 { font-size: 28px; margin: 0 0 8px; }
.cta-band p { color: var(--text-muted); margin: 0; }
.cta-band .cta-links a { color: var(--primary-color); font-weight: 700; margin-right: 20px; }

/* -------------------- FOOTER -------------------- */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
.footer-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols ul li { margin-bottom: 10px; font-size: 14px; }
.footer-cols ul li a:hover { color: var(--primary-color); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 700px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 30px; }
    .hero-demo-box { flex-direction: column; }

    /* Telas mobile: tudo centralizado, inclusive textos */
    .hero-demo-toggle { display: flex; justify-content: center; margin-left: auto; margin-right: auto; }
    .demo-options-panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 18px;
        margin-left: 16px;
        margin-right: 16px;
    }
    .demo-field { text-align: center; }
    .demo-field label { text-align: center; }
    .demo-field-row { flex-direction: column; gap: 8px; }
    .demo-slider-row { justify-content: center; }
    .demo-result { text-align: center; }
    .demo-result .demo-error { text-align: center; }
}

/* -------------------- BACK TO TOP -------------------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 9997;
}
.back-to-top.show { display: flex; }

/* -------------------- COOKIE CONSENT BANNER -------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 20px 24px;
    z-index: 10000;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner p { font-size: 13px; color: var(--text-muted); margin: 0; flex: 1; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 9px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-color); background: #fff; }
.cookie-btn.accept-all { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.cookie-btn.reject-all { background: #fff; }

/* Modal de preferências de cookies */
.cookie-prefs-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.cookie-prefs-modal.show { display: flex; }
.cookie-prefs-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 480px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
}
.cookie-prefs-box h3 { margin-top: 0; }
.cookie-pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.cookie-pref-item .cp-label { font-size: 14px; font-weight: 600; }
.cookie-pref-item .cp-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* -------------------- PAGINATION -------------------- */
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-dark);
    min-width: 34px;
    text-align: center;
}
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination .active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.pagination .disabled { color: var(--text-muted); opacity: .5; pointer-events: none; }
