/* BasimZB Coaching. One stylesheet for the whole site.
   Everything sits on one 4px spacing scale (--s1..--s8) and one set of sizes, so pages line up the same way at
   every width. Nothing has a fixed width wider than a phone, and long names wrap instead of pushing the page out. */

@font-face { font-family: "Lilita One"; src: url("/static/fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* Colours. Amber and soul-green carry the page; purple only marks the third kind of session. */
  --bg: #141414; --bg-2: #101010; --panel: #1c1c1c; --panel-2: #181818; --panel-3: #252525;
  --line: #2f2f2f; --line-2: #262626; --line-3: #3d3d3d;
  --text: #f3f3f3; --text-2: #d6d6d6; --muted: #b4b4b4; --faint: #929292;
  --accent: #ffb547; --accent-2: #ffc670; --accent-dark: #8a5a10; --accent-bg: #33260f; --accent-line: #5a4219;
  --soul: #4ce0b3; --soul-ink: #0c1f19; --soul-bg: #10362b; --soul-line: #1d5c49;
  --spirit: #b99aff; --spirit-bg: #271f3d; --spirit-line: #45376b;
  --discord: #5865f2; --discord-2: #4752c4;
  --danger: #ff7b7b; --danger-bg: #381818; --danger-line: #5a2626;
  --info: #8fb4ff; --info-bg: #17233a; --info-line: #263b5e;
  /* Space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: clamp(16px, 4vw, 32px);       /* page edge */
  --pad: clamp(16px, 2.2vw, 24px);        /* inside a card */
  --between: clamp(12px, 1.8vw, 20px);    /* between cards */
  --section: clamp(48px, 7vw, 88px);      /* between sections of the home page */
  --maxw: 1160px;
  /* Shape */
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --control: 46px;                        /* height of every input and normal button */
  /* Type */
  --t-xs: 0.8rem; --t-sm: 0.875rem; --t-base: 1rem;
  --t-lg: clamp(1.03rem, 0.98rem + 0.3vw, 1.18rem);
  --t-card: 1.125rem;
  --t-page: clamp(1.9rem, 1.5rem + 1.9vw, 2.6rem);
  --t-h2: clamp(1.8rem, 1.35rem + 2.2vw, 2.8rem);
  --t-h1: clamp(2.5rem, 1.35rem + 5.4vw, 4.9rem);
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ----- base ------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 var(--t-base)/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; display: block; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { flex: none; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: #ffdc9c; }
p, li, dd, dt, label, span, a, strong, h1, h2, h3, h4, summary, figcaption, div { overflow-wrap: anywhere; }
p, h1, h2, h3, h4, ul, ol, dl, figure { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; text-wrap: balance; }
h2 { font-size: var(--t-card); }
h3 { font-size: var(--t-base); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #141414; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: var(--r); background: var(--accent); color: #141414; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ----- layout helpers ---------------------------------------------------------------------------------------------- */
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.stack-sm { gap: var(--s2); }
.stack-md { gap: var(--s3); }
.stack-lg { gap: var(--between); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); min-width: 0; }
.row > *, .stack > * { min-width: 0; }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--between); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
.grid > * { min-width: 0; }
/* Two or three equal columns when there is room, otherwise one. Never two and a leftover. */
.grid-2, .grid-3 { display: grid; gap: var(--between); grid-template-columns: minmax(0, 1fr); }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (min-width: 900px) { .items.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dash-main { container-type: inline-size; }
@container (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 > :only-child, .grid-3 > :only-child, .grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--t-sm); }
.accent { color: var(--accent); }
.soul { color: var(--soul); }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.list { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: var(--s1); }
ol.list { list-style: decimal; }

/* The chunky poster lettering. */
.disp { font-family: var(--display); font-weight: 400; letter-spacing: 0.4px; line-height: 1.04; text-shadow: 0 3px 0 #000, 0 -1px 0 #000, 2px 0 0 #000, -2px 0 0 #000; }
h2.disp { font-size: var(--t-h2); }

/* ----- buttons ----------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--control); padding: 8px 20px;
  border-radius: var(--r); border: 2px solid transparent; background: var(--panel-3); color: var(--text);
  font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease; -webkit-tap-highlight-color: transparent; max-width: 100%;
}
.btn:hover { filter: brightness(1.1); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; transform: none; }
.btn-accent { background: var(--accent); color: #141414; box-shadow: 0 3px 0 var(--accent-dark); }
.btn-accent:hover { color: #141414; }
.btn-accent:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-dark); }
.btn-soul { background: var(--soul); color: var(--soul-ink); }
.btn-soul:hover { color: var(--soul-ink); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { color: #fff; background: var(--discord-2); filter: none; }
.btn-ghost { background: transparent; border-color: var(--line-3); }
.btn-danger { background: var(--danger-bg); border-color: var(--danger-line); color: #ffc9c9; }
.btn-danger:hover { color: #ffdcdc; }
.btn-sm { min-height: 38px; padding: 4px 14px; font-size: var(--t-sm); border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 10px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ----- header ------------------------------------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(16, 16, 16, 0.94); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; gap: var(--s4); height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s3); color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; background: var(--panel-3); flex: none; }
.brand .disp { font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.4rem); white-space: nowrap; text-shadow: 0 2px 0 #000, 1px 0 0 #000, -1px 0 0 #000; }
.nav { display: none; align-items: center; gap: var(--s5); margin-left: var(--s5); font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.account { display: flex; align-items: center; gap: var(--s3); margin-left: auto; flex: none; }
.account .login { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; height: 44px; border-radius: var(--r); border: 2px solid var(--line-3); color: var(--text); font-weight: 700; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .burger { display: flex; align-items: center; justify-content: center; line-height: 0; }
.menu .burger svg { display: block; }
.menu[open] > summary { border-color: var(--accent); }
.menu .who { display: none; align-items: center; gap: var(--s2); padding: 0 10px 0 4px; max-width: 220px; }
.menu .who img, .menu .who .initial { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--panel-3); }
.menu .who .initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); }
.menu .who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 2 * var(--gutter))); padding: var(--s2); border-radius: var(--r-lg); background: #1a1a1a; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; z-index: 50; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--panel-3); color: #fff; }
.menu-panel a.main { font-weight: 800; color: var(--accent); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-panel form { margin: 0; }
.m-only { display: contents; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .account .login { display: inline-flex; }
  .menu.guest, .menu .burger, .m-only { display: none; }
  .menu .who { display: flex; }
  .menu > summary { border-radius: 999px; }
}
@media (max-width: 1159px) { .menu .who .name { display: none; } .menu .who { padding: 0 6px 0 4px; } }
@media (max-width: 359px) { .brand .disp .accent { display: none; } }

.notice { background: var(--accent-bg); color: #ffe2b3; border-bottom: 1px solid var(--accent-line); }
.notice .wrap { padding-block: 10px; font-weight: 600; font-size: var(--t-sm); }

/* ----- messages, badges -------------------------------------------------------------------------------------------- */
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: 12px var(--s4); border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); line-height: 1.5; }
.alert > * { min-width: 0; }
.alert > svg { margin-top: 1px; }
.alert-ok { background: var(--soul-bg); border-color: var(--soul-line); color: #c9fbe9; }
.alert-err { background: var(--danger-bg); border-color: var(--danger-line); color: #ffd6d6; }
.alert-warn { background: var(--accent-bg); border-color: var(--accent-line); color: #ffe2b3; }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: #d6e4ff; }
.alert a { color: inherit; }
.flash-zone { padding-top: var(--s4); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-3); vertical-align: middle; }
.badge-soul { background: var(--soul-bg); color: var(--soul); border-color: var(--soul-line); }
.badge-accent { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-line); }
.badge-danger { background: var(--danger-bg); color: #ff9c9c; border-color: var(--danger-line); }
.badge-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge-grey { color: var(--faint); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.status { display: flex; align-items: baseline; gap: var(--s2); }
.status .dot { transform: translateY(-1px); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-2); }
.status-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.dot.ok { background: var(--soul); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--danger); }

/* ----- cards ------------------------------------------------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--pad); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); }
.empty { padding: var(--s5) var(--pad); border-radius: var(--r-lg); border: 1px dashed var(--line-3); text-align: center; color: var(--muted); }

/* Eight-sided frame, like a plate bolted on: used for the portrait, the name plate and the step numbers. */
.cut { --c: 10px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }

/* ----- home: hero -------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; --sky: clamp(54px, 9vw, 118px); padding: clamp(28px, 6vw, 72px) 0 calc(var(--sky) + clamp(20px, 3vw, 36px)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); min-width: 0; }
.hero-copy h1 { font-size: var(--t-h1); }
.lead { font-size: var(--t-lg); color: var(--text-2); max-width: 31em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-note { display: flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: var(--t-sm); }
.hero-note svg { color: var(--soul); }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* Art-deco sunburst behind the portrait. */
.hero-art::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from -5deg, rgba(255, 181, 71, 0.13) 0 10deg, transparent 10deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 22%, transparent 74%); mask-image: radial-gradient(closest-side, #000 22%, transparent 74%); }
.portrait { --c: clamp(18px, 3vw, 34px); width: min(100%, 340px); aspect-ratio: 1; padding: 3px; background: linear-gradient(160deg, var(--accent) 0%, #6b4a17 45%, var(--soul-line) 100%); }
.portrait > div { --c: clamp(16px, 2.8vw, 32px); width: 100%; height: 100%; background: radial-gradient(110% 90% at 30% 15%, #303030 0%, #1e1e1e 60%, #181818 100%); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-id { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin-top: -20px; text-align: center; }
.plate { --c: 8px; padding: 8px 18px 7px; background: #101010; color: var(--soul); font-family: var(--display); font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem); letter-spacing: 0.5px; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--soul-line); }
/* The city along the bottom, and a few souls drifting over it. */
.skyline { position: absolute; z-index: -2; left: 0; right: 0; bottom: 0; height: var(--sky); background: url("/static/img/skyline.svg") bottom center / auto 100% repeat-x; }
.skyline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to top, rgba(76, 224, 179, 0.07), transparent); }
.souls { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.souls i { position: absolute; width: var(--d, 8px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eafff8, var(--soul) 55%, rgba(76, 224, 179, 0) 72%); box-shadow: 0 0 14px 3px rgba(76, 224, 179, 0.35); opacity: var(--o, 0.7); animation: drift var(--t, 9s) ease-in-out infinite alternate; }
.souls i:nth-child(1) { left: 4%; bottom: 24%; --d: 7px; --t: 8s; }
.souls i:nth-child(2) { left: 46%; bottom: 17%; --d: 10px; --t: 11s; --o: 0.8; }
.souls i:nth-child(3) { left: 58%; top: 14%; --d: 6px; --t: 9s; --o: 0.5; }
.souls i:nth-child(4) { right: 3%; bottom: 30%; --d: 9px; --t: 10s; }
.souls i:nth-child(5) { right: 30%; bottom: 12%; --d: 6px; --t: 7s; --o: 0.55; }
@keyframes drift { from { transform: translateY(6px); } to { transform: translateY(-10px); } }
@media (min-width: 561px) and (max-width: 860px) { .hero .portrait { width: 132px; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .hero-art { order: -1; flex-direction: row; align-items: center; gap: var(--s4); }
  .hero-art::before { left: 52px; top: 50%; width: 330px; }
  .portrait { width: 104px; --c: 14px; }
  .portrait > div { --c: 12px; }
  .hero-id { margin-top: 0; align-items: flex-start; text-align: left; }
  .hero-copy { gap: var(--s4); }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 180px; }
  .souls i:nth-child(n + 3) { display: none; }
  .souls i:nth-child(1) { left: 14%; bottom: calc(var(--sky) * 0.75); }
  .souls i:nth-child(2) { left: auto; right: 16%; bottom: calc(var(--sky) * 0.45); }
}

/* ----- home: sections ---------------------------------------------------------------------------------------------- */
.band { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.section { padding-block: var(--section); }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: clamp(20px, 3vw, 32px); }
.section-head p { color: var(--muted); font-size: var(--t-lg); max-width: 38em; }
/* A small deco mark under each section title. */
.rule { display: flex; align-items: center; gap: var(--s2); height: 10px; color: var(--accent); }
.rule::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
.rule::after { content: ""; width: 84px; height: 2px; background: linear-gradient(90deg, currentColor, transparent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4) var(--between); padding-block: var(--s5); }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: var(--s3); border-left: 2px solid var(--accent-line); }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); line-height: 1.1; }
.stat span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The three sessions, laid out like items in the shop: a coloured top with the name and what it costs. */
.item { --hue: var(--accent); --hue-bg: var(--accent-bg); --hue-line: var(--accent-line); display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--hue-line); background: var(--panel); overflow: hidden; }
.item-soul { --hue: var(--soul); --hue-bg: var(--soul-bg); --hue-line: var(--soul-line); }
.item-spirit { --hue: var(--spirit); --hue-bg: var(--spirit-bg); --hue-line: var(--spirit-line); }
.item > header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px var(--pad); background: var(--hue-bg); border-bottom: 1px solid var(--hue-line); }
.item h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.3px; line-height: 1.1; }
.cost { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: var(--hue); font-weight: 800; font-size: var(--t-sm); white-space: nowrap; }
.item-body { display: flex; flex-direction: column; gap: var(--s4); flex: 1; padding: var(--pad); }
.item-body p { color: var(--text-2); }
.item-body .for { color: var(--hue); font-weight: 700; font-size: var(--t-sm); }
.item-body .btn { margin-top: auto; }
.item.soon > header, .item.soon .item-body p { opacity: 0.8; }
@media (min-width: 561px) and (max-width: 899px) { .items .item-body .btn-block { display: inline-flex; width: auto; align-self: flex-start; } }

