/* =========================================================================
   GoShareTheJourney® Design System v2 — Pastel Dark + Warm Paper Light
   Palette (dark):  #2C2C2C bg · #E4E4E4 text · #A8DADC cyan · #FFC1CC pink · #B39CD0 lavender
   Palette (light): #F9F9F8 bg · #2C2C2C text · #1D7074 cyan · #B53856 pink · #7E5E9E lavender
   ========================================================================= */

:root,
html.dark {
  --bg-canvas: #2C2C2C;
  --bg-surface: #343434;
  --bg-surface-elevated: #3D3D3D;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #E4E4E4;
  --text-secondary: #A8A8A8;
  --accent-cyan: #A8DADC;
  --accent-pink: #FFC1CC;
  --cta-lavender: #B39CD0;
  --cta-text: #1E1728;
}

html:not(.dark),
html.light {
  --bg-canvas: #F9F9F8;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F1EF;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-primary: #2C2C2C;
  --text-secondary: #555555;
  --accent-cyan: #1D7074;
  --accent-pink: #B53856;
  --cta-lavender: #7E5E9E;
  --cta-text: #FFFFFF;
  color-scheme: light;
}

/* -------------------------------------------------------------------------
   Base transition for smooth theme switching
   ------------------------------------------------------------------------- */
html, body, header, footer, nav, section, div, a, button, p, span,
h1, h2, h3, h4, h5, h6, ul, li {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   DARK MODE  (html.dark — default)
   ========================================================================= */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
}

