/*
 * PedHelp, landing de conversão.
 * Espelha o design system do app (clínica boutique acolhedora): Montserrat na
 * interface, Fraunces nos títulos, paleta roxa. Estático, sem JavaScript,
 * mobile-first. Zero estilo inline, para a CSP estrita.
 */

:root {
  --brand-primary: #6B4FA0;
  --brand-accent: #7E63A7;
  --brand-deep: #43306B;
  --brand-bg: #F4F1F8;
  --brand-light: #EFEAF7;
  --surface: #FFFFFF;
  --ink: #2A2140;
  --ink-soft: #605873;
  --line: rgba(42, 33, 64, 0.10);
  --perigo: #D13C4B;
  --calma: #2F8F83;

  --shadow-soft: 0 1px 2px rgba(42, 33, 64, 0.04), 0 6px 20px -12px rgba(107, 79, 160, 0.20);
  --shadow-card: 0 1px 2px rgba(42, 33, 64, 0.05), 0 14px 34px -18px rgba(107, 79, 160, 0.28);
  --shadow-float: 0 2px 6px rgba(42, 33, 64, 0.06), 0 30px 60px -28px rgba(67, 48, 107, 0.30);

  --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Montserrat", Georgia, serif;

  --maxw: 1080px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(125% 80% at 50% -12%, rgba(126, 99, 167, 0.12), rgba(126, 99, 167, 0) 60%),
    var(--brand-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--brand-deep); letter-spacing: -0.01em; font-optical-sizing: auto; line-height: 1.14; margin: 0 0 0.4em; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 600; }
h2 { font-size: clamp(23px, 4.5vw, 32px); font-weight: 600; margin-top: 0; }
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--surface); color: var(--brand-deep); padding: 10px 16px; border-radius: 0 0 12px 0; box-shadow: var(--shadow-soft); }
.skip-link:focus { left: 0; }

/* Cabeçalho com CTA persistente */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 248, 0.88); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .nome { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--brand-deep); }
.nav-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--brand-primary); background: var(--brand-light); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand-primary); background: var(--brand-light); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; min-height: 44px; }
.btn:active { transform: scale(0.98); }
.btn-primario { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primario:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
.btn-secundario { background: var(--surface); color: var(--brand-primary); border-color: var(--line); }
.btn-secundario:hover { background: var(--brand-light); text-decoration: none; }
.btn-compacto { padding: 9px 16px; font-size: 14px; min-height: 40px; }

/* Seções */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 700; color: var(--brand-accent); margin: 0 0 10px; }
.section-intro { max-width: 640px; }
.section-intro p { font-size: 16.5px; color: var(--ink-soft); }

/* Hero em duas colunas */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--ink-soft); max-width: 560px; }
.nota-consulta { margin-top: 18px; font-size: 13px; color: var(--ink-soft); background: var(--brand-light); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }

/* Faixa de autoridade (prova honesta, sem depoimento inventado) */
.autoridade-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.autoridade-strip span { display: inline-flex; align-items: center; gap: 7px; }
.autoridade-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--calma); display: inline-block; }

/* Mockup ilustrativo do app (trocar por screenshot real) */
.mockup { justify-self: center; }
.phone { width: 260px; max-width: 78vw; background: var(--brand-deep); border-radius: 40px; padding: 12px; box-shadow: var(--shadow-float); }
.phone-tela { background: var(--brand-bg); border-radius: 30px; overflow: hidden; }
.phone-top { background: var(--surface); padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.phone-top .oi { font-size: 12px; color: var(--ink-soft); }
.phone-top .tit { font-family: var(--font-display); font-size: 18px; color: var(--brand-deep); font-weight: 600; }
.phone-lista { padding: 12px; display: grid; gap: 8px; }
.phone-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-soft); }
.phone-item small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 11.5px; margin-top: 2px; }
.mockup-nota { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

/* Botões das lojas (download) */
.lojas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-loja { display: inline-flex; flex-direction: column; justify-content: center; background: var(--brand-deep); color: #fff; border-radius: 14px; padding: 10px 22px; min-width: 190px; min-height: 56px; box-shadow: var(--shadow-soft); line-height: 1.2; }
.btn-loja:hover { background: #35265a; color: #fff; text-decoration: none; }
.btn-loja .ls-top { font-size: 11px; font-weight: 500; opacity: 0.85; }
.btn-loja .ls-big { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.lojas-nota { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; }

/* Problema e agitação */
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.painel.centro { text-align: center; }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.acoes.centro { justify-content: center; }

/* Bento dos módulos, com ritmo */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; } }
.bento .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.bento .card h3 { margin: 0 0 6px; }
.bento .card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.bento .destaque { background: linear-gradient(160deg, var(--brand-primary), var(--brand-deep)); color: #fff; border: none; }
.bento .destaque h3 { color: #fff; }
.bento .destaque p { color: rgba(255,255,255,0.88); }
@media (min-width: 720px) {
  .bento .col-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
}

/* Passos */
.passos { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: passo; }
@media (min-width: 720px) { .passos { grid-template-columns: repeat(3, 1fr); } }
.passo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.passo .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-light); color: var(--brand-primary); font-weight: 800; font-family: var(--font-display); margin-bottom: 12px; }
.passo h3 { margin: 0 0 4px; }
.passo p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-deep); padding: 15px 0; list-style: none; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); font-size: 14.5px; padding-bottom: 15px; margin: 0; }

