:root { --brand: #b0547a; --ink: #1f1a1d; --muted: #75696f; --line: #ece4e7; --bg: #faf6f4; --card: #fff; --radius: 16px; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
* { box-sizing: border-box; }
/* Elements with the hidden attribute must never show or catch clicks. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.demo-bar { background: #111; color: #e9e9e9; font-size: 13.5px; padding: 9px 20px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.demo-bar a { color: #fff; }
.demo-back { font-weight: 700; text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid #444; }
.demo-back:hover { border-color: #fff; }
.demo-link { background: linear-gradient(110deg, #7c5cff, #22d3ee); padding: 4px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }

.hero { background: radial-gradient(900px 300px at 80% -40%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%), linear-gradient(180deg, #241c20, #1a1417); color: #fff; padding: 38px 0 70px; }
.brand { display: flex; align-items: center; gap: 16px; }
.mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--brand); box-shadow: 0 10px 30px -8px var(--brand); flex: none; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.01em; line-height: 1.1; }
.hero p { margin: 4px 0 0; color: #d9cdd2; }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: -44px; padding-bottom: 60px; }
.layout > * { min-width: 0; } /* long rows (days) may never push the card wider than the screen */
.booker { min-width: 0; background: var(--card); border-radius: 22px; box-shadow: 0 20px 50px -25px rgba(40,20,30,.35); border: 1px solid var(--line); position: relative; }

.steps { list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-bottom: 1px solid var(--line); counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.steps i { font-style: normal; width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 1.5px solid var(--line); background: #fff; transition: all .2s; }
.steps li.on { color: var(--ink); } .steps li.on i { border-color: var(--brand); color: var(--brand); }
.steps li.done i { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done i::before { content: "✓"; } .steps li.done i { font-size: 0; } .steps li.done i::before { font-size: 13px; }

.pane { padding: 24px 22px 110px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.pane h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 8px; }
.cat { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin: 24px 0 8px; }

.services { display: grid; gap: 8px; }
.svc { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; user-select: none; }
.svc:hover { border-color: #dcccd2; }
.svc input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.svc-check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid #d5c8cd; display: grid; place-items: center; transition: all .15s; }
.svc input:checked ~ .svc-check { background: var(--brand); border-color: var(--brand); }
.svc input:checked ~ .svc-check::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; }
.svc:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.svc input:focus-visible ~ .svc-check { outline: 2px solid var(--brand); outline-offset: 2px; }
.svc-main { flex: 1; min-width: 0; } .svc-main b { display: block; } .svc-main small { color: var(--muted); }
.svc-meta { text-align: right; white-space: nowrap; } .svc-meta small { display: block; color: var(--muted); }

.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.person { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 20px 12px; border: 1.5px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, transform .15s; }
.person:hover { transform: translateY(-2px); border-color: #dcccd2; }
.person.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.person small { color: var(--muted); font-size: 13px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 22px; margin-bottom: 6px; flex: none; }
.avatar.any { background: linear-gradient(135deg, var(--brand), #e7a3bd); }

.days-wrap { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; flex: 1; }
.days::-webkit-scrollbar { display: none; }
.days-nav { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 20px; flex: none; }
.day { all: unset; box-sizing: border-box; cursor: pointer; scroll-snap-align: start; flex: none; width: 64px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.day b { font-size: 20px; } .day small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; } .day.on small { color: #fde8f0; }
.day[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.day-label { font-family: var(--serif); font-weight: 600; margin: 18px 0 4px; font-size: 19px; }
.tgroup h4 { margin: 14px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 650; font-variant-numeric: tabular-nums; transition: all .15s; }
.time:hover { border-color: var(--brand); }
.time.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.recap { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin: 14px 0 6px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.recap span { color: var(--muted); } .recap b { text-align: right; }
#detailsForm label { display: block; font-weight: 650; font-size: 14px; margin-top: 14px; }
#detailsForm label small { font-weight: 500; color: var(--muted); }
#detailsForm input, #detailsForm textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
#detailsForm input:focus, #detailsForm textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { margin-top: 14px; background: #fdecec; color: #8f1d1d; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.loading, .empty { color: var(--muted); padding: 22px 4px; }

.bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; margin-top: -90px; }
.bar-sum { flex: 1; min-width: 0; color: var(--muted); }
.bar-sum b { display: block; color: var(--ink); } .bar-sum small { font-size: 13px; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; background: var(--brand); color: #fff; font-weight: 700; padding: 13px 24px; border-radius: 12px; white-space: nowrap; transition: filter .15s, opacity .15s; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.loading { opacity: .7; pointer-events: none; }
.btn-ghost { all: unset; cursor: pointer; padding: 12px 10px; color: var(--muted); font-weight: 600; }

.info { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.card h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.hours { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.hours li.today { color: var(--ink); font-weight: 700; }
.member { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.member .avatar { width: 38px; height: 38px; font-size: 16px; margin: 0; }
.member small { display: block; color: var(--muted); font-size: 13px; }
.card p { margin: 0 0 8px; } .small { font-size: 13.5px; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 0 40px; }

/* confirmation page */
.confirm { max-width: 560px; margin: -44px auto 60px; padding: 0 20px; }
.confirm .card { padding: 28px; border-radius: 22px; box-shadow: 0 20px 50px -25px rgba(40,20,30,.35); }
.c-top { text-align: center; }
.c-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--brand) 14%, #fff); }
.c-top h1 { font-family: var(--serif); font-weight: 600; margin: 0; font-size: 28px; }
.c-top p { color: var(--muted); margin: 6px 0 0; }
.c-when { margin: 20px 0; text-align: center; padding: 18px; border-radius: 16px; background: var(--bg); }
.c-when b { display: block; font-family: var(--serif); font-size: 22px; }
.c-actions { display: grid; gap: 10px; margin-top: 18px; }
.c-actions .btn { text-align: center; }
.btn-outline { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 650; }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { color: #a61b1b; border-color: #f2cccc; }
.notice { padding: 12px 14px; border-radius: 12px; background: #fff4e0; color: #7a4a00; font-weight: 600; margin-top: 14px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .info { order: 2; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 12px; }
  .steps { padding: 14px; } .steps span { display: none; } .steps li { justify-content: center; }
  .pane { padding: 20px 16px 110px; }
  .bar { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 20; box-shadow: 0 -10px 30px -15px rgba(0,0,0,.2); }
  .booker { border-radius: 18px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .svc { padding: 12px; gap: 10px; }
  .days-nav { display: none; }
  .foot { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
