/* =========================================
   COMPONENTS
   Botões, cards, badges, acordeões, tabs — reutilizáveis em qualquer página
   ========================================= */

/* ── BOTÕES ─────────────────────────────────────────────── */
.btn-ghost {
    background: transparent; border: 1px solid #c8d3e0;
    padding: 8px 18px; border-radius: 40px; font-size: 0.82rem;
    font-weight: 600; color: var(--text); cursor: pointer;
    transition: all 0.2s; font-family: var(--fonte-corpo);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn-primary {
    background: var(--blue); color: #fff; border: none;
    padding: 8px 20px; border-radius: 40px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    font-family: var(--fonte-corpo);
    box-shadow: 0 2px 12px rgba(37,99,235,0.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(37,99,235,0.35); }
.btn-hero {
    background: #fff; color: var(--blue); border: none;
    padding: 14px 32px; border-radius: 40px; font-size: 0.95rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    font-family: var(--fonte-corpo);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero:hover { background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.btn-hero svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2; }
.btn-hero-outline {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff; padding: 14px 32px; border-radius: 40px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-family: var(--fonte-corpo);
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-cta-white {
    background: #fff; color: var(--blue); border: none;
    padding: 14px 36px; border-radius: 40px; font-size: 0.95rem;
    font-weight: 700; cursor: pointer; transition: all 0.2s;
    font-family: var(--fonte-corpo);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }

/* ── SEÇÃO: LABEL / TÍTULO / DESCRIÇÃO ───────────────────── */
.section-label {
    display: inline-block; background: var(--blue-soft); color: var(--blue);
    border: 1px solid var(--blue-mid); padding: 4px 12px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
    color: var(--text); letter-spacing: -0.5px; margin-bottom: 12px;
    line-height: 1.2;
}
.section-desc {
    font-size: 0.95rem; color: var(--text-soft); max-width: 520px;
    line-height: 1.7;
}

/* ── GRID DE CARDS (3 colunas) — usado em index e serviços ───── */
.features-bg { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── CTA FINAL (usado em index e serviços) ───────────────── */
.cta-section {
    background: var(--blue); padding: 80px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 700px 400px at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
    color: #fff; letter-spacing: -0.5px; margin-bottom: 14px;
    line-height: 1.2;
}
.cta-section p { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; }

/* ── CARDS ──────────────────────────────────────────────── */
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: all 0.25s;
}
.feature-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
    width: 44px; height: 44px; background: var(--blue-soft);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--blue); stroke-width: 1.7; fill: none; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.65; }

/* ── PRICING TOGGLE (mensal/anual) ───────────────────────── */
.pricing-toggle {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border);
    padding: 4px; border-radius: 40px; margin-bottom: 48px;
    width: fit-content;
}
.toggle-btn {
    padding: 8px 22px; border-radius: 40px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; border: none; background: transparent;
    color: var(--text-soft); transition: all 0.2s; font-family: var(--fonte-corpo);
}
.toggle-btn.active { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(37,99,235,0.3); }
.save-tag {
    background: #dcfce7; color: #166534; font-size: 0.65rem;
    font-weight: 700; padding: 2px 8px; border-radius: 20px;
}

/* ── PLAN CARD ──────────────────────────────────────────── */
.plan-card {
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 20px; padding: 32px 28px;
    position: relative; transition: all 0.25s;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-card.featured {
    border-color: var(--blue); background: var(--blue);
    color: #fff; transform: scale(1.02);
}
.plan-card.featured:hover { transform: scale(1.02) translateY(-3px); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #fbbf24; color: #92400e;
    font-size: 0.65rem; font-weight: 800; padding: 5px 12px;
    border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 4px;
}
.plan-badge svg { fill: #92400e; flex-shrink: 0; }
.plan-name {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-soft); margin-bottom: 6px;
}
.plan-card.featured .plan-name { color: rgba(255,255,255,0.7); }
.plan-price {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 4px;
}
.plan-price .currency { font-size: 1rem; font-weight: 700; color: var(--text-soft); margin-top: 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1; }
.plan-price .period { font-size: 0.78rem; color: var(--text-soft); }
.plan-card.featured .plan-price .currency,
.plan-card.featured .plan-price .amount,
.plan-card.featured .plan-price .period { color: #fff; }
.plan-card.featured .plan-price .currency,
.plan-card.featured .plan-price .period { color: rgba(255,255,255,0.8); }
.plan-annual-note {
    font-size: 0.72rem; color: var(--text-soft); margin-bottom: 24px;
}
.plan-card.featured .plan-annual-note { color: rgba(255,255,255,0.7); }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.plan-card.featured .plan-divider { border-color: rgba(255,255,255,0.2); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.83rem; color: var(--text-mid);
}
.plan-card.featured .plan-features li { color: rgba(255,255,255,0.9); }
.plan-features li svg { width: 15px; height: 15px; stroke: var(--blue); stroke-width: 2.2; fill: none; flex-shrink: 0; margin-top: 2px; }
.plan-card.featured .plan-features li svg { stroke: #93c5fd; }
.plan-cta {
    width: 100%; padding: 12px; border-radius: 40px; font-size: 0.88rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    font-family: var(--fonte-corpo); border: none;
}
.plan-cta-normal { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue-mid); }
.plan-cta-normal:hover { background: var(--blue); color: #fff; }
.plan-cta-featured { background: #fff; color: var(--blue); }
.plan-cta-featured:hover { background: #eff6ff; }

/* Preços dinâmicos (toggle mensal/anual via JS) */
.price-monthly { display: block; }
.price-annual  { display: none; }
body.annual .price-monthly { display: none; }
body.annual .price-annual  { display: block; }

/* ── STEP (como funciona) ─────────────────────────────────── */
.steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    background: var(--border); border-radius: 20px; overflow: hidden;
}
.step { background: var(--white); padding: 36px 28px; position: relative; transition: background 0.2s; }
.step:hover { background: var(--bg); }
.step-num {
    font-size: 3.5rem; font-weight: 800; color: var(--border);
    line-height: 1; margin-bottom: 20px; letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 0.8rem; color: var(--text-soft); line-height: 1.65; }

/* ── FAQ (acordeão) ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
    width: 100%; padding: 18px 22px; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; font-weight: 600; color: var(--text);
    cursor: pointer; text-align: left; font-family: var(--fonte-corpo);
    transition: background 0.15s;
}
.faq-q:hover { background: var(--bg); }
.faq-q svg { width: 16px; height: 16px; stroke: var(--text-soft); stroke-width: 2; fill: none; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.85rem; color: var(--text-soft); line-height: 1.7;
    padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

/* ── STAT ───────────────────────────────────────────────── */
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.stat span { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-weight: 500; margin-top: 2px; display: block; }

/* ── CARROSSEL DE DOTS (planos, mobile) ──────────────────── */
.plans-carousel-wrap { position: relative; }
.plans-dots { display: none; justify-content: center; gap: 6px; margin-top: 20px; }
.plans-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.2s; }
.plans-dots span.active { background: var(--blue); width: 20px; border-radius: 4px; }

/* ── MODAL (confirmação/alerta) — substitui confirm()/alert() nativos ─── */
.qh-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.qh-modal-overlay.qh-modal-visivel { opacity: 1; }
.qh-modal {
    background: #fff; border-radius: 18px;
    padding: 28px 26px; width: 100%; max-width: 380px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    text-align: center;
    transform: scale(0.94) translateY(6px);
    transition: transform 0.2s ease;
}
.qh-modal-overlay.qh-modal-visivel .qh-modal { transform: scale(1) translateY(0); }
.qh-modal-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--blue-soft); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.3rem;
}
.qh-modal.qh-modal-alerta .qh-modal-icon { background: #fef3c7; color: #92400e; }
.qh-modal-message {
    font-size: 0.92rem; color: var(--text); line-height: 1.6; margin-bottom: 22px;
    white-space: pre-line;
}
.qh-modal-actions { display: flex; gap: 10px; justify-content: center; }
.qh-modal-actions button { flex: 1; padding: 11px; border-radius: 40px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: var(--fonte-corpo); border: none; }
.qh-modal-actions .qh-modal-cancel { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.qh-modal-actions .qh-modal-cancel:hover { background: var(--border); }
.qh-modal-actions .qh-modal-ok { background: var(--blue); color: #fff; }
.qh-modal-actions .qh-modal-ok:hover { background: var(--blue-dark); }
.qh-modal-actions .qh-modal-ok.qh-modal-perigo { background: #dc2626; }
.qh-modal-actions .qh-modal-ok.qh-modal-perigo:hover { background: #b91c1c; }