.topics { display: grid; gap: 0 var(--s6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.topics li { position: relative; padding: var(--s4) 0 var(--s4) 22px; border-top: 1px solid var(--line); min-width: 0; }
.topics li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.topics h3 { font-size: 1.05rem; margin-bottom: 2px; }
.topics p { color: var(--muted); }

.steps { display: grid; gap: var(--s5) var(--between); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s4); row-gap: 2px; align-items: start; }
.step .num { grid-row: 1 / span 2; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #141414; font-family: var(--display); font-size: 1.5rem; }
.step h3 { font-size: 1.05rem; padding-top: 1px; }
.step p { color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.about .banner { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.about .banner img { width: 100%; aspect-ratio: 1080 / 430; object-fit: cover; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about .stack { container-type: inline-size; }
.socials { display: grid; gap: var(--s2); grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Too narrow for five labelled buttons: one even row of brand marks (each link keeps its aria-label). */
@container (max-width: 559px) { .social span { display: none; } .social svg { width: 22px; height: 22px; } }
.social { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 6px 10px; border-radius: var(--r); background: var(--panel-3); border: 1px solid var(--line-3); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--t-sm); white-space: nowrap; }
.social svg { flex: none; display: block; }
.social:hover, .social:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--brand, #555) 60%, #333); }
.social:hover svg, .social:focus-visible svg { color: var(--brand, currentColor); }
.quote { display: flex; flex-direction: column; gap: var(--s3); padding: var(--pad); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.quote blockquote { margin: 0; color: var(--text-2); }
.quote figcaption { color: var(--faint); font-size: var(--t-sm); }

.faq { display: flex; flex-direction: column; gap: var(--s2); }
.faq details { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: var(--s3) var(--pad); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--pad) var(--s4); color: var(--muted); }

.cta-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s5); padding: clamp(20px, 4vw, 40px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--accent-line); }
.cta-card img { width: clamp(64px, 10vw, 104px); border-radius: var(--r-lg); }
.cta-card h2 { margin-bottom: var(--s1); }
@media (max-width: 700px) { .cta-card { grid-template-columns: auto minmax(0, 1fr); } .cta-card .btn { grid-column: 1 / -1; } }

/* ----- footer ------------------------------------------------------------------------------------------------------ */
.site-footer { margin-top: auto; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.site-footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s3) var(--s6); padding-block: var(--s5); font-size: var(--t-sm); color: var(--faint); }
.site-footer .disp { font-size: 1.2rem; color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); justify-content: flex-end; }
.site-footer nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } .site-footer nav { justify-content: flex-start; gap: 0 var(--s5); } }

