/* H.E.R. Empire Academy — Glamorous Confidence 2.0 design system.
   Palette ONLY: hot pink, blush, white, black, silver. */
:root {
  /* GC 2.0 TOKENS — single source of truth. Palette ONLY: hot pink, blush,
     white, black, silver. Never introduce another hue. Values below are the
     shipped values; components consume var(--*) and never re-declare them. */
  /* Colour — core */
  --pink: #E9258A;
  --pink-deep: #B80F6B;
  --pink-bright: #FF5FB0;
  --pink-soft: #FFE3EF;
  --pink-pale: #F6DDE9;
  --blush: #FDE7F1;
  --blush-soft: #FFF5F9;
  --white: #FFFFFF;
  --ink: #1A1218;
  --ink-soft: #5A5258;
  --black: #141014;
  --silver: #767B8C;
  --silver-light: #8A8FA0;
  /* Colour — tints / surfaces derived from the core palette (same hues) */
  --surface-card: #FFFDFE;
  --surface-grey: #F4F4F7;
  --muted-on-dark: #D9D9E0;
  --gate-page: #E9A9C2;
  --gate-top: #F4C3D6;
  --gate-mid: #E59BB6;
  --gate-bottom: #CE7FA0;
  --gate-card-top: #1E151D;
  /* Typography — Inter (body) + Playfair Display (serif) + Great Vibes (script).
     Script is DECORATIVE ONLY: never buttons, menus, forms, lesson text,
     prices, or critical content. No new font weights/families. */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-script: "Great Vibes", "Playfair Display", cursive;
  /* Type scale (fluid headings use clamp() at the point of use) */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-md: 1.05rem;
  --text-lg: 1.25rem;
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  /* Radii */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  /* Shadows (ink-tinted; pink-tinted glows use the same two pinks) */
  --shadow: 0 8px 24px rgba(20, 16, 20, 0.08);
  --shadow-lift: 0 12px 28px rgba(184, 15, 107, 0.12);
  --shadow-card-hover: 0 14px 30px rgba(184, 15, 107, 0.14);
  /* Motion — refined only. The single prefers-reduced-motion block below
     disables ALL of these. */
  --transition-fast: 0.18s ease;
  --transition-base: 0.2s ease;
  --transition-panel: 0.25s ease;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--blush-soft); line-height: 1.6; overflow-x: hidden;
}
a { color: var(--pink-deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--black);
  color: var(--white); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.site-header {
  background: var(--white); border-bottom: 1px solid var(--silver-light);
  position: sticky; top: 0; z-index: 50;
}
.header-inner, .page, .site-footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1rem;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); text-decoration: none; }
.brand span { color: var(--pink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius-pill);
}
.main-nav a[aria-current="page"] { background: var(--blush); color: var(--pink-deep); }
.auth-state { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.page { padding: 2rem 1rem 3rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); }
.cover-words { letter-spacing: 0.3em; font-weight: 700; color: var(--pink-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.75rem 1.5rem; border-radius: var(--radius-pill); border: 0;
  cursor: pointer; font: inherit; font-weight: 700; text-decoration: none;
}
.btn-primary {
  background: var(--pink-deep);
  color: var(--white); box-shadow: 0 6px 18px rgba(184, 15, 107, 0.35);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--silver); }
.btn-danger { background: var(--white); color: var(--pink-deep); border: 1px solid var(--silver); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-card) 100%);
  border: 1px solid var(--silver-light); border-top: 3px solid var(--pink);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card h2, .card h3 { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.15em; font-size: var(--text-xs);
  font-weight: 700; color: var(--pink-deep); }
