/* =====================================================================
   VEM AGENDA — Site de vendas (index.php)
   Depende de vemagenda.css (tokens, botões, campos, modais).
   ===================================================================== */

.va-site { --primary: #2563eb; --btn-text: #fff; --ink: #0b1224; background: #fff; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); line-height: 1.6; }
.grad { background: linear-gradient(100deg, var(--primary), #7c3aed 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.va-site h1, .va-site h2 { color: var(--ink); letter-spacing: -.025em; text-wrap: balance; }

/* Revelar ao rolar (ativado pelo main.js; sem JS tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero-in { animation: va-fade .7s var(--ease) both; }
.hero-visual.hero-in { animation-delay: .12s; }

/* ---------- Navegação ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-login { font-weight: 700; color: var(--text-main); text-decoration: none; font-size: 14px; display: none; }
.nav-cta { display: none !important; }
.nav-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 17px; cursor: pointer; color: var(--text-main); }

@media (max-width: 991px) {
    .nav-links.active {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(15,23,42,.1);
        animation: va-fade .2s var(--ease);
    }
    .nav-links a { padding: 12px 4px; font-weight: 600; color: var(--text-main); text-decoration: none; border-bottom: 1px solid var(--border); }
    .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .nav-mobile-actions a { border: 0; justify-content: center; }
    .nav-mobile-actions .btn-primary { color: #fff; }
}
@media (min-width: 992px) {
    .nav-links { display: flex; gap: 26px; }
    .nav-links a { color: var(--text-muted); font-weight: 600; font-size: 14px; text-decoration: none; transition: color .15s; }
    .nav-links a:hover { color: var(--text-main); }
    .nav-mobile-actions, .nav-toggle { display: none; }
    .nav-login { display: inline; }
    .nav-cta { display: inline-flex !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1;
    background:
        radial-gradient(40% 45% at 85% 30%, rgba(124,58,237,.14), transparent 70%),
        radial-gradient(45% 50% at 10% 10%, rgba(37,99,235,.14), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; line-height: 1.04; margin: 18px 0 18px; }
.hero h1 .grad { display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 200px; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.trust i { color: var(--success); margin-right: 6px; }

.hero-visual { position: relative; padding: 0 0 32px 0; }
.device-laptop { width: 92%; margin-left: auto; }
.laptop-screen { border-radius: 14px 14px 0 0; background: #0f172a; padding: 10px 10px 0; box-shadow: 0 30px 60px rgba(15,23,42,.22); }
.laptop-screen img { border-radius: 6px 6px 0 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.laptop-base { height: 14px; margin: 0 -5%; border-radius: 0 0 14px 14px; background: linear-gradient(#e2e8f0, #cbd5e1); }
.device-phone {
    position: absolute; left: 0; bottom: 0; width: 30%; max-width: 170px; padding: 7px; border-radius: 26px;
    background: #0f172a; box-shadow: 0 24px 50px rgba(15,23,42,.3);
}
.device-phone img { border-radius: 20px; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: #fff; box-shadow: 0 14px 34px rgba(15,23,42,.14); font-size: 13px; animation: flutuar 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.float-card strong { font-size: 13px; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.fc-icon.ok { background: var(--success-soft); color: var(--success); }
.fc-1 { top: 6%; left: 2%; }
.fc-2 { right: -2%; bottom: 22%; animation-delay: -3s; }
@media (max-width: 560px) { .fc-1 { left: -4px; top: -6px; } .fc-2 { right: -4px; } .float-card { padding: 8px 10px; } }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Segmentos (faixa rolando) ---------- */
.niches { padding: 26px 0; border-block: 1px solid var(--border); background: #fbfcfe; }
.niches-title { text-align: center; color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 16px; padding: 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: rolar 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.niche { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 14px; white-space: nowrap; }
.niche i { color: var(--primary); }
@keyframes rolar { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-soft { background: #f6f8fc; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.12; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 12px; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: passo; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; }
.step-n { position: absolute; top: 20px; right: 22px; font-size: 44px; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 19px; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(37,99,235,.28); }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--text-muted); }

/* Funcionalidades */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 18px; margin-bottom: 16px; }
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 14px; }

/* Destaque */
.showcase { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .showcase { grid-template-columns: 1fr 1fr; gap: 64px; } }
.showcase-visual { position: relative; }
.showcase-bg { position: absolute; inset: 8% 4% -4% 10%; border-radius: 32px; background: linear-gradient(140deg, var(--primary), #7c3aed); transform: rotate(-3deg); }
.showcase-img { position: relative; border-radius: 20px; box-shadow: 0 30px 60px rgba(15,23,42,.2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.showcase-copy h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist i { color: var(--success); margin-top: 4px; }

/* Números */
.stats { background: var(--ink); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats-grid strong { display: block; font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.stats-grid span { color: #94a3b8; font-weight: 600; font-size: 14px; }

/* Preço */
.price-card { max-width: 440px; margin: 0 auto; padding: 32px 28px; border-radius: 26px; background: #fff; border: 2px solid var(--primary); box-shadow: 0 30px 60px rgba(37,99,235,.14); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-name { font-weight: 800; font-size: 17px; }
.price-value { font-size: 54px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 4px; color: var(--ink); line-height: 1; }
.price-value small { font-size: 22px; vertical-align: top; margin-right: 4px; position: relative; top: 8px; }
.price-value span { font-size: 16px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.price-card .checklist { margin: 22px 0 26px; }

/* Dúvidas */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.faq-item[open] { border-color: var(--primary); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--primary); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--text-muted); }

/* ---------- Cadastro ---------- */
.signup { padding: 80px 0; color: #fff; background: radial-gradient(60% 80% at 100% 0%, rgba(124,58,237,.5), transparent 60%), linear-gradient(150deg, #1d4ed8, #0b1224 85%); }
.signup-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .signup-grid { grid-template-columns: 1fr 460px; gap: 64px; } }
.signup-copy h2 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; line-height: 1.1; }
.signup-copy > p { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 14px; }
.trust-light { color: rgba(255,255,255,.9); }
.trust-light i { color: #4ade80; }
.signup-price { margin-top: 28px; display: inline-grid; gap: 4px; padding: 16px 20px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.signup-price span { font-size: 13px; color: rgba(255,255,255,.75); }
.signup-price strong { font-size: 28px; }
.signup-price small { font-size: 14px; font-weight: 600; opacity: .75; margin-left: 4px; }

.signup-card { background: #fff; color: var(--text-main); border-radius: 24px; padding: 28px 22px; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
@media (min-width: 600px) { .signup-card { padding: 34px; } }
.signup-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 18px; color: var(--ink); }
.signup-form { display: grid; gap: 14px; }
.signup-form .field { margin-bottom: 0; }
.cupom summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--primary); list-style: none; }
.cupom summary::-webkit-details-marker { display: none; }
.cupom input { margin-top: 10px; }
.signup-form .check-row { margin: 4px 0; font-weight: 500; color: var(--text-muted); }
.signup-login { text-align: center; margin-top: 16px; }

/* Mensagens geradas pelo PHP (functions_index.php) */
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.alert-erro { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.alert-sucesso { background: var(--success-soft); color: #065f46; border: 1px solid #a7f3d0; }
.alert-sucesso p { margin-top: 10px; }
.alert .link-acesso { display: inline-flex; margin-top: 10px; padding: 10px 16px; border-radius: 10px; background: var(--success); color: #fff; font-weight: 700; text-decoration: none; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #94a3b8; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #94a3b8; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid !important; place-items: center; background: rgba(255,255,255,.06); padding: 0 !important; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; font-size: 13px; }

/* ---------- Instalar app / promoção ---------- */
.install-sheet { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; max-width: 520px; margin: 0 auto; padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(15,23,42,.15); text-align: center; transform: translateY(100%); transition: transform .4s var(--ease); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 0 auto 16px; }
.install-sheet h3 { font-size: 18px; margin-bottom: 6px; }
.install-steps { background: var(--surface-2); padding: 14px; border-radius: var(--radius); font-size: 13px; text-align: left; margin: 14px 0; }
.promo-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 28px; }
.promo-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.promo-text { margin-bottom: 20px; }
