/* ClubeBarber · apresentação. Cores e fontes da marca (as mesmas da LP). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fontes/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fontes/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fontes/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fontes/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/fontes/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #081722;
  --ink-2: #0f2230;
  --paper: #f4f4ee;
  --surface: #fcfcf8;
  --accent: #28d7c0;
  --accent-soft: #dff5ef;
  --positive: #116b5a;
  --danger: #cf563f;
  --line: #c8d0ca;
  --muted: #596b67;
  --wa-fundo: #efeae2;
  --wa-casa: #d9fdd3;
  --wa-topo: #0b3b36;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { max-width: 100%; display: block; }

/* ─── a cena ─── */
#palco { position: fixed; inset: 0; }
.cena {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 28px);
  padding: clamp(28px, 7vh, 88px) max(var(--gutter), calc((100% - 1240px) / 2)) clamp(72px, 11vh, 110px);
  background: var(--paper);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
  overflow-y: auto;
}
.cena.ativa { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease; }
.cena.escura { background: var(--ink); color: var(--paper); }
.cena.anexo { background: var(--surface); }
.notas { display: none !important; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(38px, 7vw, 92px); font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(28px, 4.4vw, 58px); font-weight: 700; line-height: 1.06; }
h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.sub { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.escura .sub { color: rgba(244, 244, 238, .72); }
.rotulo { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--positive); }
.escura .rotulo { color: var(--accent); }
.fonte { font-size: 13px; color: var(--muted); line-height: 1.5; }

.marca { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; }
.marca img { width: 40px; height: 40px; }
.marca b { font-weight: 800; }
.marca.grande { font-size: 28px; }
.marca.grande img { width: 56px; height: 56px; }

