:root {
  color-scheme: dark;
  --tinta: #0b0b0a;
  --sup-1: #121211;
  --sup-2: #1a1917;
  --sup-3: #24231f;
  --linha: #2c2b27;
  --fio: rgba(242, 239, 232, .28);
  --papel: #f2efe8;
  --cinza: #9c968b;
  --cinza-2: #6d685f;
  --verde: #5cb87d;
  --titulo: "Old Standard TT", Georgia, serif;
  --placa: "Oswald", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --barra-h: 76px;
  --z-abas: 20;
  --z-barra: 30;
  --z-folha: 50;
  --z-grao: 90;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
/* Barra de rolagem escura, no tom do site. Chrome/Edge usam os ::-webkit-scrollbar (sem as setas);
   o scrollbar-color fica só pro Firefox, porque no Chrome ele desliga esses estilos. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #3a3833 var(--tinta); }
  .folha__corpo { scrollbar-width: thin; scrollbar-color: #3a3833 transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tinta); }
::-webkit-scrollbar-thumb { background: #34322d; border: 2px solid var(--tinta); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4a4740; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--tinta); }
.folha__corpo::-webkit-scrollbar { width: 6px; }
.folha__corpo::-webkit-scrollbar-track { background: transparent; }
.folha__corpo::-webkit-scrollbar-thumb { background: #3a3833; border: 0; }
body {
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--barra-h) + env(safe-area-inset-bottom));
}
/* Grão de papel por cima de tudo, bem leve */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: var(--z-grao);
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--papel); outline-offset: 3px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--papel); color: var(--tinta);
  padding: 10px 14px; font-weight: 600;
}
.pular:focus { top: 12px; }

.rotulo {
  font-family: var(--placa);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cinza);
}
.pontos {
  flex: 1;
  min-width: 16px;
  margin: 0 10px;
  border-bottom: 2px dotted var(--fio);
  transform: translateY(-5px);
}

/* ---------- Capa ---------- */
.capa {
  position: relative;
  min-height: clamp(540px, 88svh, 740px);
  display: grid;
  place-items: center;
  padding: 56px 20px 64px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #1b1a17 0%, rgba(11,11,10,0) 70%),
    var(--tinta);
}
.capa__padrao {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  stroke: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 44%, transparent 35%, #000 78%);
  mask-image: radial-gradient(ellipse 62% 52% at 50% 44%, transparent 35%, #000 78%);
}
.capa__moldura {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(242,239,232,.5);
  pointer-events: none;
}
.capa__moldura::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(242,239,232,.16);
}
.capa__moldura i, .losango {
  position: absolute; width: 11px; height: 11px;
  border: 1px solid rgba(242,239,232,.85);
  background: var(--tinta);
  transform: rotate(45deg);
}
.capa__moldura i::after, .losango::after {
  content: ""; position: absolute; inset: 3px; background: rgba(242,239,232,.85);
}
.capa__moldura i:nth-child(1), .losango:nth-of-type(1) { top: -6px; left: -6px; }
.capa__moldura i:nth-child(2), .losango:nth-of-type(2) { top: -6px; right: -6px; }
.capa__moldura i:nth-child(3), .losango:nth-of-type(3) { bottom: -6px; left: -6px; }
.capa__moldura i:nth-child(4), .losango:nth-of-type(4) { bottom: -6px; right: -6px; }

.capa__conteudo {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 520px;
}
.capa__conteudo > * { animation: entrar .7s cubic-bezier(.2,.7,.2,1) both; }
.capa__conteudo > *:nth-child(2) { animation-delay: .06s; }
.capa__conteudo > *:nth-child(3) { animation-delay: .12s; }
.capa__conteudo > *:nth-child(4) { animation-delay: .2s; }
.capa__conteudo > *:nth-child(5) { animation-delay: .26s; }
.capa__conteudo > *:nth-child(6) { animation-delay: .32s; }

.capa__desde {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--placa); font-weight: 500;
  font-size: 12.5px; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(242,239,232,.82);
  padding-left: .42em;
}
.fio { width: 34px; height: 1px; background: rgba(242,239,232,.5); }
.capa__logo {
  width: min(70vw, 360px);
  height: auto;
  margin: 22px auto 14px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.7));
}
.capa__cidade {
  font-family: var(--titulo); font-style: italic;
  font-size: 19px;
  color: rgba(242,239,232,.78);
}

