/* tokens.css */
/* Book53 design tokens. Colour values mirror config/brand.json (single brand source).
   Contrast (WCAG 2.2, measured on #FFFFFF / #FAF9F6):
   ink #202033 15.6:1 / 14.9:1 · muted #5C5B70 6.6:1 / 6.3:1 · primary #5940B9 7.3:1 / 7.0:1
   success #176B50 6.6:1 · warning #8A5A00 5.9:1 · danger #B42318 6.4:1 — all AA for body text. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/jakarta-sans-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, monospace;

  --canvas: #FAF9F6;
  --surface: #FFFFFF;
  --surface-2: #F4F2EE;
  --ink: #202033;
  --ink-2: #34344A;
  --muted: #5C5B70;
  --faint: #8C8BA0;
  --border: #E4E1EC;
  --border-strong: #CFCADC;

  --primary: #5940B9;
  --primary-strong: #4730A0;
  --primary-ink: #FFFFFF;
  --soft: #EEE9FC;
  --soft-2: #F6F3FE;
  --marigold: #F2B84B;
  --marigold-soft: #FDF1D8;
  --teal: #1B7F86;
  --teal-soft: #E1F3F3;

  --success: #176B50;
  --success-soft: #E3F2EA;
  --warning: #8A5A00;
  --warning-soft: #FCF0D6;
  --danger: #B42318;
  --danger-soft: #FCE8E6;
  --info: #2456E6;
  --info-soft: #EAF0FF;

  --focus: #5940B9;
  --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 5px #5940B9;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(32, 32, 51, .06), 0 1px 1px rgba(32, 32, 51, .04);
  --shadow-2: 0 6px 16px -6px rgba(32, 32, 51, .14), 0 2px 4px rgba(32, 32, 51, .05);
  --shadow-3: 0 24px 48px -18px rgba(45, 30, 110, .28), 0 6px 12px -6px rgba(32, 32, 51, .1);

  --content: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --touch: 44px;

  --t-fast: 150ms;
  --t-med: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* staff colours for calendar lanes (each with readable ink) */
  --lane-violet: #EEE9FC; --lane-violet-ink: #4730A0;
  --lane-teal: #E1F3F3;   --lane-teal-ink: #155F65;
  --lane-amber: #FDF1D8;  --lane-amber-ink: #7A4F00;
  --lane-rose: #FCE7EF;   --lane-rose-ink: #9B1C4B;
  --lane-sky: #E4F0FD;    --lane-sky-ink: #1F4E8C;
  --lane-lime: #EEF6DA;   --lane-lime-ink: #4C6312;
  --lane-slate: #ECEDF2;  --lane-slate-ink: #3B3D52;
  --lane-orange: #FDEBDD; --lane-orange-ink: #8F3A0A;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; }
}

