/* FarmaConsulte — estilos do site (identidade: verde #009b63/#007250, texto #103532, DM Sans) */
:root {
  --green: #009b63;
  --green-dark: #007250;
  --green-deep: #0b5a40;
  --green-50: #ecf8f2;
  --green-100: #d4f0e2;
  --ink: #103532;
  --text: #334155;
  --muted: #5b6b7a;
  --bg: #f8fbf9;
  --line: rgba(0, 80, 60, .12);
  --shadow: 0 18px 50px rgba(0, 80, 60, .12);
  --shadow-sm: 0 6px 20px rgba(0, 80, 60, .08);
  --radius: 22px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #f5b300; outline-offset: 3px; border-radius: 6px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 16px; border: 0;
  font: inherit; font-weight: 800; font-size: 17px; letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; box-shadow: 0 12px 28px rgba(0, 114, 80, .28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(0, 114, 80, .34); }
.btn-outline { background: #fff; color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-outline:hover { background: var(--green-50); }
.btn-lg { min-height: 60px; font-size: 18px; padding: 16px 28px; border-radius: 18px; }
.btn-block { display: flex; width: 100%; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* Cabeçalho */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 999px; overflow: hidden; background: var(--green-50); border: 1px solid var(--green-100); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brand-name { display: block; font-size: 22px; font-weight: 800; color: var(--green-dark); line-height: 1; }
.brand-tag { display: block; font-size: 11px; letter-spacing: .22em; font-weight: 700; color: var(--green-dark); margin-top: 4px; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green-dark); }
.header-cta { display: none; min-height: 46px; padding: 10px 20px; font-size: 15px; border-radius: 14px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; background: transparent; color: var(--ink); border-radius: 12px; cursor: pointer; }
.menu-btn .ic { width: 28px; height: 28px; }
.mobile-menu { display: none; padding: 4px 0 18px; }
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 13px 4px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-menu .btn { margin-top: 12px; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Primeira tela */
main { padding-top: var(--header-h); }
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #ffffff 0%, #ffffff 45%, var(--green-50) 100%); }
.hero-grid { display: grid; gap: 28px; padding: 28px 0 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--green-100); color: var(--green-deep); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow .ic { width: 18px; height: 18px; }
.hero h1 { margin-top: 16px; font-size: clamp(30px, 7.4vw, 54px); font-weight: 800; color: var(--ink); }
.hero h1 .hl { color: var(--green-dark); }
.hero-sub { margin-top: 14px; font-size: clamp(17px, 2.2vw, 20px); color: var(--text); max-width: 640px; }

.pro-chip { margin-top: 18px; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-sm); max-width: 440px; }
.pro-chip img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; object-position: 50% 12%; background: var(--green-50); }
.pro-chip strong { display: block; font-size: 16px; color: var(--ink); line-height: 1.25; }
.pro-chip span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }

.benefits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.4; }
.benefits .ic-wrap { width: 34px; height: 34px; border-radius: 10px; background: var(--green-50); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.benefits .ic { width: 19px; height: 19px; }
.benefits li > span:last-child { padding-top: 6px; }

.offer { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 560px; }
.offer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.offer-name { font-weight: 700; color: var(--ink); font-size: 17px; }
.offer-price { font-size: 34px; font-weight: 800; color: var(--green-dark); line-height: 1; white-space: nowrap; }
.offer .btn { margin-top: 16px; }
.offer-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text); line-height: 1.45; }
.offer-notes li { display: flex; gap: 8px; align-items: flex-start; }
.offer-notes .ic { width: 17px; height: 17px; color: var(--green-dark); margin-top: 2px; }
.offer-notes .warn { color: var(--muted); }
.offer-notes .warn .ic { color: #b7791f; }
.secure-line { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.secure-line .ic { width: 16px; height: 16px; }

.hero-photo { display: none; position: relative; align-self: end; justify-self: center; }
.hero-photo img { max-height: 640px; width: auto; filter: drop-shadow(0 25px 45px rgba(0, 65, 45, .18)); }
.hero-photo .tag { position: absolute; left: 0; bottom: 48px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-photo .tag strong { display: block; font-size: 16px; }
.hero-photo .tag span { display: block; font-size: 14px; color: var(--muted); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; padding: 48px 0 0; }
  .hero-copy { padding-bottom: 56px; }
  .hero-photo { display: block; }
  .pro-chip.mobile-only { display: none; }
}

/* Faixa de confiança */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.trust .ic { color: var(--green-dark); width: 20px; height: 20px; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding: 20px 0; } }

/* Seções */
.section { padding: 64px 0; }
.section-white { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.kicker { color: var(--green-dark); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section h2 { margin-top: 8px; font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; color: var(--ink); }
.section-head p { margin-top: 12px; color: var(--text); }
@media (min-width: 1024px) { .section { padding: 88px 0; } }

/* Profissionais */
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-photo { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); max-width: 440px; margin: 0 auto; width: 100%; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.pros { display: grid; gap: 14px; margin-top: 22px; }
.pro-card { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.pro-card .ic-wrap { width: 46px; height: 46px; border-radius: 14px; background: var(--green-100); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.pro-card strong { display: block; font-size: 18px; color: var(--ink); line-height: 1.25; }
.pro-card span { display: block; color: var(--muted); font-size: 15px; }
.quote { margin: 22px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); font-size: 18px; color: var(--text); font-style: italic; }
.verify-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) { .about-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; } }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.step-num { width: 42px; height: 42px; border-radius: 999px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.step h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--text); font-size: 15.5px; }
.callout { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 18px; padding: 16px 18px; color: var(--ink); font-size: 15.5px; }
.callout .ic { color: var(--green-dark); margin-top: 2px; }
.callout.warn { background: #fff8eb; border-color: #f5deb0; }
.callout.warn .ic { color: #b7791f; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Serviços */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card .ic-wrap { width: 50px; height: 50px; border-radius: 14px; background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.card .ic { width: 26px; height: 26px; }
.card h3 { margin-top: 16px; font-size: 19px; font-weight: 800; }
.card p { margin-top: 8px; color: var(--text); font-size: 15.5px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* Bloco de contratação */
.cta-band { background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 55%, var(--green) 100%); color: #fff; border-radius: 28px; padding: 32px 22px; display: grid; gap: 22px; align-items: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 3.8vw, 34px); }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 10px; }
.cta-band .price { font-size: 40px; font-weight: 800; line-height: 1; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.cta-band .small { font-size: 14px; color: rgba(255,255,255,.85); margin-top: 10px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; padding: 44px 48px; } }

/* Perguntas frequentes */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--green-dark); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text); }

/* Limites e segurança */
.limits { display: grid; gap: 16px; }
.limits .card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.limits .card h3 .ic { width: 22px; height: 22px; color: var(--green-dark); }
.limits ul { margin: 10px 0 0; padding-left: 20px; color: var(--text); font-size: 15.5px; }
.limits li + li { margin-top: 6px; }
@media (min-width: 900px) { .limits { grid-template-columns: 1fr 1fr; } }

/* Contato */
.contact-grid { display: grid; gap: 14px; }
.contact-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; }
.contact-card .ic { margin: 0 auto; width: 30px; height: 30px; color: var(--green-dark); }
.contact-card b { display: block; margin-top: 8px; }
.contact-card a, .contact-card span { display: block; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--green-dark); text-decoration: underline; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* Rodapé */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 14.5px; color: var(--muted); }
.footer-grid { display: grid; gap: 22px; }
.site-footer h3 { font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--green-dark); }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Barra de contratação fixa no celular */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 80, 60, .10); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .price-mini { line-height: 1.15; }
.sticky-cta .price-mini small { display: block; font-size: 12px; color: var(--muted); }
.sticky-cta .price-mini strong { font-size: 20px; color: var(--green-dark); }
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 10px 14px; font-size: 15.5px; }
@media (max-width: 1023px) { body.has-sticky { padding-bottom: 76px; } }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* Lia: botão de atalho e posicionamento acima da barra fixa no celular */
#abrir-lia { position: fixed; right: 20px; bottom: 20px; z-index: 80; transition: bottom .25s ease; }
#lia-floating-button { width: 60px; height: 60px; border-radius: 999px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; font: inherit; font-weight: 800; border: 4px solid #fff; box-shadow: 0 16px 35px rgba(0, 120, 82, .35); cursor: pointer; }
@media (max-width: 1023px) {
  body.sticky-visible #abrir-lia { bottom: 90px; }
}

/* Aviso de erro do checkout */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; max-width: calc(100% - 32px); width: 440px; box-shadow: var(--shadow); font-size: 15px; }

/* Páginas internas (termos, privacidade) */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow-sm); }
.doc h1 { font-size: clamp(28px, 4.6vw, 38px); font-weight: 800; }
.doc h2 { font-size: 21px; margin-top: 30px; font-weight: 800; }
.doc p, .doc li { color: var(--text); }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 6px; }
.doc .toc { margin-top: 18px; background: var(--green-50); border-radius: 16px; padding: 14px 18px; }
@media (min-width: 900px) { .doc { padding: 44px 52px; } }

/* Páginas de retorno do pagamento */
.status-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.status-card { background: #fff; width: 100%; max-width: 560px; padding: 32px 24px; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); text-align: center; }
.status-card .brand { justify-content: center; margin-bottom: 22px; }
.status-icon { width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.status-icon .ic { width: 38px; height: 38px; stroke-width: 2.6; }
.status-icon.wait { background: #fff4dc; color: #b7791f; }
.status-icon.fail { background: #fde8e8; color: #c53030; }
.status-card h1 { font-size: 27px; font-weight: 800; }
.status-card p { margin-top: 12px; color: var(--text); }
.status-card .btn { margin-top: 20px; }
.status-card .small { font-size: 14px; color: var(--muted); }
.spinner { width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 999px; border: 4px solid var(--green-100); border-top-color: var(--green-dark); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Widget do Botpress (Lia) acima da barra fixa no celular */
@media (max-width: 1023px) {
  body.sticky-visible #fab-root { bottom: 90px !important; }
}