.placa {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--fio);
  font-family: var(--placa); font-weight: 500;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--papel);
  background: rgba(11,11,10,.6);
}
.placa__luz { width: 7px; height: 7px; border-radius: 50%; background: var(--cinza-2); }
.placa.aberto .placa__luz { background: var(--verde); box-shadow: 0 0 0 4px rgba(92,184,125,.16), 0 0 12px rgba(92,184,125,.5); }
.placa.aberto b { color: var(--verde); font-weight: 600; }

.capa__cta { margin-top: 18px; width: auto; padding: 0 26px; }
.capa__cta svg { width: 17px; height: 17px; transition: transform .2s ease; }
@media (hover: hover) { .capa__cta:hover svg { transform: translateX(3px); } }

.capa__links {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
  margin-top: 22px;
}
.capa__links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 11px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  color: var(--cinza);
  transition: color .15s ease;
}
.capa__links a + a { border-left: 1px solid var(--linha); }
.capa__links svg { width: 15px; height: 15px; }
@media (max-width: 360px) { .capa__links a { padding: 6px 7px; font-size: 13px; } }
@media (hover: hover) { .capa__links a:hover { color: var(--papel); } }

/* ---------- Abas ---------- */
.abas {
  position: sticky; top: 0; z-index: var(--z-abas);
  background: rgba(11,11,10,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}
.abas__trilho { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; gap: 28px; }
.aba {
  padding: 15px 0 13px;
  font-family: var(--placa); font-weight: 500;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cinza-2);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.aba.ativa { color: var(--papel); border-color: var(--papel); }

/* ---------- Conteúdo ---------- */
.conteudo {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 56px;
  display: grid;
  gap: 40px;
}
h2 { font-family: var(--titulo); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }

.tabela { padding-top: 32px; }
.tabela__topo { margin-bottom: 28px; }
.tabela__topo h2 { font-size: clamp(36px, 9vw, 54px); margin-top: 10px; }
.tabela__ajuda { color: var(--cinza); margin-top: 14px; max-width: 44ch; text-wrap: pretty; }

.categoria { margin-bottom: 30px; }
.categoria__nome {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--titulo); font-style: italic; font-weight: 400;
  font-size: 21px;
  color: var(--papel);
  margin-bottom: 4px;
}
.categoria__nome::after { content: ""; flex: 1; height: 1px; background: var(--linha); }