/* Scrollbar */
html.dark ::-webkit-scrollbar-track { background: #232323 !important; }
html.dark ::-webkit-scrollbar-thumb { background: #444444 !important; border-radius: 4px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #555555 !important; }

/* Page & surface overrides across all pages */
html.dark [class*="bg-slate-950"] { background-color: #2C2C2C !important; }
html.dark [class*="bg-slate-900"] {
  background-color: #343434 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}
html.dark [class*="bg-slate-800"],
html.dark [class*="bg-slate-750"],
html.dark [class*="bg-slate-700"] { background-color: #3D3D3D !important; }

/* Inset cards inside cards in dark mode */
html.dark [class*="bg-slate-900"] [class*="bg-slate-950"],
html.dark div[class*="from-slate-"] [class*="bg-slate-950"] {
  background-color: #292929 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Gradient card containers */
html.dark div[class*="from-slate-"],
html.dark [class*="bg-gradient-to-b from-slate-"] {
  --tw-gradient-from: #343434 !important;
  --tw-gradient-to: #2C2C2C !important;
  background-image: linear-gradient(145deg, #363636 0%, #2E2E2E 100%) !important;
  background-color: #343434 !important;
}

/* Section backgrounds */
html.dark section { background-color: transparent; }
html.dark section.bg-gradient-to-b {
  background-image: none !important;
  background-color: #2C2C2C !important;
}

/* Typography in Dark Mode */
html.dark .text-white { color: #E4E4E4 !important; }
html.dark .text-slate-100,
html.dark .text-slate-200 { color: #DADADA !important; }
html.dark .text-slate-300 { color: #C2C2C2 !important; }
html.dark .text-slate-400,
html.dark .text-slate-500 { color: #A8A8A8 !important; }

/* Brand cyan (JourneyLog — #A8DADC) */
html.dark .text-brand-200,
html.dark .text-brand-300,
html.dark .text-brand-400,
html.dark .text-cyan-300,
html.dark .text-cyan-400,
html.dark .text-teal-300,
html.dark .text-teal-400 { color: #A8DADC !important; }

/* Brand pink (Roots & Rings — #FFC1CC) */
html.dark .text-rose-200,
html.dark .text-rose-300,
html.dark .text-rose-400 { color: #FFC1CC !important; }

/* Lavender accents */
html.dark .text-indigo-300,
html.dark .text-indigo-400,
html.dark .text-purple-300 { color: #B39CD0 !important; }

/* Borders in Dark Mode */
html.dark [class*="border-slate-"] { border-color: rgba(255, 255, 255, 0.08) !important; }
html.dark [class*="border-brand-500"],
html.dark [class*="border-teal-500"] { border-color: rgba(168, 218, 220, 0.35) !important; }
html.dark [class*="border-rose-500"] { border-color: rgba(255, 193, 204, 0.35) !important; }

/* Sticky header in Dark Mode */
html.dark header {
  background-color: rgba(44, 44, 44, 0.86) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

/* Footer in Dark Mode */
html.dark footer {
  background-color: #252525 !important;
  border-top-color: rgba(255, 255, 255, 0.07) !important;
}

/* Mobile menu in Dark Mode */
html.dark #mobile-menu {
  background-color: rgba(44, 44, 44, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Ambient glow overrides (dark) */
html.dark .glow-gradient-1 {
  background: radial-gradient(circle at 50% 0%, rgba(168, 218, 220, 0.13) 0%, rgba(44, 44, 44, 0) 70%) !important;
}
html.dark .glow-gradient-2 {
  background: radial-gradient(circle at 100% 40%, rgba(179, 156, 208, 0.09) 0%, rgba(44, 44, 44, 0) 60%) !important;
}
html.dark .glow-gradient-3 {
  background: radial-gradient(circle at 0% 70%, rgba(255, 193, 204, 0.08) 0%, rgba(44, 44, 44, 0) 50%) !important;
}

/* Brand-tinted & Rose-tinted cards in Dark Mode */
html.dark [class*="bg-brand-950"] {
  background-color: rgba(168, 218, 220, 0.07) !important;
  border-color: rgba(168, 218, 220, 0.22) !important;
}
html.dark [class*="bg-rose-950"] {
  background-color: rgba(255, 193, 204, 0.07) !important;
  border-color: rgba(255, 193, 204, 0.22) !important;
}

/* Legacy gradient CTA buttons across product pages -> Lavender (#B39CD0) in Dark Mode */
html.dark a[class*="from-brand-400"],
html.dark button[class*="from-brand-400"] {
  background-image: none !important;
  background-color: #B39CD0 !important;
  color: #1E1728 !important;
  box-shadow: 0 8px 20px -6px rgba(179, 156, 208, 0.4) !important;
}
html.dark a[class*="from-brand-400"]:hover,
html.dark button[class*="from-brand-400"]:hover {
  background-color: #C4B0E0 !important;
}

/* =========================================================================
   LIGHT MODE  (html:not(.dark) / html.light) — Warm Editorial Paper
   ========================================================================= */
html:not(.dark) body,
html.light body {
  background-color: #F9F9F8 !important;
  color: #2C2C2C !important;
}

html:not(.dark) ::-webkit-scrollbar-track,
html.light      ::-webkit-scrollbar-track { background: #EFEFED !important; }
html:not(.dark) ::-webkit-scrollbar-thumb,
html.light      ::-webkit-scrollbar-thumb { background: #CCCCCC !important; border-radius: 4px; }
html:not(.dark) ::-webkit-scrollbar-thumb:hover,
html.light      ::-webkit-scrollbar-thumb:hover { background: #AAAAAA !important; }

/* Ambient glows (light) */
html:not(.dark) .glow-gradient-1,
html.light      .glow-gradient-1 {
  background: radial-gradient(circle at 50% 0%, rgba(168, 218, 220, 0.16) 0%, rgba(249, 249, 248, 0) 70%) !important;
}
html:not(.dark) .glow-gradient-2,
html.light      .glow-gradient-2 {
  background: radial-gradient(circle at 100% 40%, rgba(179, 156, 208, 0.12) 0%, rgba(249, 249, 248, 0) 60%) !important;
}
html:not(.dark) .glow-gradient-3,
html.light      .glow-gradient-3 {
  background: radial-gradient(circle at 0% 70%, rgba(255, 193, 204, 0.12) 0%, rgba(249, 249, 248, 0) 50%) !important;
}

/* Section backgrounds */
html:not(.dark) section,
html.light section { background-color: transparent; }
html:not(.dark) section.bg-gradient-to-b,
html.light section.bg-gradient-to-b {
  background-image: none !important;
  background-color: #F9F9F8 !important;
}

/* Base surfaces */
html:not(.dark) [class*="bg-slate-950"],
html.light [class*="bg-slate-950"] { background-color: #F9F9F8 !important; }

html:not(.dark) [class*="bg-slate-900"],
html.light [class*="bg-slate-900"] {
  background-color: #FFFFFF !important;
  box-shadow: 0 10px 25px -5px rgba(44, 44, 44, 0.06), 0 4px 6px -2px rgba(44, 44, 44, 0.02) !important;
}

html:not(.dark) [class*="bg-slate-800"],
html:not(.dark) [class*="bg-slate-750"],
html:not(.dark) [class*="bg-slate-700"],
html.light [class*="bg-slate-800"],
html.light [class*="bg-slate-750"],
html.light [class*="bg-slate-700"] {
  background-color: #F0F0EE !important;
  color: #2C2C2C !important;
  border-color: #E0E0DC !important;
}

/* Gradient card containers */
html:not(.dark) div[class*="from-slate-"],
html.light div[class*="from-slate-"],
html:not(.dark) [class*="bg-gradient-to-b from-slate-"],
html.light [class*="bg-gradient-to-b from-slate-"] {
  --tw-gradient-from: #ffffff !important;
  --tw-gradient-to: #F9F9F8 !important;
  background-image: none !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px -5px rgba(44, 44, 44, 0.06), 0 4px 6px -2px rgba(44, 44, 44, 0.02) !important;
}

/* Inset sub-cards */
html:not(.dark) [class*="bg-slate-900"] [class*="bg-slate-950"],
html.light [class*="bg-slate-900"] [class*="bg-slate-950"],
html:not(.dark) div[class*="from-slate-"] [class*="bg-slate-950"],
html.light div[class*="from-slate-"] [class*="bg-slate-950"] {
  background-color: #F9F9F8 !important;
  border-color: #E0E0DC !important;
}

/* Brand-tinted cards (light) */
html:not(.dark) [class*="bg-brand-950"],
html.light [class*="bg-brand-950"] {
  background-color: #F2FAFA !important;
  border-color: #BDE3E5 !important;
}
html:not(.dark) [class*="bg-brand-950"] strong,
html:not(.dark) [class*="bg-brand-950"] h2,
html:not(.dark) [class*="bg-brand-950"] h3,
html:not(.dark) [class*="bg-brand-950"] .text-white,
html.light [class*="bg-brand-950"] strong,
html.light [class*="bg-brand-950"] h2,
html.light [class*="bg-brand-950"] h3,
html.light [class*="bg-brand-950"] .text-white {
  color: #2C2C2C !important;
}

html:not(.dark) [class*="bg-rose-950"],
html.light [class*="bg-rose-950"] {
  background-color: #FFF5F7 !important;
  border-color: #F5C6D0 !important;
}
html:not(.dark) [class*="bg-rose-950"] strong,
html:not(.dark) [class*="bg-rose-950"] h2,
html:not(.dark) [class*="bg-rose-950"] h3,
html:not(.dark) [class*="bg-rose-950"] .text-white,
html.light [class*="bg-rose-950"] strong,
html.light [class*="bg-rose-950"] h2,
html.light [class*="bg-rose-950"] h3,
html.light [class*="bg-rose-950"] .text-white {
  color: #2C2C2C !important;
}

/* Typography (light) */
html:not(.dark) .text-white,
html.light .text-white { color: #2C2C2C !important; }
html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200,
html.light .text-slate-100,
html.light .text-slate-200 { color: #383838 !important; }
html:not(.dark) .text-slate-300,
html.light .text-slate-300 { color: #4A4A4A !important; }
html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500,
html.light .text-slate-400,
html.light .text-slate-500 { color: #686868 !important; }

/* Accent text (light — high-contrast editorial variants) */
html:not(.dark) .text-brand-200,
html:not(.dark) .text-brand-300,
html:not(.dark) .text-brand-400,
html:not(.dark) .text-cyan-300,
html:not(.dark) .text-cyan-400,
html:not(.dark) .text-teal-300,
html:not(.dark) .text-teal-400,
html.light .text-brand-200,
html.light .text-brand-300,
html.light .text-brand-400,
html.light .text-cyan-300,
html.light .text-cyan-400,
html.light .text-teal-300,
html.light .text-teal-400 { color: #1D7074 !important; }

html:not(.dark) .text-rose-200,
html:not(.dark) .text-rose-300,
html:not(.dark) .text-rose-400,
html.light .text-rose-200,
html.light .text-rose-300,
html.light .text-rose-400 { color: #B53856 !important; }

html:not(.dark) .text-indigo-300,
html:not(.dark) .text-indigo-400,
html.light .text-indigo-300,
html.light .text-indigo-400 { color: #7E5E9E !important; }

/* Emerald badge readability in light mode */
html:not(.dark) .text-emerald-300,
html:not(.dark) .text-emerald-400,
html.light .text-emerald-300,
html.light .text-emerald-400 { color: #047857 !important; }

/* Borders (light) */
html:not(.dark) [class*="border-slate-"],
html:not(.dark) [class*="border-white"],
html.light [class*="border-slate-"],
html.light [class*="border-white"] { border-color: #E2E2DE !important; }
html:not(.dark) [class*="border-brand-500"],
html:not(.dark) [class*="border-teal-500"],
html.light [class*="border-brand-500"],
html.light [class*="border-teal-500"] { border-color: rgba(29, 112, 116, 0.35) !important; }
html:not(.dark) [class*="border-rose-500"],
html.light [class*="border-rose-500"] { border-color: rgba(200, 75, 104, 0.35) !important; }

/* Sticky header (light) */
html:not(.dark) header,
html.light header {
  background-color: rgba(249, 249, 248, 0.94) !important;
  border-bottom-color: #E2E2DE !important;
  box-shadow: 0 1px 3px rgba(44, 44, 44, 0.05);
}

/* Footer (light) */
html:not(.dark) footer,
html.light footer {
  background-color: #F0F0EE !important;
  border-top-color: #E2E2DE !important;
}

/* Buttons — light overrides */
html:not(.dark) button[class*="bg-slate-900"],
html:not(.dark) a[class*="bg-slate-900"],
html.light button[class*="bg-slate-900"],
html.light a[class*="bg-slate-900"] {
  background-color: #FFFFFF !important;
  border-color: #D0D0CC !important;
  color: #2C2C2C !important;
}
html:not(.dark) button[class*="bg-slate-900"]:hover,
html:not(.dark) a[class*="bg-slate-900"]:hover,
html.light button[class*="bg-slate-900"]:hover,
html.light a[class*="bg-slate-900"]:hover {
  background-color: #F9F9F8 !important;
  border-color: #1D7074 !important;
}

/* Mobile menu (light) */
html:not(.dark) #mobile-menu,
html.light #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #E2E2DE !important;
  box-shadow: 0 10px 25px -5px rgba(44, 44, 44, 0.1) !important;
}
html:not(.dark) #mobile-menu a:not(.btn-lavender),
html.light #mobile-menu a:not(.btn-lavender) {
  color: #4A4A4A !important;
  background-color: transparent !important;
  border-color: transparent !important;
}
html:not(.dark) #mobile-menu a:not(.btn-lavender):hover,
html.light #mobile-menu a:not(.btn-lavender):hover {
  color: #2C2C2C !important;
  background-color: rgba(44, 44, 44, 0.05) !important;
}

/* Code / pre (light) */
html:not(.dark) pre,
html:not(.dark) code.bg-slate-900,
html.light pre,
html.light code.bg-slate-900 {
  background-color: #F0F0EE !important;
  color: #2C2C2C !important;
  border-color: #E0E0DC !important;
}

/* =========================================================================
   NAVIGATION BAR & ACTION CONTROLS
   ========================================================================= */
.nav-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #C2C2C2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.nav-glass-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(168, 218, 220, 0.35);
  color: #A8DADC;
  transform: translateY(-1px);
}
.nav-glass-btn:active { transform: translateY(0); }

html:not(.dark) .nav-glass-btn,
html.light .nav-glass-btn {
  background: rgba(44, 44, 44, 0.05) !important;
  border-color: rgba(44, 44, 44, 0.1) !important;
  color: #4A4A4A !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .nav-glass-btn:hover,
html.light .nav-glass-btn:hover {
  background: rgba(44, 44, 44, 0.09) !important;
  border-color: rgba(29, 112, 116, 0.4) !important;
  color: #1D7074 !important;
}

@media (max-width: 767px) {
  .mobile-header-control-source {
    display: none !important;
  }

  #mobile-menu {
    max-height: calc(100svh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #mobile-menu > a:not(.btn-lavender) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  #mobile-menu > a:not(.btn-lavender):focus-visible {
    outline: 2px solid #A8DADC;
    outline-offset: 2px;
  }

  .mobile-menu-utility-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(128, 128, 128, 0.24);
  }

  .mobile-menu-utility-row .mobile-menu-control {
    width: 100%;
    min-width: 0;
    height: 2.5rem;
    gap: 0.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  #mobile-menu-btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.8rem !important;
  }

  #mobile-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B0B0B0;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: #E4E4E4;
  background: rgba(255, 255, 255, 0.07);
}
html:not(.dark) .nav-link,
html.light .nav-link { color: #555555 !important; }
html:not(.dark) .nav-link:hover,
html.light .nav-link:hover {
  color: #2C2C2C !important;
  background: rgba(44, 44, 44, 0.06) !important;
}

/* Active nav links */
.nav-link-active {
  color: #A8DADC !important;
  background: rgba(168, 218, 220, 0.12) !important;
  border: 1px solid rgba(168, 218, 220, 0.28) !important;
  font-weight: 600 !important;
}
.nav-link-active-rose {
  color: #FFC1CC !important;
  background: rgba(255, 193, 204, 0.12) !important;
  border: 1px solid rgba(255, 193, 204, 0.28) !important;
  font-weight: 600 !important;
}
html:not(.dark) .nav-link-active,
html.light .nav-link-active {
  color: #1D7074 !important;
  background: rgba(29, 112, 116, 0.08) !important;
  border-color: rgba(29, 112, 116, 0.25) !important;
}
html:not(.dark) .nav-link-active-rose,
html.light .nav-link-active-rose {
  color: #B53856 !important;
  background: rgba(200, 75, 104, 0.08) !important;
  border-color: rgba(200, 75, 104, 0.25) !important;
}

/* =========================================================================
   BUTTON SYSTEM
   ========================================================================= */

/* Primary CTA — Lavender (#B39CD0 in dark, #7E5E9E in light) */
.btn-lavender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  background-color: var(--cta-lavender);
  color: var(--cta-text);
  border: 1px solid rgba(179, 156, 208, 0.5);
  box-shadow: 0 8px 20px -6px rgba(179, 156, 208, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-lavender:hover {
  background-color: #C4B0E0;
  box-shadow: 0 12px 28px -6px rgba(179, 156, 208, 0.55);
  transform: translateY(-2px);
}
.btn-lavender:active { transform: translateY(0); }

html:not(.dark) .btn-lavender,
html.light .btn-lavender {
  background-color: #7E5E9E !important;
  color: #FFFFFF !important;
  border-color: rgba(126, 94, 158, 0.5) !important;
  box-shadow: 0 8px 20px -6px rgba(126, 94, 158, 0.35) !important;
}
html:not(.dark) .btn-lavender:hover,
html.light .btn-lavender:hover {
  background-color: #6B4D8B !important;
}

/* Secondary ghost */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.05);
  color: #DADADA;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(168, 218, 220, 0.08);
  border-color: rgba(168, 218, 220, 0.35);
  color: #A8DADC;
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

html:not(.dark) .btn-secondary,
html.light .btn-secondary {
  background: #FFFFFF !important;
  color: #2C2C2C !important;
  border-color: #D5D5D0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
html:not(.dark) .btn-secondary:hover,
html.light .btn-secondary:hover {
  background: rgba(29, 112, 116, 0.06) !important;
  border-color: rgba(29, 112, 116, 0.35) !important;
  color: #1D7074 !important;
}

/* =========================================================================
   HERO GRADIENT HEADLINE HELPERS
   ========================================================================= */
.grad-mixed {
  background: linear-gradient(135deg, #A8DADC 0%, #B39CD0 50%, #FFC1CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html:not(.dark) .grad-mixed,
html.light .grad-mixed {
  background: linear-gradient(135deg, #1D7074 0%, #7E5E9E 50%, #B53856 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================================
   BENTO GRID & MODERN CARD SYSTEM
   ========================================================================= */
.bento-card {
  position: relative;
  background: linear-gradient(145deg, #383838 0%, #313131 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-card:hover {
  border-color: rgba(168, 218, 220, 0.38);
  box-shadow: 0 20px 50px -15px rgba(168, 218, 220, 0.18);
}
.bento-card-rose:hover {
  border-color: rgba(255, 193, 204, 0.4) !important;
  box-shadow: 0 20px 50px -15px rgba(255, 193, 204, 0.18) !important;
}
.bento-card-lavender:hover {
  border-color: rgba(179, 156, 208, 0.4) !important;
  box-shadow: 0 20px 50px -15px rgba(179, 156, 208, 0.18) !important;
}

html:not(.dark) .bento-card,
html.light .bento-card {
  background: #FFFFFF !important;
  border-color: #E2E2DE !important;
  box-shadow: 0 8px 24px -6px rgba(44, 44, 44, 0.06), 0 3px 8px -3px rgba(44, 44, 44, 0.03) !important;
}
html:not(.dark) .bento-card:hover,
html.light .bento-card:hover {
  border-color: rgba(29, 112, 116, 0.4) !important;
  box-shadow: 0 20px 40px -12px rgba(29, 112, 116, 0.14), 0 1px 3px rgba(44, 44, 44, 0.05) !important;
}
html:not(.dark) .bento-card-rose:hover,
html.light .bento-card-rose:hover {
  border-color: rgba(200, 75, 104, 0.4) !important;
  box-shadow: 0 20px 40px -12px rgba(200, 75, 104, 0.14), 0 1px 3px rgba(44, 44, 44, 0.05) !important;
}
html:not(.dark) .bento-card-lavender:hover,
html.light .bento-card-lavender:hover {
  border-color: rgba(126, 94, 158, 0.4) !important;
  box-shadow: 0 20px 40px -12px rgba(126, 94, 158, 0.14), 0 1px 3px rgba(44, 44, 44, 0.05) !important;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #A8A8A8;
}
html:not(.dark) .tech-tag,
html.light .tech-tag {
  background: #F0F0EE !important;
  border-color: #E0E0DC !important;
  color: #555555 !important;
}

/* =========================================================================
   HERO PARALLAX FLOATING CARDS
   ========================================================================= */
.hero-card {
  background: linear-gradient(145deg, rgba(60, 60, 60, 0.92) 0%, rgba(50, 50, 50, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html:not(.dark) .hero-card,
html.light .hero-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #E2E2DE !important;
  box-shadow: 0 24px 48px -12px rgba(44, 44, 44, 0.12), 0 8px 16px -8px rgba(44, 44, 44, 0.06) !important;
}

/* Floating Tactile Parallax Cards for Product Pages */
.jl-float-card {
  position: absolute;
  pointer-events: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.05) inset,
    0 22px 48px -18px rgba(0, 0, 0, 0.35),
    0 0 36px -14px rgba(168, 218, 220, 0.18);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  z-index: 1;
  will-change: transform;
  opacity: 0.92;
}
.jl-float-card .jl-float-glyph {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.jl-float-card .jl-float-glyph svg {
  width: 1.55rem;
  height: 1.55rem;
  filter: drop-shadow(0 0 10px currentColor);
}
html:not(.dark) .jl-float-card,
html.light .jl-float-card {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(44, 44, 44, 0.08) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 18px 40px -16px rgba(44, 44, 44, 0.12),
    0 0 28px -12px rgba(168, 218, 220, 0.2) !important;
  opacity: 0.95;
}
html:not(.dark) .jl-float-card .text-slate-300\/80,
html.light .jl-float-card .text-slate-300\/80 {
  color: rgba(44, 44, 44, 0.55) !important;
}
/* Naked decorative accent icons — section-border line art only */
.jl-icon-bubble {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: none;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.28;
  /* Decorative only — never intercept clicks / stack above content */
  z-index: 0;
}
/* Only show in wide layouts where real page margins exist */
@media (min-width: 1280px) {
  .jl-icon-bubble { display: block; }
}
.jl-icon-bubble svg {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  opacity: 1;
  stroke-opacity: 1;
  filter: none;
}
.jl-icon-bubble svg path,
.jl-icon-bubble svg circle,
.jl-icon-bubble svg line {
  stroke-width: 1.5;
  stroke-opacity: 1;
}
/* Random-feeling size ladder for border accents */
.jl-icon-bubble.jl-icon-xs svg { width: 1.6rem; height: 1.6rem; }
.jl-icon-bubble.jl-icon-sm svg { width: 2.1rem; height: 2.1rem; }
.jl-icon-bubble.jl-icon-md svg { width: 2.75rem; height: 2.75rem; }
.jl-icon-bubble.jl-icon-lg svg { width: 3.5rem; height: 3.5rem; }
.jl-icon-bubble.jl-icon-xl svg { width: 4.5rem; height: 4.5rem; }
@media (min-width: 1536px) {
  .jl-icon-bubble.jl-icon-xs svg { width: 1.85rem; height: 1.85rem; }
  .jl-icon-bubble.jl-icon-sm svg { width: 2.4rem; height: 2.4rem; }
  .jl-icon-bubble.jl-icon-md svg { width: 3.1rem; height: 3.1rem; }
  .jl-icon-bubble.jl-icon-lg svg { width: 4rem; height: 4rem; }
  .jl-icon-bubble.jl-icon-xl svg { width: 5.25rem; height: 5.25rem; }
}
.jl-icon-bubble--soft { opacity: 0.18; }
.jl-icon-bubble--faint { opacity: 0.12; }
.jl-icon-bubble--tilt-l { transform: rotate(-12deg); }
.jl-icon-bubble--tilt-r { transform: rotate(10deg); }
.jl-icon-bubble.jl-accent-float.jl-icon-bubble--tilt-l {
  animation-name: jlFloatTiltL;
}
.jl-icon-bubble.jl-accent-float.jl-icon-bubble--tilt-r {
  animation-name: jlFloatTiltR;
}
@keyframes jlFloatTiltL {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%      { transform: translateY(-8px) rotate(-12deg); }
}
@keyframes jlFloatTiltR {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50%      { transform: translateY(-8px) rotate(10deg); }
}
html:not(.dark) .jl-icon-bubble,
html.light .jl-icon-bubble {
  opacity: 0.34;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
html:not(.dark) .jl-icon-bubble--soft,
html.light .jl-icon-bubble--soft {
  opacity: 0.22;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
html:not(.dark) .jl-icon-bubble--faint,
html.light .jl-icon-bubble--faint {
  opacity: 0.13;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
html:not(.dark) .jl-icon-bubble svg path,
html:not(.dark) .jl-icon-bubble svg circle,
html:not(.dark) .jl-icon-bubble svg line,
html.light .jl-icon-bubble svg path,
html.light .jl-icon-bubble svg circle,
html.light .jl-icon-bubble svg line {
  stroke-width: 1.85;
  stroke-opacity: 1;
}

/* Gentle CSS breathing for naked accents */
@keyframes jlFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.jl-icon-bubble.jl-accent-float,
.jl-float-card.jl-accent-float,
[data-float-card] {
  animation: jlFloat 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .jl-icon-bubble.jl-accent-float,
  .jl-float-card.jl-accent-float,
  [data-float-card] { animation: none; }
}

/* Legacy alias */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-float {
  animation: heroFloat 8s ease-in-out infinite;
}

/* Route dash animation */
@keyframes routeDash {
  to { stroke-dashoffset: -28; }
}
.route-line-animated {
  animation: routeDash 2.5s linear infinite;
}

/* Waveform pulse animation */
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}
.wave-bar {
  transform-origin: center;
  animation: wavePulse 1.2s ease-in-out infinite;
}

/* =========================================================================
   SCROLL-REVEAL (Progressive Enhancement — visible by default if no JS)
   ========================================================================= */
html.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   STUDIO CRAFT & PHILOSOPHY SECTION
   ========================================================================= */
.craft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}
.craft-badge-cyan {
  background: rgba(168, 218, 220, 0.12);
  border: 1px solid rgba(168, 218, 220, 0.28);
  color: #A8DADC;
}
.craft-badge-pink {
  background: rgba(255, 193, 204, 0.12);
  border: 1px solid rgba(255, 193, 204, 0.28);
  color: #FFC1CC;
}
.craft-badge-lavender {
  background: rgba(179, 156, 208, 0.12);
  border: 1px solid rgba(179, 156, 208, 0.28);
  color: #B39CD0;
}
.craft-badge:hover { transform: translateY(-1px); }

html:not(.dark) .craft-badge-cyan,
html.light .craft-badge-cyan {
  background: rgba(29, 112, 116, 0.08) !important;
  border-color: rgba(29, 112, 116, 0.25) !important;
  color: #1D7074 !important;
}
html:not(.dark) .craft-badge-pink,
html.light .craft-badge-pink {
  background: rgba(200, 75, 104, 0.08) !important;
  border-color: rgba(200, 75, 104, 0.25) !important;
  color: #B53856 !important;
}
html:not(.dark) .craft-badge-lavender,
html.light .craft-badge-lavender {
  background: rgba(126, 94, 158, 0.08) !important;
  border-color: rgba(126, 94, 158, 0.25) !important;
  color: #7E5E9E !important;
}

/* =========================================================================
   TEMPLATE CALLOUT CARDS
   ========================================================================= */
.template-card-unlimited {
  background: rgba(168, 218, 220, 0.09);
  border: 1px solid rgba(168, 218, 220, 0.3);
  transition: all 0.2s ease;
}
.template-card-unlimited:hover {
  border-color: rgba(168, 218, 220, 0.55);
  background: rgba(168, 218, 220, 0.14);
  transform: translateY(-1px);
}
.template-card-unlimited .unlimited-title { color: #A8DADC; }
.template-card-unlimited .unlimited-subtitle { color: #A8A8A8; }

html:not(.dark) .template-card-unlimited,
html.light .template-card-unlimited {
  background: rgba(168, 218, 220, 0.08) !important;
  border-color: rgba(29, 112, 116, 0.25) !important;
}
html:not(.dark) .template-card-unlimited:hover,
html.light .template-card-unlimited:hover {
  background: rgba(168, 218, 220, 0.14) !important;
  border-color: rgba(29, 112, 116, 0.45) !important;
}
html:not(.dark) .template-card-unlimited .unlimited-title,
html.light .template-card-unlimited .unlimited-title { color: #1D7074 !important; }
html:not(.dark) .template-card-unlimited .unlimited-subtitle,
html.light .template-card-unlimited .unlimited-subtitle { color: #4A6B6D !important; }

/* =========================================================================
   LEGAL SEGMENTED CONTROL BAR
   ========================================================================= */
.legal-segmented-bar {
  background: rgba(52, 52, 52, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
}
.legal-segmented-group {
  background: rgba(38, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.legal-segmented-group::-webkit-scrollbar { display: none; }
.legal-segmented-group a { white-space: nowrap; flex-shrink: 0; }

html:not(.dark) .legal-segmented-bar,
html.light .legal-segmented-bar {
  background: #FFFFFF !important;
  border-color: #E2E2DE !important;
  box-shadow: 0 1px 3px rgba(44, 44, 44, 0.06) !important;
}
html:not(.dark) .legal-segmented-group,
html.light .legal-segmented-group {
  background: #F0F0EE !important;
  border-color: #E2E2DE !important;
}
html:not(.dark) .legal-segmented-group a:not([class*="bg-brand-"]):not([class*="bg-rose-"]):hover,
html.light .legal-segmented-group a:not([class*="bg-brand-"]):not([class*="bg-rose-"]):hover {
  background: #E2E2DE !important;
  color: #2C2C2C !important;
}

.legal-segmented-group a.bg-brand-400 { background-color: #A8DADC !important; color: #0D3033 !important; }
.legal-segmented-group a.bg-rose-500  { background-color: #FFC1CC !important; color: #3D0D17 !important; }
html:not(.dark) .legal-segmented-group a.bg-brand-400,
html.light .legal-segmented-group a.bg-brand-400 { background-color: #1D7074 !important; color: #FFFFFF !important; }
html:not(.dark) .legal-segmented-group a.bg-rose-500,
html.light .legal-segmented-group a.bg-rose-500  { background-color: #B53856 !important; color: #FFFFFF !important; }
