/* Template barbearia v2 — estilo escuro, títulos condensados, uma cor de destaque.
   Cores por cliente: o gerador injeta :root com os valores de "cores" do JSON. */
:root {
  --bg: #0a0b0d;
  --surface: #131518;
  --surface2: #1b1e22;
  --ink: #f2f0ec;
  --muted: #a3a29e;
  --line: #2a2d31;
  --line2: #42454a;
  --accent: #e2b25c;
  --accent-rgb: 226, 178, 92;
  --accent-ink: #120e06;
  --accent-soft: #2a2213;
  --accent-line: #5a4622;
  --dark: #2b2316;
  --dark-ink: #f6f2ea;
  --bubble: #dcf8c6;
  --bubble-ink: #111b0d;
  --star: #f5b700;

  --fd: "Saira Condensed", "Arial Narrow", sans-serif;
  --fb: "Inter", system-ui, sans-serif;
  --r: 8px;
  --rl: 16px;
  --maxw: 1160px;
  --hh: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--fb); overflow-x: hidden; color-scheme: dark; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: currentColor; stroke: none; }
.acc { color: var(--accent); }

/* ---------- Tipografia ---------- */
.display, h1, h2, h3 { font-family: var(--fd); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.02; }
h1 { font-size: clamp(40px, 5.2vw, 66px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 21px; letter-spacing: 0.02em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.65; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), 0.55); }
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(var(--accent-rgb), 0.75); }
.btn-ghost { border-color: var(--line2); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-soft:hover { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: var(--bg); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow .ico { transition: transform 0.2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hh); background: rgba(10, 11, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--fd); font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.logo small { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 104px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255, 255, 255, 0.02) 22px 23px); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -200px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.hero h1 { margin: 24px 0 22px; }
.hero .lead { max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 14px; }
.assure { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.assure .ico { color: var(--accent); }
.perks { display: grid; gap: 12px; margin-top: 30px; font-size: 15px; font-weight: 500; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .ico { color: var(--accent); }

.hero-visual { position: relative; }
.hero-photo { border-radius: var(--rl); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: slowzoom 18s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.12); } }
.chat { position: absolute; left: -72px; bottom: 32px; width: min(340px, 90%); background: rgba(19, 21, 24, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--rl); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85); overflow: hidden; }
.chat-hd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--fd); font-weight: 700; font-size: 17px; flex: none; }
.chat-hd b { display: block; font-size: 15px; }
.chat-hd span { font-size: 12px; color: var(--muted); }
.chat-body { display: grid; gap: 10px; padding: 16px; font-size: 14px; line-height: 1.45; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; opacity: 0; transform: translateY(8px); animation: msgin 0.5s var(--ease) forwards; }
.msg.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.them { background: var(--surface2); border-bottom-left-radius: 4px; }
.msg:nth-child(1) { animation-delay: 0.5s; } .msg:nth-child(2) { animation-delay: 1.3s; } .msg:nth-child(3) { animation-delay: 2.1s; }
@keyframes msgin { to { opacity: 1; transform: none; } }
.rate { position: absolute; right: -22px; top: 32px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.85); }
.rate strong { font-family: var(--fd); font-size: 34px; line-height: 1; color: var(--accent); }
.rate b { display: block; font-size: 14px; }
.rate small { font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .ico { width: 13px; height: 13px; }

/* ---------- Faixa rolante ---------- */
.marq { background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.marq-track { display: flex; width: max-content; animation: marq 36s linear infinite; }
.marq-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--fd); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.marq-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.sec { padding: 112px 0; position: relative; }
.sec.alt { background: var(--surface); clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); padding: 140px 0; margin: -28px 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head .lead { margin-top: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* Serviços com foto */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--rl); padding: 12px; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.25s var(--ease); }
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.card figure { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 18px 8px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.card .from { font-size: 13px; color: var(--muted); }
.card .from b { font-family: var(--fd); font-size: 24px; color: var(--ink); margin-left: 4px; }

/* Tabela de preços */
.plist { border-top: 1px solid var(--line); }
.plist li { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 24px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.plist li:hover { background: rgba(255, 255, 255, 0.02); }
.plist .n { font-family: var(--fd); font-weight: 700; color: var(--accent); font-size: 18px; }
.plist p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plist .price { font-family: var(--fd); font-weight: 700; font-size: 28px; white-space: nowrap; text-align: right; }
.plist .price small { font-family: var(--fb); font-weight: 400; font-size: 13px; color: var(--muted); display: block; }

/* Manifesto */
.mani { background: var(--dark); color: var(--dark-ink); padding: 150px 0 120px; clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
.mani .kicker { color: var(--accent); }
.mani p.display { font-size: clamp(30px, 4.2vw, 54px); max-width: 24ch; }
.mani .word { color: rgba(246, 242, 234, 0.2); transition: color 0.5s; }
.mani .word.on { color: var(--dark-ink); }
.mani .word.on.hl { color: var(--accent); }

/* Diferenciais */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why li { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.why li::before { content: ""; position: absolute; top: -2px; left: 0; width: 28px; height: 2px; background: var(--accent); }
.why .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15px; }

/* Faixa de chamada */
.strip { background: var(--accent); color: var(--accent-ink); padding: 48px 0; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.strip h2 { font-size: clamp(28px, 3vw, 38px); }
.strip p { margin-top: 8px; max-width: 48ch; font-weight: 500; }

/* Passos */
.steps-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.steps-wrap .btn { margin-top: 28px; }
.steps { display: grid; gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 24px; align-items: start; }
.steps .dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); color: var(--accent); display: grid; place-items: center; font-family: var(--fd); font-weight: 700; position: relative; }
.steps .box { border: 1px solid var(--line); border-radius: var(--rl); padding: 20px 22px; background: var(--surface); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Números */
.nums { background: var(--dark); padding: 100px 0 90px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
.nums ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.nums li { padding: 0 32px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.nums li:first-child { padding-left: 0; border: 0; }
.nums strong { display: block; font-family: var(--fd); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--accent); }
.nums span { display: block; margin-top: 10px; color: rgba(246, 242, 234, 0.7); font-size: 15px; }

/* Galeria */
.gal { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 260px; gap: 16px; }
.gal figure { border-radius: var(--rl); overflow: hidden; border: 1px solid var(--line); position: relative; }
.gal figure:first-child { grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 11, 13, 0.78); font-size: 13px; font-weight: 500; }

/* Avaliações */
.score { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.score strong { font-family: var(--fd); font-size: 84px; line-height: 0.85; color: var(--accent); }
.score .stars .ico { width: 20px; height: 20px; }
.score p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev { border: 1px solid var(--line); border-radius: var(--rl); padding: 26px; background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.rev blockquote { font-size: 16px; line-height: 1.6; flex: 1; }
.rev .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.rev .who i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* Local */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info { background: var(--bg); border: 1px solid var(--line); border-radius: var(--rl); padding: 30px; display: grid; gap: 22px; align-content: start; }
.info h3 { display: flex; align-items: center; gap: 8px; font-family: var(--fb); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 8px; }
.info address { font-style: normal; font-weight: 500; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 600; }
.info .row { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--rl); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--surface2); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.85); }

/* Dúvidas */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-weight: 600; transition: color 0.15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; font-style: normal; transition: transform 0.25s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 62ch; }

/* Chamada final */
.cta { background: var(--dark); color: var(--dark-ink); text-align: center; padding: 150px 0 120px; clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 600px; height: 600px; right: -120px; top: -120px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.18), transparent); pointer-events: none; }
.cta h2 { font-size: clamp(38px, 5vw, 64px); max-width: 15ch; margin: 0 auto 20px; }
.cta p { color: rgba(246, 242, 234, 0.75); max-width: 44ch; margin: 0 auto; }
.cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 32px 0 20px; position: relative; z-index: 1; }
.cta .btn-ghost { border-color: rgba(246, 242, 234, 0.3); }
.cta small { color: rgba(246, 242, 234, 0.7); font-size: 15px; }

