/* =========================================================
   D'sPinnacle Dome Academy — styles
   BRAND COLOURS ARE PLACEHOLDERS. To rebrand, change only the
   "Brand" tokens below; everything else derives from them.
   ========================================================= */
:root {
  /* Brand: sampled from the D'sPinnacle Dome logo */
  --brand-900: #2B0660;   /* headings, dark sections (logo lettering/deep fold) */
  --brand-700: #38006F;   /* logo deep purple */
  --brand-600: #8A25B5;   /* logo violet: primary buttons, links */
  --brand-500: #AA3ACE;   /* logo bright violet: accent headline */
  --brand-100: #F1E4FA;
  --brand-50:  #FAF4FD;
  --accent-500: #34C1BF;  /* logo ribbon teal */
  --accent-600: #22A3A1;
  --accent-blue: #339DC7; /* logo star blue */

  /* Programme colours (bar / tint / text) */
  --music: #8B3FD9;  --music-tint: #F4ECFD;  --music-ink: #6A22B5;
  --swim:  #0EA5C6;  --swim-tint:  #E5F7FB;  --swim-ink:  #076B82;
  --code:  #2563EB;  --code-tint:  #E8F0FE;  --code-ink:  #1D4ED8;
  --robot: #F97316;  --robot-tint: #FFF1E6;  --robot-ink: #B4490A;
  --home:  #16A34A;  --home-tint:  #E9F8EE;  --home-ink:  #15803D;

    --graphics: #DB2777; --graphics-tint: #FDECF4; --graphics-ink: #BE185D;
  --photo: #D97706;    --photo-tint: #FEF5E4;    --photo-ink: #92400E;

  /* Neutrals */
  --ink: #1B1840;
  --ink-2: #4A4868;
  --ink-3: #6B6987;
  --line: #E4E2EF;
  --surface: #FFFFFF;
  --surface-2: #F6F5FB;
  --danger: #C62828;
  --success: #1B7F3B;

  /* Type */
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(43, 6, 96, .06), 0 2px 8px rgba(43, 6, 96, .05);
  --shadow: 0 8px 30px rgba(43, 6, 96, .10);
  --shadow-lg: 0 24px 60px rgba(43, 6, 96, .16);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--brand-900); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--brand-900); color: #fff;
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease-out), color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.btn .icon { transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px rgba(138, 37, 181, .28); }
.btn--primary:hover { background: var(--brand-700); }
.btn--gold { background: var(--accent-500); color: var(--brand-900); }
.btn--gold:hover { background: var(--accent-600); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline { border-color: var(--brand-600); color: var(--brand-600); background: transparent; }
.btn--outline:hover { background: var(--brand-50); }
.btn--link { padding-inline: 4px; color: var(--brand-900); background: none; }
.btn--link:hover { color: var(--brand-600); }
.btn--link:hover .icon { transform: translateY(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-900); color: #fff; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.topbar a:hover { color: var(--accent-500); }
.topbar__promo { font-weight: 500; }
.topbar__badge { background: var(--accent-500); color: var(--brand-900); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.topbar__links { display: none; gap: 24px; }
@media (min-width: 768px) { .topbar__links { display: flex; } }
@media (max-width: 420px) { .topbar__promo { font-size: 13px; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 52px; height: 52px; object-fit: contain; }
.brand--light .brand__mark { background: #fff; border-radius: 14px; padding: 3px; }
@media (max-width: 479px) { .brand__mark { width: 44px; height: 44px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--brand-900); letter-spacing: -.01em; }
.brand__sub { font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brand-600); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--accent-500); }

.nav__list a { font-weight: 600; color: var(--brand-900); text-decoration: none; }
.nav__list a:hover { color: var(--brand-600); }

.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--brand-900); cursor: pointer; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Portal "Log in" button (visible on every screen size) */
.header-login { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--brand-600); border-radius: 12px; color: var(--brand-600); background: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none; }
.header-login:hover { background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 1023px) { .header__inner > .header-login { margin-left: auto; } }
@media (min-width: 1024px) { .header__inner > .nav { margin-left: auto; } .header__inner > .header-login { margin-left: 16px; } }
.header__inner > .brand { flex: none; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__list { gap: 14px; } .nav { gap: 14px; }
  .nav__list a { font-size: 15px; }
  .nav .btn { padding-left: 16px; padding-right: 16px; }
  .header__inner > .header-login { padding: 8px 10px; }
  .header__inner > .header-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 400px) {
  .header-login { padding: 8px 10px; }
  .header-login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header__inner { gap: 10px; }
}

/* Mobile nav panel */
@media (max-width: 1023px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
  .nav__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__cta { width: 100%; margin-top: 16px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 24px; }
  .nav__list { display: flex; gap: 22px; }
  .nav__list a, .nav__cta { white-space: nowrap; }
  .nav__list a { padding-block: 8px; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-600); transform: scaleX(0); transition: transform .2s var(--ease-out); }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__list a.is-active { color: var(--brand-600); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: #fff; padding-top: var(--s-7); overflow: hidden; isolation: isolate; }
.hero__grid { position: relative; display: grid; gap: var(--s-7); align-items: center; padding-bottom: var(--s-6); }
/* The tinted backdrop follows the hero content, so long text can never run past it. */
.hero__grid::before {
  content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
  top: -200px; bottom: -64px; background: linear-gradient(180deg, var(--brand-50) 0%, #F2EFFC 100%);
}
.hero__title { text-wrap: balance; }
.hero__lead { text-wrap: pretty; }
.eyebrow-plain { font-weight: 600; color: var(--ink-2); font-size: 15px; margin-bottom: var(--s-4); }
.hero__title { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__title-accent { display: block; color: var(--brand-500); }
.hero__lead { margin-top: var(--s-5); font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; line-height: 1.65; }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }

.hero__media { position: relative; padding: 24px 0 40px; }
.hero__ribbon { position: absolute; inset: -10% -20% 0 -10%; width: 130%; height: 110%; color: var(--brand-500); opacity: .9; z-index: 0; }
.hero__photo { position: relative; z-index: 1; margin: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; border: 6px solid #fff; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; color: var(--ink-2);
}
.hero__chip strong { color: var(--brand-900); font-size: 14px; }
.hero__chip--top { top: 0; left: -4px; }
.hero__chip--bottom { bottom: 12px; right: -4px; }
.hero__chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.hero__chip-icon--swim { background: var(--swim-tint); color: var(--swim-ink); }
.hero__chip-icon--code { background: var(--code-tint); color: var(--code-ink); }
.hero__promo {
  display: none; position: absolute; z-index: 3; right: 24px; bottom: -6px; align-items: center; gap: 12px;
  background: var(--accent-500); color: var(--brand-900); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 18px; border-radius: 12px 12px 0 0;
}
.hero__promo strong { font-weight: 800; }
.hero__promo-sep { width: 1px; height: 18px; background: rgba(43,6,96,.35); }
.hero__promo:hover { background: var(--accent-600); }

@media (min-width: 640px) {
  .hero__chip--top { left: -16px; top: 8px; }
  .hero__chip--bottom { right: -16px; bottom: 32px; }
}
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-8); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); }
  .hero__media { padding: 40px 0 72px; }
  .hero__photo { aspect-ratio: 5 / 5.2; }
  .hero__promo { display: inline-flex; }
}
/* Laptops and small desktops: keep the hero text compact and even. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__title { font-size: clamp(2.6rem, 5.2vw, 3.6rem); }
  .hero__lead { font-size: 1.08rem; line-height: 1.6; }
}

/* Stats card */
.stats-card {
  position: relative; z-index: 4; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: var(--s-5); display: grid; gap: var(--s-5); margin-bottom: var(--s-4);
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; text-align: center; }
.stat__value { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.4rem); color: var(--brand-900); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-3); font-size: 14px; }
.stats-card__divider { height: 1px; background: var(--line); }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prog-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .15s var(--ease-out), box-shadow .2s;
}
.prog-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prog-pill--music { background: var(--music-tint); color: var(--music-ink); }
.prog-pill--swim { background: var(--swim-tint); color: var(--swim-ink); }
.prog-pill--code { background: var(--code-tint); color: var(--code-ink); }
.prog-pill--robot { background: var(--robot-tint); color: var(--robot-ink); }
.prog-pill--home { background: var(--home-tint); color: var(--home-ink); }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .stats-card { grid-template-columns: 1.3fr auto 1fr; align-items: center; padding: var(--s-5) var(--s-6); }
  .stats-card__divider { width: 1px; height: 64px; }
  .pill-row { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(170,58,206,.55), transparent 70%); pointer-events: none; }