/* Páginas de conteúdo (legal / suporte) */
.doc { padding: 40px 0 8px; }
.doc h1 { margin-bottom: 8px; }
.doc .versao { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 28px; }
.prosa { max-width: 720px; }
.prosa h2 { margin: 32px 0 10px; font-size: 22px; }
.prosa h3 { margin: 22px 0 6px; color: var(--brand-deep); }
.prosa p { color: var(--ink); font-size: 15.5px; }
.prosa p .rotulo { font-weight: 700; color: var(--brand-deep); }
.prosa ul { padding-left: 20px; margin: 0 0 1em; }
.prosa li { margin-bottom: 6px; }
.callout { background: var(--brand-light); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 1em; }
.callout.perigo { background: rgba(209, 60, 75, 0.06); border-color: rgba(209, 60, 75, 0.25); }
.callout.perigo .rotulo { color: var(--perigo); }

/* Contato (suporte) */
.contato-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .contato-grid { grid-template-columns: 1fr 1fr; } }
.contato-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-soft); }
.contato-card .rotulo { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-accent); font-weight: 700; margin-bottom: 4px; }
.contato-card a { font-weight: 600; font-size: 16px; }

/* Rodapé */
.site-footer { background: var(--brand-deep); color: #E9E3F4; margin-top: 40px; }
.site-footer a { color: #E9E3F4; }
.site-footer a:hover { color: #fff; }
.site-footer .grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 40px 0 28px; }
@media (min-width: 720px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: #C9BEE4; margin: 0 0 12px; }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer .empresa { font-size: 13px; line-height: 1.7; color: #C9BEE4; }
.site-footer .empresa strong { color: #fff; font-weight: 600; }
.site-footer .rodape-base { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0 30px; font-size: 12.5px; color: #B9ACD9; }
.site-footer .disclaimer { font-size: 12.5px; color: #C9BEE4; margin-top: 6px; }

a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== Central de conteúdo (guias) ===== */
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); padding: 16px 0 0; }
.breadcrumb a { color: var(--brand-primary); }
.breadcrumb span { margin: 0 6px; color: var(--ink-soft); }

.review-banner { background: #FFF6D6; border: 1px solid #E7C65B; color: #7A5A00; border-radius: 12px; padding: 12px 16px; font-size: 13px; margin: 14px 0 0; }
.review-banner strong { color: #6b4e00; }

.artigo { padding: 8px 0 8px; }
.artigo h1 { margin: 10px 0 6px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--ink-soft); font-size: 13px; margin: 0 0 22px; }
.byline .autor { font-weight: 600; color: var(--brand-deep); }
.byline .sep { color: var(--line); }

.artigo .prosa h2 { margin: 30px 0 8px; }
.artigo .prosa ul { padding-left: 20px; }
.artigo .prosa li { margin-bottom: 8px; }

.relacionados { margin: 8px 0; }
.relacionados h2 { font-size: 20px; margin-bottom: 12px; }
.rel-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .rel-grid { grid-template-columns: 1fr 1fr; } }
.rel-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
.rel-card:hover { text-decoration: none; border-color: var(--brand-accent); }
.rel-card .rc-tit { font-family: var(--font-display); font-weight: 600; color: var(--brand-deep); font-size: 16px; }
.rel-card .rc-desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.cta-artigo { background: linear-gradient(160deg, var(--brand-primary), var(--brand-deep)); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); margin: 8px 0; }
.cta-artigo h2 { color: #fff; margin: 0 0 6px; font-size: 20px; }
.cta-artigo p { color: rgba(255,255,255,0.9); margin: 0 0 14px; font-size: 14.5px; }
.cta-artigo .btn-loja { background: #fff; color: var(--brand-deep); }
.cta-artigo .btn-loja:hover { background: #f3eefb; }

/* Hub de guias */
.hub-cluster { margin-top: 28px; }
.hub-cluster h2 { font-size: 20px; margin-bottom: 4px; }
.hub-cluster .desc { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.hub-nota { color: var(--ink-soft); font-size: 13.5px; margin-top: 26px; }