/* base.css */
/* Base: reset, typography, layout helpers, focus and motion rules shared by every shell. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 var(--space-3); color: var(--ink); font-weight: 750; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 var(--space-4); }
small, .small { font-size: .875rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { box-shadow: var(--focus-ring); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 650; text-decoration: none; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

/* Motion: content is always visible; reveal is an enhancement that only runs when motion is
   allowed AND the script has marked the document as ready. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
  .js-motion .reveal { transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

.noscript-note { background: var(--warning-soft); color: var(--warning); padding: 12px var(--gutter); font-weight: 600; text-align: center; }

/* components.css */
/* Shared components: one system for marketing, auth, booking, merchant and admin shells. */

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.2rem; }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--primary); font-weight: 800; }
.brand small { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 680; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { --btn-border: var(--ink-2); color: var(--btn-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--primary); --btn-ink: var(--primary-ink); --btn-border: var(--primary); box-shadow: 0 6px 16px -8px rgba(89, 64, 185, .7); }
.btn-primary:hover { --btn-bg: var(--primary-strong); --btn-border: var(--primary-strong); color: #fff; }
.btn-ink { --btn-bg: var(--ink); --btn-ink: #fff; --btn-border: var(--ink); }
.btn-ink:hover { --btn-bg: #000; color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--soft-2); --btn-border: transparent; }
.btn-soft { --btn-bg: var(--soft); --btn-ink: var(--primary-strong); --btn-border: transparent; }
.btn-soft:hover { --btn-bg: #E3DBFA; --btn-border: transparent; color: var(--primary-strong); }
.btn-danger { --btn-bg: var(--danger); --btn-ink: #fff; --btn-border: var(--danger); }
.btn-danger:hover { --btn-bg: #8F1B12; color: #fff; }
.btn-danger-ghost { --btn-bg: transparent; --btn-ink: var(--danger); --btn-border: #EBC2BE; }
.btn-sm { min-height: var(--touch); padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--touch); min-height: var(--touch); padding: 0; border-radius: 10px; }
.btn .spinner { width: 18px; height: 18px; }

/* ---------- Icons (inline SVG sprite usage) ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-1); }
.card-tight { padding: var(--space-4); }
.card-soft { background: var(--soft-2); border-color: transparent; box-shadow: none; }
.card h3 { margin-bottom: var(--space-2); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.1rem; letter-spacing: -.01em; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field { margin-top: var(--space-4); }
.label { font-weight: 650; font-size: .95rem; color: var(--ink); }
.label .opt { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(89, 64, 185, .18); outline: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; margin-top: 2px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface-2); color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 var(--radius) var(--radius) 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 0; min-height: var(--touch); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check span { line-height: 1.5; }
.form-grid { display: grid; gap: var(--space-4); }
.form-grid > .field + .field { margin-top: 0; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.form-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--space-5); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* segmented control / chips */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border); }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; background: transparent; border-radius: 9px; font-weight: 650; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Status badges (text + icon shape, never colour alone) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.confirmed { background: var(--soft); color: var(--primary-strong); }
.badge.checked_in { background: var(--info-soft); color: var(--info); }
.badge.checked_in::before { border-radius: 2px; }
.badge.completed { background: var(--success-soft); color: var(--success); }
.badge.completed::before { content: "✓"; width: auto; height: auto; background: none; font-size: .8rem; }
.badge.cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.badge.cancelled::before { content: "×"; width: auto; height: auto; background: none; text-decoration: none; }
.badge.no_show { background: var(--danger-soft); color: var(--danger); }
.badge.no_show::before { content: "!"; width: auto; height: auto; background: none; }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.neutral::before { border-radius: 2px; }

/* ---------- Alerts / banners ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid transparent; align-items: flex-start; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--soft-2); border-color: #E2DAFB; color: var(--ink); }
.alert-warn { background: var(--warning-soft); border-color: #F1D9A6; color: #5E3E00; }
.alert-error { background: var(--danger-soft); border-color: #F2C3BE; color: #7A1810; }
.alert-success { background: var(--success-soft); border-color: #BFE0CE; color: #0F4A37; }
.env-banner { background: repeating-linear-gradient(135deg, #FDF1D8, #FDF1D8 12px, #FBE8BF 12px, #FBE8BF 24px); color: #5E3E00; font-weight: 700; font-size: .88rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid #F1D9A6; }

/* ---------- Loading / empty / error ---------- */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), #ECE9E3, var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; border-radius: 10px; min-height: 16px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.state { display: grid; justify-items: center; text-align: center; gap: var(--space-3); padding: var(--space-7) var(--space-4); color: var(--muted); }
.state h2, .state h3 { color: var(--ink); margin: 0; font-size: 1.2rem; }
.state p { margin: 0; max-width: 46ch; }
.state .state-art { width: 88px; height: 88px; }
.state-error h2, .state-error h3 { color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--soft-2); }

/* ---------- Dialog & drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(24, 22, 40, .42); z-index: 900; display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade var(--t-med) var(--ease); }
@media (min-width: 640px) { .overlay { align-items: center; padding: var(--space-5); } }
.dialog { background: var(--surface); width: 100%; max-width: 560px; max-height: min(92vh, 900px); overflow: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-3); padding: var(--space-5); animation: rise var(--t-med) var(--ease); overscroll-behavior: contain; }
@media (min-width: 640px) { .dialog { border-radius: var(--radius-xl); } }
.dialog-wide { max-width: 760px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.dialog-header h2 { font-size: 1.3rem; margin: 0; }
.overlay.drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { background: var(--surface); width: min(100%, 520px); height: 100%; overflow: auto; box-shadow: var(--shadow-3); padding: var(--space-5); animation: slide var(--t-med) var(--ease); overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 1000; left: 50%; transform: translateX(-50%); bottom: 16px; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center; animation: rise var(--t-med) var(--ease); font-weight: 600; }
.toast.error { background: #7A1810; }
.toast.success { background: #0F4A37; }
.toast button { margin-left: auto; background: transparent; border: 0; color: #fff; text-decoration: underline; cursor: pointer; min-height: var(--touch); font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { min-height: var(--touch); padding: 0 14px; border: 0; background: none; font-weight: 650; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; gap: var(--space-3); padding: var(--space-4) 0; }

/* ---------- Price ---------- */
.price { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price.free { color: var(--success); }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 3px; gap: 2px; background: var(--surface); }
.lang-switch a, .lang-switch button { min-height: 34px; min-width: 40px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 0; background: none; font-weight: 700; font-size: .82rem; color: var(--muted); text-decoration: none; cursor: pointer; padding: 0 10px; }
.lang-switch [aria-current="true"], .lang-switch [aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Date picker (grid, keyboard: arrows, Home/End, PageUp/PageDown) ---------- */
.datepicker { user-select: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.dp-head strong { font-size: 1rem; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-dow { text-align: center; font-size: .72rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0; }
.dp-day { position: relative; aspect-ratio: 1 / 1; min-height: var(--touch); border: 1px solid transparent; border-radius: 12px; background: var(--surface); font-weight: 650; cursor: pointer; display: grid; place-items: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.dp-day:hover:not([aria-disabled="true"]) { border-color: var(--primary); }
.dp-day[aria-disabled="true"] { color: var(--faint); background: transparent; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--border-strong); }
.dp-day[aria-pressed="true"] { background: var(--primary); color: #fff; }
.dp-day.today::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--marigold); }
.dp-day.outside { visibility: hidden; }

/* ---------- Time slots ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: var(--touch); border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--radius); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: all var(--t-fast); }
.slot:hover { border-color: var(--primary); color: var(--primary-strong); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-group-title { font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: var(--space-4) 0 var(--space-2); }

/* ---------- Key/value lists ---------- */
.kv { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

/* ---------- Progress / meter ---------- */
.meter { height: 10px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; width: var(--value, 0%); }
.meter.warn > span { background: var(--marigold); }
.meter.full > span { background: var(--danger); }

/* ---------- Steps (onboarding, booking) ---------- */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.steps li { flex: 1; height: 5px; border-radius: 4px; background: var(--border); }
.steps li.done { background: var(--primary); }
.steps li.current { background: linear-gradient(90deg, var(--primary) 50%, var(--soft) 50%); }

/* marketing.css */
/* Marketing pages: header, hero with live booking preview, editorial sections, pricing, FAQ, footer. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t-med); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-4); }
.nav-links { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 620; white-space: nowrap; }
.nav-links a:hover { background: var(--soft-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--primary-strong); background: var(--soft); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-actions .login { display: none; }
@media (max-width: 479px) { .nav-actions .btn-primary { display: none; } } /* phones: "Get started" stays in the hero and the menu */
.menu-btn { display: inline-grid; }
@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav-actions .login { display: inline-flex; }
}
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding: var(--space-3) var(--gutter) var(--space-5); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: var(--space-4); }
@media (min-width: 1120px) { .mobile-nav { display: none !important; } }

.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-7) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-ink { background: var(--ink); color: #E9E7F2; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }

/* hero */
.hero { position: relative; padding: var(--space-7) 0 var(--space-8); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(238, 233, 252, .9), rgba(250, 249, 246, 0)); z-index: -1; }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--marigold); opacity: .55; border-radius: 4px; z-index: -1; }
.hero .lead { max-width: 52ch; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0 var(--space-4); }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.trustline li { display: inline-flex; align-items: center; gap: 8px; }
.trustline .icon { color: var(--success); }

/* live preview card (original Book53 booking visual) */
.preview { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-3); padding: var(--space-5); max-width: 520px; margin-inline: auto; width: 100%; }
.preview-tag { position: absolute; top: -12px; right: 18px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill); }
.preview-shop { display: flex; gap: 12px; align-items: center; margin-bottom: var(--space-4); }
.preview-shop .avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--primary); font-weight: 800; }
.preview-shop strong { display: block; line-height: 1.2; }
.preview-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: var(--space-4); }
.preview-day { border: 1px solid var(--border); border-radius: 12px; padding: 8px 0; text-align: center; background: var(--surface); cursor: pointer; min-height: 60px; font-weight: 650; }
.preview-day small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.preview-day[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview-day[aria-pressed="true"] small { color: #CFCDE0; }
.preview-day[aria-disabled="true"] { color: var(--faint); cursor: not-allowed; background: var(--surface-2); }
.preview-confirm { display: flex; align-items: center; gap: 12px; margin-top: var(--space-4); padding: 12px 14px; border-radius: var(--radius); background: var(--success-soft); color: #0F4A37; font-weight: 650; }
.preview-ring { position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 180px; height: 180px; opacity: .9; }

/* feature tiles & editorial rows */
.tiles { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tiles.three { grid-template-columns: repeat(3, 1fr); } .tiles.four { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.tile .tile-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--primary); display: grid; place-items: center; }
.tile h3 { margin: 0; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); }
.tile .later { justify-self: start; }
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--primary); margin-top: 3px; }