.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-3); }
.eyebrow--music { color: var(--music-ink); }
.eyebrow--swim { color: var(--swim-ink); }
.eyebrow--code { color: var(--code-ink); }
.eyebrow--gold { color: var(--accent-500); }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.section-title--light { color: #fff; }
.section-lead { margin-top: var(--s-4); font-size: 18px; color: var(--ink-2); max-width: 44em; }
.section-lead--light { color: #D9D4F5; }

/* ---------- Programme cards ---------- */
.cards { display: grid; gap: var(--s-5); }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  --bar: var(--brand-600); --tint: var(--brand-50); --ink-c: var(--brand-600);
  position: relative; display: flex; flex-direction: column; background: var(--tint); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(43,6,96,.06); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--bar); z-index: 2; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--music { --bar: var(--music); --tint: var(--music-tint); --ink-c: var(--music-ink); }
.card--swim  { --bar: var(--swim);  --tint: var(--swim-tint);  --ink-c: var(--swim-ink); }
.card--code  { --bar: var(--code);  --tint: var(--code-tint);  --ink-c: var(--code-ink); }
.card--robot { --bar: var(--robot); --tint: var(--robot-tint); --ink-c: var(--robot-ink); }
.card--home  { --bar: var(--home);  --tint: var(--home-tint);  --ink-c: var(--home-ink); }

.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--illus {
  display: grid; place-items: center; color: var(--bar);
  background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--bar) 22%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--bar) 18%, transparent) 0 24%, transparent 25%),
    repeating-linear-gradient(45deg, transparent 0 18px, color-mix(in srgb, var(--bar) 7%, transparent) 18px 19px),
    #fff;
}
.illus-icon { width: 38%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5) var(--s-5) var(--s-4); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-c); margin-bottom: var(--s-3); }
.card__title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.card__text { margin-top: var(--s-3); color: var(--ink-2); flex: 1; }
.card__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s-5); padding-top: var(--s-4);
  min-height: 48px; border-top: 1px solid rgba(43,6,96,.12); font-family: var(--font-head); font-weight: 700; color: var(--brand-900); text-decoration: none;
}
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card__link:hover { color: var(--ink-c); }
.card__link .icon { transition: transform .2s var(--ease-out); }
.card:hover .card__link .icon { transform: translateX(4px); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.card__link:focus-visible { outline: none; }

.card--cta { background: linear-gradient(150deg, var(--brand-600), var(--brand-900)); color: #fff; }
.card--cta::before { background: var(--accent-500); }
.card__body--cta { justify-content: center; gap: var(--s-3); padding: var(--s-6); }
.card--cta .card__title { color: #fff; }
.card--cta .card__text { color: #DCD6F7; flex: 0; margin-bottom: var(--s-4); }
.card--cta .btn { align-self: flex-start; }
.card__cta-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--accent-500); margin-bottom: var(--s-2); }

/* ---------- Programme details ---------- */
.details { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .details { gap: var(--s-9); } }
.detail { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .detail--flip .detail__media { order: 2; }
}
.detail__media--duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-4); align-items: end; }
.detail__media--duo img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.detail__media--duo img:first-child { aspect-ratio: 4 / 5; }
.detail__media--duo img:last-child { aspect-ratio: 1 / 1; margin-bottom: var(--s-7); }
.illus-crop--graphics { object-position: 12% center; }
.illus-crop--photo { object-position: 30% center; }
.detail__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: var(--s-4); }
.detail__copy > p { color: var(--ink-2); font-size: 17px; }
.detail__copy .btn { margin-top: var(--s-6); }