/* ─── layouts ─── */
.duas { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.duas > div:first-child { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 24px); }
.duas.topo { align-items: start; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tres > div { border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.tres p { color: var(--muted); line-height: 1.5; font-size: 16px; }
.quatro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.quatro figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.quatro img { width: 100%; height: clamp(160px, 34vh, 340px); object-fit: cover; object-position: top; border: 1px solid var(--line); background: var(--surface); }
.quatro figcaption { font-size: 15px; color: var(--muted); line-height: 1.4; }
.quatro figcaption b { display: block; color: var(--ink); font-family: var(--display); font-size: 18px; }

.lista-curta { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lista-curta li { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; padding-left: 28px; position: relative; }
.lista-curta li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--accent); }

.numero-destaque { display: flex; align-items: baseline; gap: 18px; border-top: 3px solid var(--ink); padding-top: 18px; }
.numero-destaque b { font-family: var(--display); font-size: clamp(56px, 8vw, 104px); font-weight: 800; letter-spacing: -0.05em; color: var(--positive); line-height: 1; }
.numero-destaque span { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; max-width: 26ch; }

/* ─── celular ─── */
.celular { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(8, 23, 34, .45); }
.tela-notificacoes { height: 100%; background: linear-gradient(160deg, #13324a, var(--ink)); color: var(--paper); padding: 26px 14px; display: flex; flex-direction: column; gap: 8px; }
.hora-grande { font-family: var(--display); font-size: 56px; font-weight: 700; text-align: center; margin-bottom: 14px; letter-spacing: -0.03em; }
.notif { background: rgba(244, 244, 238, .12); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; font-size: 13px; }
.notif b { font-size: 13px; }
.notif span { opacity: .82; }
.sem-resposta { margin-top: auto; text-align: center; font-size: 13px; color: var(--accent); font-weight: 600; }

.wa { height: 100%; display: flex; flex-direction: column; background: var(--wa-fundo); }
.wa-topo, .vit-topo { display: flex; align-items: center; gap: 10px; padding: 14px 12px; background: var(--wa-topo); color: #fff; }
.wa-topo small, .vit-topo small { display: block; font-size: 11px; opacity: .75; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 700; flex: none; }
.wa-msgs { padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 8px 10px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; position: relative; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg small { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #667781; }
.msg.cliente { background: #fff; align-self: flex-start; }
.msg.casa { background: var(--wa-casa); align-self: flex-end; }

.vitrine { height: 100%; background: var(--surface); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.vit-topo { background: var(--ink); }
.vit-rot { padding: 6px 14px 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vit-item { margin: 0 12px; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
.vit-item small { display: block; color: var(--muted); font-size: 11px; }
.vit-item.ativo { border: 2px solid var(--ink); }
.vit-horas { margin: 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vit-horas span { text-align: center; padding: 8px 0; border: 1px solid var(--line); background: #fff; }
.vit-horas .ativo { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vit-botao { margin: 6px 12px 0; padding: 12px; text-align: center; background: var(--accent); color: var(--ink); font-weight: 700; }
.vit-clube { margin: auto 12px 14px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; border: 1px dashed var(--positive); color: var(--positive); }

/* ─── calculadoras ─── */
.calculadora { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.calculadora label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 15px; color: var(--muted); }
.calculadora output { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 18px; }
.calculadora input[type="range"] { width: 100%; accent-color: var(--positive); height: 28px; }
.resultado { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.resultado span { color: var(--muted); }
.resultado b { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; text-align: right; }
.resultado b:first-of-type { color: var(--positive); }
.comparacao { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.comparacao > div { display: flex; flex-direction: column; gap: 4px; }
.comparacao span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.comparacao b { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.comparacao small { color: var(--muted); font-size: 13px; }
.ruim { color: var(--danger); }
.bom { color: var(--positive); }

/* ─── prova ─── */
blockquote { margin: 0; display: flex; flex-direction: column; gap: 22px; }
blockquote p { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
blockquote footer { display: flex; align-items: center; gap: 14px; }
blockquote footer img { width: 56px; height: 56px; border-radius: 50%; }
blockquote footer span { display: flex; flex-direction: column; color: var(--muted); font-size: 15px; }
blockquote footer b { color: var(--ink); font-size: 17px; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 3px solid var(--ink); }
.numeros > div { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.numeros b { font-family: var(--display); font-size: clamp(32px, 3.8vw, 52px); font-weight: 800; letter-spacing: -0.04em; color: var(--positive); line-height: 1; }
.numeros span { font-size: 15px; color: var(--muted); line-height: 1.35; }
.numeros.quatro-col { grid-template-columns: repeat(4, 1fr); }
.numeros.quatro-col > div { padding: 24px 18px 24px 0; }
@media (max-width: 860px) { .numeros.quatro-col { grid-template-columns: 1fr 1fr; } }

/* ─── planos ─── */
.planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plano { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.plano h3 { color: var(--ink); }
.plano .preco { font-family: var(--display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin-bottom: 6px; }
.plano .preco small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plano b { color: var(--ink); }
.plano .sem { text-decoration: line-through; opacity: .7; }
.plano.destaque { background: var(--ink); color: rgba(244, 244, 238, .75); border-color: var(--ink); }
.plano.destaque h3, .plano.destaque .preco, .plano.destaque b { color: var(--paper); }
.plano.destaque .preco small { color: rgba(244, 244, 238, .6); }
.faixa { background: var(--accent-soft); color: var(--positive); font-weight: 600; padding: 14px 18px; font-size: 15px; text-align: center; }

/* ─── encerramento ─── */
.passos { margin: 0; padding: 0; list-style: none; counter-reset: p; display: flex; flex-direction: column; gap: 14px; }
.passos li { counter-increment: p; display: flex; gap: 16px; align-items: baseline; font-size: clamp(17px, 1.7vw, 22px); color: rgba(244, 244, 238, .85); }
.passos li::before { content: counter(p); font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.3em; }
.botao { display: inline-block; background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; padding: 16px 22px; font-size: 17px; }

/* ─── anexo ─── */
.conta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.conta > div { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.conta span { color: var(--muted); font-size: 15px; }
.conta b { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.conta > div:nth-last-child(-n+2) b { color: var(--positive); }
.duvidas { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.duvidas dt { font-weight: 600; font-size: 16px; margin-top: 12px; }
.duvidas dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ─── controles ─── */
#controles { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; background: rgba(252, 252, 248, .9); border: 1px solid var(--line); backdrop-filter: blur(6px); }
#controles button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; font-family: var(--display); font-weight: 700; }
#controles button[data-acao="notas"] { font-size: 14px; }
#controles button:hover, #controles button[aria-pressed="true"] { background: var(--accent-soft); }
#controles button:disabled { opacity: .3; cursor: default; }
#controles [data-contador] { font-size: 13px; color: var(--muted); padding: 0 8px; min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
#progresso { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; }
#progresso i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

#notas { position: fixed; left: 16px; bottom: 72px; z-index: 30; width: min(440px, calc(100% - 32px)); max-height: 46vh; overflow-y: auto; background: var(--ink); color: var(--paper); padding: 14px 18px 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); font-size: 15px; line-height: 1.5; }
#notas[hidden] { display: none; }
.notas-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--accent); }
.notas-cab span { color: rgba(244,244,238,.6); font-size: 13px; flex: 1; }
.notas-cab button { border: 0; background: transparent; color: var(--paper); font-size: 22px; cursor: pointer; }
#notas p + p { margin-top: 8px; }

/* ─── celular e tablet em pé ─── */
@media (max-width: 860px) {
  .cena { justify-content: flex-start; }
  .duas, .tres, .planos, .duvidas { grid-template-columns: 1fr; }
  .quatro { grid-template-columns: 1fr 1fr; }
  .quatro img { height: 160px; }
  .conta { grid-template-columns: 1fr 1fr; }
  .celular { width: min(280px, 82%); }
  .comparacao { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cena { transition: none; transform: none; } }
