/* Harmonização Peniana — tema claro clínico: branco, dourado e azul. */
:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #f2f6fb;
  --line: #dfe7f1;
  --ink: #16283c;
  --muted: #64748c;
  --gold: #b8912f;
  --gold-2: #d4af37;
  --gold-soft: #f6ecd2;
  /* Texto que vai POR CIMA do dourado. Existe como variavel porque numa
     clinica de marca branca o dourado pode ser escuro, e ai texto escuro
     por cima fica ilegivel. O servidor recalcula pela luminancia da cor. */
  --gold-ink: #2b2000;
  --blue: #1e5aa8;
  --blue-2: #3b7ad0;
  --blue-soft: #e7f0fb;
  --green: #1d9d55;
  --red: #d64545;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 50% -10%, var(--blue-soft), var(--bg));
  color: var(--ink); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.5;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 24px 18px 80px; }

/* ===== faixa fixa da clínica (29/09/2026) =====
   Logo e contatos presos no alto da tela o tempo todo: em qualquer ponto da
   página o paciente tem o endereço e o WhatsApp a um toque. Substituiu o
   cartão de contato que ficava embaixo do formulário, que só era visto por
   quem descia até o fim. É uma faixa fina de propósito: no celular ela divide
   a tela com o 3D, que também fica preso no alto. */
.clinicstrip { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(22,40,60,.06); }
.cs-in { max-width: 1320px; margin: 0 auto; padding: 8px 18px; min-height: 60px;
  display: flex; align-items: center; gap: 16px; }
.cs-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.clinicstrip .logoSlot { width: auto; min-width: 96px; max-width: 170px; height: 44px; padding: 0 8px;
  border-radius: 9px; font-size: 9.5px; letter-spacing: .8px; line-height: 1.25; text-align: center; }
