/* BedWorkouts — night-sky theme.
   Dark ("Lights off") is the default; "Lights on" is a soft lavender morning.
   Tokens first, components after. No build step. */

:root {
  --bg-0: #080b1e;
  --bg-1: #0d1230;
  --bg-2: #111739;
  --card: #131a3d;
  --card-2: #1b2452;
  --card-glass: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  --edge: rgba(180, 190, 255, .14);
  --edge-2: rgba(180, 190, 255, .24);
  --text: #f4f1fb;
  --text-2: #a7aed3;
  --text-3: #7078a1;
  --gold: #f0c96b;
  --gold-2: #f6d98a;
  --gold-ink: #1a1300;
  --gold-soft: rgba(240, 201, 107, .16);

  --belly: #f0a0c0;
  --waist: #f3b58a;
  --thighs: #b3a4f5;
  --glutes: #ff9e8a;
  --back: #7fb3e8;
  --arms: #86d8c6;
  --chest: #d6a6f2;
  --stretch: #9fc4ff;
  --full: #f0c96b;

  --danger: #ff8f8f;
  --ok: #8fe3b4;

  --shadow-far: 0 34px 60px -30px rgba(0,0,0,.72);
  --shadow-near: 0 8px 16px -10px rgba(0,0,0,.55);
  --radius: 20px;
  --radius-sm: 12px;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito", -apple-system, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;

  color-scheme: dark;
}

/* Lights on */
:root[data-theme="light"] {
  --bg-0: #f6f2fb;
  --bg-1: #efe7f8;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-2: #f4eefb;
  --card-glass: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.75));
  --edge: rgba(70, 50, 140, .12);
  --edge-2: rgba(70, 50, 140, .22);
  --text: #1d1838;
  --text-2: #57527a;
  --text-3: #8a86a6;
  --gold: #b9832a;
  --gold-2: #d9a548;
  --gold-ink: #fff;
  --gold-soft: rgba(185, 131, 42, .12);
  --belly: #c94f83;
  --waist: #c86a2c;
  --thighs: #6a55c9;
  --glutes: #d2513f;
  --back: #2f76b8;
  --arms: #1d8c76;
  --chest: #9b4fc4;
  --stretch: #3b6fd1;
  --full: #b9832a;
  --danger: #c43c3c;
  --ok: #1f8a54;
  --shadow-far: 0 30px 50px -32px rgba(60,40,120,.35);
  --shadow-near: 0 8px 16px -12px rgba(60,40,120,.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font: 400 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ----------------------------------------------------------- SKY BACKDROP */
.sky {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #1a2258 0%, transparent 55%),
    radial-gradient(ellipse 90% 50% at 85% 100%, #170f30 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #05070f 100%);
}
:root[data-theme="light"] .sky {
  background:
    radial-gradient(ellipse 110% 60% at 50% -10%, #ffffff 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 20%, #f9dfe9 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 0% 80%, #e2dcfb 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
:root[data-theme="light"] #stars { opacity: 0; }

/* ----------------------------------------------------------------- LAYOUT */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- TYPOGRAPHY */
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-family: var(--sans); font-weight: 750; font-size: 1.12rem; line-height: 1.3; letter-spacing: 0; }
h4 { font-family: var(--sans); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
p { margin: 0; }
.shine {
  background: linear-gradient(180deg, #ffffff 10%, #cfd4f2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .shine { background: linear-gradient(180deg, #241c4f, #4a3f86); -webkit-background-clip: text; background-clip: text; }
.serif-i { font-family: var(--serif); font-style: italic; color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-style: italic;
  letter-spacing: .12em; text-transform: uppercase; font-size: .86rem;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; }
.section-head { max-width: 680px; margin-bottom: 2.2rem; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: .9rem; color: var(--text-2); font-size: 1.06rem; }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.3rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 750; font-size: .97rem; letter-spacing: .01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  box-shadow: 0 12px 24px -10px rgba(240, 201, 107, .55);
}
.btn-ghost { background: var(--card-glass); border-color: var(--edge-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(240, 201, 107, .5); }
.btn-quiet { background: none; border: 0; padding-inline: .2rem; color: var(--gold); min-height: 0; }
.btn-quiet:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.04rem; }
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--edge); background: var(--card-glass);
  cursor: pointer; color: var(--text);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--edge-2); }

/* ------------------------------------------------------------------ CARDS */
.card {
  position: relative;
  background: var(--card-glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-far), var(--shadow-near);
  backdrop-filter: blur(6px);
}
.card-pad { padding: clamp(1.3rem, 3vw, 2rem); }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 750; letter-spacing: .02em;
  border: 1px solid var(--edge); color: var(--text-2); background: rgba(255,255,255,.03);
}
.pill-gold { color: var(--gold); border-color: rgba(240, 201, 107, .35); background: var(--gold-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: currentColor; box-shadow: 0 0 8px 1px currentColor; }
:root[data-theme="light"] .dot { box-shadow: none; }
.c-belly { color: var(--belly); } .c-waist { color: var(--waist); } .c-thighs, .c-thigh { color: var(--thighs); }
.c-glutes { color: var(--glutes); } .c-back { color: var(--back); } .c-arms { color: var(--arms); }
.c-chest { color: var(--chest); } .c-stretch { color: var(--stretch); } .c-full-body, .c-combo { color: var(--full); }
.c-bonus { color: var(--back); }

/* ----------------------------------------------------------------- HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--edge);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(240, 201, 107, .45); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  white-space: nowrap; text-decoration: none; padding: .55rem .85rem; border-radius: 999px;
  font-weight: 700; font-size: .93rem; color: var(--text-2);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(240, 201, 107, .12); box-shadow: inset 0 0 0 1px rgba(240, 201, 107, .3); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav .nav-cta { display: none; }
@media (max-width: 1000px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg-0); border-bottom: 1px solid var(--edge);
    box-shadow: var(--shadow-far);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 1rem; font-size: 1.02rem; }
  .nav .nav-cta { display: block; }
  .nav-toggle { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .header-sub { display: none; }
}
.header-sub { white-space: nowrap; }

/* ------------------------------------------------------------------- HERO */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 1.1rem; }
.hero .lede { margin-top: 1.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 2.4rem; }
.hero-proof strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; font-weight: 400; }
.hero-proof span { font-size: .86rem; color: var(--text-3); }
.moon-stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.moon-stage .halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(240, 201, 107, .22), transparent 62%);
  filter: blur(4px);
}
.moon-stage .avatar {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(240, 201, 107, .45);
  box-shadow: 0 0 0 10px rgba(240, 201, 107, .05), 0 0 90px -10px rgba(240, 201, 107, .35), var(--shadow-far);
}
.moon-stage .avatar img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(180, 190, 255, .18); animation: spin 120s linear infinite; }
.orbit.o2 { inset: 7%; border-style: solid; border-color: rgba(180, 190, 255, .08); animation-duration: 200s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; right: -2%; bottom: 4%; width: min(300px, 70%);
  padding: 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 86%, transparent);
  border: 1px solid var(--edge-2); box-shadow: var(--shadow-far);
  backdrop-filter: blur(12px);
}
.float-card .thumb { border-radius: 12px; }
.float-card strong { display: block; margin-top: .7rem; font-size: .95rem; line-height: 1.3; }
.float-left { left: -3%; right: auto; top: 6%; bottom: auto; width: auto; display: flex; gap: .6rem; align-items: center; padding: 10px 14px; }
@media (max-width: 520px) { .float-card { right: 0; width: 76%; } .float-left { left: 0; } }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } }

/* ----------------------------------------------------------- VIDEO CARDS */
.thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 14px;
  background: linear-gradient(135deg, var(--card-2), var(--card));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.thumb.is-missing::after {
  content: "bed workouts"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--text-3);
}
.badge {
  position: absolute; right: 8px; bottom: 8px;
  padding: .2rem .5rem; border-radius: 7px;
  background: rgba(6, 8, 22, .82); color: #fff; font-size: .76rem; font-weight: 800;
}
.badge-left { right: auto; left: 8px; background: var(--gold); color: #1a1300; }
.play-glyph {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #1a1300;
  background: linear-gradient(180deg, #f6d98a, #f0c96b);
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
}
.play-glyph svg { width: 22px; height: 22px; margin-left: 3px; }
.vcard { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.vcard:hover .thumb img, .vcard:focus-visible .thumb img { transform: scale(1.04); }
.vcard:hover .play-glyph, .vcard:focus-visible .play-glyph { opacity: 1; transform: scale(1); }
.vcard h3 { font-size: 1rem; line-height: 1.35; }
.vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; font-size: .82rem; color: var(--text-3); }
.vmeta .areas { display: inline-flex; gap: 5px; }
.vblurb { font-size: .9rem; color: var(--text-2); line-height: 1.5; }

/* scroll rail (playlists) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 18px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 520px) { .rail { grid-auto-columns: 78%; } }

/* ------------------------------------------------------------ AREA TILES */
.area-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
  min-height: 172px; padding: 1.3rem 1.3rem 1.2rem; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--edge); background: var(--card-glass);
  overflow: hidden; transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s;
}
.area-tile::before {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%;
  background: currentColor; opacity: .14; filter: blur(30px); transition: opacity .3s;
}
.area-tile:hover { transform: translateY(-3px); border-color: var(--edge-2); }
.area-tile:hover::before { opacity: .26; }
.area-tile .area-name { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--text); }
.area-tile .area-sub { font-size: .86rem; color: var(--text-2); margin-top: .35rem; }
.area-tile .area-count { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 750; color: var(--text-3); }