/* steps strip */
.how { display: grid; gap: var(--space-4); counter-reset: how; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how > li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5) var(--space-5); }
.how > li::before { counter-increment: how; content: counter(how); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(89, 64, 185, .8); }
.how h3 { margin-bottom: 6px; }
.how p { margin: 0; color: var(--muted); }

/* sector cards */
.sectors { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.sector { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast); }
.sector:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); color: var(--ink); }
.sector img { width: 56px; height: 56px; }
.sector strong { display: block; line-height: 1.25; }
.sector span { color: var(--muted); font-size: .9rem; }

/* sector page */
.sector-hero { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .sector-hero { grid-template-columns: 1.1fr .9fr; } }
.sector-hero .art { background: var(--soft-2); border-radius: 28px; padding: var(--space-6); display: grid; place-items: center; }
.sector-hero .art img { width: min(280px, 70%); }
.example-day { display: grid; gap: 8px; }
.example-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.example-row time { font-weight: 750; font-variant-numeric: tabular-nums; }
.example-row small { color: var(--muted); display: block; }

/* pricing */
.pricing-note { max-width: 760px; margin: 0 auto var(--space-6); }
.plans { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-3); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 750; padding: 4px 12px; border-radius: var(--radius-pill); }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li .icon { color: var(--success); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.compare { margin-top: var(--space-7); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

/* FAQ */
.faq { display: grid; gap: var(--space-3); max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 var(--space-5); }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 500; transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--space-5); color: var(--ink-2); }
.faq-group h2 { font-size: 1.3rem; margin: var(--space-6) 0 var(--space-3); }