/* Rodapé */
.ft { background: var(--surface); padding: 64px 0 96px; font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ft p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.ft h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ft ul { display: grid; gap: 8px; color: var(--muted); }
.ft ul a:hover { color: var(--ink); }
.ft-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
.ft-bottom .credits { max-width: 72ch; text-align: right; }
.ft-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* Botão flutuante */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: #25d366; color: #06210f; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6); transform: translateY(120px); transition: transform 0.4s var(--ease); }
.fab.show { transform: none; }
.fab .ico { width: 24px; height: 24px; }

/* Entradas */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .msg { opacity: 1; transform: none; animation: none; }
  .hero-photo img, .marq-track { animation: none; }
  .mani .word { color: var(--dark-ink); }
  .mani .word.hl { color: var(--accent); }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero .wrap, .steps-wrap, .local { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 24px auto 0; width: 100%; }
  .chat { left: -12px; }
  .rate { right: -8px; }
  .cards, .revs { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .logo b { font-size: 22px; }
  .hero { padding: 40px 0 72px; }
  .pill { font-size: 11px; padding: 7px 14px; }
  .hero-cta .btn { width: 100%; }
  .chat { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -90px; }
  .rate { top: 16px; right: 12px; }
  .sec { padding: 80px 0; }
  .sec.alt { padding: 100px 0; }
  .cards, .revs, .why, .gal { grid-template-columns: 1fr; }
  .gal { grid-auto-rows: 240px; }
  .gal figure:first-child { grid-row: span 1; }
  .plist li { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 4px; }
  .plist .n { display: none; }
  .plist .btn { grid-column: 1 / -1; justify-self: start; }
  .strip .wrap { flex-direction: column; align-items: flex-start; }
  .nums ul { grid-template-columns: 1fr; gap: 28px; }
  .nums li { padding: 0; border: 0; }
  .score strong { font-size: 64px; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; }
  .ft-bottom .credits { text-align: left; }
  .fab span { display: none; }
  .fab { padding: 0; width: 56px; justify-content: center; }
}

/* ==========================================================================
   Agenda v2 — fluxo de app: serviços, profissional, calendário, turnos, comprovante
   ========================================================================== */
.ico.flip { transform: rotate(180deg); }
.bk-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.bk-head > div { max-width: 720px; }
.bk { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bk > *, .bk-step > *, #horas, .bk-turno { min-width: 0; }
.bk-step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--rl); padding: 26px; }
.bk-step.bk-in { animation: bkin 0.45s var(--ease); }
@keyframes bkin { from { opacity: 0; transform: translateY(14px); } }
.bk-t { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 18px; }
.bk-t i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 14px var(--fb); }
.bk-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); color: var(--muted); margin-bottom: 16px; }
.bk-search:focus-within { border-color: var(--accent); }
.bk-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--ink); font: inherit; }
.bk-cat { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 10px; overflow: hidden; }
.bk-cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; }
.bk-cat summary::-webkit-details-marker { display: none; }
.bk-cat summary em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.bk-cat summary i { margin-left: auto; color: var(--muted); transition: transform 0.2s var(--ease); display: inline-flex; }
.bk-cat[open] summary i { transform: rotate(90deg); }
.bk-cat ul { display: grid; gap: 8px; padding: 0 10px 10px; }
.bk-svc label, .bk-profs label { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.bk-svc label:hover, .bk-profs label:hover { border-color: var(--line2); }
.bk-svc input, .bk-profs input { position: absolute; opacity: 0; pointer-events: none; }
.bk-av { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 20px var(--fd); flex: none; }
.bk-av-img { object-fit: cover; border-radius: 50%; }
.bk-profs .bk-av { border-radius: 50%; width: 52px; height: 52px; }
.bk-info { min-width: 0; }
.bk-info b { display: block; font-weight: 600; }
.bk-info small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.bk-price { text-align: right; font-weight: 700; white-space: nowrap; }
.bk-price small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.bk-box, .bk-radio { width: 24px; height: 24px; border: 2px solid var(--line2); border-radius: 7px; display: grid; place-items: center; transition: background-color 0.15s, border-color 0.15s; }
.bk-radio { border-radius: 50%; }
.bk-svc input:checked ~ .bk-box { background: var(--accent); border-color: var(--accent); }
.bk-svc input:checked ~ .bk-box::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.bk-profs input:checked ~ .bk-radio { border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--bg); background: var(--accent); }
.bk-svc label:has(input:checked), .bk-profs label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bk-svc input:focus-visible ~ .bk-box, .bk-profs input:focus-visible ~ .bk-radio { outline: 2px solid var(--accent); outline-offset: 3px; }
.bk-profs { display: grid; gap: 8px; }
.bk-profs label { grid-template-columns: auto 1fr auto; }
.bk-tot { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }
.bk-tot span { display: grid; justify-items: center; gap: 4px; color: var(--accent); }
.bk-tot .ico { width: 26px; height: 26px; }
.bk-tot b { font: 700 26px/1 var(--fd); color: var(--ink); }
.bk-tot small { color: var(--muted); font-size: 13px; }

