/* Member app. Every colour, font and radius comes from the studio theme
   (see applyTheme in shared.js), so another brand only changes settings. */

:root {
  --brand: #314467;
  --accent: #d3bea5;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --text: #1d2433;
  --on-brand: #ffffff;
  --radius: 14px;
  /* 72% keeps secondary text at 4.5:1 or better on light surfaces (WCAG 2.2 AA). */
  --muted: color-mix(in srgb, var(--text) 72%, transparent);
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --soft: color-mix(in srgb, var(--accent-2, var(--accent)) 22%, var(--surface));
  --ok: #2f7d57;
  --warn: #b5523b;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgb(0 0 0 / 2%), 0 4px 14px rgb(0 0 0 / 3.5%);
  --tabbar: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
h1, h2, h3, .heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: 30px; }
.title { font-weight: 600; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--brand); }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 22px; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ── Layout ── */
.app { max-width: 620px; margin: 0 auto; padding: 0 16px 28px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--brand); color: var(--on-brand);
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .brand { font-family: var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.topbar .brand img { height: 28px; }
.topbar .brand .hair { width: 18px; height: 1px; background: var(--accent); display: inline-block; }
.topbar button { background: none; border: 1px solid color-mix(in srgb, var(--on-brand) 30%, transparent); color: var(--on-brand); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }

.hero {
  margin: 0 -16px 18px; padding: 24px 20px 26px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 86%, black));
  color: var(--on-brand); position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--accent); opacity: .8; }
.hero.has-image { background-size: cover; background-position: center; }
.hero h1 { font-size: 34px; }
.hero p { opacity: .85; margin-top: 8px; max-width: 34ch; }
.hero .eyebrow { color: color-mix(in srgb, var(--on-brand) 70%, transparent); margin-bottom: 4px; }
.hero .next { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: color-mix(in srgb, var(--on-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--on-brand) 16%, transparent);
  border-radius: var(--radius); padding: 12px 14px; }
.hero .next b { display: block; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .04em; font-size: 20px; line-height: 1.2; }
.hero .next .eyebrow { margin: 0 0 2px; font-size: 11px; }
.hero .next .small { opacity: .8; }
.btn.outline-light { background: transparent; color: var(--on-brand); border: 1px solid color-mix(in srgb, var(--on-brand) 40%, transparent); }
.hero .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head a { font-size: 14px; text-decoration: none; font-weight: 600; }
/* Section titles are quiet labels, so the content leads. */
.section-head h2, .section > h2, .section > h3.muted, .eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.section > h2 { margin-bottom: 10px; }
.eyebrow { display: block; }
.page-head { margin: 24px 0 14px; }
.page-head h1 { font-size: 28px; }
.intro { margin: -4px 0 16px; font-size: 15px; }
.back { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.back + .page-head { margin-top: 6px; }

/* ── Tab bar ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted); position: relative;
  font-size: 11px; font-weight: 500; padding: 4px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .2s; }
.tabbar a.active { color: var(--brand); font-weight: 700; }
.tabbar a.active svg { background: color-mix(in srgb, var(--brand) 10%, transparent); stroke-width: 1.9; }
.tabbar a .dot { position: absolute; top: 4px; left: calc(50% + 10px); width: 9px; height: 9px; border-radius: 50%; background: #e0583c; border: 2px solid var(--surface); }
.tabbar a.qr-tab { justify-content: flex-end; }
.tabbar a.qr-tab b { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); border: 3px solid var(--bg); transition: transform .2s; }
.tabbar a.qr-tab:active b { transform: scale(.94); }
.tabbar a.qr-tab svg, .tabbar a.qr-tab.active svg { stroke: var(--on-brand); padding: 0; background: none; width: 24px; height: 24px; }
.tabbar a.qr-tab.active b { background: color-mix(in srgb, var(--brand) 88%, black); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .08s ease, opacity .15s;
}
.btn { transition: transform .12s ease, background .2s, opacity .2s; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.light { background: var(--on-brand); color: var(--brand); }
.btn.accent { background: var(--accent); color: var(--text); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-brand) transparent var(--on-brand) transparent; animation: spin .8s linear infinite; }
.btn.ghost.loading::after { border-color: var(--brand) transparent var(--brand) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 0; }

/* ── Cards ── */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid color-mix(in srgb, var(--text) 4%, transparent); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.soft { background: var(--soft); box-shadow: none; border-color: transparent; }
.list > .card + .card { margin-top: 10px; }
.tile { display: flex; gap: 14px; align-items: center; cursor: pointer; text-decoration: none; color: inherit; }
.tile .swatch { width: 6px; align-self: stretch; border-radius: 6px; background: var(--brand); flex: none; }
.tile .thumb { width: 64px; height: 64px; border-radius: calc(var(--radius) - 4px); background: var(--soft) center/cover; flex: none; }
.tile .title { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--text); white-space: nowrap; }
.pill.brand { background: var(--brand); color: var(--on-brand); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: color-mix(in srgb, var(--ok) 78%, black); }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: color-mix(in srgb, var(--warn) 72%, black); }
.pill.online { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.badge { position: absolute; top: 12px; right: 12px; }
.price { font-family: var(--font-heading); font-size: 20px; letter-spacing: .02em; }
.price s { color: var(--muted); font-size: 14px; margin-left: 6px; font-family: var(--font-body); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }

/* ── Quick actions & credits ── */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick a { background: var(--surface); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); box-shadow: var(--shadow); padding: 14px 8px 12px; text-align: center; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; transition: transform .1s; }
.quick a:active { transform: scale(.97); }
.quick a svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.6; display: block; margin: 0 auto 6px; }
.credits { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.credits .credit { flex: none; min-width: 128px; max-width: 160px; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); }
.credits .credit b { font-family: var(--font-heading); font-size: 28px; line-height: 1.1; display: block; color: var(--brand); }
.credits .credit span { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.credits .credit small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Treatments: one card per treatment, one button per length */
.treat > * + * { margin-top: 8px; }
.treat h3 { font-size: 17px; }
.treat-img { height: 130px; margin: -16px -16px 12px; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft) center/cover; }
.dot-c { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.opt { flex: 1 1 110px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); background: var(--surface); text-align: left; transition: background .15s, border-color .15s; }
.opt:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.opt b { font-size: 15px; } .opt span { font-family: var(--font-heading); font-size: 17px; color: var(--brand); }
.nudge { background: var(--brand); color: var(--on-brand); border: 0; }
.nudge h2 { font-size: 22px; }

/* ── Day strip and slots ── */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.days::-webkit-scrollbar, .credits::-webkit-scrollbar { display: none; }
.day { flex: none; width: 54px; padding: 8px 0; text-align: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; scroll-snap-align: start; }
.day small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { font-family: var(--font-heading); font-size: 20px; }
.day.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.day.active small { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; text-align: center; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); background: var(--surface); cursor: pointer; font-weight: 600; }
.slot:hover { background: var(--soft); }
.slot.active { background: var(--brand); color: var(--on-brand); }
.session { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.session .time { width: 54px; flex: none; }
.session .time b { font-family: var(--font-heading); font-size: 19px; display: block; line-height: 1.2; }
.session .swatch { width: 3px; align-self: stretch; border-radius: 3px; flex: none; }
.session .title { text-transform: uppercase; letter-spacing: .03em; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip.active { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ── Options selector (membership builder) ── */
.builder .group { padding: 16px 0; border-top: 1px solid var(--line); }
.builder .group:first-of-type { border-top: 0; }
.builder .group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  flex: 1 1 0; min-width: 0; padding: 10px 4px; border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; hyphens: auto;
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; line-height: 1.2;
}
.seg button small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.seg button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.seg button.on small { color: color-mix(in srgb, var(--on-brand) 75%, transparent); }
.summary-bar {
  position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 8px); z-index: 10;
  background: var(--text); color: var(--surface); border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow); margin-top: 18px;
}
.summary-bar .total { font-family: var(--font-heading); font-size: 26px; letter-spacing: .02em; }
.summary-bar .save { color: var(--accent); font-size: 13px; }
.summary-bar .btn { background: var(--accent); color: var(--text); }
.range { width: 100%; accent-color: var(--brand); }
.compare { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.compare .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }

/* ── Pay options ── */
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; width: 100%;
}
.option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.option.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.option.on .radio { border: 6px solid var(--brand); }
.option .grow b { display: block; }
.option[disabled] { opacity: .45; cursor: default; }

/* ── Forms ── */
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.yesno { display: flex; gap: 8px; }
.yesno button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.yesno button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.promo { display: flex; gap: 8px; }
.promo input { text-transform: uppercase; }
.tabs { display: flex; background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }

/* ── QR ── */
.qr-box { background: #fff; border-radius: var(--radius); padding: 18px; width: min(320px, 82vw); margin: 0 auto; box-shadow: var(--shadow); }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-timer { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.qr-timer i { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }

/* ── Sheet & toast ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 38%); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  max-width: 620px; margin: 0 auto; will-change: transform;
}
/* The handle and close button stay put while the content scrolls. */
.sheet-grab { flex: none; height: 22px; cursor: grab; touch-action: none; position: relative; z-index: 2; }
.sheet-grab::before { content: ''; position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: color-mix(in srgb, var(--text) 22%, transparent); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px calc(22px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: 0 1px 6px rgb(0 0 0 / 18%); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px); transform: translate(-50%, 20px) scale(.96); opacity: 0; z-index: 200;
  background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: 90vw;
  transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); transition: opacity .2s, transform .35s cubic-bezier(.2,1.3,.4,1); }