.clinicstrip .logoSlot.haslogo { min-width: 0; padding: 0; }
.clinicstrip .clinicid { min-width: 0; }
.clinicstrip .clinicname { font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clinicstrip .clinictag { font-size: 10.5px; letter-spacing: 1.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-contact { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cs-contact[hidden] { display: none; }
.cschip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px;
  font-weight: 650; text-decoration: none; white-space: nowrap; min-width: 0; flex: 0 1 auto;
  transition: border-color .15s, background .15s; }
.cschip:hover { border-color: var(--blue); background: var(--blue-soft); }
.cschip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cschip .ci { font-size: 15px; line-height: 1; flex: none; }
.cschip .ct { overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
/* o WhatsApp é o contato que mais converte: verde, e o único que mantém texto até o tablet */
.cschip.zap { border-color: #b9e6cb; background: #eefaf3; color: #135f36; }
.cschip.zap:hover { border-color: var(--green); background: #dff4e8; }
@media (max-width: 1180px) { .cschip.map .ct { max-width: 150px; } }
@media (max-width: 1000px) { .cschip:not(.zap) { width: 36px; padding: 0; } .cschip:not(.zap) .ct { display: none; } }
@media (max-width: 700px) {
  .cs-in { padding: 6px 12px; gap: 10px; min-height: 52px; }
  .clinicstrip .logoSlot { height: 38px; max-width: 120px; }
  /* com logo, o nome repetido do lado só rouba espaço dos botões */
  .clinicstrip .logoSlot.haslogo + .clinicid { display: none; }
  .cschip, .cschip:not(.zap) { width: 38px; height: 38px; padding: 0; }
  .cschip .ct { display: none; }
}

/* ===== cabeçalho da página (título; o logo foi para a faixa fixa) ===== */
header { text-align: center; margin-bottom: 8px; }
.logoSlot { width: 150px; height: 64px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; letter-spacing: 1px;
  background: var(--panel); overflow: hidden; transition: border-color .15s; }
.logoSlot:hover { border-color: var(--gold); }
.logoSlot img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logoSlot.haslogo { border-style: solid; border-color: transparent; background: transparent; }
.clinicid { text-align: left; }
.clinicname { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: .5px; }
.clinictag { color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.apptitle { margin-top: 14px; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.apptitle b { color: var(--gold); }
.sub { color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 18px;
  box-shadow: 0 8px 26px rgba(22,40,60,.06); }
.card h2 { margin: 0 0 14px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }

/* toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--panel-2); color: var(--muted); border: 0; padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button.on { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); }
.growbtn { background: var(--panel-2); color: var(--gold); border: 1px solid var(--gold); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; }
.growbtn:hover { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); }
.toolhint { color: var(--muted); font-size: 12px; }

/* palco */
.stage { background: #fdfefe; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  height: 470px; overflow: auto; display: flex; align-items: center; justify-content: center; }
.stage svg { display: block; margin: auto; height: 456px; width: auto; }

/* NA MÃO DELA — duo atual × pós */
/* escolha entre mão dela e mão dele */
.maoseg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px;
  overflow: hidden; background: #fff; margin-top: 14px; }
.maoseg button { border: 0; background: #fff; color: var(--muted); font-family: inherit;
  font-weight: 800; font-size: 13px; padding: 8px 15px; cursor: pointer; }
.maoseg button + button { border-left: 1px solid var(--line); }
.maoseg button.on { background: var(--blue); color: #fff; }
.handduo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 680px){ .handduo { grid-template-columns: 1fr; } }
.handbox { background: #fdfefe; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.handbox.pos { border-color: var(--gold-2); background: #fffdf6; }
.handbox svg { width: 100%; height: auto; display: block; }

/* linha-resumo do ganho */
.verdict { text-align: center; margin: 12px 0 4px; padding: 10px 12px; border-radius: 8px;
  background: var(--gold-soft); border: 1px solid var(--gold-2); font-size: 14px; color: #5b4708; }
.verdict b { color: #3d2f00; }

/* painéis: medidas x aplicação */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
@media (max-width: 680px){ .panels { grid-template-columns: 1fr; } }
.panel { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.phead { font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.panel.gold .phead { color: var(--gold); }
.control { margin: 16px 0; }
.control:first-of-type { margin-top: 0; }
.control label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.control label b { color: var(--blue); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--gold); }

/* cartões de dosagem (ml) */
.mlgrid { display: grid; gap: 8px; }
.mlopt { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.mlopt:hover { border-color: var(--gold-2); }
.mlopt.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,145,47,.25); background: var(--gold-soft); }
.mlopt .ml { font-weight: 800; white-space: nowrap; }
.mlopt.on .ml { color: var(--gold); }
.mlopt .note { color: var(--muted); font-size: 11.5px; flex: 1; padding: 0 4px; }
.mlopt .gain { font-weight: 800; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mlsug { margin-top: 10px; font-size: 12.5px; color: var(--blue); background: var(--blue-soft);
  border: 1px solid #cfe0f5; border-radius: 8px; padding: 8px 10px; }
.cmp-note { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* classificação peniana */
.hero { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 700px){ .hero { grid-template-columns: 1fr; } }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.tile.post { background: var(--gold-soft); border-color: var(--gold-2); }
.tile .k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 20px; font-weight: 800; margin-top: 6px; }
.tile small { color: var(--muted); display: block; margin-top: 4px; font-size: 12px; }
.arrowline { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 2px; }

/* barras de percentil */
.metric { margin: 14px 0; }
.metric .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.metric .top b { font-variant-numeric: tabular-nums; }
.bar { height: 26px; background: var(--panel-2); border-radius: 8px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 8px 0 0 8px; }
.bar.goldbar > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.bar > span { position: absolute; right: 8px; top: 3px; font-size: 13px; font-weight: 700; color: var(--ink); }

/* títulos e conquistas (ego) */
.awsummary { font-size: 15px; margin-bottom: 12px; }
.awrow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin: 7px 0; background: var(--panel-2); }
.awrow.new { background: var(--gold-soft); border-color: var(--gold-2); }
.awrow.locked { opacity: .78; }
.awicon { font-size: 22px; }
.awname { flex: 1; min-width: 0; }
.awname b { font-size: 14.5px; }
.awname small { display: block; color: var(--muted); font-size: 11.5px; }
.awtag { font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.awtag.got { color: var(--green); border: 1px solid var(--green); background: rgba(29,157,85,.08); }
.awtag.new { color: var(--gold-ink); background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.awtag.need { color: var(--blue); border: 1px solid #cfe0f5; background: var(--blue-soft); }

/* medidas atual × pós no topo dos comparativos */
.cmpsizes { font-size: 14.5px; margin: -2px 0 12px; }

/* navegação das abas comparativos */
.tabnav { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabnav button { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 600; }
.tabnav button.on { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: var(--gold); }
.cmphint { margin-left: auto; align-self: center; font-size: 12px; color: var(--muted); }

/* mapa-múndi */
.worldsummary { font-size: 14px; margin-bottom: 10px; color: var(--ink); }
.mapwrap { position: relative; background: #f9fbfe; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.mapwrap svg { width: 100%; height: auto; display: block; }
.maptip { position: absolute; pointer-events: none; display: none; background: #ffffff; border: 1px solid var(--gold);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--ink); z-index: 5; white-space: nowrap; box-shadow: 0 6px 18px rgba(22,40,60,.18); }
.maplegend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 8px 0; }
.maplegend .grad { width: 120px; height: 10px; border-radius: 5px;
  background: linear-gradient(90deg, hsl(210,55%,48%), hsl(105,55%,50%), hsl(0,55%,52%)); }

/* tabelas */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.win { color: var(--green); font-weight: 700; }
.lose { color: var(--red); }
.pill { font-size: 11px; padding: 2px 7px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.scrollbox { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.scrollbox table { margin: 0; }
.scrollbox td { padding: 6px 10px; }

table.dist { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
table.dist th { color: var(--muted); font-size: 11px; text-transform: uppercase; text-align: left; padding: 6px 8px; }
table.dist td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.dist tr.me td { background: var(--gold-soft); }
.minibar { display: inline-block; width: 120px; height: 10px; background: #e6edf6; border-radius: 5px; overflow: hidden; vertical-align: middle; }
.minibar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.metag { color: var(--blue); font-size: 11px; }
.metag.goldtag { color: var(--gold); }

/* barras de ideais */
.ideals { margin: 6px 0 4px; }
.irow { display: grid; grid-template-columns: 190px 1fr 44px; gap: 10px; align-items: center; margin: 7px 0; }
@media (max-width: 560px){ .irow { grid-template-columns: 120px 1fr 40px; } }
.ilabel { font-size: 13px; color: var(--muted); }
.ibar { position: relative; height: 18px; background: #e6edf6; border-radius: 6px; overflow: hidden; }
.ibar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.ibar > em { position: absolute; top: -3px; width: 3px; height: 24px; background: var(--blue); box-shadow: 0 0 6px rgba(30,90,168,.55); }
.ibar > em.mgold { background: var(--gold); box-shadow: 0 0 6px var(--gold-2); }
.ival { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.ileg { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ileg em { display: inline-block; width: 3px; height: 12px; background: var(--blue); vertical-align: middle; margin-right: 4px; }
.ileg em.mgold { background: var(--gold); }

/* formulário de lead */
.leadgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px){ .leadgrid { grid-template-columns: 1fr; } }
.leadgrid .full { grid-column: 1 / -1; }
.lead label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.lead input[type=text], .lead input[type=tel], .lead input[type=email], .lead textarea {
  width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 15px; font-family: inherit; }
.lead input:focus, .lead textarea:focus { outline: 2px solid rgba(184,145,47,.35); border-color: var(--gold-2); }
.leadsummary { background: var(--blue-soft); border: 1px solid #cfe0f5; border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; color: var(--ink); margin: 12px 0; }
.leadsummary b { color: var(--blue); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 12px 0; }
.consent input { margin-top: 3px; accent-color: var(--gold); }
.leadbtn { display: block; width: 100%; padding: 15px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.leadbtn:hover { filter: brightness(1.05); }
.leadbtn:disabled { opacity: .55; cursor: not-allowed; }
.leadok { display: none; margin-top: 12px; padding: 12px; border-radius: 8px; font-size: 14px;
  background: rgba(29,157,85,.1); border: 1px solid var(--green); color: #135f36; }

/* rodapé */
.clinicfoot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; line-height: 1.7; }
.clinicfoot b { color: var(--ink); }
.hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }
.hint a { color: var(--muted); }
.disc { color: var(--muted); font-size: 11px; margin-top: 6px; }
.legalbox { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 11.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