.muted { color: var(--ink-soft); }
.notice {
  background: var(--blush); border: 1px solid var(--silver);
  border-radius: var(--radius-md); padding: 1rem; margin: 1rem 0;
}
.notice-dark { background: var(--black); color: var(--white); }
.notice-dark .muted { color: var(--muted-on-dark); }
.pill {
  display: inline-block; background: var(--blush); color: var(--pink-deep);
  border-radius: var(--radius-pill); padding: 0.25rem 0.75rem; font-size: var(--text-sm); font-weight: 600;
}
form { display: grid; gap: 0.9rem; max-width: 560px; }
label { font-weight: 600; display: grid; gap: 0.35rem; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.85rem; font: inherit;
  border: 1px solid var(--silver); border-radius: var(--radius-sm); background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-error { color: var(--pink-deep); font-weight: 600; }
.form-ok { color: var(--ink); font-weight: 600; }
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab-btn {
  min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--silver); background: var(--white); font: inherit; font-weight: 600;
}
.tab-btn[aria-selected="true"] { background: var(--pink-deep); color: var(--white); border-color: var(--pink-deep); }
.tab-panel[hidden] { display: none; }
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: end; }
.filters label { min-width: 160px; flex: 1; }
.filters input[type="search"] { flex: 2; }
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.lesson-item {
  background: var(--white); border: 1px solid var(--silver-light);
  border-radius: var(--radius-md); padding: 1rem; display: flex; flex-wrap: wrap;
  gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between;
}
.lesson-item a { font-weight: 700; text-decoration: none; color: var(--ink); font-size: var(--text-md); }
.message-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.message { background: var(--white); border: 1px solid var(--silver-light);
  border-radius: var(--radius-md); padding: 1rem; }