.toast.ok::before { content: '✓'; display: inline-block; margin-right: 8px; font-weight: 700; animation: tickIn .35s .1s both cubic-bezier(.2,1.4,.4,1); }
@keyframes tickIn { from { transform: scale(0); } }
.toast.error { background: var(--warn); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

.skeleton { background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); height: 72px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

@media (min-width: 700px) {
  .hero { margin: 16px 0 22px; border-radius: var(--radius); }
}

.demo-bar { background: var(--accent); color: var(--text); text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: calc(4px + env(safe-area-inset-top)) 8px 4px; font-weight: 600; }
.demo-bar + .topbar { padding-top: 12px; }

.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.preset { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--shadow); }
.preset b { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; }
.preset .price small { font-size: 12px; color: var(--muted); font-family: var(--font-body); }
.preset.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--on-brand); border: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.icon-btn.qr-btn { background: var(--accent); color: var(--text); border-color: var(--accent); }
.icon-btn .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #e0583c; border: 2px solid var(--brand); }
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hub a { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--text) 5%, transparent); padding: 14px 6px; text-align: center; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.hub a .dot { position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #e0583c; }
.hub a svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.5; display: block; margin: 0 auto 6px; }
.post { padding: 0; overflow: hidden; }
.post > .stack { padding: 16px; }
.post-img { height: 160px; background: var(--soft) center/cover; }
.post.offer { border: 1.5px solid var(--accent); }
.post h3 { font-size: 18px; }
.workout pre { white-space: pre-wrap; font: 14px/1.55 var(--font-body); margin: 8px 0 0; }
.tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 999px; text-decoration: none; color: inherit; font-size: 14px; }
.tabs a.on { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
a.chip { text-decoration: none; color: inherit; }
.disabled-link { pointer-events: none; opacity: .35; }
.wrapped { margin-top: 14px; border-radius: calc(var(--radius) + 6px); padding: 22px 18px; color: var(--on-brand);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 55%, var(--brand)), var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, black)); }
.wrapped h1 { font-size: 26px; }
.wrapped .big { text-align: center; margin: 22px 0 6px; }
.wrapped .big b { display: block; font-family: var(--font-heading); font-size: 84px; line-height: 1; }
.wrapped .big span { text-transform: uppercase; letter-spacing: .2em; font-size: 13px; opacity: .85; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.wgrid div { background: rgb(255 255 255 / 10%); border-radius: 12px; padding: 12px; }
.wgrid b { display: block; font-family: var(--font-heading); font-size: 24px; }
.wgrid span { font-size: 12px; opacity: .85; }
.fav { display: flex; flex-direction: column; gap: 2px; }
.fav b { font-family: var(--font-heading); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 110px; margin-top: 10px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bars i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars span { font-size: 10px; color: var(--muted); }
.chart { width: 100%; height: auto; }
.refcode { font-family: var(--font-heading); font-size: 30px; letter-spacing: .12em; text-align: center; padding: 12px; border: 1.5px dashed color-mix(in srgb, var(--on-brand) 50%, transparent); border-radius: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; max-height: calc(100vh - 330px); overflow-y: auto; padding-bottom: 8px; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; }
.bubble p { white-space: pre-line; }
.bubble span { opacity: .6; font-size: 11px; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.composer { display: flex; gap: 8px; position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 6px); margin-top: 10px; }
.composer textarea { resize: none; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink, #1d1d1d) 18%, transparent); transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + span { opacity: .6; }
.danger-text { color: var(--warn) !important; }

/* Class levels and team */
.pill.level-beginner { background: color-mix(in srgb, #4f8a5b 16%, transparent); color: #2f6b3c; }
.pill.level-advanced { background: color-mix(in srgb, #b5523b 16%, transparent); color: #8c3726; }
.title .pill { vertical-align: middle; margin-left: 4px; font-size: 11px; }
.team-card { display: flex; gap: 12px; align-items: flex-start; }
.team-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.promo-d summary { font-size: 14px; font-weight: 600; list-style: none; }
.promo-d summary::-webkit-details-marker { display: none; }
.promo-d[open] summary { margin-bottom: 8px; }
.session .chev { color: var(--muted); flex: none; }
.hero .next .btn { white-space: nowrap; flex: none; }
/* Booking */
.covered { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.covered svg { width: 26px; height: 26px; flex: none; stroke: var(--ok); fill: none; stroke-width: 2.4; background: color-mix(in srgb, var(--ok) 16%, transparent); border-radius: 50%; padding: 4px; }
.covered b { display: block; }
.option .price { font-size: 18px; flex: none; }
.option .grow .small { display: block; }
.option b .pill { font-family: var(--font-body); font-size: 11px; vertical-align: 2px; margin-left: 4px; }
.upsell { text-decoration: none; color: inherit; }
.upsell > span { font-size: 22px; color: var(--brand); }
.treat-sel > * + * { margin-top: 12px; }
.treat-sel .seg button small { font-size: 12px; }
.hours { display: grid; gap: 6px; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seg-opts button { flex: 1 1 calc(50% - 6px); padding: 11px 6px; }
.slot small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.slot.ext { border-style: dashed; color: var(--muted); }
.slot.full { opacity: .4; cursor: default; }
.filters.fam { overflow: visible; }
.filters.fam .chip { flex: 1 1 0; min-width: 0; text-align: center; padding: 8px 4px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-opts button { hyphens: manual; overflow-wrap: normal; }
/* Photos and colour coding */
.session { border-left: 4px solid var(--c, var(--brand)); }
.session .swatch { display: none; }
.thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; background: color-mix(in srgb, var(--c, var(--brand)) 22%, var(--surface)) center/cover; }
.chip .dot-c { margin-right: 6px; vertical-align: 1px; }
.chip.active .dot-c { box-shadow: 0 0 0 2px var(--surface); }
.filters.fam .chip { border-bottom: 3px solid var(--c, var(--line)); }
.filters.fam .chip.active { background: var(--c, var(--text)); border-color: var(--c, var(--text)); color: #fff; }
.card-img { height: 120px; margin: -16px -16px 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--soft) center/cover; border-bottom: 4px solid var(--c, var(--brand)); }
.treat-sel .seg button.on { background: color-mix(in srgb, var(--c, var(--brand)) 62%, #111); border-color: color-mix(in srgb, var(--c, var(--brand)) 62%, #111); }
.sheet-hero { height: 170px; margin: -4px -18px 0; border-radius: 12px 12px 0 0; background: var(--soft) center/cover; border-bottom: 4px solid var(--c, var(--brand)); }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.quick.photos a.has-img { color: #fff; background-size: cover; background-position: center; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 10px 12px; border: 0; }
.quick.photos a.has-img svg { display: none; }
.quick.photos a.has-img span { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-size: 15px; text-shadow: 0 1px 6px rgb(0 0 0 / 40%); }
.day.week { width: 64px; }
.day.week b { font-size: 15px; line-height: 1.6; }
.day-head { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.day-head:first-child { margin-top: 6px; }
/* Seven days that fit the screen, arrows for other weeks */
.week-strip { display: flex; align-items: stretch; gap: 4px; margin: 2px 0 12px; }
.week-strip .wk { flex: none; width: 26px; border: 0; background: none; font-size: 22px; color: var(--brand); cursor: pointer; padding: 0; border-radius: 8px; }
.week-strip .wk:disabled { opacity: .2; cursor: default; }
.days7 { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 7); gap: 4px; min-width: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; }
.days7::-webkit-scrollbar { display: none; }
.days7 .day { scroll-snap-align: none; }
.days7 .day:nth-child(7n + 1) { scroll-snap-align: start; }
.days7 .day { width: auto; min-width: 0; padding: 7px 0 6px; font: inherit; color: inherit; border-radius: 10px; }
.days7 .day small { font-size: 10px; letter-spacing: .03em; }
.days7 .day b { font-size: 18px; display: block; line-height: 1.15; }
.days7 .day:disabled { opacity: .35; cursor: default; }
/* Class filters: every option visible, wrapping onto a second line */
.filters.wrap { flex-wrap: wrap; overflow: visible; gap: 6px; }
.filters.compact .chip { padding: 5px 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.filters.compact .dot-c { width: 7px; height: 7px; margin-right: 5px; }
.day-head a { color: var(--brand); text-transform: none; letter-spacing: 0; font-weight: 600; }
.days7 .day.active { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.tabs.tabs4 a { padding: 8px 2px; font-size: 13.5px; white-space: nowrap; }
/* PT */
.coach { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.coach.mine { cursor: default; }
.coach-photo { width: 56px; height: 56px; border-radius: 50%; flex: none; background: var(--brand) center/cover; color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.coach-photo.sm { width: 44px; height: 44px; font-size: 15px; }
.coach-photo.team { background: var(--accent); color: var(--text); font-family: var(--font-heading); }
.coach-hero { height: 220px; background-position: center 25%; }
.how ol { margin: 8px 0 0; padding-left: 18px; }
.how li + li { margin-top: 4px; }
.prices { display: grid; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.thread-row { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.thread-row > .grow { min-width: 0; }
.badge-dot { font-style: normal; background: #e0583c; color: #fff; border-radius: 999px; min-width: 20px; padding: 1px 6px; font-size: 12px; text-align: center; }
.btn.grow { flex: 1; }
.guide-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); text-decoration: none; color: var(--text); }
.guide-link svg { width: 26px; height: 26px; flex: none; stroke: var(--brand); fill: none; stroke-width: 1.6; }
.guide-link span:not(.chev) { flex: 1; } .guide-link b { display: block; font-size: 14px; } .guide-link small { color: var(--muted); font-size: 12px; }
.guide-link .chev { font-size: 22px; color: var(--brand); }
.topbar .brand img.logo-mark { height: 34px; width: 34px; border-radius: 50%; object-fit: cover; }
/* Logo and name sit on one centred line */
#brand-mark { display: flex; align-items: center; gap: 10px; line-height: 1; }
.topbar .brand img.logo-mark { height: 36px; width: 36px; border-radius: 0; object-fit: contain; display: block; }
.filters.fam .chip { font-size: 12px; padding: 8px 2px; letter-spacing: 0; }
.hours .hrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.hours .hrow > div { flex: 1; } .hours .hrow small { display: block; font-size: 12px; color: var(--muted); }
.hours .hrow > span { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours .hrow.on { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); outline: 1.5px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.hours .hrow.off { opacity: .55; }
.hours .hrow .pill { font-style: normal; font-size: 11px; }
.hours { border: 0; padding: 4px 0; gap: 6px; }

/* Courses, events and gift cards */
.course-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border-left: 4px solid var(--c); cursor: pointer; font: inherit; color: inherit; }
.course-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.course-card .course-img { width: 64px; height: 64px; border-radius: 10px; background: var(--soft) center/cover; flex: none; }
.course-card .price { flex: none; }
.gift-banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: inherit; text-decoration: none; }
.gift-banner svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; flex: none; }
.gift-banner .grow { display: flex; flex-direction: column; }
.gift-banner .chev::after { content: ''; display: block; width: 8px; height: 8px; border-right: 2px solid var(--brand); border-top: 2px solid var(--brand); transform: rotate(45deg); }
.gift-art { height: 170px; border-radius: 16px; background: var(--soft) center/cover; }
.gift-art.plain { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.gift-art.plain span { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.gift-art.plain b { font-size: 38px; font-family: var(--font-heading); }
.plan-img { width: 100%; height: 120px; border-radius: 12px; background: var(--soft) center/cover; margin-bottom: 10px; }
.seg-opts.three button { flex: 1 1 calc(33.3% - 6px); }

/* Four home tiles, credits panel */
.quick { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick.photos a.has-img { min-height: 84px; padding: 8px 9px; font-size: 13px; }
/* As many tiles as the studio offers, sharing the row */
.quick.photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.quick.photos a { min-width: 0; }
.quick.photos a.has-img span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Four tiles with a long word (e.g. Appointments): two by two, every tile the same size */
.quick.photos.two { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick.photos.two a.has-img { min-height: 76px; }
.credits-panel { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.inc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; font-size: 14px; }
.inc-row:has(.meter) { grid-template-columns: 1fr 70px auto; }
.inc-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); }
.ok-text { color: color-mix(in srgb, var(--ok) 72%, var(--text)); }
.top-actions { gap: 6px; }

/* Membership: minimal builder */
.current-plan { border-left: 4px solid var(--brand); }
.current-plan h3 { margin-top: 2px; }
.current-plan .price small { font-size: 12px; color: var(--muted); }
.pending-change { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.builder-title { margin: 18px 0 8px; font-size: 15px; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.preset-chips .chip small { opacity: .7; margin-left: 4px; }
.builder.minimal { padding: 6px 14px; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.pick-row:last-of-type { border-bottom: 0; }
.pick-row > span { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; }
.pick-row > span small { font-weight: 400; color: var(--muted); font-size: 12px; }
.pick-row select { width: auto; max-width: 58%; min-width: 150px; }
.builder.minimal .promo-d { margin-top: 10px; }
.builder.minimal .check { margin: 10px 0 6px; }

/* Me */
.me-head { display: flex; align-items: center; gap: 14px; }
.avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; background: var(--brand); color: var(--on-brand); flex: none; cursor: pointer; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar span { font-family: var(--font-heading); font-size: 22px; letter-spacing: .04em; }
.avatar i { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--text); font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar i svg { display: block; }
.btn.act { min-width: 96px; justify-content: center; }
.find-us { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.find-us a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); min-width: 0; }
.find-us svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.7; margin-bottom: 6px; }
.find-us b { font-size: 14px; }
.find-us span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cart */
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--text); font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qty { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--soft); font-size: 18px; cursor: pointer; color: var(--text); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.line-total { min-width: 64px; text-align: right; }
.cart-btn { background: transparent; cursor: pointer; padding: 0; }
.guest-tag { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: var(--text); }
.bring { margin-top: 8px; gap: 10px; }
.cart-btn svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.qr-dim { opacity: .25; filter: grayscale(1); }
.qr-window { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.qr-window.live { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.qr-window.over { color: var(--muted); }
.no-code { padding-top: 30px; max-width: 420px; margin: 0 auto; }
.no-code-icon { width: 64px; height: 64px; margin: 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.4; }
.qr-later { text-align: center; font-size: 14px; }
.offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.offer-actions .btn { width: 100%; justify-content: center; white-space: nowrap; }
.cancel-info { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.cancel-info.late { background: color-mix(in srgb, var(--danger, #b3261e) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger, #b3261e) 30%, transparent); }
.cancel-info.late b { color: var(--danger, #b3261e); }
.warn-box { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger, #b3261e) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger, #b3261e) 30%, transparent); font-size: 14px; }
/* Inside a pop-up the total sits at the bottom of the content, not over it. */
.sheet .summary-bar { position: sticky; bottom: 0; margin-top: 14px; }
.sheet .cart-lines-wrap, .sheet .stack-sm { position: relative; z-index: 0; }

/* ───────── Joining: a branded, minimal run of screens ───────── */
.join-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.join-bars i { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text) 12%, transparent); transition: background .4s; }
.join-bars i.done { background: color-mix(in srgb, var(--brand) 55%, transparent); }
.join-bars i.on { background: var(--brand); }
.join-steps { display: flex; flex-direction: column; gap: 6px; }

/* The sheet: photo header runs to the edges, handle and close sit on top of it */
.sheet.join { background: var(--bg); }
.sheet.join:not(.plain) .sheet-grab { position: absolute; left: 0; right: 0; top: 0; }
.sheet.join:not(.plain) .sheet-grab::before { background: rgb(255 255 255 / 55%); }
.sheet.join:not(.plain) .sheet-close { background: rgb(255 255 255 / 16%); color: #fff; box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / 22%); }
.sheet.join .sheet-body { padding-top: 0; }
.join-head {
  margin: 0 -18px 22px; padding: 46px 24px 22px; position: relative; color: #fff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 45%, transparent), color-mix(in srgb, var(--brand) 94%, black)),
    var(--img, none) center / cover, var(--brand);
}
.join-head::after { content: ''; position: absolute; left: 24px; width: 34px; bottom: 0; height: 3px; background: var(--accent); }
.join-mark { display: inline-block; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; opacity: .8; margin-bottom: 10px; }
.join-mark.dark { color: var(--muted); opacity: 1; margin: 0; }
.join-head h2 { font-size: 30px; line-height: 1.05; color: #fff; }
.join-head p { margin: 8px 0 0; font-size: 15px; opacity: .86; max-width: 34ch; }
.join-head p b { font-weight: 600; opacity: 1; }
.join-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.join-progress .join-bars { flex: 1; }
.join-progress .join-bars i { background: rgb(255 255 255 / 22%); }
.join-progress .join-bars i.done { background: rgb(255 255 255 / 60%); }
.join-progress .join-bars i.on { background: var(--accent); }
.join-progress span { font-size: 12px; letter-spacing: .06em; opacity: .75; white-space: nowrap; }

/* Forms: generous, quiet, one clear button */
.join-form { display: flex; flex-direction: column; gap: 14px; }
.join-form .field > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.join-form input:not([type=checkbox]) { padding: 14px 16px; border-radius: 12px; font-size: 16px; border-color: color-mix(in srgb, var(--text) 13%, transparent); }
.btn.big { padding: 15px 22px; font-size: 16px; letter-spacing: .02em; margin-top: 4px; }
.join-more { align-self: flex-start; color: var(--muted); }
.join-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.join-alt .link { color: var(--brand); font-weight: 600; text-decoration: none; }
.join-step { animation: joinIn .38s cubic-bezier(.2,.8,.2,1); }
@keyframes joinIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .join-step, .join-tick .draw { animation: none !important; } }

/* Demo shortcuts, kept out of the way */
.join-demo { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.join-demo > span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.join-demo .row { justify-content: center; gap: 8px; }
.join-demo .chip { font-size: 13px; }

/* Step 2 choices */
.join-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.join-choice:hover { border-color: var(--brand); }
.join-choice:active { transform: scale(.985); }
.join-choice .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.join-choice .tx { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.join-choice .tx b { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-size: 18px; font-weight: 600; }
.join-choice .tx span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.join-choice .tag { position: absolute; }
.join-choice { position: relative; padding-top: 30px; }
.join-choice .tag { top: 10px; left: 74px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.join-choice .go { flex: none; color: var(--muted); }

/* Step 3 banner on Buy */
.join-banner { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.join-banner b { font-weight: 600; }
.join-banner .link { text-decoration: none; font-weight: 600; }

/* Step 4 code */
.code-input { text-align: center; font-family: var(--font-heading); font-size: 34px !important; letter-spacing: .5em; padding: 16px 0 16px .5em !important; }
.code-input::placeholder { color: color-mix(in srgb, var(--text) 22%, transparent); }

/* Step 5 questions */
.join-parq { display: flex; flex-direction: column; gap: 10px; }
.join-parq .field { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.join-parq .field > span { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.join-parq .yesno button { border-radius: 999px; }

/* Welcome */
.join-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 6px 8px; }
.join-done h2 { font-size: 30px; }
.join-done p { max-width: 30ch; margin: 0 0 12px; }
.join-done .btn { width: 100%; }
.join-done .link { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px; }
.join-tick { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; animation: joinPop .5s cubic-bezier(.2,1.4,.4,1); }
.join-tick .draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: joinDraw .45s .25s ease forwards; }
@keyframes joinPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes joinDraw { to { stroke-dashoffset: 0; } }

.join-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.join-card p { margin: 2px 0 0; }

/* Policy pages in a sheet */
.sheet.doc { height: 92vh; }
.sheet.doc .sheet-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.doc-sheet { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.doc-sheet h2 { padding-right: 44px; }
.doc-sheet iframe { flex: 1; width: 100%; min-height: 60vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-sheet > a { text-align: center; }

/* Help */
.help-search { margin-bottom: 12px; border-radius: 999px !important; padding-left: 18px !important; }
.help-topics { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
.help-topics::-webkit-scrollbar { display: none; }
.help-h { font-size: 13px; letter-spacing: .1em; color: var(--muted); margin: 22px 0 8px; }
.help-list .help-h:first-child { margin-top: 0; }
.help-q { border-bottom: 1px solid var(--line); }
.help-q summary { list-style: none; cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; position: relative; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--muted); transition: transform .2s; }
.help-q[open] summary::after { transform: rotate(45deg); }
.help-q p { margin: 0 0 16px; color: var(--muted); }
.help-stuck { margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.help-stuck p { margin: 0 0 8px; }

/* Me: grouped list */
.me-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.me-group { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.me-group:empty, .me-group:not(:has(a, details)) { display: none; }
.me-group a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); text-decoration: none; font-weight: 500; position: relative; }
.me-group a + a { border-top: 1px solid var(--line); }
.me-group a:active { background: var(--soft); }
.me-group svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.6; flex: none; }
.me-group span { flex: 1; }
.me-group .chev { font-style: normal; color: var(--muted); font-size: 20px; line-height: 1; }
.me-group .dot { position: static; width: 8px; height: 8px; border-radius: 50%; background: #e0583c; }
/* Inbox */
.inbox-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); margin: -4px 0 18px; }
.inbox-tabs a { text-align: center; padding: 9px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; position: relative; }
.inbox-tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.inbox-tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0583c; margin-left: 6px; vertical-align: 2px; }

/* Motion: quick and quiet */
.page-in > * { animation: pageIn .26s cubic-bezier(.2,.8,.2,1) both; }
.page-in > *:nth-child(2) { animation-delay: .03s; }
.page-in > *:nth-child(3) { animation-delay: .06s; }
.page-in > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.card, .me-group a, .chip, .join-choice { transition: transform .15s ease, background .2s, border-color .2s; }
a.card:active, button.card:active { transform: scale(.985); }
.sheet-backdrop { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Splash */
#splash { position: fixed; inset: 0; z-index: 500; background: var(--brand); color: #fff; display: grid; place-items: center; transition: opacity .35s ease; }
#splash.out { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: splashIn .5s cubic-bezier(.2,.8,.2,1) both; }
#splash b { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: .28em; font-size: 22px; padding-left: .28em; }
#splash i { display: block; height: 2px; width: 0; background: var(--accent); animation: splashLine .6s .15s ease forwards; }
@keyframes splashIn { from { opacity: 0; transform: scale(.96); } }
@keyframes splashLine { to { width: 46px; } }

/* First-visit intro */
.first-intro { position: fixed; inset: 0; z-index: 400; background: var(--brand); color: #fff; opacity: 0; transition: opacity .3s ease; }
.first-intro.open { opacity: 1; }
.intro-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.intro-track::-webkit-scrollbar { display: none; }
.intro-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 20%, transparent) 0%, color-mix(in srgb, var(--brand) 55%, transparent) 45%, color-mix(in srgb, var(--brand) 96%, black) 78%), var(--img) center / cover, var(--brand); }
.intro-copy { padding: 0 28px calc(118px + env(safe-area-inset-bottom)); max-width: 520px; }
.intro-mark { display: block; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .24em; font-size: 12px; opacity: .8; margin-bottom: 12px; }
.first-intro h1 { font-size: 46px; line-height: 1; color: #fff; }
.first-intro p { font-size: 17px; opacity: .88; margin: 12px 0 0; max-width: 30ch; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.intro-actions .btn.light { background: #fff; color: var(--brand); }
.intro-skip { color: #fff !important; opacity: .8; text-decoration: none !important; margin-top: 4px; padding: 8px; }
.intro-foot { position: absolute; left: 28px; right: 28px; bottom: calc(34px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; transition: opacity .25s; }
.first-intro.last .intro-foot { opacity: 0; pointer-events: none; }
.intro-dots { display: flex; gap: 6px; }
.intro-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgb(255 255 255 / 40%); transition: width .3s, background .3s; }
.intro-dots i.on { width: 22px; background: var(--accent); }
.intro-next { background: #fff; color: var(--brand); border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer; }
.intro-close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 18px; background: rgb(255 255 255 / 14%); color: #fff; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.first-intro.last .intro-close { display: none; }
@media (min-width: 700px) { .first-intro h1 { font-size: 60px; } }
body.intro-open .tabbar, body.intro-open .topbar { visibility: hidden; }

/* About */
.about-hero { margin: 0 -16px; padding: 70px 20px 28px; color: #fff; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 25%, transparent), color-mix(in srgb, var(--brand) 94%, black)), var(--img, none) center / cover, var(--brand); }
.about-hero::after { content: ''; position: absolute; left: 20px; bottom: 0; width: 34px; height: 3px; background: var(--accent); }
.about-hero h1 { font-size: 34px; color: #fff; }
.about-hero p { opacity: .86; margin: 8px 0 0; max-width: 34ch; }
.about-story p { font-size: 17px; margin: 0 0 12px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.about-pillars div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.about-pillars b { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.about-pillars span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.about-tiles { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.about-tiles::-webkit-scrollbar { display: none; }
.about-tile { flex: 0 0 140px; height: 170px; border-radius: 14px; scroll-snap-align: start; display: flex; align-items: flex-end; padding: 12px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 65%)), var(--img, none) center / cover, var(--brand); }
.about-tile span { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; line-height: 1.1; }
.about-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.about-team > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.about-team .coach-photo { width: 76px; height: 76px; }
.about-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-price > div { display: flex; flex-direction: column; }

/* Messages: topic, booking and photo */
.composer.rich { display: flex; flex-direction: column; gap: 8px; }
.composer.rich .composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer.rich .composer-row textarea { flex: 1; }
.composer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-tags:empty { display: none; }
.topic-pick { width: auto !important; padding: 6px 12px !important; border-radius: 999px !important; font-size: 13px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.tag-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.tag-chip button { border: 0; background: rgb(0 0 0 / 8%); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.attach { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.attach svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.msg-about { display: inline-block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; opacity: .7; margin-bottom: 4px; }
.msg-img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; margin: 4px 0; object-fit: cover; }
.composer.rich { background: var(--bg); padding-top: 8px; box-shadow: 0 -10px 12px -8px var(--bg); z-index: 2; }
.chat:has(~ .composer.rich) { max-height: calc(100vh - 400px); }

/* Membership: bundle saving and how to pay */
.bundle-row b { color: var(--ok); }
.bundle-hint { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.pay-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 4px; }
.pay-pick .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.pay-pick .seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pay-pick .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pay-pick .seg button { white-space: nowrap; }

#splash-logo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; animation: splashLogo .7s cubic-bezier(.2,.9,.3,1.2) both; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); }
#splash-logo:not([hidden]) + b { font-size: 15px; margin-top: 4px; }
@keyframes splashLogo { from { opacity: 0; transform: scale(.7) rotate(-8deg); } }

.partner-list { display: flex; flex-direction: column; gap: 10px; }
.card.partner { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.card.partner > div { display: flex; flex-direction: column; gap: 2px; }
.partner-go { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }

/* Collapsible sections */
[data-fold] > .section-head h2, [data-fold] > .day-head { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
[data-fold] > .section-head h2::after, [data-fold] > .day-head::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .5; transition: transform .2s; }
[data-fold].folded > .section-head h2::after, [data-fold].folded > .day-head::after { transform: rotate(-45deg); }
[data-fold].folded > :not(.section-head):not(.day-head) { display: none; }
button.day-head { border: 0; background: none; font: inherit; color: inherit; padding: 0; width: 100%; text-align: left; }
.fold-count { display: none; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); letter-spacing: 0; }
.folded .fold-count { display: inline-block; }
/* Coach filter */
.coach-pick { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 4px -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.coach-pick::-webkit-scrollbar { display: none; }
.coach-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); transition: background .2s, color .2s; }
.coach-chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; background: var(--soft); color: var(--brand); }
.coach-chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.coach-chip.on i { background: var(--accent); color: var(--brand); }
.day-group > .day-head { margin: 20px 0 8px; }
.day-group:first-child > .day-head { margin-top: 6px; }
.builder .pick-row select { flex: none; width: 54%; min-width: 0; max-width: 220px; }

/* Date labels beside a heading stay on one line */
.date-tag { white-space: nowrap; flex: none; margin-left: 12px; }
.row:has(> .date-tag) { align-items: baseline; }

/* Refer a friend */
.refer-hero { background: var(--brand); color: var(--on-brand); }
.refer-hero h2 { color: inherit; font-size: 22px; line-height: 1.25; }
.refer-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.refer-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; }

/* Tracker tabs */
.tabs2 { display: flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: var(--line); }
.tabs2 a { flex: 1; text-align: center; padding: 9px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs2 a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.tabs2 small { font-weight: 500; opacity: .7; }

/* Class workout plan and log */
.plan-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.plan-list li > div { line-height: 1.35; }
.plan-list li > span { display: block; }
.workout pre { margin-top: 10px; }
.log-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; border-left: 4px solid var(--brand); }
.log-nudge p { margin: 2px 0 0; }
.ex-block { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; margin-bottom: 10px; background: var(--surface); }
.ex-head { display: flex; gap: 8px; }
.ex-head .ex-name { flex: 1; min-width: 0; font-weight: 700; }
.ex-head select { flex: none; width: 42%; max-width: 170px; font-size: 13px; }
.ex-hint { margin-top: -2px; }
.set-rows { display: grid; gap: 6px; }
.set-row { display: flex; align-items: center; gap: 6px; }
.set-row input { flex: 1; min-width: 0; text-align: center; padding: 9px 6px; }
.set-no { width: 22px; flex: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.set-del { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 6px; }
.rpe label { position: relative; }
.rpe input { position: absolute; opacity: 0; inset: 0; }
.rpe b { display: grid; place-items: center; height: 36px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; background: var(--surface); }
.rpe input:checked + b { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.rpe input:focus-visible + b { outline: 2px solid var(--brand); outline-offset: 2px; }
.set-head span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.set-head .set-no { flex: none; }
.set-del-space { flex: none !important; width: 30px; }

/* Even button sets: equal widths in two columns, an odd last button spans the row */
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.btn-grid > .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; margin: 0; }
.btn-grid > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.btn-grid:empty { display: none; }

/* Nothing on a page may push it wider than the screen */
body { overflow-x: clip; }
#view { min-width: 0; }

/* About: tidier, smaller team cards and price strip */
.about-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .about-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px 14px; min-width: 0; }
.about-team .team-card .coach-photo { width: 64px; height: 64px; margin-bottom: 6px; }
.team-card b { font-size: 16px; }
.team-card span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); line-height: 1.35; overflow-wrap: anywhere; }
.about-price .btn { flex: none; white-space: nowrap; }
.about-tile { flex-basis: 128px; height: 150px; }
.about-tile span { font-size: 15px; }

/* Membership: how to pay toggle, promo code and terms as separate rows */
.pay-pick .paytoggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); flex: none; }
.paytoggle button { border: 0; background: none; margin: 0; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; text-align: center; }
.paytoggle button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.terms-check { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.pay-pick > span { white-space: nowrap; }
.paytoggle button { padding: 8px 14px; }

/* Add to cart and Buy now: the same pair everywhere, equal widths, outline then filled */
.buy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy-pair .btn { width: 100%; justify-content: center; white-space: nowrap; margin: 0; }
.summary-bar .buy-pair { flex: none; width: 230px; }
.summary-bar .buy-pair .btn.ghost { background: transparent; color: var(--surface); border: 1px solid color-mix(in srgb, var(--surface) 45%, transparent); }
.summary-bar .buy-pair .btn:not(.ghost) { background: var(--accent); color: var(--text); border-color: var(--accent); }

.log-nudge-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.log-nudge { transition: opacity .2s, transform .2s; }
.log-nudge.leaving { opacity: 0; transform: translateY(-6px); }

/* Open Gym: add extended hours from the greyed-out row */
.hours .hrow:has(.hrow-add) { flex-wrap: wrap; opacity: 1; }
.hours .hrow:has(.hrow-add) > div, .hours .hrow:has(.hrow-add) > span { opacity: .55; }
.hours .hrow .hrow-add { flex-basis: 100%; margin-top: 2px; }
.cart-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.cart-line .grow { min-width: 0; }
.cart-line .line-total { flex: none; white-space: nowrap; }
.cart-line .line-total small { font-weight: 500; margin-left: 1px; }
.summary-bar #ccheck { flex: none; white-space: nowrap; }
.summary-bar .total { white-space: nowrap; }

/* Entry screen when the studio is shut */
.closed-tag { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 auto; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--warn, #b4533a) 12%, var(--surface)); color: var(--warn, #b4533a); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.closed-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.closed-when { font-weight: 600; margin-top: 6px; }

.pref-row { padding-top: 12px; border-top: 1px solid var(--line); }

/* Added to cart pop-up */
.added-sheet .sheet-close { display: none; }
.added { display: grid; gap: 16px; padding-top: 4px; }
.added-head { display: flex; align-items: center; gap: 12px; }
.added-tick { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 700; }
.added-head b { font-size: 17px; }

/* Demo switcher bar */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: none; letter-spacing: 0; padding: calc(5px + env(safe-area-inset-top)) 8px 5px; }
.demo-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.demo-views { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgb(0 0 0 / .08); }
.demo-views button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: inherit; cursor: pointer; white-space: nowrap; }
.demo-views button.on { background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.demo-views button.busy { opacity: .5; }

.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-pair .field { min-width: 0; }
/* Coach filter: every coach visible at once, no sideways scrolling */
.coach-pick { flex-wrap: wrap; overflow: visible; margin: 4px 0 14px; padding: 0; row-gap: 6px; }
.coach-pick > .small { flex-basis: 100%; }

/* Location line under the studio name in the header */
.brand-words { display: flex; flex-direction: column; gap: 4px; }
.brand-sub { font-family: var(--font-body, inherit); font-size: 10px; font-weight: 300; letter-spacing: .28em; text-transform: uppercase; color: #d3bea5; line-height: 1; }
.brand-words { width: max-content; }
.brand-sub { white-space: nowrap; }
.brand-sub { align-self: flex-start; }

.freeze-help { display: grid; gap: 10px; margin-top: 4px; }

/* Classes: filters fold away under a Filter button */
.filter-d { margin: 2px 0 12px; }
.filter-d summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-d summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-on { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.filter-d summary .link { margin-left: auto; }
.filter-body { padding-top: 6px; }
.filter-body .coach-pick { margin-bottom: 4px; }

/* Book and Buy selectors in the brand colour */
.tabs { background: var(--brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 22%, transparent); }
.tabs a, .tabs button { color: color-mix(in srgb, var(--on-brand) 82%, transparent); font-weight: 500; }
.tabs a.on, .tabs button.on { background: var(--surface); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }

/* Me: account settings as folding rows */
.me-fold + .me-fold { border-top: 1px solid var(--line); }
.me-fold summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-weight: 500; cursor: pointer; list-style: none; }
.me-fold summary::-webkit-details-marker { display: none; }
.me-fold summary .pill { flex: none; }
.me-fold .chev { transition: transform .2s; }
.me-fold[open] .chev { transform: rotate(90deg); }
.me-fold-body { padding: 0 16px 16px 52px; display: grid; gap: 12px; }
.me-fold-body .btn { justify-self: start; }
.me-fold-body .row.between { gap: 12px; }
.me-fold-body .pref-row:first-of-type { border-top: 0; padding-top: 0; }

/* Treatment benefits */
.benefits-d { margin-top: 2px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding-top: 4px; }
.benefit { display: flex; gap: 10px; align-items: flex-start; }
.benefit svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; stroke: var(--c, var(--brand)); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--c, var(--brand)) 10%, var(--surface)); }
.benefit b { display: block; font-size: 13px; line-height: 1.25; }
.benefit span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* Class pop-up: what the class consists of, folded */
.class-fold summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.class-fold summary::-webkit-details-marker { display: none; }
.class-fold summary span:first-child::after { content: '›'; display: inline-block; margin-left: 8px; transition: transform .2s; }
.class-fold[open] summary span:first-child::after { transform: rotate(90deg); }
.class-fold summary .muted { font-family: var(--font-body, inherit); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Home: link to every booking under Coming up */
.see-all { margin-top: 10px; }

/* Demo info: what the app does */
.demo-info { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; font: inherit; font-size: 11px; font-weight: 800; font-style: italic; font-family: Georgia, serif; line-height: 1; padding: 0; cursor: pointer; opacity: .75; display: grid; place-items: center; }
.features { display: grid; gap: 10px; }
.features h2 { margin: 0; }
.feat-group { border-top: 1px solid var(--line, #e5e5e5); padding-top: 10px; }
.feat-group summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.feat-group summary::-webkit-details-marker { display: none; }
.feat-group summary span { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand, #314467) 12%, transparent); color: var(--brand, #314467); }
.feat-group summary::after { content: '›'; margin-left: auto; transition: transform .2s; color: var(--muted, #888); }
.feat-group[open] summary::after { transform: rotate(90deg); }
.feat-group ul { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 9px; }
.feat-group li { font-size: 13px; line-height: 1.4; color: var(--muted, #666); padding-left: 14px; position: relative; }
.feat-group li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, #d3bea5); }
.feat-group li b { color: var(--text, #1d1d1d); margin-right: 5px; }

.signout { display: flex; justify-content: center; }
.me-fold summary { color: var(--text); }
.me-group a + .me-fold, .me-group .me-fold + a { border-top: 1px solid var(--line); }
.demo-bar.switching .demo-views { pointer-events: none; }
.demo-views button.busy { opacity: 1; background: rgb(255 255 255 / .55); }
/* The demo bar stays tappable above pop-ups */
.demo-bar { position: sticky; top: 0; z-index: 150; } /* stays above the header as you scroll */

/* Four to six treatments: an even two-column grid instead of a sideways scroll */
.filters.fam.fam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters.fam.fam-grid .chip { margin: 0; }
.topbar { top: var(--demo-h, 0px); }
/* Demo: a calm screen while switching between member, coach and owner */
.demo-switch { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.demo-switch span { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.demo-switch span::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* While the next page loads, the last one fades back slightly instead of blanking */
.leaving { opacity: .55; transition: opacity .15s ease .05s; pointer-events: none; }

:root { --accent-ink: color-mix(in srgb, var(--accent) 38%, var(--text)); } /* the accent deepened enough to read on the background */
/* Coach profile: the whole photo, never cropped, over a soft blurred copy of itself */
.coach-hero { position: relative; height: min(300px, 72vw); overflow: hidden; display: grid; place-items: center; background: var(--soft); }
.coach-hero::before { content: ''; position: absolute; inset: -20px; background: var(--img) center/cover; filter: blur(18px) brightness(.85); transform: scale(1.05); }
.coach-hero img { position: relative; height: min(300px, 72vw); width: auto; max-width: 100%; object-fit: contain; display: block; }

/* Entry number under the QR, for readers wired into the door system */
.qr-digits { margin: -6px 0 0; font-family: var(--font-heading); font-size: 26px; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--text); }

/* Five demo views fit a phone: tighter buttons, and a sideways scroll if still too wide */
@media (max-width: 440px) { .demo-label { display: none; } .demo-bar { gap: 6px; } .demo-views { overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 52px); } .demo-bar:has(.demo-cta) .demo-views { max-width: calc(100vw - 90px); } .demo-views::-webkit-scrollbar { display: none; } .demo-views button { padding: 4px 7px; font-size: 11.5px; } }
@media (max-width: 380px) { .demo-views button { padding: 4px 5px; font-size: 11px; } }

/* Normal case (theme.normal_case): no capitals styling, so the wide tracking that went with it comes off too. Generated from the uppercase rules above. */
html.nc #splash b,
html.nc .about-pillars b,
html.nc .about-tile span,
html.nc .brand-sub,
html.nc .class-fold summary,
html.nc .closed-tag,
html.nc .day small,
html.nc .day-head,
html.nc .demo-bar,
html.nc .demo-label,
html.nc .eyebrow,
html.nc .fav b,
html.nc .gift-art.plain span,
html.nc .heading,
html.nc .hero .next b,
html.nc .intro-mark,
html.nc .join-choice .tag,
html.nc .join-choice .tx b,
html.nc .join-demo > span,
html.nc .join-form .field > span,
html.nc .join-mark,
html.nc .msg-about,
html.nc .preset b,
html.nc .quick.photos a.has-img span,
html.nc .refer-eyebrow,
html.nc .section > h2,
html.nc .section > h3.muted,
html.nc .section-head h2,
html.nc .session .title,
html.nc .set-head span,
html.nc .team-card span,
html.nc .topbar .brand,
html.nc .wrapped .big span,
html.nc h1,
html.nc h2,
html.nc h3 { letter-spacing: .01em; }

/* Public demos: a call to action in the demo bar and a prompt */
.demo-cta { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgb(0 0 0 / .82); color: #fff; text-decoration: none; white-space: nowrap; }
.demo-cta:hover { background: #000; color: #fff; }
.demo-pitch { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgb(0 0 0 / .08); }
.demo-pitch-sheet .demo-pitch { margin-top: 0; padding-top: 0; border-top: 0; }
.demo-pitch h3 { margin: 0; font-size: 20px; }
.demo-pitch p { margin: 0; opacity: .8; }
.demo-pitch .btn { justify-self: start; text-decoration: none; }
.demo-cta { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.demo-cta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* On a phone the call button stays, as a round phone icon. */
@media (max-width: 560px) { .demo-cta { padding: 6px; } .demo-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* "Powered by taal": small, at the very foot of About. Studios can turn it off in Settings. */
.credit { text-align: center; font-size: 11px; margin: 26px 0 8px; opacity: .55; }
.credit a { color: inherit; text-decoration: none; }

/* Membership renewal terms: a short list above the tick box, so the box itself stays one line. */
.renew-terms { margin: 4px 0 10px; padding-left: 18px; line-height: 1.45; }
.renew-terms li + li { margin-top: 3px; }

/* On a computer the bars keep to the same column as the page, rather than stretching edge to edge. */
@media (min-width: 700px) {
  .tabbar { padding-left: max(4px, calc(50% - 310px)); padding-right: max(4px, calc(50% - 310px)); }
  .topbar { padding-left: max(18px, calc(50% - 302px)); padding-right: max(18px, calc(50% - 302px)); }
}

/* ═════════ Rhythm: the taal design system ═════════
   Big, bold and simple. The studio's photo leads, one solid block per screen carries the main action,
   and everything else is big type on fine lines. One motif ties it together: beats, small dots that
   show your week, free places, who's arrived and the shape of the day (taal means rhythm). */
:root {
  --r-sm: 14px; --r: 22px; --r-lg: 30px; --r-xl: 38px;
  --h-track: -0.02em;
  --tabbar: 96px;
  --top-h: 64px;
}
h1, h2, h3, .heading { font-weight: 700; letter-spacing: var(--h-track); text-transform: none; line-height: 1.05; }
.num, .time b, .day b, .price { font-variant-numeric: tabular-nums; }

/* Header: quiet, on the page colour; over the photo on Home */
.topbar { background: var(--bg); color: var(--text); padding: calc(10px + env(safe-area-inset-top)) 18px 10px; transition: background .25s, box-shadow .25s, color .25s; }
.topbar .brand { color: var(--brand); letter-spacing: var(--h-track); text-transform: none; font-size: 20px; }
.topbar .brand .hair { display: none; }
.topbar .brand-sub { color: var(--muted); }
.topbar .icon-btn { width: 44px; height: 44px; border: 0; background: var(--surface); color: var(--brand); }
.topbar .icon-btn .dot { border-color: var(--surface); }
.topbar button#auth-btn { border: 1.5px solid var(--line); color: var(--brand); font-weight: 600; padding: 9px 16px; font-size: 14px; }
body.page-home .topbar:not(.solid) { background: transparent; color: #fff; }
body.page-home .topbar:not(.solid) .brand, body.page-home .topbar:not(.solid) .brand-sub { color: #fff; }
body.page-home .topbar:not(.solid) .logo-mark:not(.logo-badge) { filter: brightness(0) invert(1); }
body.page-home .topbar:not(.solid) .logo-mark.logo-badge { filter: drop-shadow(0 2px 6px rgb(0 0 0 / 28%)); } /* follows the logo's own shape, so a round badge never shows a square */
body.page-home .topbar:not(.solid) .icon-btn, body.page-home .topbar:not(.solid) #auth-btn { background: rgb(255 255 255 / .2); color: #fff; border-color: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.page-home .topbar:not(.solid) .icon-btn .dot { border-color: transparent; }
.topbar.solid { box-shadow: 0 1px 0 var(--line); }

/* Pages */
.page-head { margin: 22px 0 18px; }
.page-head h1 { font-size: clamp(34px, 10vw, 46px); }
.page-head h1::after { display: none; }
.section { margin-top: 30px; }
.section-head { padding-bottom: 0; margin-bottom: 8px; }
.section-head::after, .section > h2::after { display: none; }
.section-head h2, .section > h2, .section > h3.muted, .eyebrow, .day-head { font: 600 15px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.back { font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; }

/* The framed photo: inset from the screen edge, its corners following the screen's */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  margin: 0 -8px; padding: 28px 24px 26px; min-height: min(62vh, 470px); border-radius: var(--r-xl);
  background: var(--brand) var(--img, none) center / cover no-repeat; color: #fff; }
.hero::after { content: ''; position: absolute; inset: 0; left: 0; right: 0; height: auto; z-index: -1; opacity: 1;
  background: linear-gradient(180deg, rgb(0 0 0 / .3), rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0) 42%, rgb(0 0 0 / .56)); }
.hero:not(.has-image)::after { display: none; }
body.page-home .hero { margin-top: calc(8px - var(--top-h)); padding-top: calc(var(--top-h) + 24px); }
.hero .hero-when { margin: 0; max-width: none; font-size: 16px; font-weight: 500; opacity: .94; }
.hero .hero-big { margin: 6px 0 0; font-size: 64px; font-weight: 800; line-height: .94; overflow-wrap: break-word; }
.hero .hero-big.mid { font-size: clamp(44px, 13vw, 56px); line-height: .96; }
.hero .hero-big.long { font-size: clamp(36px, 10.5vw, 46px); line-height: 1; }
.hero .hero-light { margin: 6px 0 0; font: 300 clamp(24px, 7.4vw, 30px)/1.1 var(--font-heading); letter-spacing: var(--h-track); opacity: .96; max-width: 22ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn.glass { background: rgb(255 255 255 / .2); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgb(255 255 255 / .28); }
@media (min-width: 700px) { .hero { margin: 0 0; } body.page-home .hero { margin-top: 8px; padding-top: 32px; } body.page-home .topbar:not(.solid) { background: var(--bg); color: var(--text); } body.page-home .topbar:not(.solid) .brand { color: var(--brand); } body.page-home .topbar:not(.solid) .brand-sub { color: var(--muted); } body.page-home .topbar:not(.solid) .logo-mark { filter: none; } body.page-home .topbar:not(.solid) .icon-btn { background: var(--surface); color: var(--brand); } body.page-home .topbar:not(.solid) #auth-btn { background: none; color: var(--brand); border-color: var(--line); } }

/* Beats */
.beat { display: block; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--text) 15%, transparent); }
.beat.done { background: var(--brand); }
.beat.booked { background: transparent; box-shadow: inset 0 0 0 2.5px var(--brand); }
.week-beats { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 20px 4px 0; }
.week-beats ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 18px); gap: 10px; }
.week-beats li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted); }
.week-beats li.today { color: var(--text); font-weight: 700; }
.week-beats p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--muted); text-align: right; }

/* The one solid block, then the other routes as big lines */
.pathway { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 98px; margin-top: 18px; padding: 14px 14px 14px 24px;
  border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); text-decoration: none; transition: transform .12s; }
.pathway:active { transform: scale(.985); }
.pathway b { display: block; font: 700 28px/1.05 var(--font-heading); letter-spacing: var(--h-track); }
.pathway small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; font-size: 15px; font-weight: 500; }
.pathway small span { opacity: .92; margin-right: 4px; }
.pathway small i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.go { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--on-brand); color: var(--brand); }
.go svg, .paths svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.paths { display: flex; flex-direction: column; margin-top: 6px; }
.paths a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 80px; padding: 8px 8px 8px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.paths a:first-child { border-top: 0; }
.paths b { display: block; font: 600 25px/1.08 var(--font-heading); letter-spacing: var(--h-track); }
.paths small { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
/* A single way on from Home (Buy, where booking is the only route): a quiet card that lines up with the one above. */
.paths.one { margin-top: 12px; }
.paths.one a { min-height: 98px; padding: 14px 14px 14px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform .12s; }
.paths.one a:active { transform: scale(.985); }
.paths.one b { font-weight: 700; font-size: 26px; }
.paths.one a > svg { width: 56px; height: 56px; padding: 16px; box-sizing: border-box; border-radius: 50%; background: var(--brand); color: var(--on-brand); }

/* Buttons and controls: big, round and calm */
.btn { min-height: 52px; padding: 13px 24px; font-size: 16px; }
.btn.small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.chip { min-height: 40px; padding: 8px 16px; border-color: var(--line); }
.chip.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
input, select, textarea { border-radius: var(--r-sm); min-height: 52px; border: 1.5px solid var(--line); }
textarea { min-height: 96px; }
.tabs { background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: none; padding: 5px; }
.tabs a, .tabs button { color: var(--text); font-weight: 500; min-height: 42px; display: grid; place-items: center; }
.tabs a.on, .tabs button.on { background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: none; }
.seg button, .yesno button { border-radius: var(--r-sm); min-height: 48px; border-width: 1.5px; }
.option { border-radius: var(--r); }
.card { border-radius: var(--r); box-shadow: none; border: 0; }
.card.flat { border: 1px solid var(--line); }
.sheet { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.toast { border-radius: 999px; padding: 13px 20px; }

/* Lists: big times on fine lines, the class colour as a beat */
.list > .card.session + .card.session { margin-top: 0; }
.card.session { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-left: 0; border-radius: 0; padding: 16px 2px; gap: 14px; }
.card.session:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.session .time { width: 74px; }
.session .time b { font: 700 26px/1 var(--font-heading); letter-spacing: var(--h-track); }
.session .time .small { display: block; margin-top: 5px; }
.session > .thumb { display: none; }
.session .title { font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.session .title::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--c, var(--brand)); }
.session .pill:not(.ok):not(.warn) { background: none; padding: 0; font-size: 15px; color: var(--muted); }
.day-group .day-head { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 0; margin: 26px 0 2px; color: var(--text); font: 700 20px/1.2 var(--font-heading); letter-spacing: var(--h-track); }

/* Days: round, with beats for how many sessions have space */
.week-strip { margin: 4px -6px 14px; gap: 0; }
.week-strip .wk { width: 30px; min-height: 44px; }
.days7 { gap: 2px; }
.days7 .day { min-height: 84px; padding: 0; border: 0; border-radius: 999px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.days7 .day small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.days7 .day b { font: 700 23px/1.05 var(--font-heading); letter-spacing: var(--h-track); }
.days7 .day.active { background: var(--brand); color: var(--on-brand); }
.days7 .day.active small { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.dbeats { display: flex; gap: 3px; height: 5px; margin-top: 4px; }
.dbeats i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }
.day.active .dbeats i { background: var(--on-brand); }

/* Tab bar: floating, following the screen's curve; one beat marks where you are */
.tabbar { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px 6px; border: 0; border-radius: 34px;
  background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 14px 34px -14px rgb(0 0 0 / .32), 0 0 0 1px color-mix(in srgb, var(--text) 5%, transparent); }
.tabbar a { color: var(--muted); font-size: 11.5px; font-weight: 500; gap: 3px; padding: 2px 0; min-height: 52px; justify-content: center; }
.tabbar a svg, .tabbar a.active svg { width: 24px; height: 24px; padding: 0; background: none; stroke-width: 1.8; }
.tabbar a::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.tabbar a.active { color: var(--brand); font-weight: 600; }
.tabbar a.active::after { background: var(--accent-ink); }
.tabbar a .dot { border-color: var(--surface); top: 2px; }
.tabbar a.qr-tab::after { display: none; }
.tabbar a.qr-tab b { width: 38px; height: 38px; margin: -4px 0 0; border: 0; background: var(--brand); box-shadow: none; }
.tabbar a.qr-tab svg, .tabbar a.qr-tab.active svg { stroke: var(--on-brand); width: 20px; height: 20px; }
.tabbar a.qr-tab span { margin-bottom: 6px; }
.tabbar a.qr-tab.active b { background: color-mix(in srgb, var(--brand) 84%, black); }
@media (min-width: 700px) { .tabbar { left: 50%; right: auto; width: 596px; transform: translateX(-50%); padding-left: 6px; padding-right: 6px; } }

/* Booked: the one moment of delight */
.booked-screen { position: fixed; inset: 0; z-index: 160; display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(48px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom)); background: var(--brand); color: var(--on-brand); animation: fade .25s ease; }
.booked-screen > * { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.booked-screen .ring { position: relative; width: 200px; height: 200px; flex: none; }
.booked-screen .ring i { position: absolute; border-radius: 50%; background: var(--accent); animation: beatIn .35s cubic-bezier(.2,1.4,.4,1) both; }
.booked-screen .ring b { position: absolute; inset: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--on-brand); color: var(--brand); animation: beatIn .4s .1s cubic-bezier(.2,1.4,.4,1) both; }
.booked-screen .ring svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes beatIn { from { transform: scale(0); opacity: 0; } }
.booked-screen h1 { margin-top: 34px; text-align: center; font-size: clamp(44px, 13vw, 56px); font-weight: 800; }
.booked-screen .what { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 600; }
.booked-screen .when { margin-top: 4px; text-align: center; font-size: 19px; opacity: .92; }
.booked-screen .note { margin-top: 24px; text-align: center; font-size: 16px; line-height: 1.45; opacity: .88; }
.booked-screen .acts { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.booked-screen .btn.light { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .booked-screen, .booked-screen .ring i, .booked-screen .ring b { animation: none; } }

/* Pop-ups: the photo framed inside the sheet, the name large */
.sheet-hero { height: 210px; margin: 0 -10px; border-radius: var(--r-lg); border-bottom: 0; }
.sheet-title p { margin: 0; font-size: 15px; }
.sheet-big { margin-top: 4px; font-size: clamp(38px, 11vw, 48px); font-weight: 800; line-height: .98; }
.sheet-light { margin: 6px 0 0; font: 300 22px/1.2 var(--font-heading); letter-spacing: var(--h-track); color: var(--text); }
.sheet-light .mini-avatar { width: 32px; height: 32px; }
.spaces { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.sbeats { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.sbeats i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--text) 15%, transparent); }
.sbeats i.free { background: var(--accent-ink); }
.sheet-mid { margin-top: 2px; font-size: clamp(30px, 9vw, 36px); font-weight: 800; line-height: 1; }
.sheet-mid + .sheet-light { font-size: 19px; margin-top: 4px; }
/* Rows that scroll sideways fade at the edge, so it's clear there's more */
.filters:not(.wrap):not(.fam-grid):not(.fam), .credits { -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); padding-right: 28px; }
/* Photos inside a card sit inset, their corners following the card's */
.treat-img, .card-img { margin: -8px -8px 14px; border-radius: 14px; border-bottom: 0; }
.post-img { border-radius: 14px; margin: 8px 8px 0; }
/* Appointment times: big numbers on round tiles */
.slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { min-height: 58px; border-radius: var(--r-sm); border: 1.5px solid var(--line); font: 700 19px/1.1 var(--font-heading); letter-spacing: var(--h-track); font-variant-numeric: tabular-nums; }
.slot small { font-family: var(--font-body); letter-spacing: 0; }
.slot.active { border-color: var(--brand); }
/* Contrast on colour-coded choices: deeper fills, white small text */
.treat-sel .seg button.on small { color: #fff; opacity: .95; }
.filters.fam .chip.active { background: color-mix(in srgb, var(--c, var(--text)) 82%, #000); border-color: color-mix(in srgb, var(--c, var(--text)) 82%, #000); }
details > summary { min-height: 24px; display: flex; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Rhythm, carried through every page ── */
/* Section titles in the big type, so every page reads the same way down */
.section-head { align-items: baseline; margin-bottom: 10px; }
.section-head h2, .section > h2 { font: 700 23px/1.1 var(--font-heading); letter-spacing: var(--h-track); color: var(--text); text-transform: none; }
.section-head a { font-size: 15px; }
html.nc .section-head h2, html.nc .section > h2 { letter-spacing: var(--h-track); }
/* Credits: what's left as beats */
.credit-lines { display: flex; flex-direction: column; }
.cl { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 10px 2px; border-top: 1px solid var(--line); }
.cl:first-child { border-top: 0; }
.cl b { display: block; font-size: 17px; font-weight: 600; }
.cl small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.cl-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.cl-r b { display: inline; font-size: inherit; color: var(--text); }
.cbeats { display: flex; gap: 4px; }
.cbeats i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--text) 14%, transparent); }
.cbeats i.on { background: var(--brand); }
/* News and offers: a row you swipe through */
.news-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.news-row::-webkit-scrollbar { display: none; }
.news { flex: none; width: min(78vw, 290px); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); padding: 8px; }
.news-img { height: 150px; border-radius: calc(var(--r-lg) - 8px); background: var(--soft) center / cover; }
.news-img.plain { display: flex; align-items: flex-end; padding: 16px; background: var(--soft); color: var(--brand); }
.news-img.plain span { font: 800 30px/1 var(--font-heading); letter-spacing: var(--h-track); }
.news-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 10px 8px; }
.news-kind { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.news h3 { font-size: 21px; line-height: 1.1; }
.news-text { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-body .btn, .news-go { margin-top: auto; align-self: flex-start; }
.news-go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.news-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .news-row { margin: 0; padding: 2px 0 8px; } }
/* The running total: the brand, with a light button */
.summary-bar { background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); padding: 14px 14px 14px 20px; box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--brand) 70%, transparent); }
.summary-bar .total { font-weight: 700; letter-spacing: var(--h-track); }
.summary-bar .save { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.summary-bar .btn:not(.ghost) { background: var(--on-brand) !important; color: var(--brand) !important; }
.summary-bar .btn.ghost { background: transparent; color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }
/* Your month: flat brand, the big number does the work */
.wrapped { background: var(--brand); border-radius: var(--r-lg); }
.wrapped .big b { font-weight: 800; letter-spacing: var(--h-track); }
.wrapped .big span { text-transform: none; letter-spacing: 0; font-size: 15px; }
.wgrid div { background: rgb(255 255 255 / .1); border-radius: var(--r); }
.fav b { text-transform: none; letter-spacing: var(--h-track); font-weight: 700; }
.nudge { border-radius: var(--r-lg); }
.price { font-weight: 700; letter-spacing: var(--h-track); }
/* Tab icons: one hand-drawn set, rounded, a beat inside that lights up where you are */
.tabbar a svg .b, .abar a svg .b { fill: currentColor; stroke: none; opacity: 0; transition: opacity .2s; }
.tabbar a.active svg .b, .abar a.active svg .b { opacity: 1; fill: var(--accent-ink); }
.tabbar a svg, .abar a svg { stroke-linecap: round; stroke-linejoin: round; }
.tabbar a::after, .abar a::after { display: none; }
.tabbar a, .abar a { padding-bottom: 4px; }
/* People: a specialism reads as a quiet line in the accent, not a badge */
.spec { font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.coach b { font-size: 18px; }
/* Me: the list as lines with the big name above */
.me-group { background: var(--surface); border-radius: var(--r); }
/* About: the same framed photo as Home */
.about-hero { margin: 8px -8px 0; min-height: min(52vh, 400px); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px 26px; border-radius: var(--r-xl); overflow: hidden; }
.about-hero::after { display: none; }
.about-hero h1 { font-size: clamp(36px, 10vw, 48px); font-weight: 800; line-height: 1; }
@media (min-width: 700px) { .about-hero { margin: 16px 0 0; } }
.about-pillars > div, .about-pillars .card { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 14px 2px 4px; }
.about-hero { background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .55)), var(--img, none) center / cover, var(--brand); }
/* Greyed-out rows say so in words and lighter type, not by fading below readable contrast */
.hours .hrow.off { opacity: 1; color: var(--muted); }
.hours .hrow.off small { color: var(--muted); }
.credit { opacity: 1; color: var(--muted); }
.hours .hrow:has(.hrow-add) > div, .hours .hrow:has(.hrow-add) > span { opacity: 1; color: var(--muted); }

/* ── Less scrolling: panels, folds and lines ── */
/* Home: one panel at a time */
.seg-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.seg-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; font: 600 15px var(--font-body); color: var(--text); cursor: pointer; }
.seg-tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.hp > .news-go { margin-top: 6px; }
/* Gym floor: the hours fold away under one line */
.gym-how { margin: 0 2px 10px; font-size: 15px; color: var(--muted); }
.more-fold { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 2px; cursor: pointer; }
.more-fold > summary::-webkit-details-marker { display: none; }
.more-fold > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform .2s; flex: none; }
.more-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more-fold > summary b { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.more-fold > summary small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.more-fold > .card { margin: 0 0 14px; }
/* Passes you swipe through */
.options.pass-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.options.pass-row::-webkit-scrollbar { display: none; }
.options.pass-row .option { flex: none; width: min(64vw, 230px); scroll-snap-align: start; flex-direction: column; align-items: flex-start; gap: 10px; }
.options.pass-row .option .price { font-size: 24px; }
@media (min-width: 700px) { .options.pass-row { margin: 0; padding: 2px 0 6px; } }
/* Deals: lines to scan, details in a sheet */
.deal-lines { display: flex; flex-direction: column; }
.deal { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 74px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.deal b { display: block; font-size: 17px; font-weight: 600; }
.deal small { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.deal-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.deal-r i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.deal-r .price { font-size: 21px; }
.deal-r s { display: block; text-align: right; }
.deal-sheet .badge { position: absolute; top: 0; right: 40px; }
/* About: the team in a row you swipe */
.about-team { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.about-team::-webkit-scrollbar { display: none; }
.about-team .team-card { flex: none; width: 104px; background: none; border: 0; box-shadow: none; padding: 0; }
@media (min-width: 700px) { .about-team { margin: 0; padding: 0 0 6px; } }
.options.pass-row, .news-row { scroll-padding-inline: 16px; }
/* intro deals under a treatment on the Buy screen */
.sec-mini { font-size: 15px; font-family: var(--font-body, inherit); font-weight: 650; letter-spacing: 0; text-transform: none; margin: 22px 0 4px; color: var(--text); }
.tabbar a[hidden] { display: none; }
/* typing on a phone: the tab bar and buy bar step aside, the composer sits on the keyboard, and sheets stay above it */
@media (max-width: 699px) {
  .tabbar { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  body.typing .tabbar { transform: translateY(calc(100% + 30px)); }
  body.typing .summary-bar { visibility: hidden; }
  body.typing .composer { bottom: calc(8px + env(safe-area-inset-bottom)); }
}
.sheet { bottom: var(--kb, 0px); max-height: min(92vh, calc(var(--vvh, 100vh) - 12px)); transition: transform .28s cubic-bezier(.2,.8,.2,1), bottom .2s ease-out; }
input, textarea, select { scroll-margin: 90px 0 24px; }

/* ─────────── Category styles (theme.style): same system, tuned to the kind of studio ───────────
   Corners, the shape of the beats and a motif in the solid block. flow is the default. */
html[data-style=still] { --r-sm: 16px; --r: 26px; --r-lg: 34px; --r-xl: 44px; }
html[data-style=strong] { --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px; }
html[data-style=ring] { --r-sm: 4px; --r: 8px; --r-lg: 12px; --r-xl: 16px; }
html[data-style=crux] { --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 26px; }
html[data-style=stage] { --r-sm: 18px; --r: 28px; --r-lg: 36px; --r-xl: 46px; }
.pathway { position: relative; isolation: isolate; overflow: hidden; }
.pathway::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--motif, none) right 64px center / auto 82% no-repeat; opacity: .16; pointer-events: none; }
:root { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 30c20-12 40-12 60 0s40 12 60 0 M10 50c20-12 40-12 60 0s40 12 60 0 M10 70c20-12 40-12 60 0s40 12 60 0'/%3E%3C/svg%3E"); }
html[data-style=still] { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='110' cy='50' r='16'/%3E%3Ccircle cx='110' cy='50' r='30'/%3E%3Ccircle cx='110' cy='50' r='44'/%3E%3C/svg%3E"); }
html[data-style=strong] { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M60 100L120 0M80 100L140 0M100 100L160 0M120 100L180 0M140 100L200 0'/%3E%3C/svg%3E"); }
html[data-style=ring] { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 34H160M30 52H160M30 70H160' stroke-width='3'/%3E%3Cpath d='M30 20V84' stroke-width='5'/%3E%3C/svg%3E"); }
html[data-style=crux] { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='70' cy='76' r='6' fill='white' stroke='none'/%3E%3Ccircle cx='98' cy='54' r='5' fill='white' stroke='none'/%3E%3Ccircle cx='122' cy='34' r='6' fill='white' stroke='none'/%3E%3Ccircle cx='146' cy='16' r='5' fill='white' stroke='none'/%3E%3Cpath d='M70 76L98 54 122 34 146 16' stroke-dasharray='1 7'/%3E%3C/svg%3E"); }
html[data-style=stage] { --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M50 96a60 60 0 0 1 120 0M70 96a40 40 0 0 1 80 0M90 96a20 20 0 0 1 40 0'/%3E%3C/svg%3E"); }
/* beats: plates for strength, rounds for the ring, holds for climbing */
html[data-style=strong] .beat { width: 9px; height: 16px; border-radius: 3px; }
html[data-style=strong] :is(.sbeats, .cbeats, .dbeats) i { border-radius: 2px; }
html[data-style=ring] .beat { border-radius: 3px; width: 13px; height: 13px; }
html[data-style=ring] :is(.sbeats, .cbeats, .dbeats) i { border-radius: 1px; }
html[data-style=crux] .beat { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); }
html[data-style=crux] :is(.sbeats, .cbeats) i { border-radius: 2px; transform: rotate(45deg) scale(.86); }
html[data-style=still] .beat.booked { box-shadow: inset 0 0 0 1.5px var(--brand); }
html[data-style=stage] .beat.done { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
/* the ring and the wall are angular, so their photo frames are a little squarer too */
html[data-style=ring] .hero, html[data-style=ring] .about-hero { border-radius: var(--r-lg); }

/* ───── Ask, the assistant (public/ask.js): clients in the app, the team in the back office ───── */
.topbar .ask-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 15px 0 11px; border-radius: 999px; border: 0; background: var(--surface); color: var(--brand); font: 650 15px/1 var(--font-heading, inherit); letter-spacing: -0.01em; cursor: pointer; }
.topbar .ask-btn[hidden] { display: none; }
.ask-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sheet.ask-sheet .sheet-body { display: flex; flex-direction: column; }
.ask { display: flex; flex-direction: column; gap: 16px; min-height: min(72vh, 640px); flex: 1; }
.ask .ask-head h2 { font: 650 clamp(30px, 7.5vw, 40px)/1 var(--font-heading, inherit); letter-spacing: -0.035em; margin: 6px 0 8px; }
.ask-sub { margin: 0; color: var(--muted); }
.ask-log { flex: 1; display: grid; align-content: start; gap: 16px; }
.ask-q { display: flex; justify-content: flex-end; }
.ask-q p { margin: 0; max-width: 84%; padding: 11px 15px; background: var(--brand); color: var(--on-brand); border-radius: var(--r) var(--r) 6px var(--r); line-height: 1.4; overflow-wrap: anywhere; }
.ask-a { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; }
.ask-a > .beat { margin-top: 5px; background: var(--accent-ink, var(--brand)); }
.ask-a p { margin: 0 0 8px; line-height: 1.5; }
.ask-a ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.5; }
.ask-a.err > .beat { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.ask-a.err p { color: var(--muted); }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ask-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); font-weight: 600; text-decoration: none; }
.ask-link:hover { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); }
.ask-link i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-suggest[hidden] { display: none; }
.ask-suggest .chip { text-align: left; }
.ask-form { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 10px 0 2px; background: var(--bg, var(--surface)); }
.ask-form textarea { flex: 1; resize: none; min-height: 50px; max-height: 120px; padding: 13px 18px; border-radius: 25px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; line-height: 1.4; background: var(--surface); color: var(--text); }
.ask-form textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ask-send { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; }
.ask-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ask-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ask-note a { color: inherit; }
/* Thinking: the four beats of teentaal, one landing at a time. */
.ask-beats { display: inline-flex; gap: 5px; align-items: center; height: 22px; }
.ask-beats i { width: 7px; height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--text) 16%, transparent); animation: askBeat 1.6s infinite steps(1); }
.ask-beats i:nth-child(2) { height: 11px; animation-delay: .4s; }
.ask-beats i:nth-child(3) { width: 11px; height: 11px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 16%, transparent); animation-name: askWave; animation-delay: .8s; }
.ask-beats i:nth-child(4) { height: 11px; animation-delay: 1.2s; }
@keyframes askBeat { 0%, 24% { background: var(--accent-ink, var(--brand)); } 25%, 100% { background: color-mix(in srgb, var(--text) 16%, transparent); } }
@keyframes askWave { 0%, 24% { box-shadow: inset 0 0 0 2.5px var(--accent-ink, var(--brand)); } 25%, 100% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text) 16%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ask-beats i { animation: none; } }
@media (max-width: 380px) { .topbar .ask-btn { padding: 0 11px; } .topbar .ask-btn span { display: none; } }
/* Level 2: what Ask offers to do, confirmed with a tap. */
.ask-act { margin: 6px 0 10px; padding: 14px 16px 14px; border-radius: var(--r); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--brand) 22%, var(--line)); display: grid; gap: 4px; }
.ask-act b { font: 650 18px/1.15 var(--font-heading, inherit); letter-spacing: -0.015em; }
.ask-act p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ask-act-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ask-go { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 650 15px/1 var(--font-heading, inherit); cursor: pointer; }
.ask-act.danger .ask-go { background: var(--text); color: var(--surface); }
.ask-skip { min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.ask-go.loading { opacity: .6; }
.ask-act.done { border-color: var(--brand); }
.ask-act .ask-done { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--text); font-weight: 600; }
.ask-act .ask-done .beat { background: var(--brand); }
.ask-act.no { opacity: .75; }

/* Tab bar, lower and slimmer: a floating pill resting just above the phone's home indicator, about 60px tall,
   see-through with a blur so the page shows faintly behind it. Where you are is a soft pill behind the icon. */
:root { --tabbar: 58px; }
.tabbar { left: 14px; right: 14px; bottom: max(8px, calc(env(safe-area-inset-bottom) - 14px)); padding: 5px 6px; border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 28px -12px rgb(0 0 0 / .3), 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent); }
.tabbar a { min-height: 50px; padding: 0; gap: 2px; font-size: 10.5px; }
.tabbar a::after { display: none; }
.tabbar a svg, .tabbar a.active svg { width: 21px; height: 21px; padding: 3px 14px; border-radius: 999px; transition: background .2s; }
.tabbar a.active svg { background: color-mix(in srgb, var(--brand) 13%, transparent); }
.tabbar a .dot { top: 0; left: calc(50% + 8px); }
/* Check in: a smaller circle that only just breaks the top edge */
.tabbar a.qr-tab { justify-content: flex-end; }
.tabbar a.qr-tab b { width: 40px; height: 40px; margin: -14px 0 0; border: 3px solid color-mix(in srgb, var(--surface) 92%, transparent); box-sizing: content-box;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 55%, transparent); }
.tabbar a.qr-tab svg, .tabbar a.qr-tab.active svg { width: 20px; height: 20px; padding: 0; background: none; }
.tabbar a.qr-tab span { margin-bottom: 0; }
:root[data-dark="1"] .tabbar { background: color-mix(in srgb, var(--surface) 80%, transparent); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background: var(--surface); } }