.checklist { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: 3px; color: #fff; background: var(--brand-600); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }

.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); margin-top: var(--s-5); counter-reset: none; }
@media (min-width: 560px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.levels li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-weight: 600; font-size: 14px; color: var(--brand-900); line-height: 1.35; }
.levels span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--swim-tint); color: var(--swim-ink); font-weight: 800; margin-bottom: 8px; }

.track-grid { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 560px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track { border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.track h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 6px; }
.track p { font-size: 15px; color: var(--ink-2); }
.track--code { background: var(--code-tint); } .track--code h3 { color: var(--code-ink); }
.track--robot { background: var(--robot-tint); } .track--robot h3 { color: var(--robot-ink); }

/* Graphics & photography additions */
.card--graphics { --bar: var(--graphics); --tint: var(--graphics-tint); --ink-c: var(--graphics-ink); }
.card--photo    { --bar: var(--photo);    --tint: var(--photo-tint);    --ink-c: var(--photo-ink); }
.prog-pill--graphics { background: var(--graphics-tint); color: var(--graphics-ink); }
.prog-pill--photo { background: var(--photo-tint); color: var(--photo-ink); }
.eyebrow--graphics { color: var(--graphics-ink); }
.track--graphics { background: var(--graphics-tint); } .track--graphics h3 { color: var(--graphics-ink); }
.track--photo { background: var(--photo-tint); } .track--photo h3 { color: var(--photo-ink); }
@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card__title { font-size: 1.5rem; }
  .card__body { padding: var(--s-5) var(--s-4) var(--s-4); }
}
.detail__media--illus { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-4); align-items: end; }
.illus-tile { --bar: var(--brand-500); display: grid; place-items: center; border-radius: var(--radius-lg); color: var(--bar);
  background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--bar) 22%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--bar) 18%, transparent) 0 24%, transparent 25%),
    repeating-linear-gradient(45deg, transparent 0 18px, color-mix(in srgb, var(--bar) 7%, transparent) 18px 19px), #fff;
  box-shadow: var(--shadow-sm); }
.illus-tile--graphics { --bar: var(--graphics); aspect-ratio: 4 / 5; }
.illus-tile--photo { --bar: var(--photo); aspect-ratio: 1 / 1; margin-bottom: var(--s-7); }

/* ---------- Centers & ways to learn ---------- */
.ways { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
.way__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--s-4); }
.way__icon--center { background: var(--brand-100); color: var(--brand-600); }
.way__icon--home { background: var(--home-tint); color: var(--home-ink); }
.way__icon--online { background: var(--code-tint); color: var(--code-ink); }
.way__title { font-size: 20px; margin-bottom: 6px; }
.way p { color: var(--ink-2); }

.centers { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 768px) { .centers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .centers { grid-template-columns: 1fr 1fr 1.1fr; } }
.centers__group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
.centers__region { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s-2); }
.centers__region:not(:first-child) { margin-top: var(--s-5); }
.centers__list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.centers__list li:last-child { border-bottom: 0; }
.centers__list strong { font-family: var(--font-head); font-size: 18px; color: var(--brand-900); }
.centers__list span { font-size: 14px; color: var(--ink-3); }
.bus-card { background: linear-gradient(150deg, var(--brand-600), var(--brand-900)); color: #DCD6F7; border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
@media (min-width: 768px) and (max-width: 1023px) { .bus-card { grid-column: 1 / -1; } }
.bus-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--accent-500); }
.bus-card__title { color: #fff; font-size: 24px; }
.bus-card .btn { margin-top: auto; }

/* ---------- Home lessons ---------- */
.home__grid { position: relative; display: grid; gap: var(--s-7); }
@media (min-width: 1024px) { .home__grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; } }
.home__intro .btn { margin-top: var(--s-6); }
.home__panels { display: grid; gap: var(--s-4); }
.panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: var(--s-5); }
.panel__title { color: #fff; font-size: 18px; margin-bottom: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; color: var(--brand-900); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.chips--outline li { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

.steps { position: relative; display: grid; gap: var(--s-4); margin-top: var(--s-8); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: var(--s-5); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); font-weight: 800; font-family: var(--font-head); margin-bottom: var(--s-4); }
.step__title { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* ---------- Features ---------- */
.features { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .25s, transform .25s var(--ease-out); }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--s-4); }
.feature__icon--music { background: var(--music-tint); color: var(--music-ink); }
.feature__icon--swim { background: var(--swim-tint); color: var(--swim-ink); }
.feature__icon--code { background: var(--code-tint); color: var(--code-ink); }
.feature__icon--home { background: var(--home-tint); color: var(--home-ink); }
.feature__title { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; gap: var(--s-3); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-4); } }
.gallery__item { border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }

/* Pinnacle from 2020 till date: featured videos + photo grid */
.journey .container { position: relative; z-index: 1; }
.journey__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-3); }
@media (min-width: 640px) { .journey__videos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); max-width: 760px; margin: 0 auto var(--s-5); } }
@media (min-width: 1024px) { .journey__videos { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: none; } }
.journey__video { min-width: 0; }
.journey__video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: 0 0 0 2px rgba(245,197,66,.55); }
.journey__caption { margin: var(--s-2) 0 0; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); text-align: center; }
.journey__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; grid-auto-flow: dense; gap: var(--s-3); }
@media (min-width: 768px) { .journey__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: var(--s-4); } }
.journey__item { min-width: 0; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.08); }
.journey__item--feature { grid-column: span 2; grid-row: span 2; }
.journey__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.journey__item:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .journey__item img { transition: none; } .journey__item:hover img { transform: none; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { position: relative; background: var(--brand-50); border-radius: var(--radius-lg); padding: var(--s-6) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.quote::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font-family: Georgia, serif; font-size: 88px; line-height: 1; color: var(--brand-100); }
.quote blockquote { margin: 0; font-size: 17px; color: var(--ink); flex: 1; position: relative; }
.quote__by { color: var(--ink-3); font-size: 15px; }
.quote__by strong { color: var(--brand-900); }
.quote__sample { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--robot-ink); background: var(--robot-tint); padding: 3px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .faq { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); } }
.faq__intro .btn { margin-top: var(--s-5); }
.faq__list { display: grid; gap: var(--s-3); }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; min-height: 56px;
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--brand-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--brand-600); transition: transform .25s var(--ease-out); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- Consultation ---------- */
.consult { background: linear-gradient(180deg, var(--surface-2), var(--brand-50)); }
.consult__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .consult__grid { grid-template-columns: .85fr 1.15fr; gap: var(--s-8); } }
.consult__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.consult__lead { margin-top: var(--s-5); font-size: 20px; color: var(--brand-900); font-weight: 500; }
.consult__text { margin-top: var(--s-3); color: var(--ink-2); }
.consult__free { margin-top: var(--s-5); display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-900); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--home); box-shadow: 0 0 0 4px var(--home-tint); }
.consult__photo { display: none; }
@media (min-width: 1024px) { .consult__photo { display: block; } }
.consult__photo { margin: var(--s-6) 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-100); max-width: 440px; }
.consult__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.consult__photo figcaption { padding: 14px; text-align: center; font-weight: 700; color: var(--brand-900); }
.contact-list { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.contact-list .icon { color: var(--brand-600); }
.contact-list a { color: var(--brand-900); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--brand-600); text-decoration: underline; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: var(--s-5); }
@media (min-width: 640px) { .form-card { padding: var(--s-7) var(--s-6); } }
.form-card__title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.form-card__sub { margin-top: 8px; color: var(--ink-2); }
.form-card__note { margin-top: var(--s-4); font-size: 14px; color: var(--ink-3); }
.form-card__fine { margin-top: var(--s-3); font-size: 13px; color: var(--ink-3); text-align: center; }
.req { color: var(--danger); }

