/* =====================================================================
   Modelo de barbearia — sistema visual "vidro escuro" (index/agendar/painel)
   - Fundo escuro neutro (degradê + granulado) ou imagem da loja (loja.config.js > fundo.imagem).
   - Cartões de vidro bem transparentes: branco 0,07→0,035, desfoque 14px, borda 1px rgba(20, 20, 20,.10),
     brilho fino no topo. Botão principal = pílula branca. Cor de destaque = var(--ac) (loja.config.js).
   - Animações só com transform/opacity/stroke. html.lite: mesmo vidro com desfoque 10px, fundo parado.
   - Alvos de toque ≥ 48px.
   ===================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fbfbfa;
  --text: #151515;
  --muted: #6b6a66;
  --faint: #9a9994;
  --ac: #1a1a1a;                               /* destaque (sobrescrito pelo loja.config.js em boot.js) */
  --acs: color-mix(in srgb, var(--ac) 16%, transparent);
  --hair: rgba(20, 20, 20, .10);
  --hair-strong: rgba(20, 20, 20, .18);
  --danger: #c2412d;
  --ok: #2f7d3a;

  --gl-bg: linear-gradient(155deg, rgba(20, 20, 20, .07), rgba(20, 20, 20, .035) 60%);
  --gl-bd: rgba(20, 20, 20, .10);
  --gl-hi: rgba(20, 20, 20, .08);
  --gl-blur: blur(14px) saturate(140%);
  --sel-bg: #151515;
  --sel-tx: #fbfbfa;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px; --r-sm: 14px; --pad: 18px; --tap: 48px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.22, 1.18, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: -.003em;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--ac); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--ac); color: #0a0a0a; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- fundo: degradê escuro neutro + granulado (ou imagem da loja) ---------- */
.fundo { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; contain: strict;
  background:
    radial-gradient(70% 45% at 15% 0%, #2a2926 0%, transparent 70%),
    radial-gradient(60% 45% at 100% 55%, #1d1e21 0%, transparent 70%),
    radial-gradient(70% 45% at 25% 105%, #23221f 0%, transparent 70%),
    #0b0b0b; }
html.com-fundo .fundo { background: #fbfbfa var(--fundo-img) center / cover no-repeat; }
html.com-fundo .fundo::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--fundo-esc, .55)); }
.fundo-luz, .fundo-luz2 { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.fundo-luz { left: -25%; top: -20%; width: 110%; height: 70%;
  background: radial-gradient(closest-side, rgba(20, 20, 20, .055), transparent); animation: respira 16s ease-in-out infinite alternate; }
.fundo-luz2 { right: -35%; bottom: -15%; width: 100%; height: 60%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 9%, transparent), transparent); animation: respira2 20s ease-in-out infinite alternate; }
@keyframes respira { from { opacity: .55; transform: translate3d(-3%, 0, 0) scale(1); } to { opacity: 1; transform: translate3d(4%, 3%, 0) scale(1.08); } }
@keyframes respira2 { from { opacity: .5; transform: translate3d(2%, 0, 0); } to { opacity: 1; transform: translate3d(-5%, -4%, 0) scale(1.06); } }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 85% at 50% 15%, transparent 40%, rgba(0, 0, 0, 0.113) 100%); }
html.pausado .fundo-luz, html.pausado .fundo-luz2 { animation-play-state: paused; }

/* ---------- vidro ---------- */
.gl, .gc, .glass, .gl2 {
  position: relative; background: var(--gl-bg);
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  border: 1px solid var(--gl-bd); border-radius: var(--r);
  box-shadow: inset 0 1px 0 var(--gl-hi), 0 18px 40px -24px rgba(0, 0, 0, 0.15);
}
.gl, .gc, .glass, .gl2, .nav, .bar { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.087); }
.gl2 { border-radius: 18px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 520px; margin: 0 auto;
  padding: calc(var(--safe-t) + 26px) calc(var(--pad) + var(--safe-r)) 40px calc(var(--pad) + var(--safe-l)); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-weight: 300; letter-spacing: -.02em; margin: 0; color: #111; }
h1 { font-size: 30px; line-height: 1.12; }
h2 { font-size: 22px; line-height: 1.2; }
.num { font-weight: 300; font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 13px; }

/* ---------- marca: monograma / logo ---------- */
.mono { overflow: visible; }
.mono-anel { fill: none; stroke: rgba(20, 20, 20, .85); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mono-anel2 { fill: none; stroke: rgba(20, 20, 20, .14); stroke-width: 1; }
.mono-t { fill: #fff; font-family: var(--sans); font-weight: 200; font-size: 40px; }
.mono-ponto { fill: var(--ac); }
.logo { height: auto; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.15)); }
.marca-hero { width: 92px; height: 92px; }
img.marca-hero { width: auto; max-width: min(220px, 60vw); height: 110px; }
.marca-lg { width: 104px; height: 104px; }
img.marca-lg { width: auto; max-width: min(220px, 60vw); height: 120px; }
.marca-md { width: 72px; height: 72px; }
img.marca-md { width: auto; height: 80px; max-width: 180px; }
.marca-sm { width: 42px; height: 42px; }
img.marca-sm { width: auto; height: 42px; max-width: 110px; filter: none; }
.marca-intro { width: 112px; height: 112px; }
img.marca-intro { width: auto; height: 120px; max-width: 64vw; }
.logo-wrap { display: inline-block; line-height: 0; text-decoration: none; }

/* ---------- abertura (tela cheia, 1x por sessão) ---------- */
.abertura { display: none; }
html.intro .abertura, .abertura.on {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 55% at 50% 42%, #1a1a19, #0a0a0a 75%); cursor: pointer;
}
.intro-c { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.intro-marca { line-height: 0; }
.intro-nome { margin-top: 26px; font-size: 17px; font-weight: 300; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: #111; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.intro-sub { margin-top: 10px; font-size: 10.5px; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: #8d8c87; }
.intro-luz { position: absolute; top: -25%; bottom: -25%; left: 0; width: 42%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(20, 20, 20, .09) 50%, transparent); transform: translateX(-190%) skewX(-16deg); }
html.intro .rise { animation-play-state: paused; }
html.intro body { overflow: hidden; }

/* ---------- etapas (cartões de vidro) ---------- */
.step { padding: 18px 16px 16px; margin-top: 12px; transition: opacity .35s var(--ease); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--hair-strong); }
.step-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--ac);
  box-shadow: 0 0 0 3px var(--acs); transform: scale(0); opacity: 0; transition: transform .45s var(--spring), opacity .25s var(--ease); }
