/* Modelo das páginas /guia/<slug>/ (gerado por scripts/guias/gerar.mjs).
   Marca: Context/design-taos.md (fundo #050505, verde #30DC68, Plus Jakarta Sans, JetBrains Mono). */
:root {
  --bg: #050505;
  --surface: #0c0f0d;
  --surface-2: #121713;
  --ink: #ffffff;
  --ink-2: #e8ece9;
  --dim: #9aa39d;
  --green: #30DC68;
  --green-light: #85EEA7;
  --green-ink: #062611;
  --green-soft: rgba(48, 220, 104, .09);
  --green-ring: inset 0 0 0 1px rgba(48, 220, 104, .3);
  --ring: inset 0 0 0 1px rgba(255, 255, 255, .09);
  --red: #ff7a66;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --side: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  background:
    radial-gradient(circle at 82% 8%, rgba(48, 220, 104, .13), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 190px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 190px),
    var(--bg);
  color: var(--ink-2);
  font: 500 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }

.moldura { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--side); }
.pular { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 8px; z-index: 99; }
.pular:focus { left: 8px; }

/* Botões: pílula, cor chapada */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--green); color: var(--green-ink);
  font: 700 15.5px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--green-light); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 5, .94); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
.topo-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 22px; width: auto; }

/* Capa */
.capa { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(36px, 5vw, 64px); }
.etiqueta { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.etiqueta b { font-weight: 500; background: var(--green-soft); box-shadow: var(--green-ring); padding: 5px 9px; border-radius: 6px; margin-left: 4px; }
.capa h1 {
  color: var(--ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 88px); max-width: 15ch; text-wrap: balance;
}
.sub { margin-top: 24px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.meta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--dim); font-size: 15px; }
.autor { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
/* Selo e tempo de leitura, acima do título */
.selo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -6px 0 18px; font: 500 13.5px/1.4 var(--mono); color: var(--dim); }
.selo span:first-child { color: var(--ink); }
.selo-tempo { display: inline-flex; align-items: center; gap: 14px; }
.selo-tempo::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.iniciais { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-size: 12.5px; font-weight: 800; }

/* Corpo: texto + coluna lateral */
.corpo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; padding-bottom: 120px; }
.lateral { grid-column: 2; grid-row: 1; position: sticky; top: 92px; display: grid; gap: 16px; }
.texto { grid-column: 1; grid-row: 1; max-width: 720px; }

.chamada { border-radius: 16px; padding: 24px; }
.capa .dentro { margin-top: 40px; max-width: 720px; padding: 22px 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--ring); }
.dentro h2 { color: var(--dim); font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.chamada h2 { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.dentro ul { list-style: none; display: grid; gap: 12px; }
.dentro li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
.dentro li.com-icone { display: flex; gap: 12px; padding-left: 0; color: var(--ink-2); }
.dentro li.com-icone::before { content: none; }
.dentro .icone { flex: none; width: 24px; text-align: center; font-size: 17px; line-height: 1.45; }
.dentro li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.chamada { background: var(--green-soft); box-shadow: var(--green-ring); }
.chamada p { font-size: 16px; line-height: 1.55; margin-bottom: 18px; }
.chamada .btn { width: 100%; }

/* Texto do guia */
.texto > div > * + * { margin-top: 22px; }
.texto h2 { color: var(--ink); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin-top: 64px !important; }
.texto h2:first-child { margin-top: 0 !important; }
.texto h3 { color: var(--ink); font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 40px !important; }
.texto p, .texto li { color: var(--ink-2); }
.texto strong { color: var(--ink); font-weight: 700; }
.texto ul, .texto ol { padding-left: 24px; display: grid; gap: 10px; }
.texto li::marker { color: var(--green); font-weight: 700; }
.texto code { font: 500 .86em var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.texto h2:focus, .texto h3:focus { outline: none; }

.nota { background: var(--surface); box-shadow: inset 3px 0 0 var(--green), var(--ring); border-radius: 12px; padding: 18px 22px; }
.nota p { font-size: 16.5px; }

.prompt { background: #0a0d0b; box-shadow: var(--green-ring); border-radius: 14px; overflow: hidden; }
.prompt figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; background: var(--surface-2); color: var(--ink); font-size: 14.5px; font-weight: 700; }
.copiar { flex: none; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--green); color: var(--green-ink); font: 700 13.5px var(--sans); cursor: pointer; transition: background-color .2s var(--ease); }
.copiar:hover { background: var(--green-light); }
.prompt pre, .estrutura { margin: 0; padding: 18px; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.prompt pre code, .estrutura code { background: none; padding: 0; font: 400 13.5px/1.6 var(--mono); color: var(--ink-2); }
.estrutura { background: var(--surface); box-shadow: var(--ring); border-radius: 14px; white-space: pre; }

.tabela { overflow-x: auto; border-radius: 12px; box-shadow: var(--ring); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
th { color: var(--ink); font-weight: 700; background: var(--surface-2); }
td:not(:first-child), th:not(:first-child) { white-space: nowrap; }
td:first-child { min-width: 200px; }
tbody tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; padding-left: 0 !important; gap: 4px !important; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background-color .2s var(--ease); }
.checklist label:hover { background: var(--surface); }
.checklist input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); cursor: pointer; display: grid; place-items: center; }
.checklist input::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid var(--green-ink); border-bottom: 2.5px solid var(--green-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--green); box-shadow: none; }
.checklist input:checked::after { opacity: 1; }
.checklist input:checked + span { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }

/* Cartão no meio do guia (vem com o resto, pela API) */
.cartao-meio { margin: 56px 0 !important; padding: clamp(24px, 4vw, 36px); border-radius: 20px; background: var(--green-soft); box-shadow: var(--green-ring); }
.cartao-meio .cartao-titulo { color: var(--ink); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.cartao-meio p + p { margin-top: 12px; font-size: 17px; }
.cartao-meio .btn { margin-top: 22px; }

/* O corte: o fim do trecho aberto some em degradê antes do formulário */
.aberto.cortado { -webkit-mask-image: linear-gradient(#000 calc(100% - 180px), transparent); mask-image: linear-gradient(#000 calc(100% - 180px), transparent); }

.portao { margin-top: 8px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: var(--surface); box-shadow: var(--green-ring), 0 40px 90px -40px rgba(48, 220, 104, .25); }
.portao h2 { color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 0 !important; }
.portao-txt { margin-top: 12px !important; font-size: 17px; }
#form-guia { margin-top: 24px; }
#form-guia > label { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.linha-form { display: flex; gap: 10px; }
.linha-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #050505; color: var(--ink); font: 500 16.5px var(--sans);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: box-shadow .2s var(--ease);
}
.linha-form input::placeholder { color: #7f8a82; }
.linha-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.linha-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.linha-form .btn { min-height: 52px; flex: none; }
.erro { min-height: 1.5em; margin-top: 10px; color: var(--red); font-size: 15px; font-weight: 600; }
.erro:empty { min-height: 0; margin: 0; }
.miudo { margin-top: 12px; color: var(--dim); font-size: 13.5px; }
.miudo a { color: var(--dim); }
.mel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lembrado { margin-top: 18px; color: var(--ink); font-weight: 600; }

.giro { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(6, 38, 17, .3); border-top-color: var(--green-ink); animation: girar .7s linear infinite; }
form[aria-busy="true"] .giro { display: inline-block; }
form[aria-busy="true"] .btn { cursor: progress; background: var(--green-light); }
@keyframes girar { to { transform: rotate(360deg); } }

.resto { margin-top: 64px; }
.resto > * + * { margin-top: 22px; }
.resto.entrando { animation: entrar .9s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(24px); } }

/* Guia de contato: nome, WhatsApp e e-mail empilhados, botão embaixo */
body[data-captura="contato"] .linha-form { flex-direction: column; }
body[data-captura="contato"] .linha-form .btn { width: 100%; }
body[data-captura="contato"] #form-guia .linha-form + label { margin-top: 16px; }

/* Convite ao diagnóstico no resto do guia de contato: faixa no topo, bloco no fim */
.faixa-convite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 12px 18px; border-radius: 12px; background: var(--green-soft); box-shadow: var(--green-ring); font-size: 15.5px; line-height: 1.4; }
.faixa-convite span { color: var(--ink); font-weight: 700; }
.faixa-convite a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.faixa-convite a:hover { text-decoration: underline; }
.convite-fim { margin-top: 72px !important; padding: clamp(28px, 5vw, 48px); border-radius: 24px; background: radial-gradient(circle at 88% 0%, rgba(48, 220, 104, .2), transparent 58%), var(--surface); box-shadow: var(--green-ring), 0 40px 90px -40px rgba(48, 220, 104, .35); }
.texto .convite-fim h2 { margin-top: 0 !important; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.convite-fim p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.convite-fim p + p { margin-top: 4px; }
.convite-fim .btn { margin-top: 28px; }

/* Fecho: trabalhe com a TAOS */
.fecho { background: var(--green); color: var(--green-ink); padding: clamp(72px, 10vw, 136px) 0; }
.fecho-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 72px; align-items: start; }
.fecho-olho { grid-column: 1 / -1; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); opacity: .75; }
.fecho h2 { grid-column: 1; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; color: var(--green-ink); text-wrap: balance; }
.fecho-txt { grid-column: 2; font-size: 19px; line-height: 1.55; color: var(--green-ink); align-self: end; }
.selos { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.selos li { padding: 10px 16px; border-radius: 10px; background: rgba(6, 38, 17, .1); font-size: 15.5px; font-weight: 600; color: var(--green-ink); }
.selos b { font-weight: 800; font-variant-numeric: tabular-nums; }
.fecho-acao { grid-column: 1; display: grid; gap: 12px; justify-items: start; }
.fecho .btn-lg { background: var(--green-ink); color: var(--ink); }
.fecho .btn-lg:hover { background: #0d3b1d; }
.fecho-miudo { font-size: 15px; color: var(--green-ink); opacity: .8; text-wrap: pretty; }
.proximo { grid-column: 2; display: grid; gap: 4px; color: var(--green-ink); text-decoration: none; font-weight: 800; font-size: 20px; padding: 16px 20px; border-radius: 14px; background: rgba(6, 38, 17, .1); transition: background-color .2s var(--ease); }
.proximo span { font-weight: 600; font-size: 14px; }
.proximo:hover { background: rgba(6, 38, 17, .18); }

.rodape { padding: 40px 0 56px; }
.rodape-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 14px; }
.rodape a { color: var(--dim); }
.rodape img { height: 20px; width: auto; opacity: .8; }

@media (max-width: 1023px) {
  .corpo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lateral { display: none; }
  .texto { grid-row: 1; }
  .fecho-in { grid-template-columns: minmax(0, 1fr); }
  .fecho h2, .fecho-txt, .fecho-acao, .proximo { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .topo-in { height: 60px; }
  .btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .linha-form { flex-direction: column; }
  .linha-form .btn { width: 100%; }
  .fecho .btn-lg, .fecho-acao, .cartao-meio .btn, .convite-fim .btn { width: 100%; }
  .rodape-in { flex-direction: column; align-items: flex-start; }
  .prompt figcaption { padding-left: 14px; }
  .selo { flex-direction: column; align-items: flex-start; gap: 4px; }
  .selo-tempo::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .giro { animation: none !important; border-top-color: rgba(6, 38, 17, .3); }
}

/* Guia com agenda (/guia/clinica/, assets/guia/agenda-guia.js): três perguntas e os horários. */
.agenda-passos { margin-top: 26px; min-height: 120px; }
.agenda-conta { color: var(--dim); font: 500 13px/1 var(--mono); letter-spacing: .04em; }
.texto .agenda-guia .agenda-titulo { margin-top: 10px; color: var(--ink); font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.agenda-dia { margin-top: 22px !important; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.agenda-opcoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.agenda-op { min-height: 48px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--surface-2); box-shadow: var(--ring); color: var(--ink); font: 600 15.5px var(--sans); cursor: pointer; transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); }
.agenda-op:hover { background: var(--green-soft); box-shadow: var(--green-ring); }
.agenda-op:active { transform: scale(.97); }
.agenda-op:focus-visible, .agenda-voltar:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.agenda-voltar { margin-top: 16px; padding: 6px 0; border: 0; background: none; color: var(--dim); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.agenda-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.agenda-acoes .agenda-voltar { margin-top: 0; }
.agenda-confirma p + p, .agenda-fim p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 520px) { .agenda-op { flex: 1 1 calc(50% - 10px); } .agenda-acoes .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .agenda-op { transition: none; } }
