/* =====================================================================
   Animation layer for the public website (fx.js adds the behaviour).
   Everything here switches off with the "reduce motion" setting.
   ===================================================================== */

/* ---------- First-visit logo intro (hides itself with CSS, even without JavaScript) ---------- */
.intro { display: none; }
.js:not(.no-intro) .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: intro-out 0.5s 1s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.intro-mark { display: flex; align-items: center; gap: 14px; animation: intro-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro-mark .brand-mark { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 0 40px rgba(200, 240, 49, 0.55); animation: intro-spin 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro-name { font: 700 1.8rem var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; clip-path: inset(0 100% 0 0); animation: intro-wipe 0.6s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
[dir='rtl'] .intro-name { clip-path: inset(0 0 0 100%); }
@keyframes intro-in { from { opacity: 0; transform: scale(0.9); } }
@keyframes intro-spin { from { transform: rotate(-90deg) scale(0.4); } }
@keyframes intro-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }

/* ---------- Reading progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--blue, #60a5fa)); box-shadow: 0 0 12px rgba(200, 240, 49, 0.7); }
[dir='rtl'] .scroll-progress span { transform-origin: 100% 50%; }

/* ---------- Header: shrinks and gets a stronger blur after scrolling ---------- */
.site-header { transition: background 0.3s, box-shadow 0.3s; }
.site-header .nav { transition: height 0.3s; }
.site-header.scrolled { background: rgba(13, 15, 18, 0.72); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.site-header.scrolled .nav { height: 58px; }
/* Sliding underline on menu links */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
/* Mobile menu: links drop in one after another */
@media (max-width: 960px) {
  .nav.open .nav-links a, .nav.open .nav-actions > * { animation: drop-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .nav.open .nav-links a:nth-child(2) { animation-delay: 0.04s; }
  .nav.open .nav-links a:nth-child(3) { animation-delay: 0.08s; }
  .nav.open .nav-links a:nth-child(4) { animation-delay: 0.12s; }
  .nav.open .nav-links a:nth-child(5) { animation-delay: 0.16s; }
  .nav.open .nav-links a:nth-child(6) { animation-delay: 0.2s; }
  .nav.open .nav-links a:nth-child(7) { animation-delay: 0.24s; }
  .nav.open .nav-actions > * { animation-delay: 0.28s; }
  .nav-links a::after { display: none; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.9; }
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(200, 240, 49, 0.12), transparent 60%);
  transition: background 0.1s;
}
/* Headline words rise in one by one */
.fx-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.fx-words .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); filter: blur(6px); opacity: 0; animation: word-up 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.08s + var(--intro-delay, 0s)); }
.js:not(.no-intro) .fx-words, .js:not(.no-intro) .fx-fade { --intro-delay: 1.15s; }
@keyframes word-up { to { transform: none; filter: none; opacity: 1; } }
/* Lime words: a light sweeps across them */
.fx-words .shimmer > span {
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent) 40%, #f4ffc9 50%, var(--accent) 60%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: word-up 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, shimmer-text 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s + var(--intro-delay, 0s)), calc(var(--i) * 0.08s + var(--intro-delay, 0s) + 1s);
  filter: drop-shadow(0 0 18px rgba(200, 240, 49, 0.3));
}
@keyframes shimmer-text { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.fx-fade { opacity: 0; transform: translateY(16px); animation: fade-up 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; animation-delay: calc(var(--i) * 0.08s + var(--intro-delay, 0s)); }
@keyframes fade-up { to { opacity: 1; transform: none; } }
[data-parallax] { will-change: transform; }
/* Magnetic buttons follow the cursor a little */
[data-magnetic] { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s, background 0.15s; }

/* ---------- Stats strip ---------- */
.stats-strip { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(200, 240, 49, 0.04), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; padding-top: 34px; padding-bottom: 34px; }
.stat-big { text-align: center; }
.stat-num { font: 700 clamp(2.2rem, 5vw, 3.4rem) var(--font-num, inherit); line-height: 1; color: var(--accent-text); text-shadow: 0 0 26px rgba(200, 240, 49, 0.35); }
.stat-label { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Endless sliding strip ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--border); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 28px; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 700 clamp(1.4rem, 3vw, 2.2rem) var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); white-space: nowrap; transition: color 0.3s; }
.marquee span:nth-of-type(3n + 1) { color: var(--accent); -webkit-text-stroke: 0; }
.marquee i { color: var(--accent); font-style: normal; font-size: 1.1rem; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir='rtl'] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Headings: an underline draws itself ---------- */
.fx-title { position: relative; display: inline-block; padding-bottom: 8px; }
.fx-title::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 64px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--blue, #60a5fa)); transform: scaleX(0); transform-origin: left; transition: transform 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1); }
[dir='rtl'] .fx-title::after { left: auto; right: 0; transform-origin: right; }
.fx-title.in::after { transform: scaleX(1); }