.step.is-done .step-dot::after { transform: scale(1); opacity: 1; }
.step-title { font-size: 21px; font-weight: 300; }
.step-note { margin-left: auto; font-size: 13px; color: var(--muted); }
.step.is-locked { pointer-events: none; }
.step > * { transition: opacity .35s var(--ease); }
.step.is-locked > * { opacity: .38; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; background: none; white-space: nowrap;
  transition: transform .18s var(--ease), opacity .2s var(--ease), background-color .2s, border-color .2s;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(.97); }
.btn[disabled], .btn.is-disabled { opacity: .35; pointer-events: none; }
.btn-primary { background: var(--sel-bg); color: var(--sel-tx); border-color: var(--sel-bg); box-shadow: 0 10px 26px -12px rgba(20, 20, 20, .35); text-shadow: none; }
.btn-ghost, .btn-outline { background: rgba(20, 20, 20, .06); color: var(--text); border-color: rgba(20, 20, 20, .14); }
@media (hover: hover) { .btn-ghost:hover, .btn-outline:hover { border-color: rgba(20, 20, 20, .3); } .btn-primary:hover { opacity: .9; } }
.btn-text { min-height: var(--tap); padding: 0 8px; color: var(--muted); font-weight: 500; }
.btn-block { width: 100%; }
.btn-sm { min-height: 48px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn svg path, .btn svg circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- opções tocáveis (vidro leve + profundidade ao tocar) ---------- */
.opt {
  position: relative; isolation: isolate; background: rgba(20, 20, 20, .055); border: 1px solid rgba(20, 20, 20, .12);
  box-shadow: inset 0 1px 0 rgba(20, 20, 20, .07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), background-color .2s, border-color .2s, opacity .2s;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .opt:not([disabled]):hover { border-color: rgba(20, 20, 20, .24); transform: translateY(-1px); } }
.opt.is-press, .t3d.is-press { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(1px) scale(.97); transition-duration: .12s; }
.opt[disabled] { opacity: .32; background: transparent; border-style: dashed; border-color: rgba(20, 20, 20, .14); box-shadow: none; }
.opt.is-on, .chip.is-on {
  background: var(--sel-bg); color: var(--sel-tx); border-color: var(--sel-bg); text-shadow: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ac), 0 10px 24px -8px rgba(0, 0, 0, 0.175);
}

/* ---------- chips / dias / horários ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  margin: 0 -16px; padding: 6px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; min-width: var(--tap); min-height: var(--tap); padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, .12); background: rgba(20, 20, 20, .055); font-size: 15px; color: var(--text);
  transition: transform .3s var(--ease), background-color .2s; }
.chip.is-press { transform: scale(.95); }
.chip[disabled] { opacity: .3; pointer-events: none; }
.day { flex-direction: column; gap: 1px; width: 62px; height: 80px; padding: 0; border-radius: 18px; }
.day-dow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.day-n { font-size: 25px; font-weight: 300; line-height: 1.05; }
.day-m { font-size: 11px; color: var(--muted); }
.day.is-on .day-dow, .day.is-on .day-m { color: rgba(10, 10, 10, .6); }
.day[disabled] .day-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.slot { min-height: 52px; border-radius: 14px; font-size: 17px; font-weight: 400; color: var(--text); }
@media (max-width: 350px) { .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cal-abrir { width: 100%; min-height: 52px; margin-top: 2px; border-radius: 16px; justify-content: flex-start; padding: 0 18px; font-weight: 500; color: var(--text); }
.cal-abrir svg { width: 20px; height: 20px; }
.cal-abrir svg * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cal-abrir span { overflow: hidden; text-overflow: ellipsis; }
.tilt-in { animation: tiltIn .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes tiltIn { from { opacity: 0; transform: perspective(700px) rotateX(14deg) translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.pop { animation: pop .42s var(--spring); }
@keyframes pop { 0% { transform: scale(.92); } 100% { transform: scale(1); } }

.msg { margin: 12px 0 0; font-size: 14px; color: var(--danger); }
#msg-horario { margin: 0 0 14px; }
.sheet-lento { color: var(--muted) !important; }
.empty { padding: 18px; color: var(--muted); font-size: 15px; border-radius: 18px; background: rgba(20, 20, 20, .035); border: 1px solid rgba(20, 20, 20, .08); }
.empty strong { display: block; color: #111; font-weight: 400; font-size: 17px; margin-bottom: 2px; }

/* ---------- listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 0; width: 100%;
  background: none; border: 0; border-bottom: 1px solid rgba(20, 20, 20, .08); text-align: left; color: var(--text); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; font-weight: 400; line-height: 1.25; }
.row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-end { font-size: 17px; font-weight: 300; text-align: right; white-space: nowrap; }
.row-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .3); display: grid; place-items: center; }
.row-mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ac); transform: scale(0); transition: transform .38s var(--spring); }
.row.is-on .row-mark { border-color: var(--ac); }
.row.is-on .row-mark::after { transform: scale(1); }

/* serviços: cartões com ícone */
#servicos.list { display: grid; gap: 9px; }
#servicos .row.svc { min-height: 72px; padding: 11px 14px 11px 11px; border-radius: 18px; gap: 12px;
  background: rgba(20, 20, 20, .045); border: 1px solid rgba(20, 20, 20, .08); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
