:root {
  --paper: #f5f2ec;
  --card: #ffffff;
  --ink: #16130f;
  --muted: #6d665c;
  --line: #e2dcd1;
  --accent: #b8322a;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3df;
  --ok: #24724a;
  --ok-soft: #e1f1e7;
  --warn: #9a6400;
  --warn-soft: #fbefd6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 19 15 / .06), 0 8px 24px rgb(22 19 15 / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.demo-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--ink); color: #f5f2ec; font-size: 13px; }
.demo-bar a { color: #fff; font-weight: 600; }
.demo-bar b { color: #ffcf8a; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 16px 120px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 15px var(--display); letter-spacing: .02em; }
.brand-name { font: 700 20px/1.1 var(--display); }
.brand-sub { color: var(--muted); font-size: 13px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.hero { padding: 26px 0 18px; }
.hero h1 { margin: 0; font: 700 clamp(30px, 5.4vw, 52px)/1.05 var(--display); letter-spacing: -.01em; }
.hero p { margin: 10px 0 0; color: var(--muted); max-width: 56ch; }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.layout > * { min-width: 0; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }

.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.step-num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; transform: translateY(3px); }
.step h2 { margin: 0; font: 700 20px var(--display); }
.step.is-locked { opacity: .45; pointer-events: none; }

.grid { display: grid; gap: 10px; }
.services { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 14px 16px; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.choice:hover { border-color: #c9c1b4; }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: #faf8f4; box-shadow: inset 0 0 0 1px var(--ink); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.choice-title { font-weight: 650; padding-right: 26px; }
.choice-meta { color: var(--muted); font-size: 14px; }
.choice-price { font-weight: 700; margin-top: 6px; }

.staff { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.staff .choice { align-items: center; text-align: center; padding: 16px 10px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: var(--accent-soft); color: var(--accent); font: 700 18px var(--display); }
.avatar.any { background: #ece7de; color: var(--ink); }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.day { flex: none; scroll-snap-align: start; width: 68px; padding: 10px 0; text-align: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.day small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.day strong { display: block; font: 700 22px/1.2 var(--display); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] small { color: #d9d2c6; }
.day:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.times-group { margin-top: 12px; }
.times-group h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { padding: 10px 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.time:hover { border-color: #c9c1b4; }
.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty { padding: 18px; text-align: center; color: var(--muted); background: #faf8f4; border: 1px dashed var(--line); border-radius: 12px; }
.loading { color: var(--muted); padding: 10px 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label span.opt { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(22 19 15 / .12); }
textarea { min-height: 78px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; }
.error { color: var(--accent); font-size: 14px; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #2a2520; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #9e2a23; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }

.summary { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.summary h2 { margin: 0 0 12px; font: 700 18px var(--display); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 700; }
.sum-total strong { font: 700 26px var(--display); }
.policy { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.mobile-bar { display: none; }
@media (max-width: 880px) {
  .summary { display: none; }
  .mobile-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(22 19 15 / .08); }
  .mobile-bar .mb-text { font-size: 14px; line-height: 1.3; min-width: 0; }
  .mobile-bar .mb-text strong { display: block; font: 700 20px var(--display); }
  .mobile-bar .mb-text span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
}

.done { max-width: 620px; margin: 30px auto; text-align: center; }
.done .tick { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.done h1 { margin: 0; font: 700 34px var(--display); }
.done .card { margin-top: 20px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.code { display: inline-block; padding: 4px 10px; background: var(--ink); color: var(--paper); border-radius: 8px; font: 700 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-confirmed { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: #eee; color: #555; }
.status-done { background: #e6eefb; color: #2a4f8f; }
.status-no_show { background: var(--warn-soft); color: var(--warn); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: 96px; translate: -50% 0; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; }
.foot { margin-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* waitlist, loyalty, reviews, my bookings */
.waitlist { margin-top: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.waitlist p { margin: 0 0 10px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-row input { flex: 1 1 160px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.wl-done { margin-top: 12px; padding: 12px 14px; background: var(--ok-soft); color: var(--ok); border-radius: 12px; font-weight: 600; }
.done .card + .card, .done .card + form.card { margin-top: 14px; }
.card h2 { margin: 0 0 10px; font: 700 20px var(--display); }
.stamps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.stamps i { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed #c9bfae; display: grid; place-items: center; font-style: normal; color: #c9bfae; }
.stamps i.on { border-style: solid; border-color: var(--ink); background: var(--ink); }
.stamps i.gift { border-color: var(--accent); color: var(--accent); }
.loyal .policy { text-align: center; }
.review-form textarea { width: 100%; min-height: 80px; margin: 10px 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.rate { display: flex; gap: 4px; justify-content: center; }
.rate button { border: 0; background: none; font-size: 36px; line-height: 1; color: #d9cfbf; cursor: pointer; padding: 2px; }
.rate button.on { color: #d39b00; }
.stars-big { color: #d39b00; font-size: 20px; letter-spacing: 2px; }
.extras { display: grid; gap: 14px; margin-top: 22px; }
.extras blockquote { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.extras blockquote p { margin: 0 0 4px; }
.extras blockquote footer { color: var(--muted); font-size: 13px; }
.rating { margin: 0 0 6px; }
.mine { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.mine:hover { color: var(--accent); }
@media (max-width: 600px) { .mine { grid-template-columns: 1fr auto; } .mine span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; } }
.top-right { display: flex; align-items: center; gap: 8px; }
.signin { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.signin[hidden] { display: none; }
.pk { text-align: center; }
.pk .btn { margin-top: 6px; }
.sub-h { margin: 12px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mine a { color: inherit; font-weight: 600; }
@media (max-width: 420px) { .signin { max-width: 130px; overflow: hidden; text-overflow: ellipsis; } }
