/* FAMILIARIA v3.1 (10/11 noite): celular realista, cabecalho continuo e secoes novas. Carrega depois de fam.css. */

/* Celular: print inteiro com a barra de status real, moldura de titanio, ilha e botao lateral */
.phone { width: 290px; aspect-ratio: auto; padding: 9px; border-radius: 54px; background: linear-gradient(150deg, #3A3646 0%, #15121E 45%, #2A2735 100%); box-shadow: 0 50px 90px -40px rgba(30, 15, 80, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 0 2px #0B0910; position: relative; }
.phone::before { top: calc(9px + 2.4%); width: 30%; height: auto; aspect-ratio: 3.4; border-radius: 99px; background: #000; z-index: 3; }
.phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: #2A2735; }
.phone .scr { position: relative; width: 100%; height: auto; aspect-ratio: 540 / 1170; border-radius: 45px; overflow: hidden; background: #fff; }
.phone .scr::before { display: none; }
.phone .scr::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 30%); pointer-events: none; }
.phone .scr img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.lg { width: 320px; }
.phone.sm { width: 230px; padding: 7px; border-radius: 42px; }
.phone.sm .scr { border-radius: 35px; }
.phone.sm::before { top: calc(7px + 2.4%); }
@media (max-width: 720px) { .phone { width: 250px; border-radius: 46px; padding: 8px; } .phone .scr { border-radius: 38px; } .phone.lg { width: 262px; } .phone.sm { width: 220px; } }

/* Cabecalho sobre o brilho do topo, sem faixa branca */
.hero { margin-top: -82px; padding-top: 138px; }
.nav { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); }
@media (max-width: 720px) { .hero { margin-top: -70px; padding-top: 104px; } }

/* Demonstracao de conversa com o medico */
.demo { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.demo > * { min-width: 0; }
.demo-copy ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.demo-copy li { display: flex; gap: 12px; font-weight: 600; }
.demo-copy li svg { width: 24px; height: 24px; color: var(--go); flex: none; }
.chatbox { position: relative; max-width: 440px; margin: 0 auto; width: 100%; border-radius: 36px; background: #F3F0FB; box-shadow: var(--shadow); overflow: hidden; }
.chatbox .ch-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #4A1FB8; color: #fff; }
.chatbox .ch-top .av { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #4A1FB8; display: grid; place-items: center; font-weight: 800; position: relative; flex: none; }
.chatbox .ch-top .av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #4A1FB8; }
.chatbox .ch-top b { display: block; font-size: 16px; }
.chatbox .ch-top small { font-size: 13px; opacity: .8; }
.chatbox .ch-body { height: 440px; padding: 20px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.t-60 .chatbox .ch-body { height: 500px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; animation: msgIn .4s ease both; }
.t-60 .msg { font-size: 18px; }
.msg.pac { align-self: flex-end; background: #4A1FB8; color: #fff; border-bottom-right-radius: 6px; }
.msg.doc { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -10px rgba(40, 20, 100, .35); }
.msg .hr { display: block; font-size: 11px; opacity: .6; margin-top: 4px; text-align: right; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9A93B8; animation: blink 1.1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .18s; } .msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chatbox .ch-foot { display: flex; gap: 10px; align-items: center; padding: 12px 16px 16px; }
.chatbox .ch-foot span { flex: 1; height: 44px; border-radius: 99px; background: #fff; display: flex; align-items: center; padding: 0 16px; color: var(--ink-3); font-size: 14px; }
.chatbox .ch-foot i { width: 44px; height: 44px; border-radius: 50%; background: #4A1FB8; display: grid; place-items: center; color: #fff; }
.chatbox .ch-foot i svg { width: 18px; height: 18px; }
.ilus { display: block; text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.t-60 .ilus { font-size: 15px; }

/* Comparativo */
.cmp-wrap { overflow-x: auto; border-radius: var(--r); -webkit-overflow-scrolling: touch; box-shadow: 0 0 0 1px var(--hair); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
.cmp th, .cmp td { padding: 18px 16px; text-align: center; border-bottom: 1px solid var(--hair); font-size: 16px; }
.t-60 .cmp th, .t-60 .cmp td { font-size: 19px; padding: 20px 14px; }
.cmp th { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--card); }
.cmp td:first-child, .cmp th:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.us { background: var(--lilac); }
.cmp th.us { background: var(--violet); color: #fff; font-size: 16px; }
.cmp svg { width: 22px; height: 22px; vertical-align: middle; }
.cmp .y { color: var(--go); } .cmp .n { color: #C0392B; }
.cmp-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.t-60 .cmp-note { font-size: 15px; }
@media (max-width: 720px) { .cmp { min-width: 600px; } .cmp th, .cmp td { padding: 14px 10px; font-size: 14px; } .t-60 .cmp th, .t-60 .cmp td { font-size: 16px; } .cmp-hint { display: block; } }
.cmp-hint { display: none; font-size: 13px; color: var(--ink-3); margin: 0 0 10px; }

/* Pilha de valor */
.stack { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: stretch; }
.stack > * { min-width: 0; }
.stack .list { display: grid; gap: 10px; }
.stack .row { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 22px; background: var(--card); font-weight: 700; }
.stack .row .ico { margin: 0; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.stack .row small { display: block; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.t-60 .stack .row small { font-size: 17px; }
.stack .sum { border-radius: var(--r); padding: 36px; background: radial-gradient(90% 90% at 20% 0%, #3A23A8 0%, var(--night) 65%); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.stack .sum .eq { display: grid; gap: 10px; font-size: 18px; }
.t-60 .stack .sum .eq { font-size: 21px; }
.stack .sum .eq div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255, 255, 255, .2); }
.stack .sum .res { font-size: clamp(48px, 5vw, 68px); font-weight: 700; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.stack .sum p { color: rgba(255, 255, 255, .72); font-size: 15px; }
.t-60 .stack .sum p { font-size: 18px; }
@media (max-width: 1100px) { .stack, .demo { grid-template-columns: 1fr; } }

/* Clube de vantagens */
.clube { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clube > * { min-width: 0; }
.clube .card { min-height: 560px; }
.clube .phones { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }
.clube .phones .phone { width: 200px; margin-bottom: -190px; flex: none; }
.clube .phones .phone:nth-child(2) { margin-top: 44px; }
@media (max-width: 720px) { .clube { grid-template-columns: 1fr; } .clube .card { min-height: 480px; } .clube .phones .phone { width: 150px; margin-bottom: -150px; } }

/* Garantia */
.garantia { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; padding: 48px; border-radius: var(--r); background: linear-gradient(135deg, #E9F9EF, #F4FBE0); }
.garantia > * { min-width: 0; }
.selo { width: 156px; height: 156px; margin: 18px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #fff; box-shadow: 0 0 0 10px rgba(22, 163, 90, .12), 0 20px 40px -20px rgba(22, 163, 90, .5); color: var(--go-d); font-weight: 800; line-height: 1; position: relative; }
.selo b { display: block; font-size: 64px; letter-spacing: -.04em; }
.selo small { font-size: 13px; letter-spacing: .08em; }
.selo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed rgba(22, 163, 90, .35); animation: spin 40s linear infinite; }
.garantia p { color: var(--ink-2); margin-top: 10px; max-width: 560px; }
@media (max-width: 900px) { .garantia { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 22px; gap: 22px; } .garantia .btn { width: 100%; justify-content: space-between; } }

/* Diferenciais */
.difs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.difs > * { min-width: 0; }
.difs .card { padding: 30px; }
.difs .card h3 { font-size: 21px; }
.t-60 .difs .card h3 { font-size: 25px; }
@media (max-width: 1100px) { .difs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .difs { grid-template-columns: 1fr; } }

/* Chips de especialidades */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips span { height: 46px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--hair); font-weight: 700; font-size: 15.5px; }
.t-60 .chips span { height: 54px; font-size: 19px; }
.card.night .chips span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }

/* Nordeste: chita so como filete no topo */
.t-ne .chita-strip { height: 12px; }
@media (max-width: 720px) { .demo-copy .btn, .stack .sum .btn { width: 100%; justify-content: space-between; } }
.chatbox .ch-body { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 48px); mask-image: linear-gradient(180deg, transparent 0, #000 48px); }

/* Diferenciais em lista editorial numerada, sem grade de cartoes com icone (anti-IA-slop, 12/11) */
.difs { counter-reset: dif; column-gap: 48px; row-gap: 0; }
.difs .card { background: none; border-radius: 0; border-top: 1px solid var(--hair); padding: 26px 0 30px; }
.difs .card .ico { display: none; }
.difs .card::before { counter-increment: dif; content: "0" counter(dif); display: block; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--violet); margin-bottom: 14px; }
.t-ne .difs .card::before { color: var(--terra); }
.difs .card h3 { font-size: 24px; margin-bottom: 8px; }

/* Chamada final no celular: foto em cima, texto embaixo, nunca texto sobre rosto (12/11) */
@media (max-width: 720px) {
  .final { flex-direction: column; align-items: stretch; min-height: 0; background: var(--night); }
  .final > img { position: relative; inset: auto; height: 300px; }
  .final::after { display: none; }
  .final .wrap { padding-top: 28px; padding-bottom: 30px; }
}

/* Oferta com 2 planos (grade nova, 16/11) */
.plans.plans-2 { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
.plan .de { min-height: 22px; }
@media (max-width: 1100px) { .plans.plans-2 { grid-template-columns: 1fr; max-width: 560px; } }
