/* 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;
  --muted: color-mix(in srgb, var(--text) 58%, 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: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.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: var(--c, var(--brand)); border-color: var(--c, var(--brand)); }
.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-template-columns: repeat(7, 1fr); gap: 4px; min-width: 0; }
.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: 62vw; }
.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: var(--ok); }
.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; opacity: .7; }
.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; }

/* ── Brand frame: navy top and bottom, sand as the quiet second colour ── */
:root { --accent-ink: color-mix(in srgb, var(--accent) 35%, #4a3826); } /* sand deepened enough to read on cream */
.tabbar { background: var(--brand); border-top: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 -8px 24px color-mix(in srgb, var(--brand) 16%, transparent); }
.tabbar a { color: color-mix(in srgb, var(--on-brand) 62%, transparent); }
.tabbar a.active { color: var(--accent); }
.tabbar a.active svg { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tabbar a .dot { border-color: var(--brand); }
.tabbar a.qr-tab b { background: var(--accent); border-color: var(--brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.tabbar a.qr-tab svg, .tabbar a.qr-tab.active svg { stroke: var(--brand); stroke-width: 1.9; }
.tabbar a.qr-tab.active b { background: color-mix(in srgb, var(--accent) 86%, black); }
/* Section labels in sand, each with a fine sand hairline */
.section-head h2, .section > h2, .section > h3.muted, .eyebrow { color: var(--accent-ink); }
.section-head { position: relative; padding-bottom: 9px; }
.section-head::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--accent-2, var(--accent)); }
.section > h2::after { content: ''; display: block; width: 28px; height: 1px; margin-top: 9px; background: var(--accent); }
.page-head h1::after { content: ''; display: block; width: 36px; height: 2px; margin-top: 10px; background: var(--accent); }
/* 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-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; }
@media (max-width: 560px) { .demo-cta { display: none; } }