/* ---------- 3D tilt cards with a light that follows the mouse ---------- */
.fx-card { transform-style: preserve-3d; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s; }
.fx-card.reveal.in { transition: opacity 0.6s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.fx-card.tilting { transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(200, 240, 49, 0.25); }
.fx-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(200, 240, 49, 0.14), transparent 65%);
}
.fx-card.tilting::before { opacity: 1; }
.fx-card > * { position: relative; z-index: 1; }
.feature, .plan, .trainer { position: relative; }
/* Feature icons draw themselves */
.feature .draw path, .feature .draw circle, .feature .draw rect { stroke-dasharray: 80; stroke-dashoffset: 80; }
.feature.in .draw path, .feature.in .draw circle, .feature.in .draw rect { animation: draw-line 1.2s 0.25s ease forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.feature .feature-icon { transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1), box-shadow 0.3s; }
.feature:hover .feature-icon { transform: translateZ(30px) rotate(-6deg) scale(1.08); box-shadow: 0 0 24px rgba(200, 240, 49, 0.4); }

/* ---------- Plans ---------- */
.plan .ribbon { overflow: hidden; }
.plan .ribbon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%); transform: translateX(-120%); animation: ribbon-shine 3.2s 1s ease-in-out infinite; }
@keyframes ribbon-shine { 40%, 100% { transform: translateX(120%); } }
.plan.reveal li { opacity: 0; transform: translateX(-8px); }
.plan.reveal.in li { animation: tick-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(0.35s + var(--li, 0) * 0.08s); }
.plan.reveal.in li::before { display: inline-block; animation: tick-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: calc(0.45s + var(--li, 0) * 0.08s); }
@keyframes tick-in { to { opacity: 1; transform: none; } }
@keyframes tick-pop { from { transform: scale(0); } }

/* ---------- Schedule ---------- */
.day-col.today { box-shadow: 0 0 0 1px var(--accent), 0 0 34px -10px rgba(200, 240, 49, 0.55); animation: today-glow 3s ease-in-out infinite; }
@keyframes today-glow { 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 48px -8px rgba(200, 240, 49, 0.75); } }
.day-col.reveal .slot { opacity: 0; transform: translateY(10px); }
.day-col.reveal.in .slot { animation: tick-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.day-col.reveal.in .slot:nth-of-type(2) { animation-delay: 0.08s; }
.day-col.reveal.in .slot:nth-of-type(3) { animation-delay: 0.16s; }
.day-col.reveal.in .slot:nth-of-type(4) { animation-delay: 0.24s; }
.day-col.reveal.in .slot:nth-of-type(n + 5) { animation-delay: 0.3s; }
.slot { transition: transform 0.2s, background 0.2s; }
.slot:hover { transform: translateX(4px); background: rgba(200, 240, 49, 0.08); }
[dir='rtl'] .slot:hover { transform: translateX(-4px); }
.class-item { transition: transform 0.2s, border-color 0.2s; }
.class-item:hover { transform: translateX(4px); border-color: rgba(200, 240, 49, 0.4); }

/* ---------- Trainers ---------- */
.trainer-photo { position: relative; overflow: hidden; }
.trainer-photo img { transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s; filter: saturate(0.9); }
.trainer:hover .trainer-photo img { transform: scale(1.08); filter: saturate(1.1); }
.trainer-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(5, 8, 10, 0.88)); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.trainer-overlay .specialty { color: var(--accent-text); font-weight: 700; }
.trainer:hover .trainer-overlay { transform: none; }
.initials-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.initials-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from var(--ang, 0deg), var(--accent), var(--blue, #60a5fa), transparent 60%, var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ring-turn 4s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ring-turn { to { --ang: 360deg; } }

/* ---------- Gallery ---------- */
.gallery figure { cursor: zoom-in; }
.gallery figure img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.2, 1); transition-delay: var(--d, 0s); }
.gallery figure.reveal.in { clip-path: inset(0 0 0 0); }
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(4, 6, 8, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in 0.25s ease both; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); animation: lb-zoom 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) both; touch-action: pan-y; }
.lightbox figcaption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #e5e7eb; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(200, 240, 49, 0.25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@keyframes lb-zoom { from { transform: scale(0.92); opacity: 0; } }

