/* A Barbearia: o dourado e o azul-noite são da barbearia, não meus.
   O dourado original (#c9a84c) não tem contraste como texto no fundo claro,
   então --client é uma versão escurecida para texto e o original fica só em fundo. */
.case-page {
  --client: #8a6a17; --client-gold: #c9a84c; --client-bg: #0d1420;
  --screens-ratio: 1200 / 867; --screens-fit: cover;
}
/* ---------- 1. agendamento que vira mensagem ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 28px); align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 .95rem/1.3 var(--f-body); margin-bottom: 10px; padding: 0; }
legend .mono { color: var(--soft); margin-right: 6px; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .svc { grid-template-columns: 1fr; } }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease); }
.chip span b { font-weight: 700; }
.chip span small { color: var(--soft); font-family: var(--f-mono); font-size: .72rem; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--client); background: color-mix(in srgb, var(--client-gold) 14%, transparent); }
.chip input:checked + span b::after { content: " ✓"; color: var(--client); }
.chip input:focus-visible + span { outline: 2px solid var(--pencil); outline-offset: 2px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.times .chip span { padding: 10px 14px; font-family: var(--f-mono); font-size: .85rem; }
.field { display: grid; gap: 6px; }
.field input { font: inherit; color: inherit; background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; min-height: 46px; padding: 0 14px; width: 100%; }
.field input:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }

.phone { background: #e6ddd4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: #1d2a20; display: flex; flex-direction: column; min-height: 100%; }
.phone .wa-h { background: #075e54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.phone .wa-h i { width: 34px; height: 34px; border-radius: 50%; background: var(--client-bg); color: var(--client-gold); display: grid; place-items: center; font: 800 .8rem/1 var(--f-display); font-style: normal; }
.phone .wa-h div { display: grid; line-height: 1.2; }
.phone .wa-h small { opacity: .75; font-size: .75rem; }
.wa-body { padding: 18px 14px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 340px; }
.bubble { align-self: flex-end; background: #d9fdd3; border-radius: 12px 12px 4px 12px; padding: 10px 12px 8px; max-width: 92%; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; transition: transform 400ms var(--ease), opacity 400ms var(--ease); }
.bubble.draft { background: #fff; align-self: stretch; border-radius: 12px; opacity: .96; }
.bubble .meta { display: block; text-align: right; font-size: .7rem; color: #667781; margin-top: 4px; }
.bubble .meta .tick { color: #53bdeb; }
.bubble .v { font-weight: 700; border-radius: 4px; }
.bubble .v.empty { font-weight: 400; color: #8a8f87; font-style: italic; }
.bubble .v.pop { animation: pop 700ms var(--ease); }
@keyframes pop { from { background: color-mix(in srgb, var(--client-gold) 55%, transparent); } to { background: transparent; } }
.wa-foot { display: flex; gap: 8px; padding: 10px; background: #f0f2f5; align-items: center; }
.wa-foot span { flex: 1; background: #fff; border-radius: 999px; padding: 10px 14px; color: #667781; font-size: .85rem; }

/* ---------- 3. computador / celular ---------- */
.switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 18px; }
.switch button { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 999px; font: 700 .9rem/1 var(--f-body); color: var(--soft); transition: background 250ms var(--ease), color 250ms var(--ease); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch button:focus-visible { outline: 2px solid var(--pencil); outline-offset: 2px; }
.device { margin-inline: auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--client-bg); view-transition-name: device; max-width: 100%; }
.device[data-mode="desk"] { width: 100%; }
.device[data-mode="mob"] { width: min(330px, 100%); border-radius: 28px; border: 8px solid var(--ink); }
.device img { width: 100%; }
::view-transition-group(device) { animation-duration: 600ms; animation-timing-function: var(--ease); }