/* demo */
.demo-shell { display: grid; gap: var(--space-5); }
@media (min-width: 1000px) { .demo-shell { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.demo-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: var(--space-5); box-shadow: var(--shadow-2); }
.demo-banner { display: flex; align-items: center; gap: 10px; background: var(--marigold-soft); color: #5E3E00; border: 1px solid #F1D9A6; padding: 10px 14px; border-radius: var(--radius); font-weight: 650; font-size: .92rem; margin-bottom: var(--space-4); }
.demo-option { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 64px; padding: 12px 16px; margin-bottom: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; }
.demo-option:hover { border-color: var(--primary); }
.demo-option[aria-pressed="true"] { border-color: var(--primary); background: var(--soft-2); box-shadow: inset 0 0 0 1px var(--primary); }
.demo-option small { display: block; color: var(--muted); }
.demo-ledger { font-size: .9rem; }

/* contact & legal */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.draft-banner { border: 2px dashed var(--warning); background: var(--warning-soft); color: #5E3E00; border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-5); }
.placeholder { background: var(--marigold-soft); padding: 0 4px; border-radius: 4px; font-weight: 650; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, #3E2A93 100%); color: #fff; border-radius: 28px; padding: var(--space-7) var(--space-5); display: grid; gap: var(--space-4); text-align: center; justify-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #E7E1FB; max-width: 56ch; margin: 0; }
.cta-band .btn-ink { --btn-bg: #fff; --btn-ink: var(--ink); --btn-border: #fff; }
.cta-band .btn-ink:hover { --btn-bg: var(--soft); color: var(--ink); }
.cta-band .btn-ghost { --btn-ink: #fff; --btn-border: rgba(255, 255, 255, .6); color: #fff; }
.cta-band .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .14); color: #fff; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-5); margin-top: var(--space-8); }
.footer-grid { display: grid; gap: var(--space-5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-card { width: 100%; max-width: 480px; margin: var(--space-7) auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: 1.8rem; }
.auth-form { gap: var(--space-4); }
.auth-form .field + .field { margin-top: 0; }
.auth-show { padding: 0; min-height: 0; font-size: .92rem; color: var(--muted); }
.otp-input { font-size: 1.5rem; font-weight: 750; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-steps { margin: 0; padding-left: 1.3em; display: grid; gap: var(--space-4); }
.auth-steps li { padding-left: 4px; }
.auth-steps li::marker { font-weight: 800; color: var(--primary); }
.auth-steps .btn { margin-top: 6px; }
.qr-box { display: grid; place-items: center; margin: var(--space-3) 0; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.qr-img { max-width: 100%; height: auto; image-rendering: pixelated; }
.secret-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.secret-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; background: var(--soft-2); border: 1px solid var(--border); overflow-wrap: anywhere; }
.identity-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.identity-list button { width: 100%; text-align: left; min-height: 56px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.identity-list button:hover { border-color: var(--primary); background: var(--soft-2); }
.identity-list small { display: block; color: var(--muted); }

/* 404 / unavailable */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--space-8) var(--gutter); }
.lost .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--soft); -webkit-text-stroke: 2px var(--primary); }

/* ---------------------------------------------------------------- photography + product visuals (home, use cases)
   Photos: Unsplash Licence, served from /static/img/photos (see ASSET-LICENSES.md). Product visuals are HTML/CSS
   drawn from fictional data, so they stay sharp, bilingual and within the CSP (no inline styles). */
.hero-visual { position: relative; display: grid; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-3); aspect-ratio: 4 / 3; background: var(--soft); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hero-visual .preview { margin: -72px 12px 0; max-width: none; width: auto; padding: var(--space-4); }
.hero-visual .preview .preview-days { gap: 4px; }
.hero-visual .preview .preview-day { min-height: 52px; padding: 6px 0; }
.hero-visual .preview-note { margin: var(--space-3) 0 0; }
.hero-toast { position: absolute; top: 18px; right: 18px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-3); max-width: 260px; }
.hero-toast .icon, .mini-toast .icon { color: var(--success); width: 22px; height: 22px; flex: none; }
.hero-toast strong, .mini-toast strong { display: block; font-size: .92rem; line-height: 1.2; }
.hero-toast small, .mini-toast small { display: block; color: var(--muted); font-size: .8rem; }
@media (min-width: 980px) {
  .hero-visual { min-height: 600px; }
  .hero-photo { aspect-ratio: auto; position: absolute; inset: 0 0 40px 22%; }
  .hero-visual .preview { position: absolute; left: 0; bottom: 0; width: 64%; margin: 0; }
  .hero-toast { top: 36px; right: -14px; }
}
@media (max-width: 560px) { .hero-toast { top: 10px; right: 10px; max-width: 220px; padding: 8px 12px; } }

.facts { padding: 0 0 var(--space-6); }
.fact-row { list-style: none; margin: 0; padding: var(--space-5); display: grid; gap: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-1); }
@media (min-width: 700px) { .fact-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .fact-row { grid-template-columns: repeat(4, 1fr); } }
.fact-row li { display: flex; gap: 12px; align-items: flex-start; }
.fact-row .icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--primary); }
.fact-row strong { display: block; line-height: 1.3; }
.fact-row small { color: var(--muted); font-size: .88rem; }

.sector-photos { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .sector-photos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sector-photos { grid-template-columns: repeat(4, 1fr); } }
.sector-photo { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.sector-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease); }
.sector-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 40, 0) 25%, rgba(20, 18, 40, .55) 55%, rgba(20, 18, 40, .9) 100%); z-index: 1; }
.sector-label { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); z-index: 2; display: grid; gap: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.sector-label strong { font-size: 1.08rem; line-height: 1.25; }
.sector-label span { font-size: .86rem; color: #E7E3F5; line-height: 1.35; }
.sector-photo:hover img, .sector-photo:focus-visible img { transform: scale(1.05); }
.sector-photo:hover, .sector-photo:focus-visible { color: #fff; }
@media (prefers-reduced-motion: reduce) { .sector-photo img { transition: none; } .sector-photo:hover img { transform: none; } }

.how-visual > li { display: grid; align-content: start; gap: var(--space-2); }
.how-art { height: 132px; margin-bottom: var(--space-3); border-radius: var(--radius-lg); background: var(--soft-2); border: 1px solid var(--border);
  padding: 14px; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.mini-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-services li, .pm-services li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: .85rem; font-weight: 650; }
.mini-services small, .pm-services small { color: var(--muted); font-weight: 600; }
.mini-services b, .pm-services b { font-variant-numeric: tabular-nums; }
.mini-link { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 12px; }
.mini-link small { display: block; color: var(--muted); font-size: .75rem; font-weight: 650; }
.mini-link span { display: flex; align-items: center; gap: 6px; font-weight: 750; color: var(--primary); }
.mini-share { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-share span { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.mini-toast { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-2); }

.showcase h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.showcase .lead { color: var(--ink-2); margin-bottom: var(--space-5); }
.photo-stack { position: relative; padding-bottom: 96px; }
.stack-img { width: 86%; border-radius: 24px; display: block; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-2); }
.mock-cal { position: absolute; right: 0; bottom: 0; width: min(420px, 84%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-3); padding: 14px; }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mc-head span { color: var(--muted); font-size: .85rem; font-weight: 650; }
.mc-body { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.mc-hours { display: grid; grid-template-rows: 22px repeat(7, 26px); font-size: .68rem; color: var(--faint); font-weight: 700; }
.mc-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mc-lane { display: grid; grid-template-rows: 22px repeat(7, 26px); border-top: 1px solid transparent; }
.mc-name { grid-row: 1; font-size: .74rem; font-weight: 750; color: var(--ink-2); }
.mc-block { border-radius: 7px; padding: 3px 6px; font-size: .68rem; font-weight: 700; line-height: 1.2; overflow: hidden; margin: 1px 0; border-left: 3px solid currentColor; }
.r1s1 { grid-row: 2 / span 1; } .r1s2 { grid-row: 2 / span 2; } .r2s2 { grid-row: 3 / span 2; } .r3s2 { grid-row: 4 / span 2; }
.r4s3 { grid-row: 5 / span 3; } .r5s2 { grid-row: 6 / span 2; } .r6s2 { grid-row: 7 / span 2; }
.lane-violet { background: var(--lane-violet); color: var(--lane-violet-ink); } .lane-teal { background: var(--lane-teal); color: var(--lane-teal-ink); }
.lane-amber { background: var(--lane-amber); color: var(--lane-amber-ink); } .lane-rose { background: var(--lane-rose); color: var(--lane-rose-ink); }
.lane-sky { background: var(--lane-sky); color: var(--lane-sky-ink); } .lane-lime { background: var(--lane-lime); color: var(--lane-lime-ink); }

.phone-wrap { display: grid; place-items: center; padding: var(--space-4) 0; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--soft), rgba(238, 233, 252, 0)); }
.phone { position: relative; width: 290px; border-radius: 44px; padding: 12px; background: #1E1D2F; box-shadow: var(--shadow-3), inset 0 0 0 2px #3A3852; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #1E1D2F; z-index: 2; }
.phone-screen { background: var(--canvas); border-radius: 34px; padding: 50px 14px 18px; display: grid; gap: 8px; min-height: 520px; align-content: start; }
.pm-shop { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.pm-shop .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.pm-shop strong { display: block; line-height: 1.2; }
.pm-shop small { color: var(--muted); font-size: .78rem; }
.pm-label { margin: 6px 0 0; font-size: .78rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pm-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-services li.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--soft-2); }
.pm-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pm-times span { text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: .85rem; }
.pm-times span.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pm-btn { margin-top: 8px; text-align: center; padding: 12px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 750; }

.cta-photo { background: linear-gradient(120deg, rgba(64, 42, 150, .94) 0%, rgba(62, 42, 147, .82) 45%, rgba(32, 32, 51, .55) 100%), url("/static/img/photos/barber-wide.webp") center 40% / cover no-repeat; }

.art.art-photo { padding: 0; overflow: hidden; position: relative; aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); }
.sector-hero .art-photo .art-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-hero .art-photo .art-badge { position: absolute; left: 16px; bottom: 16px; width: 72px; height: 72px; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-2); }