.message footer { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.site-footer { background: var(--black); color: var(--white); padding: 2rem 0; }
.site-footer a { color: var(--white); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.empty { color: var(--ink-soft); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
/* SINGLE reduced-motion block: covers every animation/transition on the
   site (including the two gate keyframes below). Do not add a second one —
   extend this block if a future animation needs explicit handling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .page { padding: 1.25rem 1rem 2.5rem; }
}

/* ---- NEW homepage (Glamorous Confidence 2.0) ---- */
.hero-luxe {
  background:
    radial-gradient(circle at 12% 8%, rgba(233, 37, 138, 0.14), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(233, 37, 138, 0.12), transparent 45%),
    linear-gradient(135deg, var(--white) 0%, var(--blush) 55%, var(--blush-soft) 100%);
  border: 1px solid var(--silver-light);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-luxe h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 0.5rem;
}
.hero-luxe .tagline { font-size: clamp(1.05rem, 3.4vw, 1.35rem); font-weight: 700; }
.hero-purpose {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  font-weight: 600;
  max-width: 42rem;
  margin: 1rem auto;
}
.btn-large { min-height: 52px; padding: 0.9rem 1.75rem; font-size: 1.05rem; }
.journey-strip {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 1rem; counter-reset: journey;
}
.journey-strip li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-top: 4px solid var(--pink);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  box-shadow: var(--shadow);
}
.journey-strip h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.journey-strip p { margin: 0; }
.journey-num {
  position: absolute; left: 1rem; top: 1.1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink-deep);
  color: var(--white); font-weight: 700; font-size: 1.05rem;
}
.path-card { display: flex; flex-direction: column; }
.path-card p:last-child { margin-top: auto; padding-top: 0.75rem; }
@media (min-width: 640px) {
  .journey-strip { grid-template-columns: 1fr 1fr; }
  .hero-luxe { padding: 3.5rem 2.5rem 3rem; }
}
@media (min-width: 900px) {
  .journey-strip { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* --- Course page: benefits personalization + video preview (Benefits + Video Gate pass) --- */
.benefits-list { margin: 0; }
.benefit-point { padding: 0.6rem 0.75rem; border-radius: 0.5rem; border-left: 3px solid transparent; }
.benefit-point + .benefit-point { margin-top: 0.25rem; }
.benefit-point dt { font-weight: 700; }
.benefit-point dd { margin: 0.25rem 0 0; }
.benefit-highlight { background: var(--blush-soft); border-left-color: var(--pink); }
.benefit-match-note { display: inline-block; margin-left: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--pink-deep); }
.module-details { margin: 0.5rem 0; }
.module-details summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.module-details summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
#preview-player-slot video { width: 100%; max-width: 100%; border-radius: 0.5rem; background: var(--black); }
.video-gate-fail { color: var(--pink-deep); }

/* ---- MILESTONE 2: entrance gate, mobile slide-out panel, homepage elevation,
   shared states + consistency. GC 2.0 palette only. ---- */

/* ---------- Entrance gate (public/index.html) ---------- */
.gate-page {
  margin: 0;
  background: var(--gate-page);
  overflow-x: hidden;
}
.gate-page .skip-link { background: var(--black); }
.gate-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(233, 37, 138, 0.28), transparent 45%),
    linear-gradient(180deg, var(--gate-top) 0%, var(--gate-mid) 52%, var(--gate-bottom) 100%);
  overflow-x: clip;
}
/* Large translucent overlapping diamond geometry. */
.gate-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.10) 75%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.10) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.10) 75%),
    linear-gradient(45deg, rgba(184, 15, 107, 0.06) 25%, transparent 25%, transparent 75%, rgba(184, 15, 107, 0.06) 75%);
  background-size: 190px 190px, 190px 190px, 260px 260px;
  background-position: 0 0, 95px 95px, 40px 120px;
}
/* Tiny dot sparkles scattered throughout. */
.gate-sparkles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(253, 231, 241, 0.7) 0 1px, transparent 1.4px);
  background-size: 110px 110px, 170px 170px;
  background-position: 12px 30px, 60px 90px;
}
.gate-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  margin: auto;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.1rem;
  background: linear-gradient(180deg, var(--gate-card-top) 0%, var(--black) 100%);
  border: 1px solid rgba(253, 231, 241, 0.6);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.75rem);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.28) inset,
    0 24px 60px rgba(20, 16, 20, 0.35),
    0 0 0 1px rgba(233, 37, 138, 0.12);
  color: var(--white);
  max-width: 100%;
  overflow-x: clip;
}
.gate-brand-row { display: flex; align-items: center; gap: 0.85rem; }
.gate-crown { flex: 0 0 auto; width: 56px; height: 56px; }
.gate-crown svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(233, 37, 138, 0.45)); }
.gate-brand-text { min-width: 0; }
.gate-brand {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 5.6vw, 2rem); line-height: 1.15; color: var(--white);
}
.gate-kicker {
  margin: 0.3rem 0 0; font-size: clamp(0.62rem, 2.6vw, 0.8rem);
  letter-spacing: 0.28em; font-weight: 700; color: var(--blush); text-transform: uppercase;
}
.gate-headline {
  margin: 0.4rem 0 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 4.4rem); line-height: 1.02; letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--white) 0%, var(--blush) 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate-sub {
  margin: 0; font-size: clamp(1rem, 4vw, 1.2rem); line-height: 1.55; color: var(--pink-pale);
  max-width: 34rem;
}
/* Full-width pill: deep pink -> hot pink. Text is 19px+ bold, so the 3:1
   large-text bar applies; the lightest stop (#E9258A) gives 4.12:1. */
