/* ============================================================
   Blindado Barber — design tokens
   Preto grafite frio + um único acento azul (a cor do Blindado).
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #08090c;
  --surface: #111318;
  --surface-2: #171a21;
  --surface-3: #20242d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f6;
  --muted: #8d94a3;
  --accent: #4d8dff;          /* texto, ícones, destaques */
  --accent-strong: #2563eb;   /* fundo de botão (branco por cima passa AA) */
  --accent-hover: #3b74f0;
  --accent-ink: #051230;      /* texto sobre --accent */
  --accent-soft: rgba(77, 141, 255, 0.14);
  --accent-glow: rgba(37, 99, 235, 0.35);
  --danger: #e5695a;
  --danger-soft: rgba(229, 105, 90, 0.12);
  --ok: #7fbf8e;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;

  /* Curva de mola criticamente amortecida (sem overshoot) — padrão para UI */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 420ms;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: system-ui, -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent-strong); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.title--sm { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
.display em, .title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34ch; margin: 22px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); margin-bottom: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--spring), background-color 200ms, border-color 200ms, opacity 200ms;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
/* feedback no pointer-down, instantâneo */
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 80ms; }
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn--ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); }
.btn--danger { background: var(--danger); color: #1a0806; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }
@media (hover: hover) {
  .btn--primary:hover:not(:disabled) { background: var(--accent-hover); }
  .btn--ghost:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.26); }
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(20,20,22,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 120ms var(--spring);
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- nav (material translúcido) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 9, 12, 0.66);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 0.9rem; }
.nav__links a { text-decoration: none; color: rgba(242, 238, 231, 0.82); text-shadow: 0 1px 12px rgba(0,0,0,0.5); transition: color 200ms; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.brand__word { font-weight: 800; letter-spacing: 0.16em; font-size: 0.95rem; display: inline-flex; align-items: baseline; gap: 6px; }
.brand__sub { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.05rem; color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 1000px); display: grid; align-items: end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(0.15) contrast(1.05); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,12,0.55) 0%, rgba(8,9,12,0) 28%),
    linear-gradient(0deg, var(--bg) 4%, rgba(8,9,12,0.82) 42%, rgba(8,9,12,0.1) 78%);
}
.hero::before {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  width: 60vmax; height: 60vmax; left: -22vmax; top: -18vmax;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.22), transparent);
}
.hero__content { z-index: 2;
  position: relative; padding: 140px 0 clamp(40px, 8vh, 80px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 48px 0 0;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__facts dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }

/* Celular: a foto da fachada fica no alto e o texto entra logo abaixo do letreiro. */
@media (max-width: 899px) {
  .hero__media { bottom: auto; height: 58%; }
  .hero__media img { object-position: 50% 22%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(8,9,12,0.55) 0%, rgba(8,9,12,0) 22%),
      linear-gradient(0deg, var(--bg) 0%, rgba(8,9,12,0.55) 20%, rgba(8,9,12,0) 48%);
  }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { left: 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(8,9,12,0.6) 22%, rgba(8,9,12,0) 55%),
      linear-gradient(0deg, var(--bg) 0%, rgba(8,9,12,0) 30%);
  }
  .hero__content { align-self: center; padding-block: 140px 100px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 12vw, 140px) 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.card__title { margin: 0 0 18px; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }

/* ---------- barbers ---------- */
.barbers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.barber {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
  transition: transform 300ms var(--spring), border-color 300ms;
}
.barber img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 700ms var(--spring); }
.barber::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,12,0.95) 8%, rgba(8,9,12,0) 60%); }
.barber__body { position: relative; z-index: 1; padding: 24px; }
.barber__name { margin: 0; font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; }
.barber__name em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.barber__role { margin: 2px 0 14px; color: var(--muted); font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.75rem; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.barber__links a:active { transform: scale(0.97); }
@media (hover: hover) {
  .barber:not(.barber--soon):hover { border-color: rgba(77, 141, 255, 0.35); }
  .barber:hover img { transform: scale(1.03); }
}
.barber--soon { background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.018) 14px 15px), var(--surface); }
.barber--soon:not(:has(img))::after { display: none; }
.barber__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 7rem; color: rgba(255,255,255,0.06);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge--accent { color: var(--accent); border-color: rgba(77, 141, 255, 0.4); background: var(--accent-soft); }

