:root {
  --brand: #b0637a;
  --on-brand: #ffffff;
  --gold: var(--brand);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand-soft: color-mix(in srgb, var(--brand) 13%, var(--card));
  --brand-ink: color-mix(in srgb, var(--brand) 72%, var(--ink));
  --bg: #faf6f4;
  --card: #ffffff;
  --ink: #2b2226;
  --muted: #7d6f74;
  --line: #ece3e0;
  --ok: #2f8a5b;
  --warn: #b7791f;
  --bad: #b23b3b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 34, 38, .04), 0 8px 24px rgba(43, 34, 38, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand-ink); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.hero { padding: 36px 0 20px; text-align: center; }
.hero .logo {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-size: 26px;
}
.hero h1 { font-size: 28px; }
.hero p { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

.steps { display: flex; gap: 6px; margin: 8px 0 22px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps span.on { background: var(--brand); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.section-title h2 { font-size: 23px; font-weight: 600; color: var(--ink); }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; font-size: 14px; }
.back:hover { color: var(--ink); }

.cat { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.list { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid transparent; border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .15s;
}
.opt:hover { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.opt:active { transform: scale(.99); }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt .grow { flex: 1; min-width: 0; }
.opt .t { font-weight: 600; }
.opt .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt .price { font-weight: 600; white-space: nowrap; text-align: right; }
.opt .price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: var(--on-brand); font-weight: 600; background: var(--brand);
}
.avatar.any { background: var(--line); color: var(--muted); }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date {
  flex: none; width: 62px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
  text-align: center; cursor: pointer; scroll-snap-align: start;
}
.date .w { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.date .n { font-size: 20px; font-weight: 600; font-family: var(--font-display); }
.date .m { font-size: 11px; color: var(--muted); }
.date[disabled] { opacity: .35; cursor: not-allowed; }
.date.sel { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.date.sel .w, .date.sel .m { color: var(--on-brand); opacity: .85; }

.period { font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--brand); }
.slot.sel { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
@media (max-width: 380px) { .slots { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.summary { display: grid; gap: 8px; font-size: 15px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row span:first-child { color: var(--muted); }
.summary .row span:last-child { text-align: right; font-weight: 500; }
.summary hr { border: 0; border-top: 1px dashed var(--line); margin: 4px 0; width: 100%; }

label.field { display: block; margin: 14px 0 0; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; }

.policy { font-size: 13px; color: var(--muted); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 15px 22px; font-weight: 600; cursor: pointer;
  background: var(--brand); color: var(--on-brand); width: 100%; font-size: 16px; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.btn.small { padding: 9px 14px; font-size: 14px; width: auto; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.bar .inner { max-width: 560px; margin: 0 auto; }

.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }
.empty { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { text-align: center; padding: 10px 0 18px; }
.status .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; }
.status .ico.ok { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }
.status .ico.wait { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn); }
.status .ico.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); }
.status h1 { font-size: 26px; }
.status p { color: var(--muted); margin: 6px 0 0; }

.pix { text-align: center; }
.pix img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.copy { display: flex; gap: 8px; margin-top: 12px; }
.copy input { font-size: 12px; font-family: ui-monospace, monospace; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--warn); }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.sim { margin-top: 12px; border: 1.5px dashed var(--warn); color: var(--warn); background: transparent; }

dialog { border: 0; border-radius: var(--radius); padding: 22px; max-width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(43, 34, 38, .35); }
dialog h3 { font-size: 20px; margin-bottom: 8px; }
dialog p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
dialog .row-btns { display: flex; gap: 10px; }

.fade { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Marca ---------- */
.logo-img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.logo-img.lg { width: 230px; }
.logo-img.sm { width: 120px; }
.wm { text-align: center; position: relative; padding-top: 6px; }
.wm-mono { font-family: 'Pinyon Script', cursive; color: var(--gold); line-height: .8; }
.wm-name { font-family: var(--font-display); color: var(--wm-name, var(--ink)); line-height: 1.05; }
.wm-sub { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); letter-spacing: .42em; font-size: 11px; margin-top: 6px; }
.wm-sub::before, .wm-sub::after { content: ''; height: 1px; flex: 0 1 46px; background: linear-gradient(90deg, transparent, var(--gold)); }
.wm-sub::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.wm.lg .wm-mono { font-size: 60px; margin-bottom: -2px; }
.wm.lg .wm-name { font-size: 34px; }
.wm.sm .wm-mono { font-size: 38px; margin-bottom: -2px; }
.wm.sm .wm-name { font-size: 21px; }
.wm.sm .wm-sub { font-size: 9px; letter-spacing: .34em; }
.wm.caps .wm-name { letter-spacing: .08em; font-weight: 500; }
.wm.caps.lg .wm-name { font-size: 25px; }
.wm.caps.sm .wm-name { font-size: 15px; }
.wm.serif .wm-name { font-weight: 500; letter-spacing: .01em; }
.hero .tag { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.hero .where { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hero .back-studio { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
[data-mode=dark] body { background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--bg) 80%, #6a6a6a), var(--bg)); background-attachment: fixed; }
[data-mode=dark] .opt, [data-mode=dark] .card { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.25); }

/* Cartões de profissional na página do estúdio */
.pro-cards { display: grid; gap: 14px; }
.pro-card { display: block; text-decoration: none; border-radius: 20px; padding: 26px 18px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; border: 1px solid var(--line); }
.pro-card:hover { transform: translateY(-2px); }
.pro-card .meta { margin-top: 12px; font-size: 13px; }
.pro-card .cta { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
[data-mode=dark] { --bad: #e58a8a; --ok: #74d39c; --warn: #e6b964; }

.wait-link { font-size: 14px; color: var(--muted); text-align: center; margin: 18px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field small { font-weight: 400; opacity: .8; }
details.coupon { margin-top: 14px; font-size: 14px; }
details.coupon summary { cursor: pointer; color: var(--brand-ink); font-weight: 500; }
details.coupon .copy { margin-top: 8px; }
@media (max-width: 380px) { .two-col { grid-template-columns: 1fr; } }