.gate-enter {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 60px; padding: 0.9rem 1.25rem 0.9rem 1.5rem;
  border-radius: var(--radius-pill); border: 1px solid rgba(253, 231, 241, 0.75);
  background: linear-gradient(90deg, var(--pink-deep) 0%, var(--pink) 65%, var(--pink) 100%);
  color: var(--white); text-decoration: none;
  font-size: 1.2rem; font-weight: 700; text-align: left;
  box-shadow: 0 10px 28px rgba(184, 15, 107, 0.45);
}
.gate-enter::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 231, 241, 0.35), transparent 55%);
}
.gate-enter:hover { filter: brightness(1.06); }
.gate-enter:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.gate-enter-arrow { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.gate-footer { border-top: 1px solid rgba(253, 231, 241, 0.28); padding-top: 1rem; margin-top: 0.2rem; }
.gate-footer-inner {
  display: flex; align-items: center; gap: 1rem;
  border-left: 2px solid rgba(233, 37, 138, 0.7); padding-left: 1rem;
}
.gate-gems { position: relative; flex: 0 0 auto; width: 58px; height: 40px; }
.gate-gem {
  position: absolute; left: 0; top: 2px; width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--pink) 55%, var(--pink-deep) 100%);
  clip-path: polygon(50% 0, 100% 32%, 84% 100%, 16% 100%, 0 32%);
  box-shadow: 0 6px 14px rgba(233, 37, 138, 0.45);
}
.gate-gem-small { left: 26px; top: 10px; width: 22px; height: 22px; opacity: 0.85; }
.gate-footer-inner p { margin: 0; font-size: clamp(0.95rem, 3.8vw, 1.1rem); line-height: 1.45; }
.gate-footer-inner em { color: var(--blush); font-family: var(--font-display); }
.gate-footer-inner strong { color: var(--white); font-family: var(--font-display); }
@media (min-width: 700px) {
  .gate-stage { padding: 2rem; }
  .gate-card { gap: 1.4rem; }
}
@media (max-height: 600px) {
  .gate-card { gap: 0.7rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .gate-headline { font-size: clamp(2rem, 8vh, 2.8rem); }
}

/* ---------- Mobile header: compact brand + hamburger + slide-out panel ---------- */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0;
  background: var(--white); border: 1px solid var(--silver-light); border-radius: var(--radius-md);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 20, 0.45);
}
.nav-scrim[hidden] { display: none; }
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; z-index: 70;
  width: min(320px, 86vw); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--white);
  border-left: 1px solid var(--silver-light);
  box-shadow: -16px 0 40px rgba(20, 16, 20, 0.25);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--transition-panel), visibility var(--transition-panel);
  overflow-y: auto;
}
.mobile-nav-panel.open { transform: translateX(0); visibility: visible; }
.mobile-nav-panel[hidden] { display: none; }
.mobile-nav-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.02rem;
}
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { background: var(--blush); color: var(--pink-deep); }
@media (max-width: 860px) {
  .site-header .header-inner { flex-wrap: nowrap; min-height: 60px; }
  .site-header .brand { font-size: 1.05rem; white-space: nowrap; }
  .site-header .brand span { display: inline; }
  .site-header .main-nav, .site-header .auth-state { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
}
/* Hamburger + slide-out panel are universal at every viewport (no desktop multi-row nav). */

/* ---------- Homepage elevation (/home) ---------- */
.hero-luxe { position: relative; overflow: hidden; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-diamond {
  position: absolute; border: 1px solid rgba(233, 37, 138, 0.18);
  transform: rotate(45deg); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.35);
}
.hero-diamond-1 { width: 150px; height: 150px; top: -40px; right: 6%; }
.hero-diamond-2 { width: 90px; height: 90px; bottom: -20px; left: 4%; }
.hero-diamond-3 { width: 56px; height: 56px; top: 24%; left: 8%; opacity: 0.7; }
.hero-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(233, 37, 138, 0.35);
}
.hero-dot-1 { top: 18%; right: 16%; }
.hero-dot-2 { bottom: 22%; right: 26%; width: 6px; height: 6px; }
.hero-dot-3 { top: 60%; left: 14%; width: 6px; height: 6px; }
.hero-dot-4 { top: 12%; left: 38%; width: 5px; height: 5px; }
.hero-luxe .cover-words, .hero-luxe h1, .hero-luxe .tagline,
.hero-luxe .hero-purpose, .hero-luxe .btn-row, .hero-luxe .muted { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .hero-luxe { padding: 4rem 3rem 3.5rem; }
}
/* Premium interactive cards: lift + pink edge on hover/focus. */
.premium-card, .journey-strip li {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.premium-card:hover, .premium-card:focus-within,
.journey-strip li:hover, .journey-strip li:focus-within {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: var(--shadow-card-hover);
}
.premium-card a:focus-visible { outline-offset: 2px; }
.journey-premium { counter-reset: journey; }

/* ---------- Shared states (loading / empty / error / unavailable) ---------- */
.state-loading { color: var(--ink-soft); font-style: italic; }
.state-empty { color: var(--ink-soft); font-style: italic; }
.state-error { color: var(--pink-deep); font-weight: 600; }
.state-unavailable {
  background: var(--blush); border: 1px solid var(--silver-light);
  border-radius: var(--radius-md); padding: 1rem;
}
.state-locked { color: var(--ink-soft); font-weight: 600; }
.state-completed { color: var(--pink-deep); font-weight: 600; }

/* Spacing utility — replaces one-off inline margin-top styles in markup. */
.mt-1 { margin-top: var(--space-4); }
.mt-half { margin-top: var(--space-2); }

/* ---------- Visual consistency pass (all pages) ---------- */
.page section + section { margin-top: 2rem; }
.page h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 1rem; }
.page h2 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin: 0 0 0.75rem; }
.card h2, .card h3 { line-height: 1.25; }
.card .btn { margin-top: 0.25rem; }
.site-footer-inner p { margin: 0.25rem 0; }