/* ---------- profile ---------- */
.profile__id { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 32px; }
.avatar { border-radius: 50%; overflow: hidden; background: var(--surface-2); flex: none; border: 1px solid var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__score { margin-left: auto; display: grid; justify-items: end; gap: 2px; }
.score__num { font-size: 2.5rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.95rem; }
@media (max-width: 600px) { .profile__score { margin-left: 0; justify-items: start; } }

.pro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pro-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: border-color 220ms, background-color 220ms, color 220ms, transform 160ms var(--spring);
}
.pro-card__pic { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.pro-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.pro-card__pic > span { font-family: var(--serif); font-size: 1.6rem; }
.pro-card__text { display: grid; gap: 1px; min-width: 0; }
.pro-card__text small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pro-card__text b { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.pro-card__text span { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-card[aria-checked='false'] { opacity: 0.72; }
.pro-card[aria-checked='true'] {
  border-color: rgba(77, 141, 255, 0.6); color: var(--text);
  background: radial-gradient(120% 140% at 0% 0%, rgba(37, 99, 235, 0.2), transparent 60%), var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pro-card:active { transform: scale(0.98); }
@media (hover: hover) { .pro-card:hover { opacity: 1; border-color: var(--line-strong); } }
@media (max-width: 600px) {
  .pro-card { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
  .pro-card__text { justify-items: center; }
  .pro-card__pic { width: 56px; height: 56px; }
  .pro-card__text b { font-size: 1.1rem; }
  .pro-card__text span { white-space: normal; }
}
.profile__id { margin-bottom: 20px; }

/* segmented control — indicador desliza com curva de mola */
.segmented {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 28px; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  position: relative; z-index: 1; border: 0; background: none;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: color 250ms, transform 120ms var(--spring);
}
.segmented button[aria-selected='true'] { color: var(--text); }
.segmented button:active { transform: scale(0.96); }
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px;
  background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 4px 14px rgba(0,0,0,0.35);
  transition: transform var(--dur) var(--spring), width var(--dur) var(--spring);
}
@media (max-width: 600px) { .segmented { grid-auto-columns: max-content; } }

.panel { animation: panel-in 380ms var(--spring); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); }
.gallery button {
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface-2); transition: transform 200ms var(--spring);
}
.gallery button:active { transform: scale(0.97); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--spring); }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.04); } }