/* time tiles */
.time-tile {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  padding: 1.2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--edge);
  background: var(--card-glass); transition: transform .3s, border-color .3s;
}
.time-tile:hover { transform: translateY(-3px); border-color: rgba(240, 201, 107, .45); }
.time-tile strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 400; }
.time-tile strong small { font-size: 1rem; font-family: var(--sans); color: var(--text-3); margin-left: .2rem; }
.time-tile span { font-size: .88rem; color: var(--text-2); }

/* ------------------------------------------------------------------ CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 38px; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--edge); background: rgba(255,255,255,.025);
  font-size: .88rem; font-weight: 700; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--edge-2); color: var(--text); }
.chip[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.chip[aria-pressed="true"] .dot { color: var(--gold-ink) !important; box-shadow: none; }
.chip .count { font-size: .74rem; opacity: .7; }

/* filter bar */
.filter-bar {
  position: sticky; top: 70px; z-index: 30;
  background: color-mix(in srgb, var(--bg-0) 84%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge);
  padding: 14px 0;
}
.filter-bar .wrap { display: flex; flex-direction: column; gap: 12px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.filter-group > .label { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); min-width: 74px; }
.search-field { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.search-field input { padding-left: 42px; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .filter-bar { position: static; }
  .filter-toggle {
    display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
    min-height: 40px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--edge-2);
    background: var(--card-glass); font-weight: 750; cursor: pointer;
  }
  .filter-toggle .n { background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 0 .45rem; font-size: .76rem; }
  .filter-panel { display: none; flex-direction: column; gap: 12px; }
  .filter-panel.is-open { display: flex; }
  .filter-group > .label { min-width: 100%; }
}
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; color: var(--text-2); font-size: .92rem; }
.empty { padding: 60px 20px; text-align: center; color: var(--text-2); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--text-3); }

/* ------------------------------------------------------------------ FORMS */
.input {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  border-radius: 14px; border: 1px solid var(--edge-2);
  background: rgba(255,255,255,.04); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
:root[data-theme="light"] .input { background: #fff; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field + .field { margin-top: 1.5rem; }
.field > label, .field > .label { display: block; font-weight: 800; margin-bottom: .55rem; }
.hint { font-size: .86rem; color: var(--text-3); margin: -.25rem 0 .6rem; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: 12px;
  border: 1px solid var(--edge); cursor: pointer; font-size: .92rem; font-weight: 650;
}
.check input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.check:has(input:checked) { border-color: rgba(240, 201, 107, .55); background: var(--gold-soft); }
.signup { display: flex; gap: 10px; flex-wrap: wrap; }
.signup .input { flex: 1 1 240px; border-radius: 999px; padding-inline: 1.3rem; }
.form-msg { margin-top: .9rem; font-size: .92rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }

/* ---------------------------------------------------------------- NOTICES */
.notice { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--edge); background: rgba(255,255,255,.03); font-size: .92rem; color: var(--text-2); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }
.disclaimer { padding: 28px 0; border-top: 1px solid var(--edge); font-size: .88rem; color: var(--text-3); }
.disclaimer a { color: var(--gold); }

/* ----------------------------------------------------------------- MODAL */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(3, 4, 14, .78); backdrop-filter: blur(6px);
}
.modal[data-open="true"] { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-panel {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--edge-2); border-radius: 22px; box-shadow: var(--shadow-far);
}
.modal-video { aspect-ratio: 16 / 9; background: #000; border-radius: 22px 22px 0 0; overflow: hidden; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-body { padding: 1.3rem 1.5rem 1.6rem; }
.modal-body h3 { font-size: 1.2rem; }
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 0; color: #fff; background: rgba(0,0,0,.6);
}
.modal-close svg { width: 18px; height: 18px; }
.moves-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .9rem; }
.moves-list a { font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--edge); text-decoration: none; color: var(--text-2); }
.moves-list a:hover { border-color: var(--gold); color: var(--text); }

/* ---------------------------------------------------------------- DRAWER */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3, 4, 14, .6); backdrop-filter: blur(3px); animation: fade .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--edge-2); overflow-y: auto;
  padding: 28px 26px 40px; animation: slide .35s cubic-bezier(.22,1,.36,1);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-panel .modal-close { background: var(--card-2); color: var(--text); }