/* ---- MILESTONE 2 finishing: gem dots, signature script, glamour polish ----
   Fonts: Inter (body) + Playfair Display (serif) + Great Vibes (script).
   Great Vibes is licensed under the SIL Open Font License (OFL), loaded
   from Google Fonts with display=swap. Script is DECORATIVE ONLY: never
   for buttons, menus, forms, lesson text, prices, or critical content. */
/* Signature gem dots: glossy faceted gradient (hot pink -> blush) with a
   soft highlight. Applied to the H.E.R. logo lockups only; body copy,
   titles, and metadata keep plain "H.E.R." so verbatim strings hold. */
.her-dot {
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, #FFE3EF 22%, #FF5FB0 48%, var(--pink) 68%, var(--pink-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(184, 15, 107, 0.45)) drop-shadow(0 0 6px rgba(233, 37, 138, 0.5));
  font-size: 1.4em; line-height: 1;
}
.script-accent {
  font-family: var(--font-script); font-weight: 400; letter-spacing: 0.01em;
}
/* Homepage hero tagline in signature script (decorative, large, high contrast). */
.hero-luxe .tagline {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem); line-height: 1.25; color: var(--pink-deep);
}
/* Gate footer phrase in signature script. */
.gate-footer-inner em {
  font-family: var(--font-script); font-style: normal;
  font-size: clamp(1.45rem, 5.5vw, 1.9rem); line-height: 1.2;
}
/* Glamour polish, every page: desktop nav hover, card lift, form focus. */
.main-nav a:hover { background: var(--blush); color: var(--pink-deep); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
/* Subtle entrance shimmer: slow sheen sweep on the gate button + soft crown glow. */
@keyframes gate-sheen {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translateX(240%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(240%) skewX(-18deg); opacity: 0; }
}
@keyframes gate-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(233, 37, 138, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(233, 37, 138, 0.65)); }
}
.gate-enter::after { animation: gate-sheen 4.5s ease-in-out infinite; }
.gate-crown svg { animation: gate-glow 4.5s ease-in-out infinite; }

/* ---- POLISH PASS: one compact hamburger header, gem dots, script hero,
   glamorous GC 2.0 system on every page. Palette ONLY: hot pink, blush,
   white, black, silver. Script is decorative only; body text stays readable. ---- */

/* ONE compact header at every viewport: brand left, hamburger right.
   No inline nav rows, no header auth buttons — everything lives in the panel. */