.servico {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 16px 0;
  text-align: left;
  border-bottom: 1px solid var(--linha);
  transition: background .2s ease;
}
@media (hover: hover) { .servico:hover { background: linear-gradient(90deg, rgba(242,239,232,.035), rgba(242,239,232,0)); } }
.servico__num {
  font-family: var(--placa); font-weight: 500;
  font-size: 13px; letter-spacing: .06em;
  color: var(--cinza-2);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.servico__linha { display: flex; align-items: baseline; }
.servico__nome { font-weight: 600; font-size: 17.5px; line-height: 1.25; }
.servico__preco {
  font-family: var(--placa); font-weight: 600;
  font-size: 19px; letter-spacing: .02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.servico__desc { display: block; color: var(--cinza); font-size: 14.5px; margin-top: 3px; }
.servico__min {
  font-family: var(--placa); font-weight: 500;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cinza-2);
  white-space: nowrap;
}
.servico__min::before { content: "· "; }
.servico__marca {
  width: 26px; height: 26px; margin-top: 1px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(242,239,232,.42);
  border-radius: 2px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.servico__marca svg { width: 16px; height: 16px; stroke-width: 2.6; opacity: 0; transform: scale(.5); transition: opacity .18s ease, transform .22s cubic-bezier(.3,1.6,.5,1); }
.servico[aria-pressed="true"] .servico__marca { background: var(--papel); border-color: var(--papel); color: var(--tinta); }
.servico[aria-pressed="true"] .servico__marca svg { opacity: 1; transform: none; }
.servico[aria-pressed="true"] .servico__num { color: var(--papel); }
.servico:active .servico__marca { transform: scale(.9); }

/* ---------- Lateral ---------- */
.lateral { display: grid; gap: 16px; align-content: start; }
.quadro {
  position: relative;
  background: var(--sup-1);
  border: 1px solid var(--linha);
  border-radius: 2px;
  padding: 22px 20px;
  box-shadow: inset 0 0 0 5px var(--sup-1), inset 0 0 0 6px rgba(242,239,232,.06);
}
.quadro .rotulo { margin-bottom: 14px; }
.quadro__texto { color: var(--cinza); font-size: 15px; margin-bottom: 16px; }
.horario { list-style: none; }
.horario li {
  display: flex; align-items: baseline;
  padding: 6px 0;
  font-size: 15.5px; color: var(--cinza);
  font-variant-numeric: tabular-nums;
}
.horario li .pontos { border-bottom-width: 1.5px; border-color: var(--linha); transform: translateY(-4px); }
.horario li.hoje { color: var(--papel); font-weight: 600; }
.horario li.hoje .pontos { border-color: var(--fio); }
.horario li .fechado { color: var(--cinza-2); font-style: italic; font-family: var(--titulo); }
.mapa { overflow: hidden; border: 1px solid var(--linha); margin-bottom: 14px; aspect-ratio: 16 / 10; background: var(--sup-2); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

.quadro--avaliar { text-align: center; padding: 30px 22px 24px; margin: 6px; }
.quadro--avaliar h2 { font-size: 26px; margin-bottom: 8px; }
.estrelas { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.estrelas svg { width: 17px; height: 17px; fill: var(--papel); stroke: none; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: 2px;
  font-family: var(--placa); font-weight: 500;
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .15s ease, opacity .2s ease;
  width: 100%;
}
.botao:active { transform: translateY(1px) scale(.99); }
.botao--cheio { background: var(--papel); color: var(--tinta); }
@media (hover: hover) { .botao--cheio:hover { background: #fff; } }
.botao--linha { border: 1px solid var(--fio); }
@media (hover: hover) { .botao--linha:hover { background: var(--sup-2); border-color: rgba(242,239,232,.5); } }
.botao[disabled] { opacity: .3; cursor: not-allowed; transform: none; }

/* ---------- Rodapé ---------- */
.rodape {
  text-align: center;
  padding: 48px 20px 40px;
  border-top: 1px solid var(--linha);
  color: var(--cinza);
  font-size: 14px;
}
.marca {
  display: block;
  width: min(62vw, 240px); height: auto;
  margin: 0 auto;
  font-family: "Rye", var(--titulo);
  fill: var(--papel);
  stroke: none;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6));
}
.rodape__desde { justify-content: center; margin: 16px 0 26px; font-size: 11.5px; }
.rodape__links { margin-top: 6px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.rodape__links a { color: var(--papel); }

/* ---------- Barra fixa ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-barra);
  background: rgba(11,11,10,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linha);
  padding-bottom: env(safe-area-inset-bottom);
}
.barra__inner {
  max-width: 1120px; margin: 0 auto;
  height: var(--barra-h);
  padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.barra__resumo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barra__resumo strong { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra__resumo span { color: var(--cinza); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra .botao { width: auto; flex: none; height: 48px; }

/* ---------- Folha de agendamento ---------- */
.folha { position: fixed; inset: 0; z-index: var(--z-folha); display: flex; align-items: flex-end; justify-content: center; }
.folha[hidden] { display: none; }
.folha__fundo { position: absolute; inset: 0; background: rgba(0,0,0,.66); animation: aparecer .2s ease-out; }
.folha__painel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--sup-1);
  border: 1px solid var(--linha); border-bottom: 0;
  border-radius: 14px 14px 0 0;
  animation: subir .34s cubic-bezier(.2,.8,.2,1);
}
.folha.saindo .folha__painel { animation: descer .22s ease-in forwards; }
.folha.saindo .folha__fundo { animation: sumir .22s ease-in forwards; }
.folha__alca { width: 40px; height: 4px; border-radius: 99px; background: var(--sup-3); margin: 10px auto 0; }
.folha__topo { display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 20px 8px; }
.folha__topo h2 { font-size: 27px; margin-top: 4px; }
.fechar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--linha); border-radius: 2px; }
@media (hover: hover) { .fechar:hover { background: var(--sup-2); } }
.folha__corpo { overflow-y: auto; padding: 4px 20px 8px; overscroll-behavior: contain; }
.passo { padding: 16px 0; border-bottom: 1px solid var(--linha); }
.passo:last-child { border-bottom: 0; }
.passo h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--placa); font-weight: 500;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cinza);
  margin-bottom: 12px;
}
.passo h3 span {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: 0;
  border: 1px solid var(--fio); color: var(--papel);
}
.passo h3 .opcional { font-family: var(--texto); font-style: normal; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--cinza-2); }
.escolhidos { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 6px 0 14px;
  border-radius: 2px;
  background: var(--sup-3);
  font-size: 14.5px; font-weight: 500;
}
.chip button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--cinza); }
.chip button svg { width: 14px; height: 14px; }
.chip--add { padding: 0 14px; gap: 8px; background: transparent; border: 1px dashed var(--fio); color: var(--cinza); }
.chip--add svg { width: 14px; height: 14px; }
.vazio { color: var(--cinza); font-size: 14px; }