#servicos .row.svc.is-on { background: rgba(20, 20, 20, .09); border-color: var(--ac); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--ac), 0 10px 24px -14px color-mix(in srgb, var(--ac) 60%, transparent); }
#servicos .row.svc .row-end { display: flex; align-items: center; gap: 12px; }
.thumb { position: relative; flex: none; width: 50px; height: 50px; border-radius: 15px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(20, 20, 20, .12), rgba(20, 20, 20, .03)); border: 1px solid rgba(20, 20, 20, .12); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ico { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.row.is-on .thumb { border-color: color-mix(in srgb, var(--ac) 70%, transparent); background: linear-gradient(155deg, color-mix(in srgb, var(--ac) 30%, transparent), rgba(20, 20, 20, .03)); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* painel do serviço escolhido */
.foto { margin: 8px 0 4px; padding: 14px; }
.foto-fig { margin: 0 0 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(20, 20, 20, .04); }
.foto-fig img { width: 100%; height: 100%; object-fit: cover; }
.foto-ico { display: grid; place-items: center; height: 112px; margin-bottom: 12px; border-radius: 14px;
  background: radial-gradient(60% 80% at 50% 40%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 75%), rgba(20, 20, 20, .025);
  border: 1px solid rgba(20, 20, 20, .06); }
.ico-xl { width: 52px; height: 52px; stroke-width: 1; }
.foto-cap { display: block; }
.foto-cap-n { display: block; font-size: 20px; font-weight: 300; color: #111; }
.foto-cap-t { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.foto-cap-m { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.foto-pill { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 20, 20, .07); border: 1px solid rgba(20, 20, 20, .12); color: #111; }
.foto .btn { margin-top: 14px; }
.foto.is-anim { animation: fotoIn .55s var(--ease) both; }
.foto.is-anim .foto-ico .ico, .foto.is-anim .foto-fig img { animation: settle .9s var(--ease) both; }
@keyframes fotoIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.15); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- herói da página do cliente ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 14px 0 10px; }
.hero-nome { font-size: 28px; font-weight: 300; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-lede { font-size: 16px; color: var(--muted); margin: -4px 0 0; max-width: 30ch; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; font-size: 12.5px; color: #222;
  background: rgba(20, 20, 20, .06); border: 1px solid rgba(20, 20, 20, .11); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); white-space: nowrap; }
.trust li b { color: #111; font-weight: 500; }
.trust svg { width: 14px; height: 14px; flex: none; }
.trust svg * { fill: none; stroke: var(--ac); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* faixa de fotos (galeria opcional) */
.works { margin: 14px -18px 0; }
.works .eyebrow { display: block; padding: 0 18px; margin-bottom: 10px; }
.marquee { overflow: hidden; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.marquee.is-paused .marquee-track, .marquee.is-fora .marquee-track, html.pausado .marquee-track { animation-play-state: paused; }
.marquee figure { margin: 0; flex: none; width: 112px; }
.marquee img { width: 112px; height: 140px; object-fit: cover; border-radius: 14px; border: 1px solid var(--hair); }
.marquee figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- formulário ---------- */
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.input { width: 100%; min-height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid rgba(20, 20, 20, .18); background: transparent;
  font-size: 18px; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease); }
.input::placeholder { color: rgba(20, 20, 20, .32); }
.input:focus { border-bottom-color: var(--ac); }
.field-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field.is-error .input { border-bottom-color: var(--danger); }
.field.is-error .field-hint { color: var(--danger); }
#s4 .field:last-child { margin-bottom: 2px; }

/* ---------- abas ---------- */
.tabs { position: relative; display: flex; }
.tab { flex: 1; min-height: 48px; background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, transform .2s var(--ease); }
.tab.is-on { color: var(--text); }
.tab-ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ac); transform-origin: 0 0; transition: transform .38s var(--ease); }
.seg { margin: 14px 0 20px; padding: 4px; border-radius: 999px; background: rgba(20, 20, 20, .06); border: 1px solid rgba(20, 20, 20, .1); }
.seg .tab { border-radius: 999px; position: relative; z-index: 1; }
.seg .tab.is-on { background: var(--sel-bg); color: var(--sel-tx); }
.seg .tab-ind { display: none; }

/* ---------- barra inferior flutuante (cliente) ---------- */
.bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 30; max-width: 500px; margin: 0 auto;
  border-radius: 26px; padding: 10px 10px 10px 18px; background: rgba(20, 20, 20, .32);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(20, 20, 20, .12); box-shadow: inset 0 1px 0 rgba(20, 20, 20, .08), 0 18px 40px -12px rgba(0, 0, 0, 0.2);
  transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease); }
.bar.is-on { transform: none; }
.bar-in { display: flex; align-items: center; gap: 12px; }
.bar-sum { flex: 1; min-width: 0; }
.bar-sum-1 { font-size: 16px; font-weight: 400; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sum-2 { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .btn { min-height: 52px; padding: 0 22px; }
.bar-spacer { height: calc(104px + var(--safe-b)); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.138); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); z-index: 41; max-width: 504px; margin: 0 auto; max-height: 88dvh; overflow-y: auto;
  border-radius: 28px; padding: 10px 20px 18px; background: rgba(24, 24, 24, .62);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
  transform: translateY(calc(100% + 30px)); transition: transform .5s var(--spring); visibility: hidden; }
.sheet.is-on { transform: none; visibility: visible; }
.sheet-grab { width: 36px; height: 4px; border-radius: 4px; background: rgba(20, 20, 20, .22); margin: 0 auto 16px; }
.sheet-actions { display: grid; gap: 8px; margin-top: 20px; }
.kv { margin: 16px 0 0; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(20, 20, 20, .08); }
.kv-row:last-child { border-bottom: 0; }
.kv-k { color: var(--muted); font-size: 14px; }
.kv-v { text-align: right; font-size: 15px; overflow-wrap: anywhere; }
.kv-v.num { font-size: 18px; }

/* calendário */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-t { flex: 1; min-width: 0; text-align: center; font-size: 21px; white-space: nowrap; }
.cal-sem, .cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 -10px; }
.cal-sem span { text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--muted); padding: 2px 0 8px; }
.cal-grade { row-gap: 6px; min-height: 324px; align-content: start; }
.cal-d { justify-self: center; width: calc(100% - 4px); max-width: 52px; min-width: 44px; height: 48px; padding: 0; border-radius: 14px;
  display: grid; place-items: center; color: var(--text); font-size: 18px; font-weight: 300; line-height: 1; }
.cal-d.is-hoje .cal-n { position: relative; }
.cal-d.is-hoje .cal-n::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ac); }
.cal-d[disabled] { border-color: transparent; color: var(--muted); }
.cal-d[disabled] .cal-n { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(163, 162, 156, .6); }
.cal-leg { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; }
.cal-leg-hoje { width: 5px; height: 5px; border-radius: 50%; background: var(--ac); }
.cal-grade.is-abrindo .cal-d { animation: tiltIn .5s var(--ease) backwards; animation-delay: calc(120ms + var(--i, 0) * 9ms); }
.cal-grade.is-da-frente { animation: calLado .38s var(--ease) both; --dx: 34px; }
.cal-grade.is-de-tras { animation: calLado .38s var(--ease) both; --dx: -34px; }
@keyframes calLado { from { opacity: 0; transform: translate3d(var(--dx), 0, 0); } to { opacity: 1; transform: none; } }
#calScrim { z-index: 44; }
.cal.sheet { z-index: 45; }
.ibtn { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--text); padding: 0;
  background: rgba(20, 20, 20, .06); border: 1px solid rgba(20, 20, 20, .13); transition: transform .2s var(--ease); }