.main-nav, .auth-state { display: none !important; }
.site-header { box-shadow: 0 2px 18px rgba(20, 16, 20, 0.07); }
.site-header .header-inner { flex-wrap: nowrap; min-height: 60px; }
.site-header .brand { font-size: clamp(1.05rem, 4.4vw, 1.35rem); letter-spacing: 0.01em; white-space: nowrap; }
.nav-toggle { display: inline-flex !important; margin-left: auto; }
.nav-toggle:hover { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233, 37, 138, 0.12); }

/* Slide-out panel: luxury treatment, panel brand + close button. */
.mobile-nav-panel {
  background: linear-gradient(180deg, var(--white) 0%, var(--blush-soft) 100%);
  border-left: 1px solid var(--silver-light);
}
.panel-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0.25rem 0 0.75rem; color: var(--ink); }
.panel-brand span { color: var(--pink); }
.panel-close {
  align-self: flex-start; min-height: 44px; padding: 0.5rem 1rem; margin-bottom: 0.5rem;
  background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius-pill);
  cursor: pointer; font: inherit; font-weight: 700; color: var(--ink);
}
.panel-close:hover { border-color: var(--pink); color: var(--pink-deep); }
.mobile-nav-panel a { border-left: 3px solid transparent; }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus-visible { border-left-color: var(--pink); }
.mobile-nav-panel a[href="auth#signin"] { border: 1px solid var(--silver); margin-top: 0.75rem; }
.mobile-nav-panel a[href="auth#register"] {
  background: var(--pink-deep); color: var(--white); margin-top: 0.5rem; justify-content: center;
}
.mobile-nav-panel a[href="auth#register"]:hover { background: var(--pink); color: var(--white); }

/* Homepage hero: compact top section + "Heal. Evolve. Rise." in hot-pink
   Great Vibes calligraphy (OFL) — decorative heading, body text unaffected. */
.hero-luxe { padding: 2rem 1.25rem 1.75rem; }
#hero-heading {
  font-family: var(--font-script); font-weight: 400; line-height: 1.12;
  font-size: clamp(3rem, 12.5vw, 5rem); margin: 0 0 0.25rem;
  background: linear-gradient(100deg, var(--pink-deep) 0%, var(--pink) 55%, var(--pink-bright) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(233, 37, 138, 0.22));
}
@media (min-width: 700px) { .hero-luxe { padding: 2.5rem 2.5rem 2rem; } }

/* Editorial page titles: Playfair serif with a hot-pink rule accent. */
.page h1:not(#hero-heading):not(#not-found-heading) {
  letter-spacing: -0.01em; padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--pink); border-image: linear-gradient(90deg, var(--pink), var(--blush) 60%, transparent) 1;
}
.page h2 { letter-spacing: -0.005em; }

/* Luxury cards: soft glossy top edge + refined lift. */
.explore-grid { align-items: stretch; }
.explore-card { display: flex; flex-direction: column; }
.explore-card p:last-child { margin-top: auto; padding-top: 0.75rem; }
.explore-icon { font-size: 1.6rem; line-height: 1; margin: 0 0 0.5rem; color: var(--pink); }
/* Each Explore card gets its own accent within the GC 2.0 palette. */
.explore-grid .explore-card:nth-child(1) { border-top-color: var(--pink); }
.explore-grid .explore-card:nth-child(2) { border-top-color: var(--pink-deep); background: linear-gradient(180deg, var(--blush) 0%, var(--white) 70%); }
.explore-grid .explore-card:nth-child(3) { border-top-color: var(--pink-bright); }
.explore-grid .explore-card:nth-child(4) { border-top-color: var(--black); }
.explore-grid .explore-card:nth-child(5) { border-top-color: var(--silver); }
.explore-grid .explore-card:nth-child(6) { border-top-color: var(--pink); background: linear-gradient(180deg, var(--blush-soft) 0%, var(--white) 70%); }
.explore-grid .explore-card:nth-child(7) { border-top-color: var(--pink-deep); }

/* Learning Worlds: each world its own personality inside the H.E.R. identity.
   Worlds render client-side into #worlds-list; nth-child accents cycle the palette. */