/* ----- forms ------------------------------------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: var(--t-sm); }
.hint { color: var(--faint); font-size: var(--t-sm); }
.input { width: 100%; min-height: var(--control); padding: 8px 12px; border-radius: var(--r); border: 2px solid var(--line-3); background: #131313; color: var(--text); font-size: 1rem; line-height: 1.3; }
.input::placeholder { color: #777; }
textarea.input { min-height: 88px; resize: vertical; }
input[type="date"].input, input[type="datetime-local"].input { padding-inline: 10px 8px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.25); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
/* Fields side by side where there's room; labels of different lengths still leave the boxes on one line. */
.fields { display: grid; gap: var(--s3) var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 150px)), 1fr)); align-items: end; }
.fields .wide { grid-column: 1 / -1; }
/* Four across on a wide screen, two on a phone. Used where several forms should line up with each other. */
.fields.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fields.cols-4 .wide { grid-column: span 2; }
@media (max-width: 760px) { .fields.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fields.cols-4 .wide { grid-column: 1 / -1; } }
@media (max-width: 440px) { .fields .phone-wide { grid-column: 1 / -1; } }
.inline-form { display: inline; margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: var(--s2); }
.filter > select { flex: 1 1 200px; }
.filter > .find { flex: 3 1 260px; display: flex; gap: var(--s2); min-width: 0; }
.filter .find .input { flex: 1 1 auto; min-width: 0; }

