/* Estilo das duas homes do DocApp: `index.html` (famílias) e `pediatras.html`.
   O vocabulário é o do convite (`convite.html`): painéis de cor sólida com o recorte
   da tela real saindo de baixo, Outfit nos títulos, Nunito no texto. O convite segue
   com o CSS dele embutido, porque é montado pela URL e manda-se sozinho.
   Visual único, sem modo escuro: é a marca. */
:root {
  --coral: #EF6351;
  --coral-dark: #E4533F;
  --gold: #F5A623;
  --green: #2E9E6B;
  --blue: #4A9FE5;
  --ink: #1A1A2E;
  --text-mid: #3d3d52;
  --text-light: #6b6b7d;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --rule: rgba(26, 26, 46, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--text-mid); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; color: var(--ink); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topo ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font: 800 21px/1 'Outfit', sans-serif; color: var(--ink); letter-spacing: -.02em; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(26,26,46,.06); }
.switch a { font: 700 14px/1 'Outfit', sans-serif; text-decoration: none; color: var(--text-mid); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.switch a[aria-current="page"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(26,26,46,.1); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 36px; align-items: center; padding: clamp(16px, 4vw, 48px) 0 clamp(48px, 7vw, 80px); }
@media (min-width: 880px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.eyebrow { display: inline-block; font: 700 13px/1 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); max-width: 34ch; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.note { margin-top: 16px; font-size: 15px; color: var(--text-light); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--coral); color: var(--white); text-decoration: none; font: 800 18px 'Outfit', sans-serif; letter-spacing: -.01em; padding: 17px 28px; border-radius: 16px; box-shadow: 0 14px 34px rgba(239,99,81,.32), inset 0 -3px 0 rgba(0,0,0,.12); transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); background: var(--coral-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { font: 700 17px 'Outfit', sans-serif; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--white); font: 600 13px/1.15 'Outfit', sans-serif; }
.store svg { width: 22px; height: 22px; flex: none; }
.store b { display: block; font-size: 16px; font-weight: 700; }
.store.soon { background: rgba(26,26,46,.08); color: var(--ink); }

/* Telefone com a Início real: o mesmo enquadramento do convite. */
.hero-art { margin: 0; background: var(--coral); border-radius: 28px; padding: 40px 20px 0; display: flex; justify-content: center; overflow: hidden; position: relative; }
.hero-art::before { content: ""; position: absolute; top: -120px; left: -60px; width: 320px; height: 320px; border-radius: 50%; background: var(--gold); filter: blur(80px); opacity: .35; }
/* Sem foto (página de pediatras): a anotação à mão do convite aponta para o topo,
   onde entram o nome e a foto. Mesmo desenho e medidas de `convite.html`. */
.hero-art.sem-foto { padding-top: 76px; }
.photo-note { position: absolute; z-index: 5; left: 0; top: -56px; pointer-events: none; }
.photo-note span { display: block; font: 700 30px/1 'Caveat', 'Comic Sans MS', cursive; color: #fff; transform: rotate(-4deg); white-space: nowrap; padding-left: 60px; }
.photo-note svg { display: block; margin-top: -2px; }
.phone { position: relative; width: 300px; max-width: 100%; background: #111; border-radius: 46px 46px 0 0; padding: 10px 10px 0; box-shadow: 0 30px 70px rgba(26,26,46,.35); }
/* A Início recortada: os ~560pt de cima da tela de 402×874pt. A tela é o container
   (cqw = 1% da largura), então a sobreposição escala com a imagem: 1pt = 0,2488cqw. */
.screen { position: relative; container-type: inline-size; aspect-ratio: 402 / 560; border-radius: 36px 36px 0 0; overflow: hidden; background: #FAFAF8; }
.screen > img { display: block; width: 100%; height: auto; }
/* Barra do topo (CareNavBar): foto 48pt a 16pt da borda, centro em 94,5pt; nome Outfit 17pt a 10pt da foto.
   Cópia das medidas de `convite.html` (.ov-top, .ov-com): recapturou a tela, ajuste as duas. */
.ov-top { position: absolute; left: 3.98cqw; top: 17.54cqw; right: 20cqw; height: 11.94cqw; display: flex; align-items: center; gap: 2.49cqw; }
.ov-top b { font: 700 4.23cqw/1.2 'Outfit', sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-top img { flex: none; width: 11.94cqw; height: 11.94cqw; border-radius: 50%; object-fit: cover; background: #E4E1DC; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--coral); }

/* Banner de notificação no desenho do iOS. */
.push { position: absolute; z-index: 4; left: -14px; right: -14px; bottom: 30px; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 24px; background: rgba(246,246,248,.92); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 14px 40px rgba(26,26,46,.32); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: #111; text-align: left; animation: push-in .6s cubic-bezier(.2,.9,.3,1.15) 1s both; }
.push-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.push-text { min-width: 0; flex: 1; }
.push-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.push-head b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.push-head span { flex: none; font-size: 13px; color: rgba(60,60,67,.6); }
.push p { margin: 1px 0 0; font-size: 15px; line-height: 1.3; }
.push.static { position: relative; left: auto; right: auto; bottom: auto; animation: none; }
@keyframes push-in { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Seções ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.1; }
.section-head h2 span { color: var(--coral); }
.section-head p { margin-top: 14px; font-size: 19px; }

/* Dores, em balões de mensagem: o que hoje vai para o WhatsApp ou para o Google. */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(2, 1fr); } }
.pains li { border-radius: 18px; padding: 18px 20px; color: var(--white); display: flex; flex-direction: column; gap: 6px; }
.pains b { font: 600 clamp(19px, 2.4vw, 22px)/1.25 'Outfit', sans-serif; letter-spacing: -.005em; text-wrap: balance; }
.pains span { font-size: 16px; line-height: 1.45; opacity: .9; text-wrap: pretty; }
.c-coral { background: var(--coral); }
.c-blue { background: var(--blue); }
.c-green { background: var(--green); }
.c-gold { background: var(--gold); color: var(--ink) !important; }
.c-ink { background: var(--ink); }

/* Tour: um bloco por recurso, texto de um lado e o recorte da tela do outro. */
.tour { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px); }
.step { display: grid; gap: 18px; align-items: center; }
@media (min-width: 880px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step:nth-child(even) .step-copy { order: 2; }
}
.step-copy { display: flex; flex-direction: column; gap: 12px; }
.tag { align-self: flex-start; background: var(--c); color: var(--white); font: 700 12px/1 'Outfit', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.step h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.12; }
.step-copy p { font-size: 18px; text-wrap: pretty; max-width: 46ch; }
.s-coral { --c: var(--coral); }
.s-blue { --c: var(--blue); }
.s-green { --c: var(--green); }
.s-gold { --c: var(--gold); }
.s-ink { --c: var(--ink); }
.s-gold .tag { color: var(--ink); }
.crop { margin: 0; background: var(--c); border-radius: 24px; padding: clamp(18px, 4vw, 30px) clamp(18px, 4vw, 30px) 0; overflow: hidden; }
.crop.closed { padding-bottom: clamp(18px, 4vw, 30px); }
.crop-screen { position: relative; container-type: inline-size; border-radius: 16px 16px 0 0; overflow: hidden; background: #FAFAF8; box-shadow: 0 18px 44px rgba(26,26,46,.28); }
.crop-screen img { display: block; width: 100%; height: auto; }
/* Consultas: a linha "com <logo da clínica>" foi apagada do recorte (1080×1010 px) e
   volta aqui. Centro da linha em y = 960 px. */
.ov-com { position: absolute; left: 0; right: 0; top: 83.6cqw; height: 10.4cqw; display: flex; align-items: center; justify-content: center; gap: 1.8cqw; font: 400 3.6cqw/1 'Nunito', sans-serif; color: var(--text-mid); }
.ov-com img { flex: none; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; object-fit: cover; background: #E4E1DC; }
.ov-com b { font: 700 3.8cqw/1 'Outfit', sans-serif; color: var(--ink); white-space: nowrap; }

/* Passo a passo numerado. */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: how; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.how li { counter-increment: how; background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.how li::before { content: counter(how, decimal-leading-zero); font: 800 30px/1 'Outfit', sans-serif; color: var(--c, var(--coral)); }
.how li:nth-child(2) { --c: var(--blue); }
.how li:nth-child(3) { --c: var(--green); }
.how li:nth-child(4) { --c: var(--gold); }
.how h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.how p { font-size: 16px; line-height: 1.5; }

/* Lista do painel do profissional. */
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .panel-list { grid-template-columns: repeat(2, 1fr); } }
.panel-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; }
.panel-list li > i { flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--c, var(--coral)); }
.panel-list b { display: block; font: 700 18px/1.3 'Outfit', sans-serif; color: var(--ink); }
.panel-list span { font-size: 16px; line-height: 1.45; }

/* Autoras do conteúdo. */
.authors { display: grid; gap: 16px; }
@media (min-width: 760px) { .authors { grid-template-columns: 1fr 1fr; } }
.author { display: flex; gap: 16px; align-items: flex-start; }
.author img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.author h3 { font-size: 19px; font-weight: 700; }
.author p { font-size: 15px; line-height: 1.5; margin-top: 4px; }

/* Faixa que manda para a outra versão da página. */
.cross { display: grid; gap: 20px; align-items: center; background: var(--ink); color: rgba(255,255,255,.85); border-radius: 28px; padding: clamp(28px, 5vw, 48px); }
@media (min-width: 760px) { .cross { grid-template-columns: 1fr auto; } }
.cross h2 { color: var(--white); font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.12; }
.cross p { margin-top: 10px; font-size: 18px; max-width: 52ch; }
.cross .btn { background: var(--white); color: var(--ink); box-shadow: none; }
.cross .btn:hover { background: #f1efe9; }

/* FAQ */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-of-type { border-top: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 19px/1.3 'Outfit', sans-serif; color: var(--ink); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { color: var(--coral); font-size: 26px; font-weight: 400; flex: none; transition: transform .2s ease; }
.faq-item[open] .faq-sign { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; font-size: 17px; max-width: 62ch; }
.faq-item p a { color: inherit; }

/* Fecho */
.closing { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.08; max-width: 18ch; }
.closing h2 span { color: var(--green); }
.closing p { font-size: 19px; max-width: 46ch; }
.sign b { display: block; font: 800 20px 'Outfit', sans-serif; color: var(--ink); }
.sign span { color: var(--text-light); font-size: 15px; }

/* Rodapé */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-light); }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-brand b { font: 800 17px 'Outfit', sans-serif; color: var(--ink); }
.foot-brand img { height: 28px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .switch a { padding: 8px 10px; font-size: 13px; }
  .brand b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .push { animation: none; } }