.cal { max-width: 380px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-hd b { font-family: var(--fd); font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.cal-hd button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.cal-hd button:disabled { opacity: 0.3; cursor: default; }
.cal-sem, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-sem span { font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-dias button { aspect-ratio: 1; border-radius: 10px; border: 0; background: none; font-weight: 600; cursor: pointer; transition: background-color 0.15s, transform 0.15s var(--ease); }
.cal-dias button.ok:hover { background: var(--accent-soft); }
.cal-dias button.off { color: var(--line2); cursor: not-allowed; }
.cal-dias button.hoje { box-shadow: inset 0 0 0 1px var(--line2); }
.cal-dias button.sel { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), 0.8); }
.cal-sel { text-align: center; color: var(--muted); margin-top: 12px; font-size: 15px; }

.bk-turno + .bk-turno { margin-top: 18px; }
.bk-turno-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bk-turno-hd span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bk-turno-hd .ico { color: var(--accent); width: 20px; height: 20px; }
.bk-turno-hd em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 8px; }
.bk-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-horas button { height: 46px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--accent); font-weight: 700; cursor: pointer; transition: transform 0.15s var(--ease), background-color 0.15s, color 0.15s; }
.bk-horas button:hover { border-color: var(--accent); }
.bk-horas button.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.03); box-shadow: 0 10px 22px -10px rgba(var(--accent-rgb), 0.9); }
.bk-sub { margin: 24px 0 10px; color: var(--muted); font-size: 14px; }
.prox { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
.prox button { flex: none; width: 84px; display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.15s; }
.prox button:hover:not(:disabled) { border-color: var(--accent); }
.prox button:disabled { opacity: 0.4; cursor: not-allowed; }
.prox b { font-size: 11px; color: var(--muted); }
.prox strong { font: 700 24px/1 var(--fd); }
.prox span { font-size: 11px; color: var(--muted); }
.prox em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.prox button:disabled em { color: var(--muted); }
.bk-espera { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line2); background: none; cursor: pointer; transition: border-color 0.15s; }
.bk-espera:hover { border-color: var(--accent); }
.bk-espera .ico { color: var(--accent); width: 22px; height: 22px; }
.bk-espera b { display: block; }
.bk-espera small { color: var(--muted); font-size: 13px; }
.bk-ok { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--rl); border: 1px solid #1f6b3a; background: #0f2a19; }
.bk-ok .ico { color: #25d366; width: 26px; height: 26px; }
.bk-ok p { color: var(--muted); font-size: 15px; }

.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: rgba(19, 21, 24, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 0; animation: barin 0.35s var(--ease); }
@keyframes barin { from { transform: translateY(100%); } }
.bk-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bk-bar b { display: block; font-size: 15px; }
.bk-bar small { color: var(--muted); font-size: 13px; }
.bk-bar .btn { flex: none; }

.bk-modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9); }
.bk-modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.bk-modal[open] { animation: bkin 0.3s var(--ease); }
.bk-modal > * { position: relative; }
.bk-modal header { text-align: center; padding: 28px 24px 18px; border-bottom: 1px dashed var(--line2); }
.bk-modal header .kicker { margin-bottom: 6px; }
.bk-modal header .kicker::before { display: none; }
.bk-modal h3 { font-size: 28px; }
.bk-modal header small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.bk-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cp-body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.cp-lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.cp-lbl .ico { color: var(--accent); }
.cp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cp-row > span:first-child:not(.cp-lbl) { font-weight: 600; }
.cp-row small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.cp-row b { text-align: right; }
.cp-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-block: 2px solid var(--ink); margin: 6px 0 12px; }
.cp-total span { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; }
.cp-total b { font: 700 30px/1 var(--fd); color: var(--accent); }
.cp-body .kicker { margin: 4px 0 0; }
.fld { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.fld small { color: var(--muted); font-weight: 400; }
.fld input, .fld textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 400 16px var(--fb); resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.cp-erro { color: #ff7a6b; font-size: 14px; min-height: 1em; }
.cp-body .btn { width: 100%; }
.bk-modal .hint { text-align: center; color: var(--muted); font-size: 13px; padding: 0 24px 20px; }
.cp-body .hint { padding: 0; }
.mine { display: grid; gap: 10px; padding: 20px 24px; }
.mine li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.mine span { color: var(--muted); font-size: 14px; }
.mine small { color: var(--muted); font-size: 12px; }
.mine .empty { text-align: center; }

@media (max-width: 600px) {
  .bk-head { flex-direction: column; align-items: stretch; }
  .bk-step { padding: 18px 14px; }
  .bk-t { font-size: 19px; }
  .bk-svc label { grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px; }
  .bk-svc .bk-av { grid-row: 1 / span 2; width: 40px; height: 40px; font-size: 18px; }
  .bk-svc .bk-info { grid-column: 2; }
  .bk-svc .bk-price { grid-column: 2; grid-row: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .bk-svc .bk-box { grid-column: 3; grid-row: 1 / span 2; }
  .bk-horas { grid-template-columns: repeat(3, 1fr); }
  .bk-bar .btn { padding: 0 18px; }
  .bk-bar b { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-step.bk-in, .bk-modal[open], .bk-bar { animation: none; }
}

.bk-ok .btn { margin-top: 14px; }
.mine-cancel { margin-top: 10px; min-height: 40px; font-size: 14px; justify-self: start; }

.demo-bar { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }

/* botão de continuar dentro do fluxo (além da barra fixa) */
.bk-seguir { width: 100%; margin-top: 20px; }
body.bk-pronto { padding-bottom: 96px; }
@media (max-width: 600px) {
  .bk-bar .wrap > div { min-width: 0; }
  .bk-bar b, .bk-bar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
