/* =========================================================
   MagoClinic — landing page
   ========================================================= */
:root {
    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --rosa: #db2777;
    --escuro: #0f1330;
    --texto: #1e2235;
    --texto-2: #5f6480;
    --borda: #e8e9f3;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--texto);
}
body { font-family: var(--bs-body-font-family); color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; }
.text-grad { background: linear-gradient(90deg, var(--brand), var(--rosa)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { border-radius: 12px; font-weight: 600; padding: .65rem 1.2rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca; --bs-btn-active-bg: #3730a3; box-shadow: 0 10px 24px -8px rgba(79,70,229,.55); }
.btn-outline-dark { --bs-btn-border-color: var(--borda); --bs-btn-color: var(--texto); --bs-btn-hover-bg: #f5f5fb; --bs-btn-hover-color: var(--texto); --bs-btn-hover-border-color: #d6d8ea; }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border-color: var(--borda); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79,70,229,.12); }
.form-label { font-weight: 600; font-size: .86rem; }

/* Navegação */
.site-nav { padding: 16px 0; transition: all .2s; }
.site-nav.rolado { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--borda); padding: 10px 0; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--texto); }
.marca-icone { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--rosa)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.site-nav .nav-link { font-weight: 500; color: var(--texto-2); padding: .5rem 1rem !important; }
.site-nav .nav-link:hover { color: var(--brand); }
@media (max-width: 991.98px) { .site-nav { background: #fff; box-shadow: 0 1px 0 var(--borda); } }

/* Hero */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background: radial-gradient(900px 500px at 85% 0%, #ede9fe 0%, transparent 60%), radial-gradient(800px 500px at 0% 30%, #e0e7ff 0%, transparent 55%), #fff; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; }
.hero .lead { color: var(--texto-2); font-size: 1.15rem; max-width: 560px; }
.selo { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--borda); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .85rem; font-weight: 500; box-shadow: 0 4px 14px rgba(15,19,48,.05); }
.selo b { background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .75rem; }
.confianca { display: flex; flex-wrap: wrap; gap: 18px; color: var(--texto-2); font-size: .9rem; }
.confianca i { color: #059669; }

/* Mock do painel */
.mock { background: #fff; border: 1px solid var(--borda); border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(30,27,75,.35); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-topo { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--borda); background: #fafbff; }
.mock-topo span { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mock-corpo { display: grid; grid-template-columns: 64px 1fr; min-height: 340px; }
.mock-side { background: linear-gradient(180deg, #141a33, #1d2547); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #8e95bd; font-size: 1.1rem; }
.mock-side .on { color: #fff; background: var(--brand); border-radius: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.mock-main { padding: 18px; background: #f6f7fc; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--borda); }
.mock-kpi small { color: var(--texto-2); font-size: .7rem; display: block; }
.mock-kpi strong { font-size: 1.05rem; }
.mock-agenda { background: #fff; border-radius: 12px; border: 1px solid var(--borda); padding: 12px; margin-top: 10px; }
.mock-ev { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .78rem; border-bottom: 1px dashed var(--borda); }
.mock-ev:last-child { border: 0; }
.mock-ev .h { font-weight: 700; color: var(--brand); width: 40px; }
.mock-ev .b { width: 4px; height: 26px; border-radius: 4px; }
.mock-flutuante { position: absolute; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -12px rgba(30,27,75,.3); border: 1px solid var(--borda); font-size: .82rem; display: flex; gap: 10px; align-items: center; }
.mock-flutuante i { font-size: 1.4rem; }
.mf-1 { left: -24px; bottom: 40px; } .mf-2 { right: -10px; top: 30px; }
@media (max-width: 991.98px) { .mock { transform: none; margin-top: 30px; } .mf-1, .mf-2 { display: none; } }

/* Seções */
section { padding: 90px 0; }
.secao-titulo { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.secao-titulo h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.secao-titulo p { color: var(--texto-2); font-size: 1.08rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.bg-suave { background: #f7f8fd; }

/* Seletor de especialidade */
.esp-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.esp-pill { border: 1px solid var(--borda); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .92rem; color: var(--texto-2); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all .15s; }
.esp-pill i { color: var(--cor, var(--brand)); }
.esp-pill:hover { border-color: var(--cor, var(--brand)); color: var(--texto); }
.esp-pill.ativo { background: var(--cor, var(--brand)); border-color: var(--cor, var(--brand)); color: #fff; box-shadow: 0 10px 24px -10px var(--cor, var(--brand)); }
.esp-pill.ativo i { color: #fff; }
.esp-painel { background: #fff; border: 1px solid var(--borda); border-radius: 24px; padding: 36px; box-shadow: 0 24px 60px -30px rgba(30,27,75,.25); }
.esp-painel h3 { font-size: 1.6rem; }
.esp-item { display: flex; gap: 14px; padding: 12px 0; }
.esp-item .ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: none; background: var(--fundo-ic, #eef2ff); color: var(--cor, var(--brand)); }
.esp-item h6 { margin: 0 0 2px; font-weight: 700; }
.esp-item p { margin: 0; color: var(--texto-2); font-size: .92rem; }

/* Recursos */
.recurso { background: #fff; border: 1px solid var(--borda); border-radius: 20px; padding: 28px; height: 100%; transition: transform .2s, box-shadow .2s; }
.recurso:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(30,27,75,.35); }
.recurso .ic { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #eef2ff, #fce7f3); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.recurso h5 { font-weight: 700; }
.recurso p { color: var(--texto-2); margin: 0; }

/* Passos */
.passo-num { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 0 0 8px #eef2ff; }

/* Planos */
.toggle-periodo { display: inline-flex; background: #eef0f8; border-radius: 999px; padding: 5px; }
.toggle-periodo button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-weight: 600; color: var(--texto-2); }
.toggle-periodo button.ativo { background: #fff; color: var(--texto); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.toggle-periodo .eco { background: #dcfce7; color: #15803d; font-size: .7rem; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.plano { background: #fff; border: 1px solid var(--borda); border-radius: 24px; padding: 32px; height: 100%; display: flex; flex-direction: column; position: relative; }
.plano.destaque { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(79,70,229,.5); }
.plano .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--brand), var(--rosa)); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plano h4 { font-weight: 800; }
.plano .preco { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plano .preco small { font-size: 1rem; color: var(--texto-2); font-weight: 500; }
.plano ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plano li { padding: 7px 0; display: flex; gap: 10px; font-size: .94rem; }
.plano li i { color: #059669; }
.plano .limites { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.plano .limites span { background: #f3f4fb; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; color: var(--texto-2); }

/* FAQ */
.accordion-item { border: 1px solid var(--borda) !important; border-radius: 16px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; padding: 20px 24px; }
.accordion-button:not(.collapsed) { background: #f7f8fd; color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* CTA */
.cta { background: radial-gradient(800px 400px at 80% 0%, rgba(219,39,119,.45), transparent 60%), linear-gradient(135deg, #312e81, #4f46e5 60%, #7c3aed); color: #fff; border-radius: 28px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta .btn-light { color: var(--brand); }

/* Rodapé */
.site-footer { background: var(--escuro); color: #c7cbe4; padding: 64px 0 32px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }
.site-footer a:not(.marca) { display: block; color: #c7cbe4; text-decoration: none; padding: 4px 0; }
.site-footer a:not(.marca):hover { color: #fff; }
.whats-flutuante { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); z-index: 1000; }
.whats-flutuante:hover { color: #fff; transform: scale(1.05); }

/* Animação */
.surgir { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.surgir.visivel { opacity: 1; transform: none; }

/* Cadastro */
.cadastro-pagina { min-height: 100vh; background: radial-gradient(900px 500px at 100% 0%, #ede9fe, transparent 60%), #f7f8fd; padding: 110px 0 60px; }
.cadastro-caixa { background: #fff; border: 1px solid var(--borda); border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(30,27,75,.25); padding: 36px; }
.etapas { display: flex; gap: 8px; margin-bottom: 28px; }
.etapa { flex: 1; }
.etapa .barra { height: 6px; border-radius: 99px; background: #e9eaf4; transition: background .3s; }
.etapa.feita .barra, .etapa.atual .barra { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.etapa small { display: block; margin-top: 6px; font-weight: 600; color: var(--texto-2); font-size: .78rem; }
.etapa.atual small { color: var(--brand); }
.passo-form { display: none; }
.passo-form.ativo { display: block; animation: aparecer .3s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.opcao-tipo { display: flex; align-items: center; gap: 12px; border: 2px solid var(--borda); border-radius: 16px; padding: 14px 16px; cursor: pointer; height: 100%; transition: all .15s; background: #fff; }
.opcao-tipo:hover { border-color: #c9ccf3; }
.opcao-tipo .ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: none; color: #fff; }
.opcao-tipo strong { display: block; font-size: .95rem; }
.opcao-tipo small { color: var(--texto-2); font-size: .8rem; line-height: 1.3; display: block; }
.btn-check:checked + .opcao-tipo { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.opcao-plano { border: 2px solid var(--borda); border-radius: 18px; padding: 20px; cursor: pointer; display: block; height: 100%; background: #fff; transition: all .15s; }
.btn-check:checked + .opcao-plano { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.opcao-plano .preco { font-size: 1.6rem; font-weight: 800; }
.endereco-preview { font-family: ui-monospace, monospace; font-size: .85rem; background: #f7f8fd; border-radius: 10px; padding: 8px 12px; color: var(--texto-2); }
.resumo-lateral { background: linear-gradient(160deg, #312e81, #4f46e5); color: #fff; border-radius: 24px; padding: 32px; position: sticky; top: 100px; }
.resumo-lateral li { padding: 6px 0; }
.resumo-lateral i { color: #a5f3fc; }
.hp { position: absolute; left: -9999px; }

/* Páginas legais */
.legal { max-width: 820px; margin: 0 auto; padding: 130px 16px 80px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin-top: 32px; }
.legal p, .legal li { color: #3d4259; line-height: 1.7; }