/* ----- page heads -------------------------------------------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); padding-block: clamp(24px, 4vw, 44px) var(--s5); }
.page-head h1 { font-size: var(--t-page); }
.page-head p { color: var(--muted); margin-top: var(--s2); }
.page-head > div { min-width: 0; flex: 1 1 280px; }
.page-body { padding-bottom: clamp(40px, 7vw, 80px); }
.message { margin-block: clamp(28px, 7vw, 72px); }
.message h1 { font-size: var(--t-page); }

/* ----- booking ----------------------------------------------------------------------------------------------------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--between); align-items: start; }
.tz { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.tz select { flex: 1 1 220px; max-width: 340px; }
.days { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 76px; padding: 8px 2px; border-radius: var(--r); border: 2px solid var(--line-3); background: var(--panel-2); color: var(--text); cursor: pointer; }
.day .dow { font-size: var(--t-xs); font-weight: 700; color: var(--muted); }
.day .dnum { font-family: var(--display); font-size: 1.6rem; line-height: 1.05; }
.day .cnt { font-size: 0.72rem; font-weight: 700; color: var(--soul); }
.day:hover { border-color: #5a5a5a; }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.day[aria-pressed="true"] .dow { color: #ffd9a1; }
.slots { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.slot { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px; border-radius: var(--r); border: 2px solid var(--line-3); background: var(--panel-2); color: var(--text); font-weight: 800; font-size: 1rem; white-space: nowrap; cursor: pointer; }
.slot:hover { border-color: #5a5a5a; }
.slot[aria-pressed="true"] { border-color: var(--soul); background: var(--soul-bg); color: #dffdf3; }
.summary-card { position: sticky; top: 84px; }
.picked { padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--panel-2); border: 1px dashed var(--line-3); font-weight: 700; }
.picked.none { font-weight: 400; color: var(--muted); }
.token-line { display: flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: var(--t-sm); }
.token-line svg { color: var(--soul); }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, #1a1a1a 0%, #242424 50%, #1a1a1a 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.done { display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; padding-block: clamp(24px, 5vw, 48px); }
.done h2 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3rem); }
.done .actions { justify-content: center; }
@media (max-width: 960px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
}
@media (max-width: 560px) {
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .day { min-height: 58px; border-radius: 10px; }
  .day .dnum { font-size: 1.3rem; }
  .day .cnt { display: none; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .to-me { display: none; }
}

/* ----- my sessions ------------------------------------------------------------------------------------------------- */
.token-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s4); }
.token-card p { color: var(--muted); margin-top: 2px; }
.orb { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; background: var(--soul-bg); color: var(--soul); box-shadow: inset 0 0 0 2px var(--soul-line), 0 0 18px rgba(76, 224, 179, 0.18); }
.orb.off { background: var(--panel-3); color: var(--faint); box-shadow: inset 0 0 0 2px var(--line-3); }
.orb.buy { background: var(--accent-bg); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-line); }
@media (max-width: 620px) { .token-card { grid-template-columns: auto minmax(0, 1fr); } .token-card > .btn, .token-card > form { grid-column: 1 / -1; } .token-card > form .btn { display: flex; width: 100%; } }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s4); }
.booking strong { display: block; font-size: 1.05rem; }
.booking .sub { display: block; color: var(--muted); font-size: var(--t-sm); margin-top: 2px; }
@media (max-width: 620px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking .actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .booking .actions .btn { display: flex; width: 100%; padding-inline: 8px; }
}