/* ---------- BMI ---------- */
.bmi-scale i { transition: left 1.2s cubic-bezier(0.2, 0.9, 0.2, 1); }
.bmi-result.show { animation: fade-up 0.5s ease both; }

/* ---------- Back to top (with progress ring) ---------- */
.to-top { position: fixed; bottom: 86px; inset-inline-end: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--glass-strong, #181d23); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); cursor: pointer; z-index: 40; display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 0.3s, transform 0.3s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 2.5; }
.to-top .tt-bg { stroke: var(--border); }
.to-top .tt-fg { stroke: var(--accent); stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 - 100.5 * var(--p, 0)); stroke-linecap: round; }
.to-top .tt-arrow { position: static; width: 18px; height: 18px; transform: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { color: var(--accent); }

/* ---------- WhatsApp button: bounce in, then a soft pulse ---------- */
.wa-float { animation: wa-in 0.6s 1.6s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.wa-float::before, .wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-pulse 2.6s 2.2s ease-out infinite; pointer-events: none; }
.wa-float::after { animation-delay: 3.5s; }
@keyframes wa-in { from { transform: scale(0) rotate(-90deg); } }
@keyframes wa-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .fx-words .w > span, .fx-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
  .fx-words .shimmer > span { color: var(--accent); background: none; }
  .fx-particles, .hero-spot { display: none; }
  .marquee-track { animation: none !important; }
  .plan.reveal li, .day-col.reveal .slot { opacity: 1; transform: none; }
  .gallery figure.reveal { clip-path: none; }
  .feature .draw path, .feature .draw circle, .feature .draw rect { stroke-dashoffset: 0; }
  .fx-title::after { transform: scaleX(1); }
}

