/* lyftic.css — production stylesheet (replaces Tailwind CDN)
   ── Generated from Tailwind config + nav.js shared CSS
   ── Tree-shaken to only what's used across the site
   ── Light / dark mode via html.light / html.dark classes
   ── Last updated: 2026-05 */


/* ── Remove mobile tap highlight on all interactive elements ── */
a, button, [role="button"], [role="tab"], .feat-tag, .feat-tab-btn,
.mobile-accordion-trigger, .mobile-nav-link, .mobile-nav-sub,
.site-nav-link, .nav-dd-btn, .site-nav-icon-btn, .nav-dropdown-link {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* ═══════════════════════════════════════════════════════
   BASE RESET & TOKENS
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Color palette */
  --gold:    #d4af37;
  --bronze:  #8b6b23;
  --gold-light: #d8b551;
  --gold-dark:  #b8860b;

  /* Zinc scale */
  --zinc-50:  #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Fonts */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'Montserrat', sans-serif;

  /* Spacing scale (rem) */
  --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-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
html.light { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "cv02","cv03","cv04","ss01";
  background: var(--zinc-950);
  color: var(--zinc-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
  line-height: 1.5;
}
html.light body { background: var(--zinc-100); color: var(--zinc-900); }

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY — Tailwind-equivalent utility classes
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { margin: 0; }

.font-sans  { font-family: var(--font-sans);  }
.font-brand { font-family: var(--font-brand); }

.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }

.tracking-tight   { letter-spacing: -0.025em; }
.tracking-widest  { letter-spacing: 0.14em; }
.tracking-wide    { letter-spacing: 0.025em; }
.uppercase        { text-transform: uppercase; }
.leading-none     { line-height: 1; }
.leading-tight    { line-height: 1.25; }
.leading-relaxed  { line-height: 1.625; }
.text-center      { text-align: center; }
.text-left        { text-align: left; }
.antialiased      { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Zinc text colors */
.text-zinc-50  { color: var(--zinc-50); }
.text-zinc-100 { color: var(--zinc-100); }
.text-zinc-200 { color: var(--zinc-200); }
.text-zinc-300 { color: var(--zinc-300); }
.text-zinc-400 { color: var(--zinc-400); }
.text-zinc-500 { color: var(--zinc-500); }
.text-zinc-600 { color: var(--zinc-600); }
.text-zinc-700 { color: var(--zinc-700); }

.text-gold     { color: var(--gold); }
.text-emerald-400 { color: #34d399; }

/* ── Light mode text overrides ── */
html.light .text-zinc-50  { color: var(--zinc-950); }
html.light .text-zinc-100 { color: var(--zinc-900); }
html.light .text-zinc-200 { color: var(--zinc-800); }
html.light .text-zinc-300 { color: var(--zinc-700); }
html.light .text-zinc-400 { color: var(--zinc-600); }
html.light .text-zinc-500 { color: var(--zinc-600); }
html.light h1, html.light h2, html.light h3, html.light h4 { color: var(--zinc-900); }

/* ═══════════════════════════════════════════════════════
   LAYOUT — flex, grid, spacing, sizing
═══════════════════════════════════════════════════════ */
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }
.relative     { position: relative; }
.absolute     { position: absolute; }
.fixed        { position: fixed; }
.sticky       { position: sticky; }
.inset-0      { inset: 0; }
.top-0        { top: 0; }
.top-5        { top: 1.25rem; }
.left-0       { left: 0; }
.left-5       { left: 1.25rem; }
.right-0      { right: 0; }
.right-5      { right: 1.25rem; }
.bottom-0     { bottom: 0; }
.z-50         { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.w-full       { width: 100%; }
.h-full       { height: 100%; }
.h-px         { height: 1px; }
.h-2          { height: 0.5rem; }
.h-14         { height: 3.5rem; }
.min-h-screen { min-height: 100vh; }
.shrink-0     { flex-shrink: 0; }
.flex-1       { flex: 1 1 0%; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1    { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2    { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.gap-10   { gap: 2.5rem; }
.gap-12   { gap: 3rem; }
.gap-16   { gap: 4rem; }
.gap-20   { gap: 5rem; }
.gap-24   { gap: 6rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-4    > * + * { margin-top: 1rem; }
.space-y-5    > * + * { margin-top: 1.25rem; }
.space-y-24   > * + * { margin-top: 6rem; }
.mx-auto  { margin-left: auto; margin-right: auto; }
.mb-1     { margin-bottom: 0.25rem; }
.mb-2     { margin-bottom: 0.5rem; }
.mb-3     { margin-bottom: 0.75rem; }
.mb-4     { margin-bottom: 1rem; }
.mb-5     { margin-bottom: 1.25rem; }
.mb-6     { margin-bottom: 1.5rem; }
.mb-8     { margin-bottom: 2rem; }
.mb-10    { margin-bottom: 2.5rem; }
.mb-12    { margin-bottom: 3rem; }
.mb-14    { margin-bottom: 3.5rem; }
.mt-0\.5  { margin-top: 0.125rem; }
.mt-1     { margin-top: 0.25rem; }
.mt-2     { margin-top: 0.5rem; }
.mt-3     { margin-top: 0.75rem; }
.mt-36    { margin-top: 9rem; }
.mt-32    { margin-top: 8rem; }
.ml-auto  { margin-left: auto; }
.my-2\.5  { margin-top: 0.625rem; margin-bottom: 0.625rem; }
.px-1     { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2     { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3     { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4     { padding-left: 1rem; padding-right: 1rem; }
.py-1     { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5  { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2     { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5  { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3     { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4     { padding-top: 1rem; padding-bottom: 1rem; }
.py-5     { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6     { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-7     { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-16    { padding-top: 4rem; padding-bottom: 4rem; }
.py-20    { padding-top: 5rem; padding-bottom: 5rem; }
.py-24    { padding-top: 6rem; padding-bottom: 6rem; }
.pt-1     { padding-top: 0.25rem; }
.pt-2     { padding-top: 0.5rem; }
.pt-14    { padding-top: 3.5rem; }
.pb-1     { padding-bottom: 0.25rem; }
.pb-2     { padding-bottom: 0.5rem; }
.pb-6     { padding-bottom: 1.5rem; }
.pb-20    { padding-bottom: 5rem; }
.p-3      { padding: 0.75rem; }
.p-4      { padding: 1rem; }
.p-6      { padding: 1.5rem; }
.p-7      { padding: 1.75rem; }

/* widths */
.w-1     { width: 0.25rem; }
.w-1\.5  { width: 0.375rem; }
.w-3     { width: 0.75rem; }
.w-3\.5  { width: 0.875rem; }
.w-4     { width: 1rem; }
.w-5     { width: 1.25rem; }
.w-6     { width: 1.5rem; }
.w-7     { width: 1.75rem; }
.w-8     { width: 2rem; }
.w-9     { width: 2.25rem; }
.w-12    { width: 3rem; }
.w-14    { width: 3.5rem; }
.w-4\/5  { width: 80%; }

.h-1     { height: 0.25rem; }
.h-1\.5  { height: 0.375rem; }
.h-3     { height: 0.75rem; }
.h-3\.5  { height: 0.875rem; }
.h-4     { height: 1rem; }
.h-5     { height: 1.25rem; }
.h-6     { height: 1.5rem; }
.h-7     { height: 1.75rem; }
.h-8     { height: 2rem; }
.h-9     { height: 2.25rem; }
.h-12    { height: 3rem; }
.h-14    { height: 3.5rem; }

/* max widths */
.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* aspect ratios */
.aspect-\[5\/4\] { aspect-ratio: 5/4; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* ═══════════════════════════════════════════════════════
   BACKGROUNDS & BORDERS
═══════════════════════════════════════════════════════ */
.bg-zinc-950    { background: var(--zinc-950); }
.bg-zinc-900    { background: var(--zinc-900); }
.bg-zinc-800    { background: var(--zinc-800); }

/* Opacity variants used in HTML */
.bg-zinc-900\/20  { background: rgba(24,24,27,0.2); }
.bg-zinc-900\/30  { background: rgba(24,24,27,0.3); }
.bg-zinc-900\/50  { background: rgba(24,24,27,0.5); }
.bg-zinc-900\/60  { background: rgba(24,24,27,0.6); }
.bg-zinc-900\/80  { background: rgba(24,24,27,0.8); }
.bg-zinc-900\/90  { background: rgba(24,24,27,0.9); }
.bg-zinc-950\/50  { background: rgba(9,9,11,0.5); }
.bg-gold\/10      { background: rgba(212,175,55,0.1); }
.bg-gold\/15      { background: rgba(212,175,55,0.15); }
.bg-emerald-500\/10 { background: rgba(16,185,129,0.1); }

/* ── Light mode bg overrides ── */
html.light .bg-zinc-950       { background: var(--zinc-100); }
html.light .bg-zinc-900\/20   { background: rgba(244,244,245,0.5); }
html.light .bg-zinc-900\/30   { background: rgba(244,244,245,0.7); }
html.light .bg-zinc-900\/60   { background: rgba(255,255,255,0.9); }
html.light .bg-zinc-900\/80   { background: rgba(255,255,255,0.95); }
html.light .bg-zinc-900\/90   { background: rgba(255,255,255,0.97); }
html.light .bg-zinc-800       { background: var(--zinc-200); }

.rounded-full  { border-radius: 9999px; }
.rounded-lg    { border-radius: 0.5rem; }
.rounded-xl    { border-radius: 0.75rem; }
.rounded-2xl   { border-radius: 1rem; }

.border           { border-width: 1px; border-style: solid; }
.border-t         { border-top-width: 1px; border-top-style: solid; }
.border-zinc-800  { border-color: var(--zinc-800); }
.border-zinc-700  { border-color: var(--zinc-700); }
.border-zinc-600  { border-color: var(--zinc-700); }
.border-gold\/25  { border-color: rgba(212,175,55,0.25); }
.border-gold\/30  { border-color: rgba(212,175,55,0.3); }
.border-emerald-500\/20 { border-color: rgba(16,185,129,0.2); }
.border-gold\/20  { border-color: rgba(212,175,55,0.2); }

html.light .border-zinc-800  { border-color: var(--zinc-200); }
html.light .border-zinc-700  { border-color: var(--zinc-300); }

/* Opacity modifier helpers */
.opacity-20  { opacity: 0.2; }
.opacity-30  { opacity: 0.3; }
.opacity-50  { opacity: 0.5; }
.pointer-events-none { pointer-events: none; }
.user-select-none    { user-select: none; }

/* shadows */
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }

/* ═══════════════════════════════════════════════════════
   SPECIAL VISUAL HELPERS
═══════════════════════════════════════════════════════ */

/* Gradient text */
.gold-text {
  background: linear-gradient(135deg, var(--bronze) 0%, var(--gold) 45%, var(--gold-light) 75%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient divider line */
.grad-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Logo glow */
.logo-glow {
  filter: drop-shadow(0 0 5px rgba(212,175,55,0.2));
  transition: filter 0.3s ease;
}
html.dark .logo-glow { filter: drop-shadow(0 0 12px rgba(212,175,55,0.6)); }

/* Gold pulse animation */
@keyframes gold-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}
.animate-gold-pulse { animation: gold-pulse 2s infinite; }

/* Rounded indicator dot */
.rounded-full { border-radius: 9999px; }
.inline-block { display: inline-block; }

/* Hero badge */
.hero-badge {
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(139,107,35,0.08));
  border: 1px solid rgba(212,175,55,0.25);
}

/* Profile pill */
.profile-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--zinc-900) 0%, var(--zinc-800) 40%, var(--zinc-700) 70%, var(--zinc-800) 100%);
  position: relative;
  overflow: hidden;
}
html.light .img-placeholder {
  background: linear-gradient(135deg, var(--zinc-200) 0%, var(--zinc-300) 40%, var(--zinc-400) 70%, var(--zinc-300) 100%);
}

/* Avatar */
.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, #9ca3af, #4b5563);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-sm   { width: 32px; height: 32px; font-size: 11px; }
.avatar-md   { width: 48px; height: 48px; font-size: 14px; }
.avatar-gold { background: linear-gradient(135deg, var(--bronze), var(--gold)); color: var(--zinc-950); }

/* Edge glow — desktop only */
@media (min-width: 1024px) {
  body::before, body::after {
    content: '';
    position: fixed; top: 0; bottom: 0;
    width: 200px; pointer-events: none; z-index: 1;
  }
  body::before { left: 0;  background: linear-gradient(to right, rgba(212,175,55,0.04), transparent); }
  body::after  { right: 0; background: linear-gradient(to left,  rgba(212,175,55,0.04), transparent); }
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.nav-glass {
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(9,9,11,0.9);
  border-bottom: 1px solid rgba(39,39,42,0.7);
  transition: background 0.25s ease, border-color 0.25s ease;
}
html.light .nav-glass {
  background: rgba(250,250,250,0.88);
  border-bottom: 1px solid rgba(212,212,216,0.7);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 12px rgba(0,0,0,0.06);
}

/* Nav link (plain) */
.nav-link {
  color: var(--zinc-400);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.nav-link:hover { color: var(--zinc-50); background: rgba(39,39,42,0.5); }
html.light .nav-link { color: var(--zinc-600); }
html.light .nav-link:hover { color: var(--zinc-900); background: rgba(228,228,231,0.6); }

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(to bottom, rgba(212,175,55,0.9), rgba(139,107,35,0.88));
  color: var(--zinc-950);
  border: 1px solid rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 3px rgba(0,0,0,0.3);
  transition: filter 0.15s;
  position: relative; overflow: hidden;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-cta:active { transform: scale(0.97); filter: brightness(0.95); }

/* Nav login link */
.nav-login {
  color: var(--zinc-500);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-login:hover { color: var(--zinc-50); }
html.light .nav-login { color: var(--zinc-600); }
html.light .nav-login:hover { color: var(--zinc-900); }

/* ── Dropdown — JS-controlled ── */
.nav-dd { position: relative; }

/* ── FIXED: entire .nav-dd container acts as hover zone ── */
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 4px);   /* tighter — reduces cursor gap */
  left: 0;
  min-width: 210px;
  border-radius: 14px;
  border: 1px solid rgba(39,39,42,0.8);
  background: rgba(9,9,11,0.96);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}
.nav-dd-menu.dd-right { left: auto; right: 0; }
html.light .nav-dd-menu {
  border-color: rgba(228,228,231,0.9);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.nav-dd-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Dropdown trigger button */
.nav-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  /* ── KEY FIX: bottom padding absorbs cursor gap between btn and menu ── */
  padding-bottom: 18px;
  margin-bottom: -10px;
  border-radius: 8px;
  color: var(--zinc-400);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
/* ── Active state: button is highlighted while dropdown is open ── */
.nav-dd-btn:hover,
.nav-dd-btn.is-active {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.5);
}
html.light .nav-dd-btn { color: var(--zinc-600); }
html.light .nav-dd-btn:hover,
html.light .nav-dd-btn.is-active {
  color: var(--zinc-900);
  background: rgba(228,228,231,0.6);
}

/* Bridge — absorbed into btn padding now, but keep for JS compat */
.nav-dd-bridge {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
  background: transparent;
  z-index: 199;
  display: none;
}
.nav-dd.is-open .nav-dd-bridge { display: block; }

/* Dropdown links */
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--zinc-400);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-sans);
}
.nav-dropdown-link:hover {
  background: rgba(212,175,55,0.08);
  color: var(--gold);
}
.nav-dropdown-link.is-active-page {
  color: var(--gold);
  background: rgba(212,175,55,0.07);
}
html.light .nav-dropdown-link { color: var(--zinc-600); }
html.light .nav-dropdown-link:hover { background: rgba(212,175,55,0.08); color: #b8860b; }
html.light .nav-dropdown-link.is-active-page { color: #b8860b; background: rgba(212,175,55,0.07); }

/* Mobile menu */
.mobile-menu-panel {
  border-top: 1px solid rgba(39,39,42,0.7);
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(16px);
}
html.light .mobile-menu-panel {
  border-top: 1px solid rgba(228,228,231,0.8);
  background: rgba(250,250,250,0.98);
}
.mobile-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zinc-600);
  padding: 0 12px 4px;
}
html.light .mobile-section-label { color: var(--zinc-400); }

/* ── "Active page" nav link highlighting via JS ── */
.nav-link.is-active-page { color: var(--gold); }
html.light .nav-link.is-active-page { color: #b8860b; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--zinc-800);
  background: var(--zinc-950);
}
html.light footer {
  background: var(--zinc-50);
  border-top-color: var(--zinc-200);
}
html.light footer .text-zinc-600 { color: var(--zinc-500); }
html.light footer .text-zinc-500 { color: var(--zinc-600); }
html.light footer .text-zinc-400 { color: var(--zinc-700); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.18s ease-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm  { padding: 6px 12px;  font-size: 12px; gap: 6px; border-radius: 10px; }
.btn-md  { padding: 9px 16px;  font-size: 14px; gap: 8px; border-radius: 12px; }
.btn-lg  { padding: 11px 22px; font-size: 15px; gap: 8px; border-radius: 12px; }
.btn-xl  { padding: 13px 30px; font-size: 16px; gap: 8px; border-radius: 14px; }

.btn-primary {
  background: linear-gradient(to bottom, rgba(212,175,55,0.92), rgba(139,107,35,0.92));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.28), 0 2px 4px rgba(0,0,0,0.35);
  border: 1px solid rgba(0,0,0,0.35);
  color: var(--zinc-950);
  font-weight: 900;
  position: relative; overflow: hidden;
}
@keyframes btn-shine {
  0%   { transform: translateX(-200%) skewX(-20deg); }
  100% { transform: translateX(300%) skewX(-20deg); }
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  animation: btn-shine 3.5s infinite;
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.35), 0 4px 16px rgba(212,175,55,0.28);
}
.btn-primary:active { transform: scale(0.97); filter: brightness(0.94); }

.btn-secondary {
  background: linear-gradient(to bottom, #3f3f46, #27272a);
  color: var(--zinc-300);
  border: 1px solid #18181b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 3px rgba(0,0,0,0.3);
  border-radius: 12px;
}
html.light .btn-secondary {
  background: linear-gradient(to bottom, #ffffff, #f4f4f5);
  color: var(--zinc-800);
  border: 1px solid var(--zinc-300);
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}
.btn-secondary:hover  { filter: brightness(1.08); }
.btn-secondary:active { transform: scale(0.98); }

.btn-ghost { background: transparent; color: var(--zinc-500); border: none; border-radius: 12px; }
.btn-ghost:hover { background: rgba(39,39,42,0.5); color: var(--zinc-50); }
html.light .btn-ghost { color: var(--zinc-500); }
html.light .btn-ghost:hover { background: rgba(228,228,231,0.7); color: var(--zinc-900); }
.btn-ghost:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 9999px;
  border-width: 2px;
  border-style: solid;
}
.badge-sm { padding: 2px 6px;  font-size: 11px; }
.badge-md { padding: 4px 10px; font-size: 13px; }
.badge-lg { padding: 6px 12px; font-size: 13px; }

.badge-default { background: var(--zinc-800); color: var(--zinc-400); border-color: var(--zinc-700); }
html.light .badge-default { background: var(--zinc-100); color: var(--zinc-700); border-color: var(--zinc-200); }

.badge-gold {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border-color: rgba(212,175,55,0.3);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
}
.badge-premium {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border-color: rgba(212,175,55,0.3);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(212,175,55,0.2);
}
.badge-premium-plus {
  background: rgba(245,158,11,0.18);
  color: #d97706;
  border-color: rgba(245,158,11,0.4);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative; overflow: hidden;
}
html.dark .badge-premium-plus { color: #fbbf24; }

@keyframes amber-shine {
  0%   { transform: translateX(-200%) skewX(-30deg); }
  100% { transform: translateX(200%) skewX(-30deg); }
}
.badge-premium-plus::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(251,191,36,0.25), transparent);
  animation: amber-shine 4s infinite;
}

/* ═══════════════════════════════════════════════════════
   CARDS / SURFACES
═══════════════════════════════════════════════════════ */
.pricing-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(212,175,55,0.08); }

.feat-card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.35);
  box-shadow: 0 16px 40px rgba(212,175,55,0.08);
}

.step-card { transition: transform 0.25s ease; }
.step-card:hover { transform: translateY(-3px); }

html.light .feat-card,
html.light .pricing-card,
html.light .step-card {
  background: #ffffff;
  border-color: var(--zinc-200);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
═══════════════════════════════════════════════════════ */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }

@media (min-width: 640px) {
  .sm\:flex              { display: flex; }
  .sm\:block             { display: block; }
  .sm\:hidden            { display: none; }
  .sm\:px-6              { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row          { flex-direction: row; }
  .sm\:text-lg           { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-4xl          { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl          { font-size: 3rem; line-height: 1; }
  .sm\:grid-cols-2       { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 768px) {
  .md\:hidden            { display: none; }
  .md\:flex              { display: flex; }
  .md\:block             { display: block; }
  .md\:grid-cols-2       { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3       { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex              { display: flex; }
  .lg\:hidden            { display: none; }
  .lg\:block             { display: block; }
  .lg\:flex-row          { flex-direction: row; }
  .lg\:flex-row-reverse  { flex-direction: row-reverse; }
  .lg\:col-span-2        { grid-column: span 2 / span 2; }
  .lg\:grid-cols-3       { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-5       { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .lg\:gap-20            { gap: 5rem; }
  .lg\:gap-24            { gap: 6rem; }
  .lg\:py-28             { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:py-36             { padding-top: 9rem; padding-bottom: 9rem; }
  .lg\:pb-28             { padding-bottom: 7rem; }
  .lg\:text-6xl          { font-size: 3.75rem; line-height: 1; }
  .lg\:space-y-32 > * + * { margin-top: 8rem; }
}

/* Hidden on mobile, shown on sm+ */
@media (max-width: 639px) {
  .sm\:hidden { display: block; }
  .hidden      { display: none; }
}
@media (max-width: 1023px) {
  .lg\:hidden  { display: block; }
  .lg\:flex    { display: none; }
}
@media (min-width: 1024px) {
  .lg\:hidden  { display: none; }
  .lg\:flex    { display: flex; }
}

/* ═══════════════════════════════════════════════════════
   GRADIENT DECORATORS (inline-style equivalent classes)
═══════════════════════════════════════════════════════ */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}
.from-transparent { --tw-gradient-from: transparent; }
.via-gold         { --tw-gradient-via: var(--gold); }
.to-transparent   { --tw-gradient-to: transparent; }

/* Gold gradient bar (used in subscriptions hero glows) */
.gold-glow-top {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  background: rgba(212,175,55,0.05);
  filter: blur(120px);
  pointer-events: none;
}
.gold-glow-bottom {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  border-radius: 50%;
  background: rgba(212,175,55,0.05);
  filter: blur(100px);
  pointer-events: none;
}

/* Radial CTA glow */
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   SUBSCRIPTIONS PAGE SPECIFIC
═══════════════════════════════════════════════════════ */
.check-gold   { color: var(--gold); }
.cross-zinc   { color: var(--zinc-600); }

/* ═══════════════════════════════════════════════════════
   CAROUSEL (index.html feature carousel)
═══════════════════════════════════════════════════════ */
.hidden-fade { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* ═══════════════════════════════════════════════════════
   TRANSITION HELPERS
═══════════════════════════════════════════════════════ */
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* ═══════════════════════════════════════════════════════
   GLOBAL LINK RESET — no underline, no browser blue
   All links inherit color from their context.
   Hover color is controlled per-component.
═══════════════════════════════════════════════════════ */
a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a:visited { color: inherit; }

/* Footer links get subtle gold hover */
footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   CAROUSEL ARROW POSITIONING helpers
═══════════════════════════════════════════════════════ */
/* Carousel arrow positioning handled via margin on wrapper */

/* ═══════════════════════════════════════════════════════
   MISSING UTILITY CLASSES used in index.html
═══════════════════════════════════════════════════════ */
.line-through    { text-decoration: line-through; }
.flex-wrap       { flex-wrap: wrap; }
.aspect-square   { aspect-ratio: 1 / 1; }
.w-full          { width: 100%; }
.justify-center  { justify-content: center; }

/* Colors used in feature cards */
.text-sky-400      { color: #38bdf8; }
.text-rose-400     { color: #fb7185; }
.text-fuchsia-400  { color: #e879f9; }
.text-amber-400    { color: #fbbf24; }
.text-emerald-400  { color: #34d399; }
.bg-sky-500\/10    { background: rgba(14,165,233,0.1); }
.bg-rose-500\/10   { background: rgba(239,68,68,0.1); }
.bg-fuchsia-500\/10{ background: rgba(217,70,239,0.1); }
.bg-amber-500\/10  { background: rgba(245,158,11,0.1); }
.border-sky-500\/25    { border-color: rgba(14,165,233,0.25); }
.border-rose-500\/25   { border-color: rgba(239,68,68,0.25); }
.border-fuchsia-500\/25{ border-color: rgba(217,70,239,0.25); }
.border-amber-500\/25  { border-color: rgba(245,158,11,0.25); }

.bg-rose-400\/20   { background: rgba(251,113,133,0.2); }
.bg-rose-400\/30   { background: rgba(251,113,133,0.3); }
.bg-rose-400\/40   { background: rgba(251,113,133,0.4); }
.bg-rose-400\/50   { background: rgba(251,113,133,0.5); }
.bg-rose-400\/60   { background: rgba(251,113,133,0.6); }
.bg-rose-400\/70   { background: rgba(251,113,133,0.7); }
.bg-fuchsia-400\/60{ background: rgba(232,121,249,0.6); }
.bg-fuchsia-400\/40{ background: rgba(232,121,249,0.4); }
.bg-fuchsia-400\/70{ background: rgba(232,121,249,0.7); }
.bg-fuchsia-400\/50{ background: rgba(232,121,249,0.5); }
.bg-emerald-500\/15{ background: rgba(16,185,129,0.15); }
.bg-sky-400\/30    { background: rgba(56,189,248,0.3); }
.bg-emerald-400\/30{ background: rgba(52,211,153,0.3); }
.bg-gold\/30       { background: rgba(212,175,55,0.3); }
.bg-gold\/40       { background: rgba(212,175,55,0.4); }
.bg-gold\/60       { background: rgba(212,175,55,0.6); }
.border-emerald-500\/25{ border-color: rgba(16,185,129,0.25); }
.border-gold\/35   { border-color: rgba(212,175,55,0.35); }
.border-amber-500\/20  { border-color: rgba(245,158,11,0.2); }
.from-bronze       { --tw-gradient-from: var(--bronze); }
.to-gold           { --tw-gradient-to: var(--gold); }
.bg-gradient-to-r  { background-image: linear-gradient(to right, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)); }
.from-emerald-500\/60 { --tw-gradient-from: rgba(16,185,129,0.6); }
.to-gold\/60          { --tw-gradient-to: rgba(212,175,55,0.6); }
.from-gold\/5      { --tw-gradient-from: rgba(212,175,55,0.05); }
.from-amber-500\/5 { --tw-gradient-from: rgba(245,158,11,0.05); }
.to-transparent    { --tw-gradient-to: transparent; }
.bg-gradient-to-b  { background-image: linear-gradient(to bottom, var(--tw-gradient-from, transparent), var(--tw-gradient-to, transparent)); }

/* Premium lock */
.premium-lock-wrap    { position: relative; border-radius: 16px; overflow: hidden; }
.premium-lock-content { pointer-events: none; user-select: none; filter: blur(3px); opacity: 0.6; }
.premium-lock-overlay {
  position: absolute; inset: 0;
  background: rgba(9,9,11,0.5);
  backdrop-filter: blur(2px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px; border: 1px solid rgba(212,175,55,0.2);
}
html.light .premium-lock-overlay { background: rgba(255,255,255,0.55); }
.premium-lock-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 12px;
  background: rgba(24,24,27,0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 4px 16px rgba(212,175,55,0.1);
}
html.light .premium-lock-badge { background: rgba(255,255,255,0.95); }

/* btn-premium-locked */
.btn-premium-locked {
  background: linear-gradient(to bottom, rgba(212,175,55,0.08), rgba(139,107,35,0.05));
  color: rgba(212,175,55,0.55);
  border: 1px solid rgba(212,175,55,0.18);
  backdrop-filter: blur(4px);
  cursor: not-allowed;
  border-radius: 12px;
}

/* Dark badge context */
html.dark .text-zinc-700 { color: var(--zinc-300); }

/* Misc */
.text-left { text-align: left; }
.max-w-xl  { max-width: 36rem; }
.text-amber-400 { color: #fbbf24; }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,0.25); }
.shadow-gold\/10 { box-shadow: 0 20px 40px rgba(212,175,55,0.1); }
.duration-300 { transition-duration: 300ms; }

/* Grid col helpers */
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0,1fr)); }

/* min-h-screen */
.min-h-screen { min-height: 100vh; }

/* Light mode: also strengthen section bg-zinc-900/20 alternate rows
   so the page sections are visually distinct */


/* ═══════════════════════════════════════════════════════
   MOBILE LAYOUT FIXES
═══════════════════════════════════════════════════════ */

/* ── Pricing carousel: mobile = snap scroll, desktop = grid ── */
#pricingCarousel::-webkit-scrollbar { display: none; }

/* On md+ switch to grid — !important overrides the inline display:flex */
@media (min-width: 768px) {
  #pricingCarousel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding-bottom: 0 !important;
  }
  #pricingCarousel > .pricing-card {
    min-width: unset !important;
    flex-shrink: unset !important;
    scroll-snap-align: unset !important;
  }
  /* Hide arrows + dots on desktop */
  #pricingBtnL, #pricingBtnR { display: none !important; }
  #pricingDots                { display: none !important; }
}

/* ── Feature carousel: cards have fixed width + snap ── */
#carouselTrack article {
  /* Snap handled by JS (style attribute), but ensure no shrink */
  flex-shrink: 0;
}

/* ── Footer: 2-col on mobile instead of 1 below the other ── */
@media (max-width: 639px) {
  footer .grid-cols-1 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  /* First col (brand+app buttons) spans both on mobile */
  footer .lg\:col-span-2 {
    grid-column: 1 / -1;
  }
}

/* ── Hero: reduce h1 on small mobile ── */
@media (max-width: 380px) {
  #hero-heading { font-size: 2rem; }
}

/* ── Section gaps between text/image blocks on mobile ── */
@media (max-width: 1023px) {
  .flex.flex-col.lg\:flex-row { gap: 2.5rem; }
  .flex.flex-col.lg\:flex-row-reverse { gap: 2.5rem; }
}

/* ── Trust signal row wraps cleanly on mobile ── */
@media (max-width: 480px) {
  .flex-wrap.gap-x-6 { gap: 0.5rem 1rem; }
}

/* ── Prevent hero section from being taller than 100dvh on mobile ── */
@media (max-width: 767px) {
  #hero {
    min-height: 100dvh;
    min-height: 100vh; /* fallback */
  }
}

/* ── Feature carousel card width: 300px on mobile is set inline.
   On lg+ screens make them a bit wider for breathing room. ── */
@media (min-width: 1024px) {
  #carouselTrack article { width: 320px !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  #carouselTrack article { width: 280px !important; }
}

/* ═══════════════════════════════════════════════════════
   PRICING CAROUSEL — additional fixes
═══════════════════════════════════════════════════════ */

/* Ensure all pricing cards box-model is consistent */
.pricing-card {
  box-sizing: border-box;
}

/* On mobile carousel, restore reveal animation via a simpler approach:
   cards are always visible (no transform offset), just fade in on load */
@media (max-width: 767px) {
  #pricingCarousel .pricing-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* On desktop, re-enable reveal for pricing cards (they're in normal flow) */
@media (min-width: 768px) {
  #pricingCarousel .pricing-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  #pricingCarousel .pricing-card.visible {
    opacity: 1;
    transform: none;
  }
}

/* Premium+ lock overlay: keep overflow clipping on the wrap only */
.premium-lock-wrap {
  overflow: hidden;
  border-radius: 12px;
}

html.light html.light
/* ═══════════════════════════════════════════════════════
   HONEYCOMB PATTERN — pointy-top hex tile
   Simple background-image, no pseudo-elements.
   Fade handled by a sibling .grid-fade div in HTML.
═══════════════════════════════════════════════════════ */

.grid-pattern,
.hero-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='83'%20height='144'%20viewBox='0%200%2083%20144'%3E%3Cg%20fill='none'%20stroke='%23d4af37'%20stroke-width='1'%3E%3Cpolygon%20points='41.57,0.00%2083.14,24.00%2083.14,72.00%2041.57,96.00%200.00,72.00%200.00,24.00'/%3E%3Cpolygon%20points='83.14,72.00%20124.71,96.00%20124.71,144.00%2083.14,168.00%2041.57,144.00%2041.57,96.00'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 83px 144px;
  background-repeat: repeat;
  opacity: 0.25;
}

html.light .grid-pattern,
html.light .hero-grid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='83'%20height='144'%20viewBox='0%200%2083%20144'%3E%3Cg%20fill='none'%20stroke='%238b6b23'%20stroke-width='1'%3E%3Cpolygon%20points='41.57,0.00%2083.14,24.00%2083.14,72.00%2041.57,96.00%200.00,72.00%200.00,24.00'/%3E%3Cpolygon%20points='83.14,72.00%20124.71,96.00%20124.71,144.00%2083.14,168.00%2041.57,144.00%2041.57,96.00'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 83px 144px;
  background-repeat: repeat;
  opacity: 0.4;
}

/* Fade overlay — separate sibling div placed after .grid-pattern in HTML */
.grid-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #09090b 100%);
  pointer-events: none;
}
html.light .grid-fade {
  background: linear-gradient(to bottom, transparent 40%, #f4f4f5 100%);
}

/* ═══════════════════════════════════════════════════════
   SITE NAV LINKS — flat, no dropdowns
   Active style matches app NavbarTrainer: gold text +
   subtle bg pill, bottom border accent like app tabs
═══════════════════════════════════════════════════════ */

/* Flat desktop nav link */
.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--zinc-400);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav-link:hover {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.5);
}
html.light .site-nav-link {
  color: var(--zinc-600);
}
html.light .site-nav-link:hover {
  color: var(--zinc-900);
  background: rgba(228,228,231,0.6);
}

/* Active state — matches app: gold text, subtle gold bg pill,
   gold bottom border accent (like the app's active tab underline) */
.site-nav-link.is-active-page {
  color: var(--gold) !important;
  background: rgba(212,175,55,0.08);
  font-weight: 700;
}
.site-nav-link.is-active-page::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.7;
}
html.light .site-nav-link.is-active-page {
  color: #b8860b !important;
  background: rgba(212,175,55,0.1);
}
html.light .site-nav-link.is-active-page::after {
  background: #b8860b;
}

/* Mobile nav link */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--zinc-400);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-link:hover {
  background: rgba(212,175,55,0.08);
  color: var(--gold);
}
.mobile-nav-link.is-active-page {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  font-weight: 700;
  border-left: 2px solid rgba(212,175,55,0.6);
  padding-left: 12px;
}
html.light .mobile-nav-link { color: var(--zinc-600); }
html.light .mobile-nav-link:hover { background: rgba(212,175,55,0.08); color: #b8860b; }
html.light .mobile-nav-link.is-active-page { color: #b8860b; background: rgba(212,175,55,0.08); border-left-color: rgba(184,134,11,0.5); }

/* Icon-style buttons (theme toggle, hamburger, lang) */
.site-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--zinc-400);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav-icon-btn:hover {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.5);
}
html.light .site-nav-icon-btn { color: var(--zinc-600); }
html.light .site-nav-icon-btn:hover { color: var(--zinc-900); background: rgba(228,228,231,0.6); }

/* ═══════════════════════════════════════════════════════
   SPLIT NAV — clickable label + separate chevron dropdown
═══════════════════════════════════════════════════════ */

/* Wrapper that holds the link + chevron side by side */
.nav-dd-split {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  overflow: visible;
}

/* The clickable text part — no right padding so it sits flush with chevron */
.site-nav-link--split {
  padding-right: 4px;
  border-radius: 8px 0 0 8px;
}
.site-nav-link--split:hover,
.site-nav-link--split.is-active-page {
  border-radius: 8px 0 0 8px;
}

/* The chevron button part */
.site-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--zinc-500);
  border-radius: 0 8px 8px 0;
  transition: color 0.15s, background 0.15s;
}
.site-nav-chevron:hover {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.5);
}
/* Highlight chevron when dropdown is open */
.nav-dd.is-open .site-nav-chevron {
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}
/* Also highlight the text link when dropdown is open */
.nav-dd.is-open .site-nav-link--split {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.4);
}
html.light .site-nav-chevron { color: var(--zinc-500); }
html.light .site-nav-chevron:hover { color: var(--zinc-900); background: rgba(228,228,231,0.6); }
html.light .nav-dd.is-open .site-nav-chevron { color: #b8860b; background: rgba(212,175,55,0.1); }
html.light .nav-dd.is-open .site-nav-link--split { color: var(--zinc-900); background: rgba(228,228,231,0.4); }

/* Active page: highlight the text link only, not the chevron */
.site-nav-link--split.is-active-page {
  color: var(--gold) !important;
  background: rgba(212,175,55,0.08);
  font-weight: 700;
}
.site-nav-link--split.is-active-page::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.7;
}
html.light .site-nav-link--split.is-active-page { color: #b8860b !important; background: rgba(212,175,55,0.1); }

/* Mobile sub-links (indented section links) */
.mobile-nav-sub {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--zinc-500);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  margin-left: 4px;
}
.mobile-nav-sub:hover { color: var(--gold); background: rgba(212,175,55,0.05); }
html.light .mobile-nav-sub { color: var(--zinc-500); border-left-color: rgba(228,228,231,0.8); }
html.light .mobile-nav-sub:hover { color: #b8860b; }

/* ═══════════════════════════════════════════════════════
   DESKTOP — single button dropdown (replaces split nav)
═══════════════════════════════════════════════════════ */

/* nav-dd-btn already styled as a button — just make sure
   it matches site-nav-link sizing exactly */
.nav-dd-btn.site-nav-link {
  padding: 6px 12px;
  margin-bottom: 0;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  gap: 4px;
}
.nav-dd-btn.site-nav-link:hover {
  color: var(--zinc-50);
  background: rgba(39,39,42,0.5);
}
html.light .nav-dd-btn.site-nav-link:hover {
  color: var(--zinc-900);
  background: rgba(228,228,231,0.6);
}

/* Rotate chevron when dropdown open */
.nav-dd.is-open .nav-dd-btn .nav-dd-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dd-chevron { transition: transform 0.15s ease, opacity 0.15s; }

/* Active page on button trigger */
.nav-dd-btn.site-nav-link.is-active-page {
  color: var(--gold) !important;
  background: rgba(212,175,55,0.08);
  font-weight: 700;
}
.nav-dd-btn.site-nav-link.is-active-page::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.7;
}
html.light .nav-dd-btn.site-nav-link.is-active-page {
  color: #b8860b !important;
  background: rgba(212,175,55,0.1);
}

/* ═══════════════════════════════════════════════════════
   MOBILE — accordion (collapsible sections)
═══════════════════════════════════════════════════════ */

.mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--zinc-300);
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.mobile-accordion-trigger:hover {
  background: rgba(212,175,55,0.05);
  color: var(--gold);
}
.mobile-accordion-trigger[aria-expanded="true"] {
  color: var(--gold);
}
html.light .mobile-accordion-trigger { color: var(--zinc-700); }
html.light .mobile-accordion-trigger:hover { color: #b8860b; }
html.light .mobile-accordion-trigger[aria-expanded="true"] { color: #b8860b; }

.mob-acc-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

/* Panel: collapsed by default, expands via JS maxHeight */
.mobile-acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}
.mobile-acc-panel[aria-hidden="false"] {
  /* Height set by JS (scrollHeight), opacity set by JS */
}

/* Remove old split nav styles (they're no longer used) */
.nav-dd-split, .site-nav-link--split, .site-nav-chevron { display: none !important; }

/* ═══════════════════════════════════════════════════════
   FEATURE PAGE — INTERACTIVE TAGS
═══════════════════════════════════════════════════════ */
.feat-tag {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--zinc-400);
  background: rgba(39,39,42,0.6);
  border: 1px solid rgba(63,63,70,0.7);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.feat-tag:hover {
  color: var(--zinc-50);
  border-color: rgba(212,175,55,0.3);
  background: rgba(63,63,70,0.6);
}
.feat-tag.feat-tag--active {
  color: var(--gold);
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4);
  font-weight: 700;
}
html.light .feat-tag {
  color: var(--zinc-600);
  background: var(--zinc-100);
  border-color: var(--zinc-300);
}
html.light .feat-tag:hover { color: var(--zinc-900); border-color: rgba(212,175,55,0.4); }
html.light .feat-tag.feat-tag--active { color: #b8860b; background: rgba(212,175,55,0.08); border-color: rgba(184,134,11,0.4); }

/* Detail panel below the tag list */
.feat-tag-title {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Screenshot placeholder inside feat-tag-wrapper */
.feat-tag-screenshot {
  position: sticky;
  top: 80px; /* below fixed navbar */
}

/* ═══════════════════════════════════════════════════════
   FEATURE PAGE — TAB STRIP (matches app NavbarTrainer style)
═══════════════════════════════════════════════════════ */

/* Container: horizontal scroll on mobile, wrap on desktop */
.feat-tab-strip {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  padding: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(24,24,27,0.5);
  border: 1px solid rgba(63,63,70,0.5);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  max-width: 100%;
}
.feat-tab-strip::-webkit-scrollbar { display: none; }

html.light .feat-tab-strip {
  background: rgba(255,255,255,0.8);
  border-color: rgba(228,228,231,0.9);
}

/* Each tab button — matches the Tailwind component */
.feat-tab-btn {
  position: relative;
  min-width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  overflow: hidden;
  /* Inactive: transparent border, subtle bg */
  background: transparent;
  color: var(--zinc-400);
}
.feat-tab-btn:hover {
  background: rgba(39,39,42,0.3);
  color: var(--zinc-200);
}

/* Active state — matches the app component exactly */
.feat-tab-btn.feat-tab-active {
  background: var(--zinc-950);
  border-color: var(--zinc-800);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  color: var(--zinc-50);
}

/* Left border accent — the gold bar */
.feat-tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
  box-shadow: 2px 0 12px rgba(212,175,55,0.6);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.feat-tab-btn.feat-tab-active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Gold gradient sweep inside active tab */
.feat-tab-btn.feat-tab-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(212,175,55,0.07), transparent);
  pointer-events: none;
  border-radius: 12px;
}

/* Light mode variants */
html.light .feat-tab-btn {
  color: var(--zinc-500);
}
html.light .feat-tab-btn:hover {
  background: rgba(244,244,245,0.8);
  color: var(--zinc-700);
}
html.light .feat-tab-btn.feat-tab-active {
  background: #ffffff;
  border-color: var(--zinc-200);
  color: var(--zinc-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
html.light .feat-tab-btn.feat-tab-active::after {
  background: linear-gradient(to right, rgba(212,175,55,0.06), transparent);
}


/* Tab icon sizing */
.feat-tab-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
}
.feat-tab-btn.feat-tab-active .feat-tab-icon {
  color: var(--gold);
  transform: scale(1.1);
}
.feat-tab-btn:not(.feat-tab-active) .feat-tab-icon {
  color: var(--zinc-400);
}
html.light .feat-tab-btn.feat-tab-active .feat-tab-icon { color: #b8860b; }

/* ── Sticky tab strip ── */
.feat-tab-sticky {
  position: sticky;
  top: 56px;       /* navbar height */
  z-index: 40;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  /* background and border only appear when scrolled (via JS class) */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.feat-tab-sticky.is-stuck {
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(39,39,42,0.6);
}
html.light .feat-tab-sticky.is-stuck {
  background: rgba(244,244,245,0.92);
  border-bottom-color: rgba(212,212,216,0.7);
}