/* ----- coach dashboard --------------------------------------------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-block: var(--s5) clamp(40px, 7vw, 72px); }
.side-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: var(--s3); min-height: 42px; padding: 6px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.side-nav a:hover { background: var(--panel); color: #fff; }
.side-nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }
.tabbar { display: none; }
.dash-main { display: flex; flex-direction: column; gap: var(--between); min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); }
.dash-head h1 { font-size: var(--t-page); min-width: 0; }
.dash-head h1.name { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); }
.dash-head .tags { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.sec-title { font-size: var(--t-card); }
/* On phones and tablets the pages sit in a bar at the bottom: four you use most, the rest under More. */
@media (max-width: 999px) {
  .dash { grid-template-columns: minmax(0, 1fr); padding-top: var(--s4); }
  .side-nav { display: none; }
  body.coach { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 max(4px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px); background: rgba(16, 16, 16, 0.97); border-top: 1px solid var(--line); }
  .tabbar > a, .tabbar summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 60px; min-width: 0; color: var(--muted); text-decoration: none; font-size: 0.7rem; font-weight: 700; cursor: pointer; list-style: none; border: 0; border-radius: 0; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar [aria-current="page"], .tabbar details.on > summary, .tabbar details[open] > summary { color: var(--accent); }
  .tabbar .menu-panel { top: auto; bottom: calc(100% + 8px); right: 8px; width: min(240px, calc(100vw - 16px)); }
}
.kpis { display: grid; gap: var(--s3); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.kpi b { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lists of records. Columns on a wide screen; on a phone each record folds into two short lines. */
.rows { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.rows > li, .rows-head { position: relative; display: grid; grid-template-columns: var(--cols); align-items: center; gap: 2px var(--s4); padding: 12px var(--pad); min-width: 0; }
.rows > li { font-size: 0.95rem; }
.rows > li + li { border-top: 1px solid var(--line-2); }
.rows-head { border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--panel-2); color: var(--faint); font-size: var(--t-xs); font-weight: 700; padding-block: 10px; }
.rows-head + .rows { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.rows > li > *, .rows .split > * { min-width: 0; }
.rows .split { display: contents; }
.rows li.tap:hover { background: #212121; }
.rows li.focus { background: #23201a; }
.rows .go::after { content: ""; position: absolute; inset: 0; }             /* the whole row opens the record */
.rows a:not(.go), .rows button, .rows form { position: relative; z-index: 1; }
.rows .go { color: var(--text); text-decoration: none; font-weight: 700; }
.rows li.tap:hover .go { color: var(--accent-2); }
.rows .chev { color: var(--faint); display: flex; justify-content: flex-end; }
.rows .sub { display: block; color: var(--faint); font-size: var(--t-sm); }
.rows .m-label { display: none; }
.in-card { border: 0; border-radius: 0; background: none; margin-inline: calc(-1 * var(--pad)); }
.in-card > li { padding-inline: var(--pad); }
@media (max-width: 760px) {
  .rows-head { display: none; }
  .rows-head + .rows { border-radius: var(--r-lg); }
  .rows > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .rows .c-main { grid-column: 1; grid-row: 1; }
  .rows .c-side { grid-column: 2; grid-row: 1; justify-self: end; }
  .rows .c-meta { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-sm); }
  .rows .split { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s3); }
  .rows .chev, .rows .d-only, .rows .none { display: none; }
  .rows .sub { display: inline; margin-left: 6px; }
  .rows .m-label { display: inline; color: var(--faint); }
  .rows.side-wraps > li { grid-template-columns: auto minmax(0, 1fr); }
  .rows.side-wraps .c-main { white-space: nowrap; }
  .rows.side-wraps .c-side { text-align: right; }
}

dl.facts { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: var(--s2) var(--s4); }
dl.facts dt { color: var(--faint); font-size: var(--t-sm); padding-top: 2px; }
dl.facts dd { margin: 0; min-width: 0; }
@media (max-width: 420px) { dl.facts { grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); gap: var(--s2) var(--s3); } }

/* Opening hours: one line per day. */
.week { display: flex; flex-direction: column; }
.week-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s2) var(--s4); padding-block: var(--s3); border-top: 1px solid var(--line-2); }
.week-day:first-child { border-top: 0; padding-top: 0; }
.week-day .name { display: flex; flex-direction: column; justify-content: center; min-height: var(--control); font-weight: 700; }
.week-day .name span { color: var(--faint); font-weight: 400; font-size: var(--t-sm); }
.windows { display: flex; flex-direction: column; gap: var(--s2); max-width: 420px; }
.window { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px; align-items: center; gap: var(--s2); }
.window .to { color: var(--faint); font-size: var(--t-sm); }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 2px solid var(--line-3); background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: #5a5a5a; }
@media (max-width: 620px) {
  .week-day { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .week-day .name { flex-direction: row; justify-content: space-between; align-items: baseline; min-height: 0; }
  .windows { max-width: none; }
}

.log { display: flex; flex-direction: column; }
.log-entry { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 0 var(--s4); padding-block: 10px; border-top: 1px solid var(--line-2); }
.log-entry:first-child { border-top: 0; padding-top: 0; }
.log-entry:last-child { padding-bottom: 0; }
.log-entry .t { color: var(--faint); font-size: var(--t-sm); padding-top: 2px; }
.log-entry .d { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 700px) { .log-entry { grid-template-columns: minmax(0, 1fr); } .log-entry .t { padding-top: 0; } }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--accent-2); min-height: 40px; display: inline-flex; align-items: center; }
.pager { display: flex; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton, .souls i { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