.ibtn.is-press { transform: scale(.94); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ibtn[disabled] { opacity: .25; }
@media (max-width: 350px) {
  .sheet { left: 0; right: 0; bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 12px calc(16px + var(--safe-b)); }
  .cal-sem, .cal-grade { margin: 0 -8px; }
  .cal-d { width: 100%; min-width: 0; border-radius: 12px; }
  .cal-t { font-size: 18px; }
}

/* toast */
.toast { position: fixed; left: 50%; z-index: 60; bottom: calc(112px + var(--safe-b)); width: max-content; max-width: calc(100% - 36px);
  border-radius: 999px; padding: 11px 18px; font-size: 14px; line-height: 1.4; text-align: center; background: rgba(24, 24, 24, .55);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s var(--ease), transform .45s var(--spring); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* entrada em cascata */
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* sucesso */
#sucesso { text-align: center; }
#sucesso .logo-link { display: inline-block; margin: 6px auto 18px; line-height: 0; }
.suc-card { padding: 26px 18px 14px; text-align: left; }
.suc-card .eyebrow, .suc-card h1, .suc-card > p { text-align: center; }
.check { width: 64px; height: 64px; margin: 0 auto 16px; color: #111; }
.check circle, .check path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--ac); stroke-width: 1.4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .8s var(--ease) .1s forwards; }
.check path { stroke: #fff; stroke-width: 1.8; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.links { display: grid; gap: 10px; margin-top: 16px; }

/* rodapé */
.foot { margin-top: 18px; padding: 18px; font-size: 13.5px; color: var(--muted); }
.foot-txt { display: grid; gap: 3px; }
.foot-txt a { color: var(--muted); }
.foot-nome { color: #111; font-size: 16px; font-weight: 400; margin-bottom: 2px; }
.foot-bt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.foot-bt .btn { flex: 1 1 auto; }
.foot-mini { margin: 14px 0 0; font-size: 12px; color: var(--faint); text-align: center; }

/* tela "Configuração pendente" */
.pendente { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.pendente-card { padding: 24px 20px; display: grid; gap: 12px; max-width: 380px; }
.pendente-card p { margin: 0; }

/* ---------- PAINEL ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login header { padding-top: 5vh; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.login-loja { margin: 0; font-size: 13px; letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; color: var(--muted); }
.gc { margin-top: 26px; padding: 26px 20px 16px; border-radius: 28px; }
.login-title { font-size: 26px; }
.login-form { margin-top: 22px; }
.login-msg { margin: -4px 0 14px; font-size: 14px; color: var(--danger); }
.login-msg.is-ok { color: var(--muted); }
.login-status { margin: 22px 0 6px; }
.login.is-checking .login-form { display: none; }
.login:not(.is-checking) .login-status { display: none; }
.login-foot { margin-top: auto; padding-top: 22px; }
.demo-dica { margin: 0 0 14px; font-size: 13px; color: var(--ac); padding: 10px 12px; border-radius: 14px; background: var(--acs); }

.top { display: flex; align-items: center; gap: 12px; margin: 0 2px 16px; }
.top .wordmark { flex: none; line-height: 0; }
.top-txt { flex: 1; min-width: 0; }
.top-g { color: var(--muted); font-size: 13.5px; font-weight: 300; line-height: 1.2; }
.top-n { font-size: 21px; font-weight: 300; letter-spacing: -.02em; color: #111; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-date { flex: none; text-align: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.25;
  padding: 7px 12px; border-radius: 16px; background: rgba(20, 20, 20, .06); border: 1px solid rgba(20, 20, 20, .11); }
.top-date b { display: block; font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: #111; }
.view { padding-top: 4px; }
.view[hidden] { display: none; }

/* resumo + anel */
.dash { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; }
.dash-ring { flex: none; }
.hoje { flex: 1; min-width: 0; display: grid; gap: 10px; }
.hs { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; border-bottom: 1px solid rgba(20, 20, 20, .07); padding-bottom: 8px; }
.hs:last-child { border-bottom: 0; padding-bottom: 0; }
.hs-n { font-size: 22px; line-height: 1.1; white-space: nowrap; color: #111; order: 2; }
.hs-l { font-size: 12px; color: var(--muted); }

.rgx { position: relative; width: 118px; height: 118px; margin: 8px auto 6px; }
.rgx.rg-sm { width: 104px; height: 104px; margin: 0; }
.rgx svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rgx .tk { fill: none; stroke: rgba(20, 20, 20, .16); stroke-width: 1.2; stroke-dasharray: .6 2.4; }
.rgx .tr { fill: none; stroke: rgba(20, 20, 20, .08); stroke-width: 7; }
.rgx .vl { fill: none; stroke: var(--rc, var(--ac)); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--p)); animation: ring 1.15s var(--ease) .15s both;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rc, var(--ac)) 45%, transparent)); }
.rgx.rg-b { --rc: #a9c8ff; }
@keyframes ring { from { stroke-dashoffset: 100; } }
.rgc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rgc b { font-size: 27px; font-weight: 200; letter-spacing: -.03em; color: #111; line-height: 1; }
.rgc b small { font-size: 13px; color: var(--muted); margin-left: 1px; }
.rgc span { font-size: 10.5px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.rg-sm .rgc b { font-size: 24px; }
.g2r { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 12px; }
.rc { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px 14px; min-width: 0; }
.rc .l { align-self: stretch; text-align: left; color: var(--muted); font-size: 12.5px; }
.rgs { font-size: 12px; color: var(--muted); }
.rc.ov { --rc: var(--danger); }
@media (max-width: 350px) { .rgx { width: 100px; height: 100px; } .rgc b { font-size: 22px; } .rgs { font-size: 11px; } }

/* seletor de dia */
.dayswitch { display: flex; align-items: center; gap: 8px; }
.dayswitch-mid { flex: 1; min-width: 0; text-align: center; }
.dayswitch-t { font-size: 24px; font-weight: 300; line-height: 1.15; color: #111; }
.dayswitch-s { font-size: 13px; color: var(--muted); }
.sumline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 2px 12px; min-height: 48px; }
.sumline .small { color: var(--muted); }

/* cartões de agendamento */
.ag { position: relative; display: block; margin: 0 0 10px; padding: 16px 14px 14px; border-radius: 20px;
  background: var(--gl-bg); border: 1px solid var(--gl-bd); -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
  box-shadow: inset 0 1px 0 var(--gl-hi), 0 14px 30px -22px rgba(0, 0, 0, 0.175); transition: transform .3s var(--ease), opacity .2s; }
.ag.is-press { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(1px) scale(.985); transition-duration: .12s; }
.ag.is-flash { overflow: hidden; }
.ag-top { display: flex; gap: 14px; align-items: flex-start; }
.ag-time { flex: none; width: 58px; }
.ag-time .num { font-size: 21px; line-height: 1.1; display: block; color: #111; }
.ag-time .small { color: var(--faint); white-space: nowrap; }
.ag-main { flex: 1; min-width: 0; }
.ag-name { font-size: 17px; font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
.ag-svc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ag-price { font-size: 17px; font-weight: 300; white-space: nowrap; }
.ag-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0 72px; }
.ag-acts .btn-text { margin-left: auto; }
.ag-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-height: 48px; margin-right: auto; }
.ag-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.ag.is-faltou { background: rgba(20, 20, 20, .02); border-style: dashed; }
.ag.is-faltou .ag-top { opacity: .45; }
.ag.is-faltou .ag-status .dot { background: var(--faint); }
.ag.is-feito { padding: 12px 14px 8px; background: rgba(20, 20, 20, .03); }
.ag.is-feito .ag-time .num, .ag.is-feito .ag-price { color: var(--muted); }
.ag.is-feito .ag-acts { margin-top: 2px; }
.ag.is-feito .ag-status .dot { background: var(--ok); }
.ag-new { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); margin-left: 8px; vertical-align: 2px; }
@media (max-width: 420px) { .ag-acts { margin-left: 0; } }
.ag-ok { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.ag-ok * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-ok circle { stroke: rgba(20, 20, 20, .2); }
.ag-prox { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ac); animation: pulse 1.9s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .65; } to { transform: scale(3.4); opacity: 0; } }
.now { position: relative; height: 0; list-style: none; z-index: 2; margin: 2px 0 12px; }
.now-l { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ac); opacity: .8; transform-origin: 0 50%; }
.now-t { position: absolute; left: 0; top: -10px; font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 999px; background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ac) 60%, transparent); color: var(--text); letter-spacing: .04em; }
.now.is-in .now-l { animation: lineIn .8s var(--ease) .25s both; }