.steps { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 .9rem 2.4rem; line-height: 1.5; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(240, 201, 107, .35);
}
.cue { margin-top: .4rem; padding: .9rem 1rem; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(240, 201, 107, .25); font-size: .94rem; }
.cue strong { color: var(--gold); }

/* --------------------------------------------------------- EXERCISE CARDS */
.ex-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--edge); background: var(--card-glass);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s;
}
.ex-card:hover { transform: translateY(-3px); border-color: var(--edge-2); }
.ex-card .thumb { border-radius: 0; aspect-ratio: 16 / 8; }
.ex-card .thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 22, .75));
}
.ex-card .ex-pose { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: #fff; font-size: .78rem; font-weight: 800; display: flex; gap: .4rem; align-items: center; }
.ex-card .ex-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.ex-card h3 { font-size: 1.02rem; }
.ex-card p { font-size: .88rem; color: var(--text-2); line-height: 1.45; }
.ex-tile-art { position: absolute; inset: 0; display: grid; place-items: center; }
.ex-tile-art svg { width: 64px; height: 64px; opacity: .8; }

/* ------------------------------------------------------------ CALENDAR */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--edge); background: var(--card-glass); }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-2); }
.progress { display: flex; align-items: center; gap: 14px; }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
:root[data-theme="light"] .progress-bar { background: rgba(70,50,140,.1); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--belly), var(--thighs), var(--gold)); border-radius: inherit; transition: width .6s cubic-bezier(.22,1,.36,1); }
.week { margin-top: 56px; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--edge); }
.week-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.week-head h2 span { color: var(--gold); font-style: italic; }
.nights { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.night {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--edge); background: var(--card-glass);
  transition: border-color .3s, transform .3s;
}
.night:hover { transform: translateY(-2px); border-color: var(--edge-2); }
.night.is-done { border-color: rgba(143, 227, 180, .45); }
.night.is-milestone { border-color: rgba(240, 201, 107, .45); box-shadow: 0 0 0 1px rgba(240, 201, 107, .15), var(--shadow-far); }
.night-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; }
.night-num { display: flex; align-items: baseline; gap: .4rem; }
.night-num small { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.night-num strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; font-weight: 400; }
.night-tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: .4rem; align-items: center; }
.night .thumb { border-radius: 0; cursor: pointer; }
.night-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.night-body h3 { font-size: .94rem; line-height: 1.35; font-weight: 750; }
.night-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.done-btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
  border: 1px solid var(--edge-2); background: none; color: var(--text-2);
}
.done-btn svg { width: 14px; height: 14px; }
.done-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #062014; }
.bonus { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-2); background: none; border: 1px dashed var(--edge-2); border-radius: 10px; padding: .45rem .6rem; text-align: left; cursor: pointer; }
.bonus:hover { border-color: var(--back); color: var(--text); }
.bonus b { color: var(--back); }
.milestone-flag { position: absolute; top: 0; right: 14px; z-index: 2; padding: .25rem .55rem; border-radius: 0 0 8px 8px; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #1a1300; }

/* ------------------------------------------------------------ PROGRAMS */
.cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background:
    radial-gradient(circle at var(--mx, 78%) var(--my, 22%), rgba(255, 255, 255, .9) 0 7%, rgba(240, 201, 107, .55) 8%, transparent 22%),
    radial-gradient(ellipse 90% 70% at 20% 110%, var(--cover-a, #f0a0c0) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 100%, var(--cover-b, #b3a4f5) 0%, transparent 55%),
    linear-gradient(180deg, #121a48, #0a0d26);
  color: #fff;
}
.cover::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 40% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 8%, #fff 50%, transparent 51%);
}
.cover > * { position: relative; }
.cover .cover-k { font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.cover .cover-t { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.02; margin-top: .3rem; }
.cover .cover-n { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-size: 3.2rem; line-height: .9; opacity: .95; }
.cover .cover-n small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
.prog-card { display: flex; flex-direction: column; gap: 1rem; padding: 14px 14px 18px; text-decoration: none; }
.prog-card .pbody { padding: 0 6px; display: flex; flex-direction: column; gap: .55rem; }
.prog-card h3 { font-size: 1.12rem; }
.prog-card p { font-size: .92rem; color: var(--text-2); }
.session-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.session {
  display: grid; grid-template-columns: auto 132px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--edge); background: var(--card-glass);
}
.session .thumb { border-radius: 10px; cursor: pointer; }
.session .snum { font-family: var(--serif); font-size: 1.6rem; width: 2.2rem; text-align: center; color: var(--gold); }
.session h3 { font-size: .98rem; }
.session .rest { grid-column: 2 / 4; color: var(--text-3); font-style: italic; }
@media (max-width: 620px) {
  .session { grid-template-columns: auto 1fr; }
  .session .thumb { grid-column: 1 / -1; }
  .session .snum { display: none; }
  .session .rest { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------- PLAN (builder) */
.builder { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.builder-out { min-height: 480px; }
.out-empty { display: grid; place-items: center; text-align: center; min-height: 480px; padding: 40px 24px; color: var(--text-2); }
.out-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--gold); opacity: .8; }
.plan-head { padding: 1.6rem 1.6rem 1.2rem; border-bottom: 1px solid var(--edge); }
.plan-head h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.plan-head p { margin-top: .6rem; color: var(--text-2); }
.plan-body { padding: 1.2rem 1.6rem 1.6rem; }
.plan-block + .plan-block { margin-top: 1.4rem; }
.plan-block h4 { margin-bottom: .7rem; display: flex; gap: .5rem; align-items: center; }
.plan-ex { display: grid; grid-template-columns: 2rem 1fr auto; gap: 12px; align-items: start; padding: .75rem 0; border-top: 1px dashed var(--edge); }
.plan-ex:first-of-type { border-top: 0; }
.plan-ex .n { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; background: rgba(255,255,255,.05); border: 1px solid var(--edge); }
.plan-ex strong { display: block; }
.plan-ex .dose { font-size: .84rem; color: var(--text-3); }
.plan-ex button.link { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 750; font-size: .84rem; cursor: pointer; }
.timer { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--gold-soft); border: 1px solid rgba(240, 201, 107, .3); margin-top: 1.2rem; }
.timer .tclock { font-family: var(--serif); font-size: 2.6rem; line-height: 1; min-width: 4.5ch; }
.timer .tnow { font-weight: 800; }
.timer .tnext { font-size: .84rem; color: var(--text-2); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge-2); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }

/* ---------------------------------------------------------- PRODUCT CARDS */
.prod { display: flex; flex-direction: column; gap: 1rem; padding: 14px 14px 20px; }
.prod .pbody { padding: 0 6px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.price { display: flex; align-items: baseline; gap: .5rem; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.price s { font-size: 1.1rem; color: var(--text-3); }
.includes { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--text-2); }
.includes li { display: flex; gap: .55rem; }
.includes svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 4px; }

/* ---------------------------------------------------------------- PROMO */
.promo { overflow: hidden; padding: clamp(1.6rem, 4vw, 3.2rem); }
.promo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: .9rem 1.1rem; border-radius: 18px; font-size: .96rem; line-height: 1.5; max-width: 92%; }
.bubble.you { align-self: flex-end; background: var(--gold); color: var(--gold-ink); border-bottom-right-radius: 6px; font-weight: 650; }
.bubble.us { background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-bottom-left-radius: 6px; }
:root[data-theme="light"] .bubble.us { background: var(--card-2); }
.bubble.us ol { margin: .4rem 0 0; padding-left: 1.2rem; }