/* app.css */
/* Application shells: merchant workspace, platform console, public booking and self-service. */

/* ---------- Workspace shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
@media (min-width: 1000px) { .shell { grid-template-columns: 252px 1fr; grid-template-rows: 1fr; } }
.sidebar { display: none; background: var(--surface); border-right: 1px solid var(--border); padding: var(--space-4) var(--space-3); position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; min-width: 0; flex-direction: column; gap: var(--space-4); }
@media (min-width: 1000px) { .sidebar { display: flex; } }
.sidebar .brand { padding: 4px 8px; }
.ws-switch { width: 100%; display: grid; grid-template-columns: 36px 1fr 16px; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; min-height: 52px; }
.ws-switch:hover { border-color: var(--border-strong); }
.ws-switch .ws-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.ws-switch strong { display: block; font-size: .92rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-switch small { color: var(--muted); font-size: .78rem; }
.nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.nav-title { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: var(--space-3) 10px 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 10px; color: var(--ink-2); font-weight: 620; text-decoration: none; }
.nav a:hover { background: var(--soft-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--primary-strong); }
.nav a .count { margin-left: auto; font-size: .75rem; background: var(--marigold-soft); color: #7A4F00; padding: 1px 8px; border-radius: var(--radius-pill); font-weight: 750; }
.sidebar-foot { margin-top: auto; display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.sidebar-foot .btn { justify-content: flex-start; }
.calsync-url { flex: 1 1 260px; font-size: .82rem; user-select: all; }
.calsync-help { padding-left: 1.2em; margin: 0; }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--space-3); height: 60px; padding: 0 var(--gutter); background: rgba(250, 249, 246, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .title { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.topbar > :not(.title) { flex: none; }
@media (max-width: 599px) { .topbar a.btn[href="/admin/"] { display: none; } } /* phones: the console link stays in the menu */
@media (min-width: 1000px) { .topbar .brand, .topbar .menu-btn { display: none; } }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-8); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* mobile bottom navigation (agenda first on phones) */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a, .bottom-nav button { min-height: 60px; display: grid; place-items: center; gap: 2px; align-content: center; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; border: 0; background: none; cursor: pointer; }
.bottom-nav a[aria-current="page"] { color: var(--primary-strong); }
@media (min-width: 1000px) { .bottom-nav { display: none; } }
@media (max-width: 999px) { .page { padding-bottom: 110px; } }