.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(40px, 8vw, 72px) 24px; text-align: center; color: var(--muted);
}
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; font-weight: 600; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .reviews { grid-template-columns: 380px 1fr; } .review-form { position: sticky; top: 92px; } }
.review-list { display: grid; gap: 12px; }
.review { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review__name { font-weight: 600; }
.review__date { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.review p { margin: 0; color: #d8d3ca; white-space: pre-line; overflow-wrap: anywhere; }
.verified { font-size: 0.72rem; color: var(--ok); font-weight: 600; }

.rate { border: 0; padding: 0; margin: 0 0 16px; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.rate__stars label {
  font-size: 2rem; line-height: 1; color: var(--surface-3); cursor: pointer;
  transition: color 150ms, transform 180ms var(--spring);
}
.rate__stars label:active { transform: scale(0.85); }
.rate__stars input:checked ~ label { color: var(--accent); }
@media (hover: hover) {
  .rate__stars label:hover, .rate__stars label:hover ~ label { color: #8fb6ff; }
}
.rate__stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font-size: 16px; /* evita zoom no iOS */
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 200ms, background-color 200ms;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }
.field input::placeholder, .field textarea::placeholder { color: #625e57; }
.fields-2 { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check strong { color: var(--text); font-weight: 600; }
.form-msg { min-height: 1.4em; margin: 4px 0 12px; font-size: 0.9rem; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); }
.notice {
  padding: 14px 16px; border-radius: 12px; font-size: 0.9rem;
  background: var(--accent-soft); border: 1px solid rgba(77, 141, 255, 0.3); color: #cfe0ff;
}
.notice--danger { background: var(--danger-soft); border-color: rgba(229,105,90,0.35); color: #f3c3bc; }

/* ---------- services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.services h3 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 600; letter-spacing: -0.02em; }
.services p { margin: 0; grid-column: 1; color: var(--muted); font-size: 0.92rem; }
.services .price { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.services .dur { grid-column: 2; text-align: right; color: var(--muted); font-size: 0.85rem; }

.services-wrap { display: grid; gap: 32px; align-items: start; }
.services__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.services__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .services-wrap { grid-template-columns: 1fr 380px; } .services__media { position: sticky; top: 92px; } }
@media (max-width: 899px) { .services__media { aspect-ratio: 16 / 10; } }

/* ---------- booking ---------- */
.booking { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .booking { grid-template-columns: 1fr 340px; } .summary { position: sticky; top: 92px; } }
.booking__steps { display: grid; gap: 12px; }
.step {
  margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 22px clamp(18px, 3vw, 26px) 24px;
  transition: opacity 300ms;
}
.step:disabled { opacity: 0.4; }
.step__title { display: flex; align-items: center; gap: 12px; padding: 0; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 16px; float: left; width: 100%; }
.step__title + * { clear: both; }
.step__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; background: var(--surface-3); color: var(--muted);
}
.step.is-done .step__n { background: var(--accent); color: var(--accent-ink); }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color 200ms, background-color 200ms, transform 140ms var(--spring);
}
.opt > span:active { transform: scale(0.97); }
.opt b { font-weight: 600; }
.opt small { color: var(--muted); font-size: 0.82rem; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + span small { color: #a9c6ff; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.opt--row > span { flex-direction: row; align-items: center; gap: 12px; padding-right: 20px; }
.opt--row .avatar { width: 36px; height: 36px; }

.days {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.day { scroll-snap-align: start; flex: none; }
.day > span { width: 68px; align-items: center; padding: 12px 0; gap: 0; }
.day small { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }
.day b { font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.times { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.times .opt > span { align-items: center; padding: 12px 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.times .opt input:disabled + span { text-decoration: line-through; opacity: 0.28; }
.times > p { grid-column: 1 / -1; margin: 0; }

.summary__list { margin: 0; display: grid; gap: 12px; }
.summary__list div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.summary__list dt { color: var(--muted); }
.summary__list dd { margin: 0; text-align: right; font-weight: 500; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 8px; padding-top: 18px; border-top: 1px solid var(--line);
}
.summary__total strong { font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- como chegar ---------- */
.visit { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 420px; } }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.howto li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.howto li:first-child { border-top: 1px solid var(--line); }
.howto h3 { margin: 2px 0 6px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.howto p { margin: 0; }
.howto a { color: var(--accent); }
.howto__n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.2rem; color: var(--accent); border: 1px solid rgba(77, 141, 255, 0.4);
}
.place { display: grid; gap: 14px; }
.place .eyebrow { margin: 0; }
.place__addr { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.place .notice { margin: 0; }
.place--link { text-decoration: none; transition: border-color 250ms, transform 160ms var(--spring); }
.place--link:active { transform: scale(0.985); }
@media (hover: hover) { .place--link:hover { border-color: rgba(77, 141, 255, 0.45); } }
.place__cta { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 600; margin-top: 4px; }
.barber__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 0.88rem; font-weight: 600; }
.barber__links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.barber__links a:hover { color: var(--accent); }
.barber__links svg { width: 16px; height: 16px; }

/* ---------- manage ---------- */
.manage { display: grid; gap: 28px; }
@media (min-width: 900px) { .manage { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.appt { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.appt__when { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.status { display: inline-flex; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); width: fit-content; }
.status--booked { background: rgba(127,191,142,0.14); color: var(--ok); }
.status--cancelled, .status--cancelled_late, .status--no_show { background: var(--danger-soft); color: var(--danger); }

/* ---------- footer ---------- */
.footer { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--line); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer__hours { margin: 0; display: grid; gap: 6px; font-size: 0.88rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 240px; }
.footer__hours dt { color: var(--muted); }
.footer__hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__copy { margin-top: 40px; }

/* ---------- dialogs: material que "materializa" (escala + blur juntos) ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: none; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog[open] { animation: materialize 420ms var(--spring); }
dialog[open]::backdrop { animation: fade 300ms ease; }
dialog.is-closing { animation: dematerialize 220ms ease-in forwards; }
dialog.is-closing::backdrop { animation: fade 220ms ease-in reverse forwards; }
@keyframes materialize { from { opacity: 0; transform: scale(0.94); filter: blur(6px); } }
@keyframes dematerialize { to { opacity: 0; transform: scale(0.96); filter: blur(4px); } }
@keyframes fade { from { opacity: 0; } }

.lightbox { width: 100vw; height: 100dvh; display: grid; place-items: center; }
.lightbox:not([open]) { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86dvh; border-radius: var(--radius); object-fit: contain; }
.lightbox__close { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; }

.sheet { width: min(100% - 32px, 440px); margin: auto; }
.sheet__body {
  background: rgba(24, 24, 27, 0.92); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--line-strong); border-radius: 28px; padding: 32px 24px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: grid; gap: 14px;
}
.sheet__body p { margin: 0; }
.seal { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.seal svg { width: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.seal svg path:last-child { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 500ms 250ms var(--spring) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.code-box { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: 6px; }
.code-box .label { margin: 0; }
.code-box strong { font-size: 2rem; letter-spacing: 0.22em; font-variant-numeric: tabular-nums; color: var(--accent); padding-left: 0.22em; }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
@media (max-width: 600px) {
  .sheet { width: 100%; margin: auto 0 0; }
  .sheet__body { border-radius: 28px 28px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  @keyframes materialize { from { transform: translateY(100%); } }
  @keyframes dematerialize { to { transform: translateY(100%); } }
}

/* ---------- página de localização ---------- */
.nav__links a[aria-current='page'] { color: var(--accent); }
.loc { padding-top: calc(110px + env(safe-area-inset-top)); }
.loc__head { display: grid; gap: 14px; margin-bottom: 32px; }
.loc__head .eyebrow { margin: 0; }


.map {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface-2); min-height: 420px; height: 100%;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* Mapa escuro: inverte e devolve os matizes; o pino vermelho vira azul da marca. */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) contrast(0.92);
}
.map__open { margin-left: auto; flex: none; white-space: nowrap; color: var(--accent); font-weight: 600; font-size: 0.88rem; text-decoration: none; padding: 8px 4px; }
.map__open:hover { text-decoration: underline; }
@media (max-width: 959px) { .map { min-height: 0; height: auto; aspect-ratio: 4 / 3.4; } }
@media (prefers-contrast: more) { .map iframe { filter: none; } }

.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.route {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  transition: border-color 200ms, background-color 200ms, transform 140ms var(--spring);
}
.route:active { transform: scale(0.97); }
.route svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .route:hover { border-color: rgba(77, 141, 255, 0.5); background: var(--accent-soft); } }



.loc__cta {
  margin-top: clamp(48px, 8vw, 88px); padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg); border: 1px solid rgba(77, 141, 255, 0.3);
  background: radial-gradient(120% 140% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 60%), var(--surface);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.page-loc .footer { margin-top: 64px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  background: rgba(23, 26, 33, 0.9); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 380ms var(--spring), opacity 250ms;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- página de redes sociais ---------- */
.social-head .ig-logo { width: 56px; height: 56px; filter: drop-shadow(0 10px 30px rgba(214, 36, 159, 0.35)); }
.socials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.social { display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; align-items: center; }
.social > .btn { grid-column: 1 / -1; }
.social .btn svg { width: 18px; height: 18px; }
.social__avatar {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-2); padding: 3px;
  background-image: linear-gradient(135deg, #fdf497, #fd5949 45%, #d6249f 65%, #285AEB);
}
.social__avatar img, .social__avatar span {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  border: 3px solid var(--surface); background: var(--surface-2);
}
.social__avatar span { display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: var(--muted); }
.social__body { display: grid; gap: 4px; min-width: 0; }
.social__name { margin: 0; font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.social__name em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.social__handle { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.social__handle:hover { color: var(--accent); }

/* ---------- localização compacta (mobile primeiro) ---------- */
.loc--compact { max-width: 720px; padding-top: calc(92px + env(safe-area-inset-top)); display: grid; gap: 14px; }
.loc--compact .loc__head { gap: 6px; margin-bottom: 4px; }
.map--link { display: block; text-decoration: none; }
/* O iframe só mostra; quem recebe o toque é o link. Sobe 64px para esconder o cartão interno do Google. */
.map--link iframe { pointer-events: none; top: -64px; height: calc(100% + 64px); }
.map--link:active { transform: scale(0.99); }
.map--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.loc--compact .map { min-height: 0; height: auto; aspect-ratio: 16 / 10; max-height: 320px; border-radius: 20px; }
.loc--compact .map__open {
  position: absolute; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 999px;
  background: rgba(8, 9, 12, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); color: var(--text); font-size: 0.85rem; z-index: 1;
}
.routes--brand { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.routes--brand .route { min-height: 64px; padding: 10px 14px; gap: 12px; border-radius: 16px; background: var(--surface); }
.routes--brand .route svg { width: 28px; height: 28px; fill: initial; stroke: none; }
.copy-btn { min-width: 128px; }
.copy-btn.is-done { color: #34d399; border-color: rgba(52, 211, 153, 0.45); }
.routes--brand .route span { display: grid; line-height: 1.2; }
.routes--brand .route small { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.addr { padding: 6px 18px; border-radius: 20px; }
.addr__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.addr__row + .addr__row { border-top: 1px solid var(--line); }
.addr__row > div { flex: 1; min-width: 0; }
.addr__row .label { margin-bottom: 2px; font-size: 0.75rem; }
.addr__text { margin: 0; font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.addr__text--ride { color: #cfe0ff; }
.addr__row .btn { flex: none; }
.loc__book { margin-top: 4px; }
@media (max-width: 380px) { .routes--brand .route small { display: none; } }

/* ---------- redes: compacto no celular ---------- */
@media (max-width: 640px) {
  .social-head { gap: 6px; margin-bottom: 20px; }
  .social-head .ig-logo { width: 40px; height: 40px; }
  .social-head .title { font-size: 1.7rem; }
  .social { padding: 16px; gap: 12px 14px; border-radius: 20px; }
  .social__avatar { width: 60px; height: 60px; padding: 2px; }
  .social__avatar span { font-size: 1.6rem; border-width: 2px; }
  .social__name { font-size: 1.05rem; }
  .social > .btn { min-height: 42px; font-size: 0.9rem; }
  .page-loc .loc__cta { margin-top: 28px; padding: 20px; }
  .page-loc .loc__cta .title { font-size: 1.35rem; }
}
.socials { max-width: 900px; }

/* ---------- celular: navegação embaixo e agendamento sem rolar ---------- */
.tabbar, .book-bar { display: none; }
.step__hint { margin-left: auto; font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Serviços com marcador de seleção: deixa claro que dá para escolher mais de um. */
.choice-list .opt > span { position: relative; padding-right: 48px; }
.choice-list .opt > span::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  transition: background-color 160ms, border-color 160ms, transform 200ms var(--spring);
}
.choice-list .opt input:checked + span::after {
  border-color: var(--accent); transform: scale(1.06);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23051230' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 760px) {
  /* A barra de baixo substitui o botão do topo e dá espaço no fim da página. */
  .nav .btn { display: none; }
  body.has-tabbar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); scroll-padding-top: 76px; }

  .tabbar, .book-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: rgba(12, 14, 19, 0.78);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--line);
    transition: transform 380ms var(--spring), opacity 250ms;
  }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); }
  .tabbar a {
    display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px;
    text-decoration: none; color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
    border-radius: 14px; transition: color 200ms, transform 120ms var(--spring);
    -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  }
  .tabbar a:active { transform: scale(0.92); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--text); }
  .tabbar a[aria-current] svg { stroke: var(--accent); }
  /* Agendar é a ação principal: botão cheio no meio. */
  .tabbar .tabbar__main { color: var(--text); }
  .tabbar .tabbar__main svg {
    width: 44px; height: 30px; padding: 4px 10px; border-radius: 999px; box-sizing: border-box;
    background: var(--accent-strong); stroke: #fff; box-shadow: 0 6px 18px -6px var(--accent-glow);
  }
  .tabbar .tabbar__main[aria-current] svg { stroke: #fff; }

  /* Agendando: a barra de navegação desce e a de agendamento sobe (uma camada flutuante por vez). */
  .book-bar { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); padding-inline: 16px; transform: translateY(110%); opacity: 0; pointer-events: none; }
  body.is-booking .book-bar { transform: none; opacity: 1; pointer-events: auto; }
  body.is-booking .tabbar { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .book-bar__info { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
  .book-bar__what { font-size: 0.85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .book-bar__total { font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .book-bar__total:empty { display: none; }
  .book-bar .btn { flex: none; min-height: 48px; padding: 0 20px; }
  .book-bar:not(.is-ready) .btn { background: rgba(255,255,255,0.1); box-shadow: none; border-color: var(--line-strong); }

  /* Topo: a foto da fachada fica inteira em cima e o texto começa logo abaixo do letreiro. */
  .hero { display: block; min-height: 0; }
  .hero__media { position: relative; inset: auto; height: min(92vw, 460px); }
  .hero__media img { object-position: 50% 34%; }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(8,9,12,0.6) 0%, rgba(8,9,12,0) 26%),
      linear-gradient(0deg, var(--bg) 0%, rgba(8,9,12,0.7) 16%, rgba(8,9,12,0) 42%);
  }
  .hero__content { margin-top: -64px; padding: 0 0 8px; }
  .hero__actions { margin-top: 24px; }
  .hero__actions .btn { flex: 1 1 140px; }
  .hero__facts { margin-top: 32px; gap: 12px 24px; }
  .lead { margin-top: 16px; }

  .section { padding-top: 64px; }
  .section__head { margin-bottom: 24px; }

  /* Barbeiros: cartões mais baixos, a lista não vira uma parede de fotos. */
  .barber { aspect-ratio: 4 / 4.4; }
  .barber__body { padding: 20px; }
  .barber__links a { min-height: 44px; }

  /* Abas do portfólio rolam de lado: o degradê na borda mostra que tem mais. */
  .segmented { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

  /* Tabela de preços compacta. */
  .services li { padding: 14px 0; gap: 2px 16px; }
  .services h3 { font-size: 1.02rem; }
  .services .price { font-size: 1rem; }
  .services__media { display: none; }

  /* Agendamento */
  .step { padding: 18px 16px 20px; border-radius: 20px; }
  .step__title { margin-bottom: 14px; }
  .choice-row .opt { flex: 1 1 140px; }
  .choice-list { grid-template-columns: 1fr; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
  .choice-list .opt > span { border: 0; border-radius: 0; background: var(--surface-2); padding-block: 12px; min-height: 56px; justify-content: center; }
  .choice-list .opt + .opt > span { border-top: 1px solid var(--line); }
  .choice-list .opt input:checked + span { background: var(--accent-soft); }
  .choice-list .opt > span:active { transform: none; background: var(--surface-3); }
  .days { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .days::-webkit-scrollbar { display: none; }
  .times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .times .opt > span { min-height: 48px; justify-content: center; }
  .check { padding: 4px 0; }
  .summary { border-radius: 20px; }

  .howto li { padding: 18px 0; gap: 14px; }

  /* Rodapé: links com área de toque de dedo. */
  .footer { padding-top: 36px; }
  .footer__links { gap: 0; }
  .footer__links a { display: flex; align-items: center; min-height: 44px; }

  body.has-tabbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Folha de confirmação: alça para arrastar. */
  .sheet__body { touch-action: none; }
}
.sheet__grabber { display: none; }
@media (max-width: 600px) {
  .sheet__grabber { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: -18px auto 4px; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .book-bar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--spring), transform 700ms var(--spring); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .seal svg path:last-child { stroke-dashoffset: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .sheet__body, .icon-btn, .tag { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,0.3); --line-strong: rgba(255,255,255,0.5); --muted: #c4bfb6; }
}

/* Baixar o app (cartão no celular e passo a passo) */
.install-card {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 10px 12px 12px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: rgba(20, 23, 30, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55); animation: install-in 420ms var(--spring);
}
.install-card img { border-radius: 12px; }
.install-card b { display: block; font-size: 0.95rem; }
.install-card small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.install-card__x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 6px; }
body.has-tabbar .install-card { bottom: calc(84px + env(safe-area-inset-bottom)); }
body.is-booking .install-card { display: none; }
@keyframes install-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .install-card { animation: none; } }
@media (min-width: 761px) { body.has-tabbar .install-card { bottom: 24px; left: auto; width: 380px; } }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }

/* Página Produtos (vitrine) */
.prod-filter { margin: 4px 0 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-bottom: 48px; }
.shop-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.shop-card__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.shop-card.is-out .shop-card__img img { filter: grayscale(0.8); opacity: 0.6; }
.shop-card__body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; }
.shop-card__meta { color: var(--accent); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.shop-card__name { margin: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.shop-card__desc { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.shop-card__price { font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.shop-card__cta { margin-top: 8px; gap: 8px; align-self: end; }
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-card__body { padding: 10px 12px 12px; }
  .shop-card__name { font-size: 0.95rem; }
  .shop-card__desc { display: none; }
  .shop-card__price { font-size: 1.1rem; }
  .shop-card__cta { font-size: 0.82rem; padding-inline: 8px; min-height: 42px; }
}
/* filtros (chips) fora do painel */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed='true'] { color: var(--text); border-color: rgba(77,141,255,0.5); background: var(--accent-soft); }
/* foto do produto sempre quadrada, qualquer que seja o formato enviado */
.shop-card__img img { position: absolute; inset: 0; }
.shop-card__img .shop-card__tag { z-index: 1; }
.shop-card__cta { white-space: normal; text-align: center; line-height: 1.2; }
/* atalho para Produtos no fim de Serviços */
.shop-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.shop-link b { display: block; font-size: 1.05rem; }
.shop-link small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.shop-link:hover { border-color: var(--line-strong); }

/* Assinatura Jsdev (discreta: rodapé, login e fim do painel) */
.jsdev { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.02em; text-decoration: none; opacity: 0.6; transition: opacity 200ms; }
.jsdev:hover, .jsdev:focus-visible { opacity: 1; }
.jsdev b { font-weight: 700; background: linear-gradient(90deg, #2b9bf4, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jsdev img { width: 16px; height: 16px; }
.footer__dev { margin: 14px auto 0; }
.login__dev, .panel-dev { margin: 18px 0 0; text-align: center; }
.panel-dev { margin-top: 48px; }

/* Abertura do app instalado: escudo da Blindado e, embaixo, "developed by jsdev" (como os apps grandes fazem) */
.app-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); transition: opacity 320ms ease, visibility 320ms; }
.app-splash.is-out { opacity: 0; visibility: hidden; }
.app-splash__brand { display: grid; justify-items: center; gap: 14px; animation: splash-in 520ms var(--spring) both; }
.app-splash__brand img { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 50px -12px rgba(37, 99, 235, 0.55); }
.app-splash__brand b { font-size: 0.95rem; letter-spacing: 0.32em; padding-left: 0.32em; }
.app-splash__dev { position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 6px;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; animation: splash-in 520ms 160ms var(--spring) both; }
.app-splash__dev span { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--text); }
.app-splash__dev img { width: 22px; height: 22px; }
@keyframes splash-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .app-splash__brand, .app-splash__dev { animation: none; } }

/* Easter egg: digitar "jsdev" em qualquer página */
.jsdev-egg { position: fixed; z-index: 999; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px; border: 1px solid rgba(139, 92, 246, 0.45); background: rgba(12, 14, 19, 0.95);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 6px rgba(139, 92, 246, 0.08); color: var(--text); text-decoration: none; font-size: 0.88rem; animation: splash-in 420ms var(--spring) both; }
.jsdev-egg img { width: 54px; height: 54px; }
.jsdev-egg small { display: block; color: var(--muted); font-size: 0.78rem; }

/* Topo do site: símbolo da Jsdev no lugar do escudo (o texto BLINDADO barber continua) */
.brand__mark--jsdev { width: 34px; height: 34px; }

/* Lista de espera (dia cheio no agendamento) */
.waitlist { grid-column: 1 / -1; display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--surface); }
.waitlist p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.waitlist p b { color: var(--text); }
.waitlist .btn { justify-self: start; }
.waitlist__form { display: grid; gap: 4px; }
.waitlist__form[hidden] { display: none; }
.waitlist__form .btn { justify-self: stretch; }
.waitlist__ok { padding: 4px 0; }
.waitlist__ok b { color: var(--ok) !important; display: block; margin-bottom: 4px; }