.dias { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia {
  flex: none; scroll-snap-align: start;
  width: 64px; padding: 10px 0 9px;
  border-radius: 3px;
  border: 1px solid var(--linha);
  background: var(--sup-2);
  text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.dia small { display: block; font-family: var(--placa); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--cinza); }
.dia b { display: block; font-family: var(--titulo); font-size: 24px; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dia em { display: block; font-style: normal; font-size: 11px; color: var(--cinza); }
.dia[aria-selected="true"] { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.dia[aria-selected="true"] small, .dia[aria-selected="true"] em { color: rgba(11,11,10,.62); }
.dia:disabled { opacity: .32; cursor: not-allowed; }

.periodos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.periodo {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 6px 12px;
  border-radius: 3px;
  border: 1px solid var(--linha); background: var(--sup-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.periodo svg { width: 22px; height: 22px; stroke-width: 1.6; color: var(--cinza); margin-bottom: 2px; }
.periodo b { font-family: var(--titulo); font-weight: 700; font-size: 20px; line-height: 1.1; }
.periodo small { font-family: var(--placa); font-size: 12px; letter-spacing: .08em; color: var(--cinza); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .periodo:hover { border-color: var(--fio); } }
.periodo[aria-selected="true"] { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.periodo[aria-selected="true"] svg, .periodo[aria-selected="true"] small { color: rgba(11,11,10,.65); }
.periodos .vazio { grid-column: 1 / -1; }

.campo {
  width: 100%; height: 50px;
  padding: 0 14px; margin-bottom: 8px;
  border-radius: 3px;
  border: 1px solid var(--linha);
  background: var(--sup-2);
  color: var(--papel);
  font: inherit; font-size: 16px;
}
.campo::placeholder { color: var(--cinza-2); }
.campo:focus { outline: none; border-color: rgba(242,239,232,.5); }

.folha__rodape { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.total span { font-family: var(--placa); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cinza); }
.total strong { font-family: var(--placa); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.aviso { text-align: center; color: var(--cinza); font-size: 13px; margin-top: 10px; }

@keyframes entrar { from { opacity: 0; transform: translateY(12px); } }
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }
@keyframes descer { to { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes sumir { to { opacity: 0; } }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .capa__moldura { inset: 24px; }
  .servico { grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 14px; padding: 18px 0; }
  .servico__nome { font-size: 18.5px; }
  .servico__preco { font-size: 20px; }
}
@media (min-width: 980px) {
  .abas { display: none; }
  .conteudo { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding-top: 24px; border-top: 1px solid var(--linha); }
  .lateral { position: sticky; top: 76px; align-self: start; padding-top: 32px; }
  .folha { align-items: center; }
  .folha__painel { border-radius: 4px; border-bottom: 1px solid var(--linha); max-height: 88vh; }
  .folha__alca { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