#worlds-list > section:nth-child(4n+1) { border-top: 4px solid var(--pink); background: linear-gradient(180deg, var(--blush-soft), var(--white)); border-radius: 16px; padding: 1rem; }
#worlds-list > section:nth-child(4n+2) { border-top: 4px solid var(--pink-deep); background: linear-gradient(180deg, var(--blush), var(--white)); border-radius: 16px; padding: 1rem; }
#worlds-list > section:nth-child(4n+3) { border-top: 4px solid var(--black); background: linear-gradient(180deg, var(--surface-grey), var(--white)); border-radius: 16px; padding: 1rem; }
#worlds-list > section:nth-child(4n+4) { border-top: 4px solid var(--silver); background: linear-gradient(180deg, var(--white), var(--blush-soft)); border-radius: 16px; padding: 1rem; }
#worlds-list .card { border-top: 3px solid var(--pink); }

/* Memberships: polished comparison cards; proposed-only state stays explicit. */
.premium-card h3 { letter-spacing: -0.005em; }

/* Auth: branded card treatment for the account forms (pending-D1 honesty unchanged). */
#form-register, #form-signin, #form-verify, #form-recover, #form-reset {
  background: linear-gradient(180deg, var(--white) 0%, var(--blush-soft) 100%);
  border: 1px solid var(--silver-light); border-top: 3px solid var(--pink);
  border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow);
}

/* Buttons: premium hover — lift + deeper glow, no layout shift. */
.btn { transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(184, 15, 107, 0.4); filter: brightness(1.03); }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--pink); color: var(--pink-deep); box-shadow: 0 8px 20px rgba(233, 37, 138, 0.12); }

/* Footer: subtle luxury rule. */
.site-footer { border-top: 3px solid var(--pink); }

/* ---- INSIDE MUST MATCH ENTRANCE pass: premium course cards, grouped
   expandable catalogue, per-world identity, luxury treatment on every
   inside page. GC 2.0 tokens only. No new fonts, palettes, keyframes,
   or render-blocking resources. Script is decorative only. ---- */

/* Decorative script tagline on catalogue pages (decorative accent only;
   all educational content stays in Playfair Display / Inter). */
.catalogue-tagline {
  font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.25;
  color: var(--pink-deep); margin: 0 0 var(--space-4);
}

/* Premium course card: imagery is CSS/SVG-style decoration only
   (gradient wash + diamond gems) — no external images, no paid assets. */
.course-card { position: relative; overflow: hidden; }
.course-card-art {
  position: relative; overflow: hidden; height: 56px;
  border: 1px solid var(--silver-light); border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  background:
    radial-gradient(circle at 88% 20%, rgba(233, 37, 138, 0.22), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(184, 15, 107, 0.14), transparent 45%),
    linear-gradient(120deg, var(--blush) 0%, var(--white) 55%, var(--blush-soft) 100%);
}
.course-card-art::before, .course-card-art::after {
  content: ""; position: absolute; transform: rotate(45deg);
  border: 1px solid rgba(233, 37, 138, 0.3); background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
}
.course-card-art::before { width: 30px; height: 30px; right: 16%; top: 10px; }
.course-card-art::after { width: 16px; height: 16px; right: 30%; bottom: 8px; opacity: 0.8; }
.course-card-body { display: grid; gap: var(--space-2); }
.course-card .lesson-link {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 700; line-height: 1.3; text-decoration: none; color: var(--ink);
}
.course-card .lesson-link:hover { color: var(--pink-deep); }
.course-card-meta { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

/* Position indicator: one dot per lesson in the level; the current
   lesson's dot is hot pink. Text label always accompanies the dots. */
.progress-dots { display: flex; gap: var(--space-2); align-items: center; margin: var(--space-2) 0 0; }
.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--silver-light); display: inline-block;
}
.progress-dot.is-current {
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(233, 37, 138, 0.18);
}
.progress-dot.is-done { background: var(--pink-deep); }