.cal-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-mini span { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; border: 1px solid var(--edge); color: var(--text-2); position: relative; }
.cal-mini span::after { content: ""; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cal-mini .belly { color: var(--belly); } .cal-mini .thigh { color: var(--thighs); } .cal-mini .combo { color: var(--gold); border-color: rgba(240,201,107,.4); }

/* ----------------------------------------------------------------- FOOTER */
.site-footer { margin-top: 40px; padding: 60px 0 30px; border-top: 1px solid var(--edge); background: color-mix(in srgb, var(--bg-0) 60%, #000 40%); }
:root[data-theme="light"] .site-footer { background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin-top: 1rem; color: var(--text-2); font-size: .93rem; max-width: 40ch; }
.site-footer ul { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer ul a { text-decoration: none; color: var(--text-2); font-size: .93rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--edge); font-size: .84rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; padding: .6rem 1rem; border-radius: 10px; background: var(--gold); color: #1a1300; font-weight: 800; }
.skip-link:focus { left: 8px; }

/* ----------------------------------------------------------- ENTRY ANIM */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ----------------------------------------------------------------- PRINT */
@media print {
  .site-header, .site-footer, .no-print, .sky, #stars, .filter-bar, .disclaimer { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; background: #fff; }
}
@media (max-width: 520px) { .hero-proof { gap: 12px 22px; } .hero-proof strong { font-size: 1.8rem; } .hero-proof span { font-size: .78rem; } }