.mobile-menu { position: fixed; inset: 0; z-index: 950; background: var(--surface); overflow-y: auto; padding: var(--space-4) var(--gutter) var(--space-8); }

/* platform console marker: visually related, unmistakably labelled */
.platform .sidebar { background: #1E1D2F; color: #E9E7F2; border-right-color: #2D2C44; }
.platform .sidebar .brand, .platform .sidebar .brand b { color: #fff; }
.platform .nav a { color: #CFCDE0; }
.platform .nav a:hover { background: #2D2C44; color: #fff; }
.platform .nav a[aria-current="page"] { background: #3A2F7A; color: #fff; }
.platform .nav-title { color: #8C8BA0; }
.platform-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--marigold); color: #3B2600; font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }
.platform .topbar { background: #FFFBF2; border-bottom-color: #F1D9A6; }
.platform .sidebar-foot { border-top-color: #2D2C44; }
.platform .sidebar-foot a { color: #E9E7F2; justify-content: flex-start; }
.platform .sidebar-foot a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- Dashboard widgets ---------- */
.stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.stat .label { font-size: .82rem; color: var(--muted); font-weight: 650; }
.stat .value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .sub { font-size: .82rem; color: var(--muted); }
.grid-2 { display: grid; gap: var(--space-4); }
@media (min-width: 1000px) { .grid-2 { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* ---------- Agenda ---------- */
.agenda { display: grid; gap: var(--space-2); }
.agenda-day { font-weight: 750; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: var(--space-4) 0 var(--space-1); }
.appt { display: grid; grid-template-columns: minmax(64px, auto) 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.appt:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.appt time { font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.appt time small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.appt .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--primary); }
.appt strong { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.appt .meta { color: var(--muted); font-size: .88rem; }
.appt.is-cancelled { opacity: .7; }
.appt.is-cancelled .bar { background: var(--border-strong); }
.appt.is-now { border-color: var(--marigold); box-shadow: 0 0 0 2px var(--marigold-soft); }

/* ---------- Calendar (day / week) ---------- */
.cal-toolbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.cal-toolbar .range { font-weight: 750; font-size: 1.05rem; min-width: 12ch; }
.calendar { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: auto; max-height: 72vh; }
.cal-grid { display: grid; position: relative; min-width: 100%; }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); display: grid; }
.cal-head div { padding: 10px 8px; font-weight: 700; font-size: .85rem; text-align: center; border-left: 1px solid var(--border); }
.cal-head div:first-child { border-left: 0; }
.cal-head .is-today { color: var(--primary-strong); }
.cal-body { display: grid; position: relative; }
.cal-times { position: relative; border-right: 1px solid var(--border); }
.cal-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .72rem; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--border); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hour) - 1px), var(--border) calc(var(--hour) - 1px), var(--border) var(--hour)); }
.cal-col.is-closed { background-color: #FBFAF8; }
.cal-open { position: absolute; left: 0; right: 0; background: rgba(238, 233, 252, .28); border-block: 1px dashed #DCD3F7; }
.cal-event { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 4px 8px; font-size: .78rem; line-height: 1.25; overflow: hidden; cursor: pointer; border: 1px solid rgba(32, 32, 51, .08); text-align: left; background: var(--lane-violet); color: var(--lane-violet-ink); }
.cal-event strong { display: block; font-size: .8rem; }
.cal-event:hover, .cal-event:focus-visible { z-index: 2; box-shadow: var(--shadow-2); }
.cal-event.status-cancelled { background: repeating-linear-gradient(135deg, #F4F2EE, #F4F2EE 6px, #ECE9E3 6px, #ECE9E3 12px); color: var(--muted); text-decoration: line-through; }
.cal-event.status-no_show { outline: 2px solid var(--danger); }
.cal-event.status-completed { opacity: .8; }
.cal-event .buffer { position: absolute; left: 0; right: 0; background: rgba(32, 32, 51, .06); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--marigold); z-index: 2; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--marigold); }
.lane-teal { background: var(--lane-teal); color: var(--lane-teal-ink); }
.lane-amber { background: var(--lane-amber); color: var(--lane-amber-ink); }
.lane-rose { background: var(--lane-rose); color: var(--lane-rose-ink); }
.lane-sky { background: var(--lane-sky); color: var(--lane-sky-ink); }
.lane-lime { background: var(--lane-lime); color: var(--lane-lime-ink); }
.lane-slate { background: var(--lane-slate); color: var(--lane-slate-ink); }
.lane-orange { background: var(--lane-orange); color: var(--lane-orange-ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--primary); }
.dot.lane-teal { background: var(--lane-teal-ink); } .dot.lane-amber { background: var(--lane-amber-ink); } .dot.lane-rose { background: var(--lane-rose-ink); }
.dot.lane-sky { background: var(--lane-sky-ink); } .dot.lane-lime { background: var(--lane-lime-ink); } .dot.lane-slate { background: var(--lane-slate-ink); } .dot.lane-orange { background: var(--lane-orange-ink); }
.dot.lane-violet { background: var(--lane-violet-ink); }

/* ---------- Hours editor ---------- */
.hours { display: grid; gap: var(--space-2); }
.hours-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .hours-row { grid-template-columns: 120px 1fr auto; align-items: center; } }
.hours-row .day { font-weight: 750; }
.hours-intervals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.interval { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: var(--radius); padding: 4px; }
.interval input { width: 112px; min-height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; padding: 0 8px; background: var(--surface); }
.interval .overnight { font-size: .75rem; font-weight: 750; color: var(--warning); padding: 0 6px; }

/* ---------- Checklist (onboarding) ---------- */
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.setup-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.setup-item .tick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; font-weight: 800; }
.setup-item.done .tick { background: var(--success); border-color: var(--success); color: #fff; }
.setup-item strong { display: block; }
.setup-item small { color: var(--muted); }

/* ---------- Public booking page ---------- */
.book-shell { min-height: 100vh; }
.book-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.book-header .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: var(--space-3); }
.shop-hero { padding: var(--space-6) 0 var(--space-4); }
.shop-id { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); align-items: center; }
.shop-logo { width: 72px; height: 72px; border-radius: 20px; background: var(--soft); display: grid; place-items: center; overflow: hidden; color: var(--primary); font-weight: 800; font-size: 1.6rem; border: 1px solid var(--border); }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-id h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 4px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 38%); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-top: var(--space-4); scroll-snap-type: x mandatory; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); scroll-snap-align: start; background: var(--surface-2); }
.book-layout { display: grid; gap: var(--space-5); padding-bottom: var(--space-8); }
@media (min-width: 980px) { .book-layout { grid-template-columns: 1fr 340px; align-items: start; } .book-summary { position: sticky; top: 16px; } }
.book-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); }
.book-step h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.book-step h2 .num { width: 30px; height: 30px; border-radius: 10px; background: var(--soft); color: var(--primary); display: inline-grid; place-items: center; font-size: .95rem; }
.option { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); text-align: left; cursor: pointer; min-height: 64px; margin-bottom: 8px; transition: border-color var(--t-fast), background var(--t-fast); }
.option:hover { border-color: var(--primary); }
.option[aria-pressed="true"] { border-color: var(--primary); background: var(--soft-2); box-shadow: inset 0 0 0 1px var(--primary); }
.option small { display: block; color: var(--muted); }
.book-summary .kv { grid-template-columns: 90px 1fr; }
.sticky-cta { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
@media (min-width: 980px) { .sticky-cta { position: static; border: 0; padding: 0; background: none; } }
.manage-link-box { display: grid; gap: 8px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--soft-2); border: 1px dashed var(--primary); }
.manage-link-box code { word-break: break-all; background: var(--surface); padding: 8px 10px; display: block; border-radius: 8px; font-size: .82rem; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }

/* local mail viewer */
.local-mail { max-width: 860px; margin: 32px auto; padding: 0 16px; }
.local-mail li { margin-bottom: 8px; }

/* print: a booking confirmation prints cleanly */
@media print {
  .site-header, .book-header, .sticky-cta, .bottom-nav, .sidebar, .topbar, .btn { display: none !important; }
  body { background: #fff; }
}