.form-step { border: 0; margin: var(--s-6) 0 0; padding: 0; min-width: 0; }
.form-step + .form-step { border-top: 1px solid var(--line); padding-top: var(--s-6); }
.form-step__legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--brand-900); padding: 0; margin-bottom: var(--s-5); }
.form-step__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); font-size: 14px; font-weight: 800; }
.form-grid { display: grid; gap: var(--s-4) var(--s-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .choice-group legend { font-weight: 600; font-size: 15px; color: var(--brand-900); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #CFCCE0; border-radius: 12px; background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232B0660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #8C8AA6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(138,37,181,.15); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__error { font-size: 14px; color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }

.input-prefix { display: flex; align-items: stretch; border: 1.5px solid #CFCCE0; border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-prefix:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(138,37,181,.15); }
.field.has-error .input-prefix { border-color: var(--danger); }
.input-prefix__code { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border-right: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--brand-900); white-space: nowrap; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }

.choice-group { border: 0; margin: 0; padding: 0; }
.choice-group legend { margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid #CFCCE0; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: all .15s;
}
.choice:hover span { border-color: var(--brand-600); }
.choice input:checked + span { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.choice-group.has-error .choice span { border-color: var(--danger); }

.form-step + .btn, #consult-form > .btn { margin-top: var(--s-6); }
.form-error-summary { margin-top: var(--s-5); padding: var(--s-4); border: 2px solid var(--danger); border-radius: 12px; background: #FDECEC; color: var(--danger); }
.form-error-summary ul { margin-top: 6px; padding-left: 20px; list-style: disc; }
.form-error-summary a { color: var(--danger); font-weight: 600; }
.form-success { margin-top: var(--s-4); padding: var(--s-4); border-radius: 12px; background: var(--home-tint); color: var(--success); font-weight: 600; text-align: center; }

/* ---------- Register banner (home page) ---------- */
.section--tight { padding-block: var(--s-7); }
.enrol-band {
  position: relative; overflow: hidden; display: grid; gap: var(--s-5); align-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); border-radius: var(--radius-xl);
  padding: var(--s-6) var(--s-5); color: #DCD6F7;
}
.enrol-band::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -180px; border-radius: 50%; border: 48px solid rgba(52,193,191,.18); pointer-events: none; }
.enrol-band__title { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; }
.enrol-band__text { margin-top: var(--s-3); max-width: 38em; }
.enrol-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
@media (min-width: 900px) {
  .enrol-band { grid-template-columns: 1.4fr auto; padding: var(--s-7) var(--s-7); }
  .enrol-band__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Register page ---------- */
.page-register { background: var(--surface-2); }
.page-register .register { background: transparent; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-head); font-weight: 700; color: var(--brand-900); text-decoration: none; }
.back-link:hover { color: var(--brand-600); }
.page-register .register .section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-register .register { padding-top: var(--s-6); }
.brand__name { white-space: nowrap; }
@media (max-width: 479px) {
  .back-link__extra { display: none; }
}
@media (max-width: 1023px) {
  .page-register .register__steps, .page-register .register__help { display: none; }
  .page-register .register__grid { gap: var(--s-5); }
}
.footer--simple { padding-top: 0; }
.footer--simple .footer__bottom { border-top: 0; }

/* ---------- Payment page ---------- */
.page-payment { background: var(--surface-2); }
.pay { padding-block: var(--s-7) var(--s-8); }
.pay__head { max-width: 760px; }
.fees { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .fees { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fees { grid-template-columns: repeat(5, 1fr); } }
/* Online payments on/off (PAYMENT_CONFIG.onlineEnabled in main.js) */
.payments-offline .only-online, html:not(.payments-offline) .only-offline { display: none !important; }
.transfer-steps { margin: 0 0 var(--s-3); padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 1023px) { .fees > .fee:first-child { grid-column: 1 / -1; } }
.fee { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
.fee--featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow); }
.fee__badge { position: absolute; top: -12px; right: 16px; background: var(--accent-500); color: var(--brand-900); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.fee__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--s-3); }
.fee__icon--reg { background: var(--home-tint); color: var(--home-ink); }
.fee__icon--center { background: var(--brand-100); color: var(--brand-600); }
.fee__icon--combo { background: var(--music-tint); color: var(--music-ink); }
.fee__icon--home { background: var(--swim-tint); color: var(--swim-ink); }
.fee__name { font-size: 18px; }
.fee__price { margin-top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--brand-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fee__per { font-size: 14px; color: var(--ink-3); }
.fees__note { margin-top: var(--s-4); color: var(--ink-2); font-size: 15px; }
@media (max-width: 639px) {
  .fees { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .fee { padding: var(--s-4) var(--s-3); }
  .fee__icon { display: none; }
  .fee__name { font-size: 15px; }
  .fee__price { font-size: 22px; }
  .fee__per { font-size: 12.5px; line-height: 1.4; }
  .fee__badge { right: 8px; font-size: 11px; }
}

.pay__grid { display: grid; gap: var(--s-6); margin-top: var(--s-7); align-items: start; }
@media (min-width: 1024px) {
  .pay__grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); }
  .pay__side { position: sticky; top: calc(var(--header-h) + 24px); }
}
.pay #pay-form .form-step:first-of-type { margin-top: var(--s-5); }
.pay__grid > *, .register__grid > *, .consult__grid > * { min-width: 0; }
@media (max-width: 359px) { .form-card { padding: var(--s-4) var(--s-3); } .bank-card { padding: var(--s-4); } }
.consent__item--strong { font-weight: 600 !important; color: var(--brand-900) !important; }

.plan-options { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .plan-options { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan__box { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1.5px solid #CFCCE0; border-radius: 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.plan__box strong { font-family: var(--font-head); color: var(--brand-900); }
.plan__box small { color: var(--ink-3); font-size: 13px; }
.plan__box b { margin-top: 6px; font-family: var(--font-head); color: var(--brand-600); font-size: 18px; }
.plan:hover .plan__box { border-color: var(--brand-600); }
.plan input:checked + .plan__box { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(138,37,181,.15); }
.plan input:focus-visible + .plan__box { outline: 3px solid var(--brand-500); outline-offset: 2px; }

.pay__terms { margin-top: var(--s-6); }
.plan-options--method { grid-template-columns: 1fr; }
@media (min-width: 640px) { .plan-options--method { grid-template-columns: 1fr 1fr; } }
.transfer-box { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius); background: #F1FBFB; border: 1.5px solid var(--accent-500); display: grid; gap: var(--s-3); }
.transfer-box[hidden] { display: none; }
.transfer-box__bank { font-size: 15px; color: var(--ink-2); }
/* Official bank account, made easy to read and copy */
.acct-card { background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); color: #fff; border-radius: var(--radius); padding: var(--s-4) var(--s-5); display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.acct-card__label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-500); }
.acct-card__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.acct-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-card__key { font-size: 14px; color: rgba(255,255,255,.75); }
.acct-card__val { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: #fff; text-align: right; }
.acct-card__num { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2rem); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: #fff; user-select: all; -webkit-user-select: all; }
.acct-num--sm { font-size: 18px; letter-spacing: .08em; color: var(--brand-900); }
.acct-card .copy-btn { background: var(--accent-500); border-color: var(--accent-500); color: var(--brand-900); }
.acct-card .copy-btn:hover { background: #fff; }
.copy-btn--lg { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.copy-btn.is-copied { background: #2E9E6B !important; border-color: #2E9E6B !important; color: #fff !important; }
@media (max-width: 479px) {
  .acct-card__row { flex-direction: column; align-items: flex-start; }
  .acct-card__val { text-align: left; }
}
.transfer-box input[type=file] { padding: 10px; border: 1.5px dashed #9FD9D8; border-radius: 12px; background: #fff; width: 100%; min-height: 0; }
.bank-card__alt { font-size: 14px; color: var(--ink-3); text-align: center; }
.summary { margin-top: var(--s-5); border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.summary__title { font-size: 16px; margin-bottom: var(--s-2); }
.summary__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary__empty { color: var(--ink-3); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px dashed #CFCCE0; font-weight: 600; color: var(--brand-900); }
.summary__total strong { font-family: var(--font-head); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
#pay-form > .btn { margin-top: var(--s-5); }
.btn:disabled { opacity: .6; cursor: progress; }
.pay__secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s-3); font-size: 13px; color: var(--ink-3); text-align: center; }
.form-error-banner a { color: var(--danger); font-weight: 700; }

.receipt { margin: 0 auto var(--s-6); max-width: 420px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt div:last-child { border-bottom: 0; }
.receipt dt { color: var(--ink-3); }
.receipt dd { margin: 0; font-weight: 600; color: var(--brand-900); text-align: right; overflow-wrap: anywhere; }

.portal-creds { margin: 0 auto var(--s-5); max-width: 460px; text-align: left; }
.portal-creds__card { border: 2px solid var(--accent-500); background: #F1FBFB; border-radius: var(--radius); padding: var(--s-4); display: grid; gap: var(--s-3); }
.portal-creds__card h3 { font-size: 18px; }
.portal-creds__card .receipt { margin: 0; background: #fff; }
.portal-creds__card .receipt dd { font-size: 18px; letter-spacing: .04em; }
.portal-creds__wait { color: var(--ink-3); text-align: center; }
.portal-creds__err { color: var(--danger); background: #FDECEC; border-radius: 10px; padding: 12px; }
.bank-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); display: grid; gap: var(--s-3); }
.bank-card__title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.bank-card__title .icon { color: var(--brand-600); }
.bank-card > p { color: var(--ink-2); }
.bank-details { margin: 0; background: var(--brand-50); border-radius: var(--radius); padding: var(--s-2) var(--s-4); }
.bank-details div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--brand-100); }
.bank-details div:last-child { border-bottom: 0; }
.bank-details dt { color: var(--ink-3); font-size: 14px; }
.bank-details dd { margin: 0; font-weight: 700; color: var(--brand-900); text-align: right; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.bank-details .is-missing { color: var(--ink-3); font-weight: 500; font-style: italic; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--brand-600); border-radius: 8px; background: #fff; color: var(--brand-600); font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: var(--brand-50); }
.bank-steps { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.bank-card__warn { font-size: 13px; color: var(--robot-ink); background: var(--robot-tint); border-radius: 10px; padding: 10px 12px; }
.pay-help { margin-top: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4) var(--s-5); }
.pay-help h3 { font-size: 17px; margin-bottom: 4px; }
.pay-help p { color: var(--ink-2); }

/* ---------- Legal / terms page ---------- */
.page-legal { background: var(--surface-2); }
.legal { padding-block: var(--s-7) var(--s-8); }
.legal__head { max-width: 760px; }
.legal__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
.legal__meta { margin-top: var(--s-3); color: var(--ink-3); font-size: 15px; }
.legal__intro { margin-top: var(--s-4); font-size: 18px; color: var(--ink-2); }
.legal__print { margin-top: var(--s-5); }

.key-terms { margin-top: var(--s-6); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent-500); border-radius: var(--radius-lg); padding: var(--s-5); max-width: 900px; }
.key-terms h2 { font-size: 20px; margin-bottom: var(--s-4); }
.key-terms ul { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .key-terms ul { grid-template-columns: 1fr 1fr; } }
.key-terms li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.key-terms li strong { color: var(--brand-900); }
.key-terms .icon { margin-top: 3px; color: #fff; background: var(--brand-600); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 3; }
.key-terms__note { margin-top: var(--s-4); font-size: 14px; color: var(--ink-3); }

.legal__body { display: grid; gap: var(--s-6); margin-top: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .legal__body { grid-template-columns: 260px 1fr; gap: var(--s-7); } }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; } }
.toc__title { font-size: 16px; margin-bottom: var(--s-3); }
.toc ol { list-style: decimal; padding-left: 22px; display: grid; gap: 2px; color: var(--ink-3); font-size: 14px; }
.toc a { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand-600); text-decoration: underline; }
@media (max-width: 1023px) {
  .toc ol { columns: 2; column-gap: var(--s-5); display: block; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); max-width: 820px; }
@media (min-width: 768px) { .prose { padding: var(--s-7); } }
.prose section + section { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.prose h2 { font-size: 22px; margin-bottom: var(--s-3); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose p { color: var(--ink-2); line-height: 1.7; }
.prose p + p { margin-top: var(--s-3); }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.callout { background: var(--brand-50); border-left: 4px solid var(--brand-600); border-radius: var(--radius-sm); padding: var(--s-4); margin: 0 0 var(--s-3); }
.callout p + p { margin-top: var(--s-2); }
.legal__cta { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.legal__cta p { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--brand-900); }

.terms-link { font-weight: 700; }
.terms-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); gap: var(--s-3); }
.terms-box__title { font-family: var(--font-head); font-weight: 700; color: var(--brand-900); }
.terms-box__list { list-style: disc; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.consent__item a { font-weight: 700; }
.consent.has-error .consent__item span { color: var(--danger); }

@media print {
  .header, .footer, .wa-float, .legal__print, .toc, .legal__cta, .skip-link { display: none !important; }
  body, .page-legal { background: #fff; }
  .legal__body { display: block; margin-top: 16px; }
  .prose, .key-terms { border: 0; padding: 0; max-width: none; box-shadow: none; }
  .prose section { break-inside: avoid-page; }
  .prose p, .prose li { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Registration ---------- */
.register { background: #fff; }
.register__grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) {
  .register__grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-8); }
  .register__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.register__steps { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.register__steps li { display: flex; gap: 14px; align-items: flex-start; }
.register__steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); font-weight: 800; font-family: var(--font-head); }
.register__steps strong { color: var(--brand-900); font-family: var(--font-head); }
.register__steps p { color: var(--ink-2); font-size: 15px; }
.register__help { margin-top: var(--s-6); color: var(--ink-2); }
.register__help a { font-weight: 700; }

.consent { gap: var(--s-3); }
.consent__item { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; color: var(--ink-2) !important; cursor: pointer; }
.consent__item input { flex: none; width: 22px; height: 22px; min-height: 0; margin-top: 1px; accent-color: var(--brand-600); }
.consent.has-error .consent__item:last-of-type span { color: var(--danger); }

.form-error-banner { margin-top: var(--s-4); padding: var(--s-4); border-radius: 12px; background: #FDECEC; color: var(--danger); font-weight: 500; }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reg-success { text-align: center; padding: var(--s-6) 0; }
.reg-success:focus { outline: none; }
.reg-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--home-tint); color: var(--success); margin-bottom: var(--s-4); }
.reg-success__icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.reg-success__text { margin: var(--s-3) auto var(--s-6); color: var(--ink-2); max-width: 32em; }
.reg-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.legend-hint { font-weight: 500; color: var(--ink-3); font-size: 14px; }
.sub-question { padding: var(--s-4); border-radius: var(--radius); background: var(--brand-50); border-left: 4px solid var(--brand-500); }
.sub-question[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { background: #1C0340; color: #C9C3EE; padding-top: var(--s-8); }
.footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer__brand p { margin-top: var(--s-4); max-width: 30em; font-size: 15px; }
.footer__heading { color: #fff; font-size: 16px; margin-bottom: var(--s-4); }
.footer__links { display: grid; gap: 6px; }
.footer__links a { color: #C9C3EE; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon { color: var(--accent-500); }
.socials { display: flex; gap: 10px; margin-top: var(--s-5); }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand-600); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer__bottom a { color: #C9C3EE; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 16px; border-radius: 999px; background: #1FA855; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 30px rgba(31,168,85,.4); transition: transform .2s var(--ease-out);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float__label { display: none; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; padding: 0 20px; } .wa-float__label { display: inline; } }

/* Stacked floating buttons: Register now (top), Music Market, Chat with us */
.float-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.float-stack .wa-float { position: static; }
.float-stack .wa-float--register { background: #7C3AED; box-shadow: 0 10px 30px rgba(124,58,237,.4); }
.float-stack .wa-float--market { background: linear-gradient(135deg, #F97316, #EA580C); box-shadow: 0 10px 30px rgba(234,88,12,.4); }
.float-stack .wa-float__icon { width: 24px; height: 24px; flex: none; }
@media (min-width: 768px) { .float-stack { right: 24px; bottom: 24px; } }
/* Mobile: icons by default; labels slide out while .is-expanded (5s, every 20s) */
@media (max-width: 767.98px) {
  .float-stack .wa-float { gap: 0; transition: gap .35s var(--ease-out), padding .35s var(--ease-out), transform .2s var(--ease-out); }
  .float-stack .wa-float__label {
    display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .4s var(--ease-out), opacity .3s ease;
  }
  .float-stack.is-expanded .wa-float { gap: 10px; padding: 0 20px 0 16px; }
  .float-stack.is-expanded .wa-float__label { max-width: 160px; opacity: 1; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .float-stack .wa-float, .float-stack .wa-float__label { transition: none; }
}
@media print { .float-stack { display: none !important; } }

/* ---------- Reveal on scroll ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

/* ---------- Music Market teaser (home page; full styles in market.css) ---------- */
.mk-home-kinds { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); margin-top: var(--s-6); }
@media (min-width: 900px) { .mk-home-kinds { grid-template-columns: repeat(4, 1fr); } }
.mk-home-kinds a { display: grid; gap: 4px; height: 100%; padding: var(--s-4) var(--s-5); border-radius: var(--radius-lg); text-decoration: none; background: var(--music-tint); border: 1px solid transparent; transition: transform .2s var(--ease-out), border-color .2s; }
.mk-home-kinds a:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.mk-home-kinds li:nth-child(2) a { background: var(--home-tint); }
.mk-home-kinds li:nth-child(3) a { background: var(--robot-tint); }
.mk-home-kinds li:nth-child(4) a { background: var(--swim-tint); }
.mk-home-kinds strong { font-family: var(--font-head); font-size: 20px; color: var(--brand-900); }
.mk-home-kinds span { color: var(--ink-2); font-size: 14px; }
.mk-home-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: var(--s-5); }
.mk-home-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.mk-home-card:hover { box-shadow: var(--shadow); }
.mk-home-card__img { background: var(--brand-50); display: grid; place-items: center; min-height: 96px; }
.mk-home-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mk-home-card__img b { font-size: 12px; color: var(--brand-600); text-align: center; padding: 6px; }
.mk-home-card__body { display: grid; gap: 2px; padding: 10px 12px 10px 0; align-content: center; min-width: 0; }
.mk-home-card__body strong { line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mk-home-card__kind, .mk-home-card__by { font-size: 12px; color: var(--ink-3); }
.mk-home-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: var(--s-6); }
.mk-home-note { flex-basis: 100%; display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 14px; }

/* ---------- Music Market theme: black, orange & red ----------
   Applied with .mk-theme on market.html, market-terms.html and the home page
   #music-market section. Re-points the brand tokens so every component follows. */
.mk-theme {
  --brand-900: #111111;   /* black: headings, dark panels */
  --brand-700: #B91C1C;   /* deep red: hover, prices, emphasis */
  --brand-600: #C2410C;   /* orange: primary buttons, links (AA on white) */
  --brand-500: #F97316;   /* bright orange: accents, borders */
  --brand-100: #FFE3CF;
  --brand-50:  #FFF5EE;
  --accent-500: #DC2626;  /* red */
  --accent-600: #B91C1C;
  --ink: #141414;
  --surface-2: #F7F5F3;
  --line: #E8E2DD;
  --music-tint: #FFF1E6; --home-tint: #FDECEC; --robot-tint: #FFF6E0; --swim-tint: #F2F2F2;
}
.mk-theme .btn--primary { background: linear-gradient(135deg, #EA580C, #DC2626); box-shadow: 0 6px 18px rgba(220, 38, 38, .28); }
.mk-theme .btn--primary:hover { background: linear-gradient(135deg, #C2410C, #B91C1C); }
#music-market.mk-theme .eyebrow { background-image: linear-gradient(90deg, #EA580C, #DC2626) !important; }
#music-market.mk-theme .eyebrow .icon { color: #EA580C; }
.mk-theme .btn--outline { border-color: #111; color: #111; }
.mk-theme .btn--outline:hover { background: #111; color: #fff; }
.mk-theme .footer, .mk-theme.footer { background: #0B0B0B; color: #CFCFCF; }
.mk-theme .footer a { color: #FDBA74; }
.mk-theme .header { background: rgba(14, 14, 14, .97); border-bottom-color: #2A2A2A; }
.mk-theme .header .brand__name { color: #fff; }
.mk-theme .header .brand__sub { color: #FB923C; }
.mk-theme .header a:not(.btn), .mk-theme .header .btn--link { color: #F3F3F3; }
.mk-theme .header .btn--outline { border-color: #FB923C; color: #FB923C; }
.mk-theme .header .btn--outline:hover { background: #FB923C; color: #111; }
.mk-theme .header .mk-top > a.is-active, .mk-theme .header .mk-top > a:hover { color: #fff; background: #2A2A2A; }
.mk-theme .header .mk-menu a { color: var(--ink); }
/* Floating market buttons */
.float-stack .wa-float--post { background: linear-gradient(135deg, #F97316, #EA580C); box-shadow: 0 10px 30px rgba(234, 88, 12, .4); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.float-stack .wa-float--join { background: #DC2626; box-shadow: 0 10px 30px rgba(220, 38, 38, .4); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.float-stack .wa-float--dark { background: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* ---------- Music Market day / night toggle ---------- */
.mk-mode-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3A3A3A; background: #1C1C1C; color: #FDBA74; cursor: pointer; padding: 0; flex: none; }
.mk-mode-btn:hover { background: #2A2A2A; }
.mk-mode-btn:focus-visible { outline: 3px solid #FB923C; outline-offset: 2px; }
.mk-mode-btn svg { width: 20px; height: 20px; }
.mk-mode-btn .mk-mode-sun { display: none; }
html[data-mk-mode="dark"] .mk-mode-btn .mk-mode-sun { display: block; }
html[data-mk-mode="dark"] .mk-mode-btn .mk-mode-moon { display: none; }

/* ---------- Music Market night mode ---------- */
html[data-mk-mode="dark"] { color-scheme: dark; }
html[data-mk-mode="dark"] body.mk-theme {
  --surface: #161616; --surface-2: #0C0C0C; --line: #2C2C2C;
  --ink: #F3F3F3; --ink-2: #CFCFCF; --ink-3: #A3A3A3;
  --brand-900: #FFFFFF; --brand-700: #F87171; --brand-600: #FB923C; --brand-500: #F97316;
  --brand-100: #3B1F0E; --brand-50: #1F140D;
  --music-tint: #24170E; --home-tint: #2A1414; --robot-tint: #262011; --swim-tint: #1E1E1E;
  --home-ink: #86EFAC; --robot-ink: #FDBA74; --swim-ink: #93C5FD;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5); --shadow: 0 8px 24px rgba(0,0,0,.55); --shadow-lg: 0 20px 50px rgba(0,0,0,.7);
  background: var(--surface-2); color: var(--ink);
}
html[data-mk-mode="dark"] .mk-theme .btn--outline { border-color: #E5E5E5; color: #F3F3F3; }
html[data-mk-mode="dark"] .mk-theme .btn--outline:hover { background: #F3F3F3; color: #111; }
html[data-mk-mode="dark"] .mk-theme input, html[data-mk-mode="dark"] .mk-theme select, html[data-mk-mode="dark"] .mk-theme textarea { color: var(--ink); background: var(--surface); }
html[data-mk-mode="dark"] .mk-theme .mk-modal { background: var(--surface); color: var(--ink); }
html[data-mk-mode="dark"] .mk-theme .mk-modal__close { color: var(--ink); }
html[data-mk-mode="dark"] .mk-theme .mk-alert, html[data-mk-mode="dark"] .mk-theme .mk-error, html[data-mk-mode="dark"] .mk-theme .mk-verify--rejected, html[data-mk-mode="dark"] .mk-theme .mk-st--disabled { background: #3A1414; color: #FCA5A5; }
html[data-mk-mode="dark"] .mk-theme .mk-tip, html[data-mk-mode="dark"] .mk-theme .mk-verify--pending, html[data-mk-mode="dark"] .mk-theme .mk-st--suspended { background: #2E2410; color: #FCD34D; }
html[data-mk-mode="dark"] .mk-theme .mk-safe--small { background: #241C0C; border-color: #5C4514; }
html[data-mk-mode="dark"] .mk-theme .mk-safe--small h2 { color: #FCD34D; }
html[data-mk-mode="dark"] .mk-theme .mk-stars, html[data-mk-mode="dark"] .mk-theme .mk-rate label { color: #4A4A4A; }
html[data-mk-mode="dark"] .mk-theme .mk-card__noimg, html[data-mk-mode="dark"] .mk-theme .mk-gallery--none { opacity: .8; }
html[data-mk-mode="dark"] .mk-theme .mk-bubble--me { background: #C2410C; border-color: #C2410C; }
html[data-mk-mode="dark"] .mk-theme .mk-toast { background: #F3F3F3; color: #111; }
html[data-mk-mode="dark"] .mk-theme .mk-toast[data-type="error"] { background: #DC2626; color: #fff; }
html[data-mk-mode="dark"] .mk-theme .mk-hero { background: radial-gradient(120% 140% at 100% 0%, rgba(234, 88, 12, .4), transparent 55%), linear-gradient(135deg, #000, #141414 55%, #5B1414); }
/* terms page in night mode */
html[data-mk-mode="dark"] .mk-theme .key-terms, html[data-mk-mode="dark"] .mk-theme .toc, html[data-mk-mode="dark"] .mk-theme .prose { background: var(--surface); }
html[data-mk-mode="dark"] .mk-theme .callout { background: #1F140D; }
@media print { html[data-mk-mode="dark"] body.mk-theme { --surface: #fff; --surface-2: #fff; --ink: #111; --ink-2: #333; --ink-3: #555; --brand-900: #111; } .mk-mode-btn { display: none !important; } }