/* ---------- Closed / day off ---------- */
.crowd.is-closed .crowd-level { color: var(--danger); }
.crowd.is-closed .live-dot { background: var(--danger); animation: none; }
.crowd.is-closed .crowd-live { color: var(--danger); }
.crowd.is-closed .meter > span { animation: none; }
.closed-banner { background: linear-gradient(90deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.06)); border-bottom: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; font-weight: 600; font-size: 0.92rem; }
.closed-banner .container { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; flex-wrap: wrap; }
.day-closed { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed rgba(248, 113, 113, 0.45); color: #fecaca; background: rgba(248, 113, 113, 0.06); }

/* Keep the gym name on one line; tighten the menu on medium screens. */
.site-header .brand { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 961px) {
  .nav { gap: 12px; }
  .nav-links a { padding: 8px 8px; font-size: 0.9rem; }
  .nav-links a::after { left: 8px; right: 8px; }
}

/* ---------- Contact section at the end of the home page ---------- */
.contact-end { padding-top: 0; }
.contact-end-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px; border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); background: var(--surface); overflow: hidden; }
.contact-end-box::before { content: ''; position: absolute; inset-inline-start: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: var(--accent); opacity: 0.12; filter: blur(70px); pointer-events: none; }
.contact-end-info, .contact-end-form { position: relative; min-width: 0; }
.contact-end-kicker { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent-text, var(--accent)); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.contact-end-info h2 { margin: 14px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-tiles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; }
.contact-tiles li { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); transition: background 0.25s, transform 0.25s; }
.contact-tiles li:hover { background: rgba(127, 127, 127, 0.1); transform: translateX(4px); }
[dir='rtl'] .contact-tiles li:hover { transform: translateX(-4px); }
.contact-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); color: var(--accent-text, var(--accent)); }
.contact-text { display: grid; min-width: 0; }
.contact-text small { color: var(--muted); font-size: 0.8rem; }
.contact-text a, .contact-text b { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
[dir='rtl'] .contact-text a[dir='ltr'] { text-align: right; }
.contact-text a:hover { color: var(--accent-text, var(--accent)); }
.contact-end-form { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.contact-end-form .field textarea { min-height: 84px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 999px; }
.seg label { position: relative; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 9px 10px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--accent); color: #10140a; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-end-done { display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.contact-end-done h3 { margin: 0; }
.contact-done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #10140a; font-size: 1.8rem; font-weight: 800; animation: contact-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes contact-pop { from { transform: scale(0); } to { transform: scale(1); } }
@media (max-width: 860px) { .contact-end-box { grid-template-columns: 1fr; padding: 22px; gap: 24px; } .contact-end-form { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .contact-done-mark { animation: none; } .contact-tiles li:hover { transform: none; } }

/* Second, quieter choice under "Buy this plan" */
.plan-trial-link { display: block; margin-top: 10px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.plan-trial-link:hover { color: var(--accent-text, var(--accent)); }

/* ---------- Interactive schedule: coloured class blocks and a details card ---------- */
.sched-c0 { --c: #c8f031; } .sched-c1 { --c: #60a5fa; } .sched-c2 { --c: #f472b6; }
.sched-c3 { --c: #fbbf24; } .sched-c4 { --c: #a78bfa; } .sched-c5 { --c: #34d399; }
.sched-slot { display: block; width: 100%; text-align: start; font: inherit; font-size: 0.86rem; color: var(--text); cursor: pointer; border: 0; border-inline-start: 3px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 4%, transparent)), var(--surface-2); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.sched-slot:hover, .sched-slot:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px -10px var(--c); filter: brightness(1.12); }
.sched-slot:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.sched-slot[hidden] { display: none; }
.sched-slot .t { color: var(--c); }
.sched-time { display: flex; justify-content: space-between; gap: 6px; font-size: 0.8rem; }
.sched-slot .meta { display: block; }
.sched-spots { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); }
.sched-spots.is-low { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); }
.sched-spots.is-full { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
.sched-today { font-size: 0.7rem; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #10140a); letter-spacing: 0; }
.sched-types .chip { cursor: pointer; background: none; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; }
.sched-types .chip.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #10140a; }
.sched-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip.on .sched-dot { background: #10140a; }
.sched-dialog { width: min(460px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.3); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); overflow: hidden auto; max-height: calc(100dvh - 32px); }
.sched-dialog::backdrop { background: rgba(5, 7, 10, 0.66); backdrop-filter: blur(4px); }
.sched-dialog[open] { animation: sched-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.sched-dialog[open]::backdrop { animation: fade-in 0.25s; }
@keyframes sched-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
.sched-dialog-bar { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.sched-dialog h2 { margin: 4px 0 4px; font-size: 1.6rem; padding-inline-end: 34px; }
.sched-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sched-close:hover { border-color: var(--c); color: var(--c); }
.sched-fill { margin: 14px 0 18px; display: grid; gap: 6px; }
@media (max-width: 560px) { .sched-dialog { margin: auto auto 16px; } }
@media (prefers-reduced-motion: reduce) { .sched-dialog[open] { animation: none; } .sched-slot:hover { transform: none; } }