@keyframes inUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes logoIn { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
@keyframes logoOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.1); } }
.login.is-leaving .logo-wrap { animation: logoOut .42s var(--ease) both; }
.login.is-leaving .gc, .login.is-leaving .login-loja, .login.is-leaving .login-foot { animation: fadeDown .3s var(--ease) both; }
#app.is-entering .top .wordmark { animation: logoIn .8s var(--spring) both; }
#app.is-entering .top-txt, #app.is-entering .top-date { animation: inUp .6s var(--ease) .12s both; }
#app.is-entering .view > .ent { animation: inUp .6s var(--ease) both; animation-delay: calc(200ms + var(--k, 0) * 70ms); }
#app.is-entering .list, #app.is-entering #finLista { --b: 420ms; }
@keyframes agIn { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 12px)); } to { opacity: 1; transform: none; } }
.ag-in { animation: agIn .55s var(--ease) backwards; animation-delay: calc(var(--b, 0ms) + var(--i, 0) * 55ms); }
.row-in { animation: inUp .5s var(--ease) both; animation-delay: calc(var(--b, 0ms) + var(--i, 0) * 40ms); }
.ag.is-closing .ag-acts { animation: fadeDown .28s var(--ease) both; }
.ag.is-closing .ag-time .small { animation: fadeDown .2s var(--ease) both; }
.ag-ok.draw { animation: drawOk .5s var(--ease) .12s both; }
@keyframes drawOk { from { clip-path: inset(0 100% 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.ag.just .ag-acts { animation: inUp .4s var(--ease) both; }
.ag.is-fading .ag-top { animation: toMuted .35s var(--ease) both; }
.ag.is-fading .ag-acts { animation: fadeDown .25s var(--ease) both; }
@keyframes toMuted { from { opacity: 1; } to { opacity: .45; } }
.ag.is-flash::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(20, 20, 20, .1) 50%, transparent 75%); transform: translateX(-100%); animation: sweep 1.2s var(--ease) .35s both; }
@keyframes sweep { to { transform: translateX(100%); } }
.fly { position: fixed; z-index: 70; left: 0; top: 0; pointer-events: none; padding: 4px 12px; border-radius: 999px; background: var(--sel-bg); color: var(--sel-tx);
  font-size: 15px; line-height: 1.3; white-space: nowrap; will-change: transform, opacity; }
.tab .bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.28); } 100% { transform: none; } }

/* aviso de horário novo */
.aviso { position: fixed; z-index: 61; left: 50%; top: calc(var(--safe-t) + 12px); width: min(460px, calc(100% - 24px));
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 20px; background: rgba(24, 24, 24, .55);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; transform: translate(-50%, calc(-100% - 24px)); pointer-events: none; transition: transform .6s var(--spring), opacity .25s var(--ease); }
.aviso.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.aviso .pulse { margin-top: 8px; }
.aviso b { display: block; font-weight: 400; font-size: 16px; line-height: 1.25; }
.aviso span.aviso-t { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }

/* financeiro */
.seg-chips { margin-top: 0; }
.saldo { margin: 8px 2px 4px; }
.saldo .big { display: block; font-size: clamp(42px, 13vw, 58px); font-weight: 200; letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; color: #111; }
.saldo .num.neg { color: var(--danger); }
.chart { padding: 16px 16px 14px; margin-bottom: 12px; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.chart-v { font-size: 14px; color: #111; white-space: nowrap; }
.bars { display: flex; gap: 6px; align-items: stretch; }
.bc { flex: 1; min-width: 0; background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; color: var(--muted); transition: transform .2s var(--ease); }
.bc.is-press { transform: scale(.95); }
.bt { position: relative; height: 104px; border-radius: 10px; }
.bc.is-sel .bt { background: rgba(20, 20, 20, .05); }
.b { position: absolute; left: 50%; width: min(18px, 62%); transform-origin: 50% 100%; bottom: 0; height: 100%; margin-left: max(-9px, -31%);
  border-radius: 7px 7px 3px 3px; background: repeating-linear-gradient(135deg, rgba(20, 20, 20, .5) 0 2px, rgba(20, 20, 20, .16) 2px 5px);
  transform: scaleY(0); transition: transform .85s var(--ease), opacity .2s; }
.bc.is-hoje .b { background: linear-gradient(180deg, #fff, var(--ac)); }
.bl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-align: center; min-height: 18px; }
.bc.is-hoje .bl, .bc.is-sel .bl { color: #111; }
.kv-card { padding: 4px 16px; margin: 0 0 12px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }
.grp { margin-top: 22px; }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.grp-h .num { font-size: 15px; color: var(--muted); }
.grp .list { padding: 2px 14px; border-radius: 20px; background: rgba(20, 20, 20, .04); border: 1px solid rgba(20, 20, 20, .08); }
.lanc { min-height: 56px; padding: 11px 0; }
.lanc:last-child { border-bottom: 0; }
.lanc .row-title { font-size: 15.5px; }
.lanc .row-end { font-size: 16px; color: #111; }
.lanc.is-saida .row-end { color: var(--muted); }
.lanc-h { flex: none; width: 44px; font-size: 13px; color: var(--faint); }
.svc-chips { margin-bottom: 12px; }

/* ajustes */
.sec { padding: 18px 16px 16px; margin-bottom: 12px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.svc-ed { display: grid; grid-template-columns: minmax(0, 1fr) 82px 64px 44px; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid rgba(20, 20, 20, .08); }
.svc-ed .input, .hr .input { min-height: 48px; font-size: 16px; }
.svc-ed label { display: block; min-width: 0; }
.svc-ed .field-label { font-size: 10px; margin-bottom: 0; }
.svc-ed .ibtn { width: 44px; height: 48px; border: 0; background: none; color: var(--muted); }
@media (max-width: 350px) { .svc-ed { grid-template-columns: minmax(0, 1fr) 64px 44px; } .svc-ed .lbl-nome { grid-column: 1 / -1; } }
.hr { display: grid; grid-template-columns: 52px 54px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; min-height: 58px; border-bottom: 1px solid rgba(20, 20, 20, .08); }
.hr-d { font-size: 14px; }
.hr.is-off .input { opacity: .3; pointer-events: none; }
select.input { text-align: center; text-align-last: center; cursor: pointer; background: transparent; }
select.input option { background: #1a1a1a; color: var(--text); }
.tg { position: relative; width: 54px; height: 48px; border: 0; background: none; padding: 0; }
.tg::before { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 30px; border-radius: 999px; background: rgba(20, 20, 20, .12);
  border: 1px solid rgba(20, 20, 20, .16); transition: background .25s, border-color .25s; }
.tg::after { content: ""; position: absolute; left: 6px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring), background .2s; }
.tg[aria-checked="true"]::before { background: var(--ac); border-color: var(--ac); }
.tg[aria-checked="true"]::after { transform: translateX(20px); background: #0a0a0a; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* navegação inferior flutuante (pílula de vidro) */
.nav.bar { left: 50%; right: auto; width: auto; max-width: calc(100% - 20px); padding: 6px; border-radius: 999px; transform: translate(-50%, calc(100% + 30px));
  background: rgba(20, 20, 20, .28); }
.nav.bar.is-on { transform: translate(-50%, 0); }
.nav .tabs { gap: 4px; }
.nav .tab { flex: none; min-width: 84px; min-height: 52px; padding: 0 14px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; color: rgba(20, 20, 20, .66); }
.nav .tab svg { width: 20px; height: 20px; }
.nav .tab svg * { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav .tab.is-on { background: var(--sel-bg); color: var(--sel-tx); box-shadow: 0 6px 18px -6px rgba(20, 20, 20, .35); text-shadow: none; }
.nav .tab:active { transform: scale(.95); }
.nav .tab-ind { display: none; }
@media (max-width: 350px) { .nav .tab { min-width: 76px; padding: 0 8px; } }

/* ---------- modo leve: mesmo vidro, desfoque menor, sem movimento contínuo ---------- */
html.lite { --gl-blur: blur(10px) saturate(140%); }
html.lite .gl, html.lite .gc, html.lite .glass, html.lite .gl2, html.lite .ag, html.lite .bar, html.lite .sheet, html.lite .toast, html.lite .aviso,
html.lite .opt, html.lite .trust li { -webkit-backdrop-filter: blur(10px) saturate(140%) !important; backdrop-filter: blur(10px) saturate(140%) !important; }
html.lite .fundo-luz, html.lite .fundo-luz2 { animation: none !important; }
html.lite .opt.is-press, html.lite .t3d.is-press, html.lite .ag.is-press { transform: translateY(1px) scale(.97); }
html.lite .pulse::after { animation: none; opacity: 0; }
html.lite .reveal { opacity: 1; transform: none; transition: none; }
html.lite .tilt-in, html.lite .cal-grade .cal-d, html.lite .cal-grade { animation: none !important; }
html.lite .logo { filter: none; }
html.lite .rgx .vl { filter: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gl, .gc, .glass, .gl2, .ag, .bar, .sheet, .toast, .aviso { background: rgba(30, 30, 30, .62) !important; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .fundo-luz, .fundo-luz2, body::before { animation: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
  .opt, .t3d, .ag, .chip, .ibtn, .bc, .tg { transform: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
}
@media (max-width: 350px) {
  :root { --pad: 14px; }
  h1 { font-size: 26px; }
  .hero-nome { font-size: 24px; }
  .bar .btn { padding: 0 16px; }
  .day { width: 56px; }
  .thumb { width: 44px; height: 44px; }
  .step { padding: 16px 12px 14px; }
  .chips { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
}

/* Avaliações (página do cliente) */
.av-sec { margin-top: 12px; }
.av-lista { list-style: none; display: grid; gap: 10px; margin: 0 0 16px; padding: 0; }
.av-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair, rgba(20, 20, 20,.1)); background: rgba(20, 20, 20,.03); }
.av-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.av-e { color: var(--ac); letter-spacing: 2px; font-size: 14px; }
.av-item p { margin: 6px 0 4px; font-size: 14px; line-height: 1.45; }
.av-d { font-size: 12px; color: var(--muted); }
.av-form { display: grid; gap: 10px; }
.av-estrelas { display: flex; gap: 6px; }
.av-star { background: none; border: 0; padding: 2px; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.av-star.on { color: var(--ac); }
.av-txt { resize: vertical; min-height: 76px; font: inherit; }

/* ---------- capa (foto do topo) ---------- */
@font-face { font-family: "Playfair"; src: url("fonts/playfair.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
.capa { position: relative; width: calc(100% + 32px); margin: -14px -16px 6px; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: 0 0 28px 28px; }
.capa-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.087) 0%, rgba(0, 0, 0, 0.0) 28%, rgba(0, 0, 0, 0.0) 55%, rgba(11,11,11,.92) 100%); }
.capa-logo { position: absolute; z-index: 1; top: 22px; left: 50%; transform: translateX(-50%); width: 54px; height: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); }
.capa-frase { position: absolute; z-index: 1; left: 22px; bottom: 20px; margin: 0; text-align: left; color: #111; font-size: 30px; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
/* ---------- foto final (abre com a rolagem) ---------- */
.final { position: relative; margin: 26px -16px 0; overflow: hidden; border-radius: 28px 28px 0 0; background: #fbfbfb; --p: 0; }
.final-img { display: block; width: 100%; height: auto; opacity: calc(.15 + var(--p) * .85); transform: translateY(calc((1 - var(--p)) * 40px)) scale(calc(1.08 - var(--p) * .08)); transform-origin: center bottom; will-change: transform, opacity; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,11,0) calc(10% + (1 - var(--p)) * 60%)); }
.final-txt { position: absolute; z-index: 2; top: 24%; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 80%; font-family: "Playfair", Georgia, serif; font-size: 40px; line-height: 1.02; letter-spacing: -.035em; color: #1d1d1d; opacity: var(--p); }
.final-txt small { display: block; margin-top: 10px; font-family: inherit; font-size: 12px; letter-spacing: 0; color: #555; }
@media (prefers-reduced-motion: reduce) { .final { --p: 1 !important; } }
.foot-bt .btn svg { width: 17px; height: 17px; margin-right: 7px; flex: none; vertical-align: -3px; }
.foot-bt .btn svg path.wa { fill: #25D366; stroke: none; }
.foot-bt .btn svg .ig { fill: none; stroke: url(#igg); stroke-width: 2.2; }
.foot-bt .btn svg .igd { fill: #D62976; stroke: none; }
.capa { width: calc(100% + 2 * var(--pad)); margin: calc(-26px - var(--safe-t)) calc(-1 * var(--pad)) 6px; }
.final { margin: 26px calc(-1 * var(--pad)) 0; }
.final-txt { top: 12%; }
/* ---------- tema claro (combina com a foto final) ---------- */
html, body { background: #fbfbfa; }
.fundo { background: #fbfbfa !important; }
.fundo-luz, .fundo-luz2 { display: none; }
body::before { opacity: .025; }
body::after { display: none; }
.hero-nome, .step-title, .foot-nome { font-family: "Playfair", Georgia, serif; font-weight: 400; letter-spacing: -.02em; color: #151515; }
.hero-nome { font-size: 34px; }
.gl { background: #fff; border-color: rgba(20,20,20,.08); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.10); }
.capa::after { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.capa-frase { font-family: "Playfair", Georgia, serif; font-weight: 400; font-size: 32px; letter-spacing: -.03em; }
.final { margin-bottom: 0; }
.final::before { background: linear-gradient(180deg, #fbfbfa 0%, rgba(251,251,250,0) calc(10% + (1 - var(--p)) * 60%)); }
.final { border-radius: 0; }
.capa-frase { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.bar, .bar.glass { background: rgba(255,255,255,.86) !important; border: 1px solid rgba(20,20,20,.08) !important; box-shadow: 0 12px 32px -14px rgba(0,0,0,.25) !important; color: #151515; }
.btn-primary, .bar .btn-primary { background: #151515 !important; color: #fff !important; border-color: #151515 !important; opacity: 1; }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: #cfcfcc !important; border-color: #cfcfcc !important; color: #fff !important; }
/* final: some no fundo, sem borda, com desfoque que abre na rolagem */
.final { margin: 34px calc(-1 * var(--pad)) calc(-40px) !important; border-radius: 0 !important; background: transparent !important; }
.final::before { display: none; }
.final-img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 calc(38% - var(--p) * 28%)); mask-image: linear-gradient(180deg, transparent 0%, #000 calc(38% - var(--p) * 28%)); filter: blur(calc((1 - var(--p)) * 12px)); }
.final-txt { filter: blur(calc((1 - var(--p)) * 8px)); }
.bar-spacer-final { height: 0; }
.final { padding-bottom: calc(96px + var(--safe-b)); background: transparent !important; }
/* fade longo em todas as bordas da foto final + desfoque de fundo */
.final { isolation: isolate; }
.final-img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 62%), linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 62%), linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-composite: intersect; filter: blur(calc((1 - var(--p)) * 14px)); }
.final::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 30%; bottom: 0; background: url("img/final.webp") center bottom / cover no-repeat; filter: blur(38px) saturate(90%); opacity: calc(var(--p) * .45); transform: scale(1.15); pointer-events: none; }
.final-img { position: relative; z-index: 1; }
/* tom claro suave (não branco puro) */
:root { --bg: #e9e7e2; }
html, body, .fundo { background: #e9e7e2 !important; }
.gl { background: #f4f2ee !important; border-color: rgba(20,20,20,.07) !important; }
.bar, .bar.glass { background: rgba(244,242,238,.88) !important; }
.final-img { mix-blend-mode: multiply; }
.final::after { mix-blend-mode: multiply; }
.final { background: transparent !important; }
.final { isolation: auto !important; }
.final::after { display: none; }
.final-img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%); }
/* fonte premium (Playfair) nos textos de destaque */
.hero-nome, .hero-lede, .step-title, .row-title, .foot-nome, .bar-sum-1, .capa-frase, .eyebrow { font-family: "Playfair", Georgia, serif !important; }
.hero-lede { font-style: italic; font-size: 17px; }
.step-title { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.row-title { font-size: 19px; font-weight: 400; letter-spacing: -.01em; }
.eyebrow { letter-spacing: .04em; text-transform: none; font-style: italic; font-size: 15px; }
.hero { padding-top: 0 !important; }
/* capa: sangra até as bordas, fade longo no fundo e movimento na rolagem */
.capa { border-radius: 0 !important; overflow: hidden; aspect-ratio: 4 / 5.2 !important; margin-bottom: -70px !important; --s: 0; }
.capa-img { transform: translateY(calc(var(--s) * 30%)) scale(calc(1.06 + var(--s) * .12)); filter: blur(calc(var(--s) * 6px)); transform-origin: center top; will-change: transform; }
.capa::after { background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(233,231,226,0) 48%, rgba(233,231,226,.55) 70%, rgba(233,231,226,.92) 86%, #e9e7e2 100%) !important; }
.capa-logo { transform: translate(-50%, calc(var(--s) * 60px)); opacity: calc(1 - var(--s) * 1.4); }
.capa-frase { bottom: 96px !important; color: #151515 !important; text-shadow: none !important; transform: translateY(calc(var(--s) * -30px)); opacity: calc(1 - var(--s) * 1.2); }
.hero-nome { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .capa { --s: 0 !important; } }

/* títulos finos e minimalistas (2026-11-07) */
.hero-nome, .step-title { font-family: var(--sans) !important; font-weight: 200 !important; color: #151515; }
.hero-nome { font-size: 34px; letter-spacing: -.035em; }
.step-title { font-size: 25px; letter-spacing: -.03em; }
.hero-nome { font-weight: 300 !important; }
.row-title, .ag-name { font-family: var(--sans) !important; font-weight: 300 !important; letter-spacing: -.02em; }
.hero-nome { font-weight: 400 !important; }

/* fonte estilo The Mansion (Josefin Sans) (2026-11-07) */
@font-face { font-family: "Josefin"; src: url("fonts/josefin.ttf") format("truetype"); font-weight: 100 700; font-display: swap; }
.hero-nome { font-family: "Josefin", var(--sans) !important; font-weight: 300 !important; text-transform: uppercase; letter-spacing: .14em !important; padding-left: .14em; font-size: 30px; }
.row-title, .ag-name { font-family: "Josefin", var(--sans) !important; font-weight: 300 !important; letter-spacing: .02em !important; font-size: 19px; }

/* vidro estilo iPhone nos painéis, mantendo o tom (2026-11-07) */
body::after { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; opacity: 1 !important;
  background:
    radial-gradient(38% 26% at 12% 38%, rgba(190,160,124,.7), transparent 70%),
    radial-gradient(34% 24% at 92% 58%, rgba(205,182,152,.75), transparent 70%),
    radial-gradient(40% 28% at 30% 82%, rgba(186,164,140,.45), transparent 70%),
    radial-gradient(30% 22% at 80% 18%, rgba(255,255,255,.8), transparent 70%) !important;
  filter: blur(30px); animation: none !important; }
.gl {
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(244,242,238,.38)) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important; backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(20,20,20,.04), 0 10px 30px -12px rgba(60,45,30,.18) !important;
}
#servicos .row.svc, .trust li {
  background: rgba(255,255,255,.42) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important; backdrop-filter: blur(18px) saturate(170%) !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 4px 14px -8px rgba(60,45,30,.18) !important;
}
#servicos .row.svc.is-on { background: rgba(255,255,255,.7) !important; border-color: #151515 !important; }
/* fundo vivo entre a capa e a foto final: manchas quentes flutuando devagar */
@keyframes aegoFlutua { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4%, -3%, 0) scale(1.08); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.02); } }
body::before { content: ""; position: fixed; inset: -15%; z-index: -1; pointer-events: none; opacity: 1 !important;
  background:
    radial-gradient(22% 16% at 70% 30%, rgba(160,128,94,.5), transparent 70%),
    radial-gradient(26% 18% at 20% 65%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(20% 14% at 60% 85%, rgba(150,126,100,.3), transparent 70%) !important;
  filter: blur(40px); animation: aegoFlutua 18s ease-in-out infinite alternate !important; }
body::after { animation: aegoFlutua 24s ease-in-out infinite alternate-reverse !important; }
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none !important; } }
.fundo { background: transparent !important; }
body { background: transparent !important; }
.gl { background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(244,242,238,.22)) !important; }
body::after { background:
    radial-gradient(45% 22% at 8% 30%, rgba(184,150,110,.75), transparent 70%),
    radial-gradient(45% 22% at 95% 55%, rgba(196,166,128,.8), transparent 70%),
    radial-gradient(50% 24% at 25% 85%, rgba(176,146,112,.6), transparent 70%),
    radial-gradient(35% 20% at 80% 12%, rgba(255,255,255,.9), transparent 70%) !important; }
/* capa some no fundo vivo (sem emenda) */
.capa { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%); }

/* capa sem travar (2026-11-07): nada se move na rolagem; zoom suave só ao abrir */
@keyframes capaEntra { from { transform: scale(1.14); opacity: 0; } to { transform: scale(1.02); opacity: 1; } }
.capa-img { transform: scale(1.02) !important; filter: none !important; will-change: auto !important; animation: capaEntra 2.2s cubic-bezier(.2,.7,.2,1) both; }
.capa-logo { transform: translateX(-50%) !important; transition: opacity .2s linear; }
.capa-frase { transform: none !important; transition: opacity .2s linear; }
@media (prefers-reduced-motion: reduce) { .capa-img { animation: none; } }

/* ---------- fluidez (rolagem leve no celular) ----------
   - cartões que rolam: sem backdrop-filter (o fundo atrás é liso, o vidro continua pelo degradê e borda)
   - desfoque só no que fica parado na tela (barra, folha, aviso), menor
   - fundo parado: sem manchas animadas e sem granulado gerado por filtro SVG
   - foto final: entra uma vez com transição, sem recalcular blur a cada quadro */
.gl, .gc, .glass, .gl2, .ag, .opt, .trust li, .marquee-item, .chip {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.gl, .gc, .glass, .gl2, .nav, .bar { text-shadow: none; }
.bar, .sheet, .toast, .aviso { -webkit-backdrop-filter: blur(12px) !important; backdrop-filter: blur(12px) !important; }
.fundo-luz, .fundo-luz2 { animation: none !important; will-change: auto; }
body::before { display: none; }
.final::after { display: none; }
.final-img, .final-txt { filter: none !important; will-change: auto; }
.final { --p: 0; }
.final-img { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.final-txt { transition: opacity .9s var(--ease) .15s; }
.final.is-in { --p: 1; }
html.rolando .marquee-track { animation-play-state: paused; }


/* Renderização da capa: evita artefatos de composição em navegadores móveis */
.capa-img, .capa img.foto { animation:none !important; transform:none !important; filter:none !important; image-rendering:auto; backface-visibility:visible; will-change:auto !important; }


/* Hero image stability: use the real source ratio and avoid GPU compositing layers */
.hero .capa-img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1122 / 1402;
  object-fit:contain;
  object-position:center;
  opacity:1;
  animation:none !important;
  transform:none !important;
  filter:none !important;
  mix-blend-mode:normal !important;
  backface-visibility:visible;
  will-change:auto;
  image-rendering:auto;
}
.hero .capa-img::before,
.hero .capa-img::after { content:none !important; display:none !important; }
@media (max-width: 600px) {
  .hero .capa-img { width:100%; max-width:100%; height:auto; }
}
@media (min-width: 601px) {
  .hero .capa-img { max-width:560px; margin-inline:auto; }
}