/* Catalogue organisation: levels contain expandable modules.
   Level accents cycle the existing GC 2.0 palette, like Worlds. */
#catalogue { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
#catalogue > .level-group:nth-child(4n+1) { border-top: 4px solid var(--pink); }
#catalogue > .level-group:nth-child(4n+2) { border-top: 4px solid var(--pink-deep); background: linear-gradient(180deg, var(--blush) 0%, var(--white) 70%); }
#catalogue > .level-group:nth-child(4n+3) { border-top: 4px solid var(--black); }
#catalogue > .level-group:nth-child(4n+4) { border-top: 4px solid var(--silver); background: linear-gradient(180deg, var(--blush-soft) 0%, var(--white) 70%); }
.level-group { padding: var(--space-4); }
.level-group h2 { margin: 0; }
.level-toggle, .module-toggle, .pathway-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; min-height: 44px; padding: var(--space-2) var(--space-1);
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-family: var(--font-display); font-weight: 700;
  color: var(--ink); text-align: left;
}
.level-toggle { font-size: clamp(1.15rem, 3.4vw, 1.4rem); }
.module-toggle, .pathway-toggle { font-size: var(--text-md); }
.level-toggle::after, .module-toggle::after, .pathway-toggle::after {
  content: "\25BE"; flex: 0 0 auto; color: var(--pink-deep); font-size: 1.1rem;
  transition: transform var(--transition-fast);
}
.level-toggle[aria-expanded="false"]::after,
.module-toggle[aria-expanded="false"]::after,
.pathway-toggle[aria-expanded="false"]::after { transform: rotate(-90deg); }
.level-panel[hidden], .module-panel[hidden], .pathway-panel[hidden] { display: none; }
.module-group, .pathway-group {
  border: 1px solid var(--silver-light); border-radius: var(--radius-md);
  background: var(--white); margin-top: var(--space-4);
  box-shadow: var(--shadow);
}
.module-group h3, .pathway-group h4 { margin: 0; }
.module-group .lesson-list, .pathway-group ul { padding: var(--space-4); }
.module-group .lesson-item { margin: 0; }
.catalogue-tools { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* Learning Worlds: pathway groups are expandable; world sections keep
   their existing nth-child accent cycle. */
#worlds-list .world-section { display: grid; gap: var(--space-4); }
#worlds-list .pathway-group ul { margin: 0; }

/* Course detail hero: the title block carries the entrance-inspired
   blush wash + pink rule. */
.course-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(233, 37, 138, 0.14), transparent 45%),
    linear-gradient(135deg, var(--white) 0%, var(--blush) 60%, var(--blush-soft) 100%);
  border: 1px solid var(--silver-light); border-top: 4px solid var(--pink);
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow);
}
.course-hero h1 { margin: 0 0 var(--space-2); }

/* Luxury treatment for quiz + reflection + completion sections and for
   community messages, achievements, and membership cards. */
fieldset {
  border: 1px solid var(--silver-light); border-radius: var(--radius-md);
  padding: var(--space-4); background: var(--white); margin: 0;
}
legend { font-family: var(--font-display); font-weight: 700; padding: 0 var(--space-2); }
.message-list .message {
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-card) 100%);
  border-top: 3px solid var(--pink); box-shadow: var(--shadow);
}
#achievements .card { overflow: hidden; }
#achievements .card::before {
  content: ""; display: block; height: 6px; margin: -1.25rem -1.25rem 1rem;
  background: linear-gradient(90deg, var(--pink) 0%, var(--blush) 55%, var(--pink-deep) 100%);
}

/* Progress-journey locked state: discreet — title + lock pill only.
   Locked cards stay muted and never look like open lessons. */
.course-card.is-next-chapter { opacity: 0.92; }
.course-card.is-next-chapter .course-card-art { filter: saturate(0.6); }
.course-card.is-next-chapter .lesson-link { color: var(--ink-soft); }
