/*
 * Vrbtm Design System
 * Brand colors from iOS DesignSystem.swift
 * Supports dark/light mode with system preference
 */

/* ========================================
   ACCESSIBILITY UTILITIES
   ======================================== */

/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: off-screen until focused, then pinned top-left. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 1000;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--color-accent, #4f46e5);
  color: #fff;
  text-decoration: none;
  transition: top 0.15s ease-in-out;
}

.skip-link:focus {
  top: 8px;
}

/* ========================================
   CSS CUSTOM PROPERTIES - DARK MODE (DEFAULT)
   ======================================== */

:root {
  /* Brand Colors */
  --brand-blue: #3B86FF;
  --brand-blue-hover: #5a9aff;
  --brand-blue-glow: rgba(59, 134, 255, 0.4);

  /* Backgrounds */
  --bg-primary: #000000;
  --bg-surface: rgba(24, 24, 28, 0.76);
  /* Raw RGB of --bg-surface, for composing custom-alpha translucent surfaces
     (rgba(var(--bg-surface-rgb), N)). Must track --bg-surface per theme. */
  --bg-surface-rgb: 24, 24, 28;
  --bg-surface-secondary: rgba(28, 28, 34, 0.72);
  --bg-elevated: rgba(38, 38, 44, 0.85);

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.52);

  /* Borders */
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.24);

  /* Semantic Accents */
  --accent-audio: #2B8FB2;
  --accent-success: #4E8F72;
  --accent-destructive: #FF453A;

  /* Shadows & Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--brand-blue-glow);

  /* Layout */
  --max-width: 1140px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Spacing scale (8px base). Foundation for consistent rhythm — adopt
     incrementally; values match existing layout so uptake is visually neutral. */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.25s ease;
  --transition-slow: 0.4s ease;

  color-scheme: dark;
}

/* ========================================
   LIGHT MODE
   ======================================== */

[data-theme="light"],
:root:has(input#theme-toggle:checked) {
  /* Brand Colors */
  --brand-blue: #1F6AE1;
  --brand-blue-hover: #1a5bc5;
  --brand-blue-glow: rgba(31, 106, 225, 0.25);

  /* Backgrounds */
  --bg-primary: #F5F5F7;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-rgb: 255, 255, 255;
  --bg-surface-secondary: rgba(255, 255, 255, 0.70);
  --bg-elevated: rgba(255, 255, 255, 0.95);

  /* Text */
  --text-primary: #0B0B0F;
  --text-secondary: rgba(11, 11, 15, 0.72);
  --text-tertiary: rgba(11, 11, 15, 0.54);

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.18);

  /* Semantic Accents */
  --accent-audio: #2FA4C9;
  --accent-success: #5FAF8A;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

  color-scheme: light;
}

/* --- Dark/Light asset image switching --- */
/* Default (dark mode): show dark, hide light */
.asset-light {
  display: none !important;
}

.asset-dark {
  display: inline !important;
}

/* Explicit light theme via data attribute */
[data-theme="light"] .asset-dark,
:root:has(input#theme-toggle:checked) .asset-dark {
  display: none !important;
}

[data-theme="light"] .asset-light,
:root:has(input#theme-toggle:checked) .asset-light {
  display: inline !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --brand-blue: #1F6AE1;
    --brand-blue-hover: #1a5bc5;
    --brand-blue-glow: rgba(31, 106, 225, 0.25);
    --bg-primary: #F5F5F7;
    --bg-surface: rgba(255, 255, 255, 0.82);
    --bg-surface-secondary: rgba(255, 255, 255, 0.70);
    --bg-elevated: rgba(255, 255, 255, 0.95);
    --text-primary: #0B0B0F;
    --text-secondary: rgba(11, 11, 15, 0.72);
    --text-tertiary: rgba(11, 11, 15, 0.54);
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.18);
    --accent-audio: #2FA4C9;
    --accent-success: #5FAF8A;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    color-scheme: light;
  }

  /* Asset image switching for system-level light mode */
  :root:not([data-theme="dark"]) .asset-dark {
    display: none !important;
  }

  :root:not([data-theme="dark"]) .asset-light {
    display: inline !important;
  }
}

/* ========================================
   RESET & BASE
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Definitive guard against horizontal page-shift on mobile: no descendant
     (wide mockup, decorative glow, real device image) can make the page
     scroll sideways. 'clip' keeps position: sticky working. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-blue-hover);
}

a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-blue-glow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: min(var(--max-width), 92%);
  margin-inline: auto;
}

/* <main> carries .container, and sections inside carry .container too, so body
   content was double-inset (92% of 92%) — narrower and offset vs the header's
   single-container nav, which is why the logo/toggle didn't line up with the
   content below on phones. On mobile, let a nested container fill its parent
   instead of re-insetting, so body content aligns with the header and isn't
   needlessly cramped. Left desktop untouched to avoid widening section layouts. */
@media (max-width: 768px) {
  .container .container {
    width: 100%;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Safety net: keep any incidental horizontal overflow (e.g. a wide device
     mockup) from making the whole page scroll/shift sideways on mobile.
     'clip' (not 'hidden') so it doesn't break the sticky header. */
  overflow-x: clip;
}

.content {
  flex: 1;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
}

/* ========================================
   HEADER - Prominent & Professional
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 24px;
  position: relative;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.8;
  color: var(--text-primary);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-logo--light,
.footer-logo--light {
  display: none;
}

[data-theme="light"] .brand-logo--light,
[data-theme="light"] .footer-logo--light {
  display: block;
}

[data-theme="light"] .brand-logo--dark,
[data-theme="light"] .footer-logo--dark {
  display: none;
}

@media (prefers-color-scheme: light) {

  :root:not([data-theme="dark"]) .brand-logo--light,
  :root:not([data-theme="dark"]) .footer-logo--light {
    display: block;
  }

  :root:not([data-theme="dark"]) .brand-logo--dark,
  :root:not([data-theme="dark"]) .footer-logo--dark {
    display: none;
  }
}

.logo-fallback {
  filter: invert(1) hue-rotate(180deg);
}

.brand-domain {
  display: none;
}

/* Navigation */
.nav-links,
.nav-actions,
.nav-auth,
.nav-primary {
  display: flex;
  align-items: center;
}

.nav-links {
  flex: 1;
  gap: 24px;
  margin-left: 8px;
}

.nav-primary {
  gap: 16px;
}

.nav-auth {
  gap: 10px;
  margin-left: auto;
}

.nav-actions {
  margin-left: auto;
  gap: 12px;
}

.nav-links a,
.nav-link {
  padding: 8px 10px;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.nav-links a:hover .nav-icon {
  opacity: 1;
}

.nav-links a:hover,
.nav-link:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

.nav-links a.nav-active {
  color: var(--text-primary);
}

.nav-links a.nav-active .nav-icon {
  opacity: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.nav-link:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

.nav-logout {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* Nav CTA Button - Primary (Get Started) */
.nav-cta {
  margin-left: 0;
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #5a9aff 100%) !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(59, 134, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease-out, filter 0.25s ease-out !important;
  border: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 134, 255, 0.5), var(--shadow-glow) !important;
  filter: brightness(1.1);
}

/* Nav CTA Secondary (Sign out) */
.nav-cta.secondary {
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-sm) !important;
}

.nav-cta.secondary:hover {
  background: var(--bg-elevated) !important;
  border-color: var(--border-hover) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--border);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.global-status {
  display: none;
}

/* ========================================
   BUTTONS - Polished & Consistent
   ======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: white;
  background: var(--brand-blue);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.button:hover {
  background: var(--brand-blue-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Secondary Button */
.button.secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.button.ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--border);
  border-color: var(--border-strong);
}

/* Primary Outline Button */
.button.primary-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button.primary-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--brand-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.button.primary-outline svg {
  flex-shrink: 0;
}

/* Button with icon (general) */
.button svg {
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Button Group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1.1rem, 1.2vw + 0.5rem, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  text-wrap: pretty; /* avoid orphans / awkward rivers in long copy */
}

/* On phones, long hero intro paragraphs read as a centered wall. Left-align
   just the body copy for scannability; eyebrow + headline stay centered. */
@media (max-width: 600px) {
  .pricing-hero-content .lead,
  .product-hero-content .lead,
  .section-header .lead {
    text-align: left;
  }
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: rgba(59, 134, 255, 0.18);
  border: 1px solid rgba(59, 134, 255, 0.45);
  border-radius: var(--radius-sm);
  width: fit-content;
  box-shadow: 0 0 16px rgba(59, 134, 255, 0.08);
  transition: box-shadow var(--transition-medium);
}

.eyebrow:hover {
  box-shadow: 0 0 24px rgba(59, 134, 255, 0.18);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  text-align: center;
  padding: 60px 0 80px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: rgba(59, 134, 255, 0.18);
  border: 1px solid rgba(59, 134, 255, 0.45);
  border-radius: var(--radius-pill);
  margin: 0;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Scaled-up store button for hero section */
.hero-store-button {
  padding: 16px 32px;
  border-radius: 14px;
  gap: 14px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 134, 255, 0.15);
  animation: heroGlow 3s ease-in-out infinite;
}

.hero-store-button svg {
  width: 28px;
  height: 28px;
}

.hero-store-button .store-name {
  font-size: 20px;
}

.hero-store-button .store-label {
  font-size: 11px;
}

.hero-store-button:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 134, 255, 0.25);
}

.hero-free-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.7;
}

@keyframes heroGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 134, 255, 0.15); }
  50% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 60px rgba(59, 134, 255, 0.3); }
}

/* Official App Store Badges */
.store-badge {
  display: inline-block;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-badge svg {
  height: 44px;
  width: auto;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.device-frame {
  position: relative;
  padding: 16px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transform: translateX(-50%);
}

.device-screen {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  border: 1px solid var(--border);
}

.hero-mockup {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-header {
  text-align: center;
  padding: 80px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.page-header h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

/* Dot-grid background utility */
.has-dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 134, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 0%, transparent 70%);
  z-index: 0;
}

/* ========================================
   APP SHOWCASE
   ======================================== */

.app-showcase {
  padding: 60px 0;
  text-align: center;
}

.showcase-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.showcase-template {
  position: relative;
  width: min(920px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.showcase-template-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 1;
}

.showcase-slot {
  --slot-x: 0%;
  --slot-y: 0%;
  --slot-w: 30%;
  --slot-h: 46%;
  --slot-tilt-x: 0deg;
  --slot-tilt-y: 0deg;
  --slot-tilt-z: 0deg;
  --slot-depth: 0px;
  position: absolute;
  top: var(--slot-y);
  left: var(--slot-x);
  width: var(--slot-w);
  height: var(--slot-h);
  border-radius: 22px;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translate3d(0, 0, var(--slot-depth)) rotateX(var(--slot-tilt-x)) rotateY(var(--slot-tilt-y)) rotateZ(var(--slot-tilt-z));
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.showcase-slot--left {
  --slot-x: 6%;
  --slot-y: 26%;
  --slot-w: 30%;
  --slot-h: 45%;
  --slot-tilt-x: 6deg;
  --slot-tilt-y: -18deg;
  --slot-tilt-z: -9deg;
  --slot-depth: -10px;
  z-index: 1;
}

.showcase-slot--center {
  --slot-x: 35%;
  --slot-y: 18%;
  --slot-w: 33%;
  --slot-h: 52%;
  --slot-tilt-x: 4deg;
  --slot-tilt-y: -2deg;
  --slot-tilt-z: -1deg;
  --slot-depth: 10px;
  z-index: 3;
}

.showcase-slot--right {
  --slot-x: 64%;
  --slot-y: 26%;
  --slot-w: 30%;
  --slot-h: 45%;
  --slot-tilt-x: 6deg;
  --slot-tilt-y: 18deg;
  --slot-tilt-z: 8deg;
  --slot-depth: -6px;
  z-index: 2;
}

/* ========================================
   FEATURE GRID
   ======================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-medium);
}

.feature:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Feature Icon - SVG based, no emojis */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(59, 134, 255, 0.18);
  border: 1px solid rgba(59, 134, 255, 0.45);
  border-radius: var(--radius-md);
  color: var(--brand-blue);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h2 {
  font-size: 1.35rem;
}

.feature .muted {
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(59, 134, 255, 0.03) 45%,
      rgba(59, 134, 255, 0.06) 50%,
      rgba(59, 134, 255, 0.03) 55%,
      transparent 60%);
  background-size: 250% 100%;
  background-position: 200% 0;
  pointer-events: none;
  z-index: 0;
}

.card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(59, 134, 255, 0.05);
}

/* ========================================
   WAITLIST / CTA SECTION
   ======================================== */

.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.waitlist h2 {
  font-size: 1.75rem;
}

.waitlist-form .field-row {
  display: flex;
  gap: 12px;
}

.waitlist-form label {
  flex: 1;
}

/* ========================================
   FORMS
   ======================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form label span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.form input,
.form select {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.form input:hover,
.form select:hover {
  border-color: var(--border-strong);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow), inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.form input::placeholder {
  color: var(--text-tertiary);
}

.form textarea {
  min-height: 140px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.form textarea:hover {
  border-color: var(--border-strong);
}

/* Two-column field row for name fields */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.form ul.errorlist {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--accent-destructive);
  font-size: 13px;
}

/* ========================================
   SUPPORT
   ======================================== */

/* Getting Started Section */
.getting-started-section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
}

.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.getting-started-step {
  text-align: center;
}

.getting-started-step .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.getting-started-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.getting-started-step p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.getting-started-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .getting-started-section {
    padding: 32px 24px;
  }

  .getting-started-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .getting-started-footer {
    flex-direction: column;
    align-items: center;
  }
}

/* Light mode support */
[data-theme="light"] .getting-started-section {
  background: var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==============================
   CHANGELOG PAGE
   ============================== */
.changelog-page {
  padding-top: 0;
}

.changelog-hero-content {
  text-align: center;
}

.changelog-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 100px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

.changelog-hero-content h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.changelog-hero-content .lead {
  max-width: 600px;
  margin: 0 auto;
}

.changelog-hero-content .lead a {
  color: var(--brand-blue);
  text-decoration: none;
}

.changelog-hero-content .lead a:hover {
  text-decoration: underline;
}

.changelog-container {
  max-width: 720px;
  margin: 0 auto;
}

.changelog-timeline {
  position: relative;
  padding-left: 32px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(74,222,128,0.4), rgba(59,134,255,0.2), transparent);
}

.changelog-entry {
  position: relative;
  margin-bottom: 24px;
}

.changelog-entry-dot {
  position: absolute;
  left: -32px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid #4ade80;
  z-index: 1;
}

.changelog-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.changelog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.changelog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.changelog-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.changelog-version {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  white-space: nowrap;
}

.changelog-date {
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.changelog-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.changelog-body p {
  margin-bottom: 8px;
}

.changelog-body p:last-child {
  margin-bottom: 0;
}

.changelog-empty {
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.changelog-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.changelog-empty h3 {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .changelog-timeline {
    padding-left: 24px;
  }
  .changelog-entry-dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }
  .changelog-card {
    padding: 20px 24px;
  }
}

/* ==============================
   ERROR PAGES (400, 403, 404, 500)
   ============================== */
.error-page {
  padding-top: 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.error-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.35;
}

.error-orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(59,134,255,0.45), transparent 70%);
  top: -80px;
  right: -60px;
  animation: errorOrbFloat 8s ease-in-out infinite;
}

.error-orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(74,222,128,0.3), transparent 70%);
  bottom: -60px;
  left: -40px;
  animation: errorOrbFloat 10s ease-in-out infinite 2s;
}

@keyframes errorOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.05); }
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0 60px;
  position: relative;
  z-index: 1;
}

.error-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

.error-code {
  display: inline-block;
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #4ade80, #3B86FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-code-500 {
  background: linear-gradient(135deg, #f87171, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
}

.error-code-403 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
}

.error-code-400 {
  background: linear-gradient(135deg, #fb923c, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
}

.error-content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.error-suggestions {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.error-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.error-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.error-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.error-link-icon {
  font-size: 1.1rem;
}

/* SVG micro-animations */
@keyframes errorNoteFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-6px); opacity: 0.3; }
}

@keyframes errorSmokeDrift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-8px) scale(1.3); opacity: 0.1; }
}

.error-float-note {
  animation: errorNoteFloat 3s ease-in-out infinite;
}

.error-float-note-delay {
  animation: errorNoteFloat 3s ease-in-out infinite 1s;
}

.error-smoke {
  animation: errorSmokeDrift 4s ease-in-out infinite;
}

.error-smoke-delay {
  animation: errorSmokeDrift 4s ease-in-out infinite 1.5s;
}

/* Light mode */
[data-theme="light"] .error-suggestions,
:root:has(input#theme-toggle:checked) .error-suggestions {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .error-link,
:root:has(input#theme-toggle:checked) .error-link {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .error-link:hover,
:root:has(input#theme-toggle:checked) .error-link:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}

/* ==============================
   COOKIE CONSENT BANNER
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.cookie-banner.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hiding {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  background: rgba(20, 20, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-banner-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner-text a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.3);
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #000;
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* Light mode */
[data-theme="light"] .cookie-banner-inner,
:root:has(input#theme-toggle:checked) .cookie-banner-inner {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .cookie-btn-decline,
:root:has(input#theme-toggle:checked) .cookie-btn-decline {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ==============================
   LEGAL PAGES (Privacy, Terms)
   ============================== */
.legal-page {
  padding-top: 0;
}

.legal-hero {
  text-align: center;
  padding: 60px 0 20px;
}

.legal-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 80px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

.legal-hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-hero .lead {
  max-width: 640px;
  margin: 0 auto 12px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.legal-hero .muted {
  font-size: 0.85rem;
}

/* Legal content wrapper */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

.legal-section:hover {
  border-color: rgba(255,255,255,0.12);
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-section ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}

.legal-section a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal-section a:hover {
  text-decoration-color: #60a5fa;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Gradient text helper */
.gradient-green {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Light mode overrides */
[data-theme="light"] .legal-section,
:root:has(input#theme-toggle:checked) .legal-section {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .legal-section:hover,
:root:has(input#theme-toggle:checked) .legal-section:hover {
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .legal-section ul li::before,
:root:has(input#theme-toggle:checked) .legal-section ul li::before {
  color: rgba(0,0,0,0.3);
}
[data-theme="light"] .legal-hero .eyebrow,
:root:has(input#theme-toggle:checked) .legal-hero .eyebrow {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-section {
    padding: 24px 20px;
  }
  .legal-hero {
    padding: 40px 0 10px;
  }
}

/* ==============================
   PRIVATE BY ARCHITECTURE PAGE
   ============================== */
.pba-page {
  padding-top: 0;
}

/* Hero */
.pba-hero-content {
  text-align: center;
}

.pba-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 100px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

.pba-hero-content h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, #4ade80 60%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.pba-hero-content .lead {
  max-width: 640px;
  margin: 0 auto;
}

/* Prose grid — 3 or 2 column card layout */
.pba-prose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pba-prose-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pba-prose-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pba-prose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pba-prose-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.pba-icon-shield {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.pba-icon-lock {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.pba-icon-device {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.pba-icon-book {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.pba-prose-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.pba-prose-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Steps grid */
.pba-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pba-step-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pba-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pba-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pba-icon-parse {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.pba-icon-audio {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.pba-icon-annotate {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

.pba-icon-progress {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.pba-step-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.pba-step-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pba-steps-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* iCloud sync split */
.pba-split {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.pba-split-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  flex-shrink: 0;
}

.pba-split-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.pba-split-text p:last-child {
  margin-bottom: 0;
}

/* Cannot access */
.pba-cannot-access {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.pba-cannot-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.pba-cannot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.pba-cannot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pba-cannot-item svg {
  color: #ef4444;
  opacity: 0.7;
  flex-shrink: 0;
}

.pba-cannot-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0;
}

/* Tradeoff comparison */
.pba-tradeoff {
  max-width: 760px;
  margin: 0 auto;
}

.pba-tradeoff-cols {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pba-tradeoff-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.pba-tradeoff-local {
  border-color: rgba(74, 222, 128, 0.2);
}

.pba-tradeoff-cloud {
  border-color: rgba(239, 68, 68, 0.15);
}

.pba-tradeoff-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.pba-tradeoff-local .pba-tradeoff-label {
  color: #4ade80;
}

.pba-tradeoff-cloud .pba-tradeoff-label {
  color: #ef4444;
  opacity: 0.7;
}

.pba-tradeoff-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pba-tradeoff-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* Callout / blockquote */
.pba-callout {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #4ade80;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
}

.pba-callout-icon {
  color: #4ade80;
  opacity: 0.4;
  margin-bottom: 16px;
}

.pba-callout blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* FAQ grid */
.pba-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pba-faq-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pba-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pba-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.pba-faq-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pba-faq-item a {
  color: var(--brand-blue);
  text-decoration: none;
}

.pba-faq-item a:hover {
  text-decoration: underline;
}

/* CTA */
.pba-cta {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.pba-cta-content {
  flex: 1;
}

.pba-cta-content h2 {
  margin: 8px 0 12px;
}

.pba-cta-content p {
  margin: 0;
}

/* Light mode */
[data-theme="light"] .pba-prose-card,
:root:has(input#theme-toggle:checked) .pba-prose-card,
[data-theme="light"] .pba-step-card,
:root:has(input#theme-toggle:checked) .pba-step-card,
[data-theme="light"] .pba-split,
:root:has(input#theme-toggle:checked) .pba-split,
[data-theme="light"] .pba-cannot-access,
:root:has(input#theme-toggle:checked) .pba-cannot-access,
[data-theme="light"] .pba-tradeoff-card,
:root:has(input#theme-toggle:checked) .pba-tradeoff-card,
[data-theme="light"] .pba-callout,
:root:has(input#theme-toggle:checked) .pba-callout,
[data-theme="light"] .pba-faq-item,
:root:has(input#theme-toggle:checked) .pba-faq-item,
[data-theme="light"] .pba-cta,
:root:has(input#theme-toggle:checked) .pba-cta {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .pba-prose-grid,
  .pba-prose-grid-2 {
    grid-template-columns: 1fr;
  }
  .pba-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pba-split {
    flex-direction: column;
  }
  .pba-cannot-list {
    flex-direction: column;
    align-items: center;
  }
  .pba-tradeoff-cols {
    flex-direction: column;
    gap: 16px;
  }
  .pba-tradeoff-vs {
    width: auto;
  }
  .pba-faq-grid {
    grid-template-columns: 1fr;
  }
  .pba-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .pba-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   SUPPORT PAGE
   ============================== */
.support-page {
  padding-top: 0;
}

.support-hero-content {
  text-align: center;
}

.support-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 100px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

.support-hero-content h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.support-hero-content .lead {
  max-width: 600px;
  margin: 0 auto;
}

.support-announcement-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.support-form-card,
.support-info-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.support-card-header h3 {
  margin: 0;
}

.support-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  flex-shrink: 0;
}

.support-card-icon-email {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.support-form-intro {
  margin: -4px 0 20px;
  font-size: 0.9rem;
}

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-signed-in {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.form-signed-in svg {
  flex-shrink: 0;
  color: var(--brand-blue);
}

.support-form-styled select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.support-form-styled select:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.support-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.support-email-row svg {
  flex-shrink: 0;
  color: var(--brand-blue);
}

.support-email-row a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.support-email-row a:hover {
  text-decoration: underline;
}

.support-response-time {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 8px 12px;
  background: rgba(59, 134, 255, 0.06);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  color: #22c55e;
}

.form-success p {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0;
}

/* Roadmap inline feedback form */
.roadmap-feedback-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.roadmap-feedback-card h2 {
  margin: 0 0 8px;
}

.roadmap-feedback-card .lead {
  margin: 0 0 28px;
}

.roadmap-feedback-form {
  text-align: left;
}

.roadmap-feedback-form label {
  display: block;
  margin-bottom: 16px;
}

.roadmap-feedback-form label>span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.roadmap-feedback-form input,
.roadmap-feedback-form textarea,
.roadmap-feedback-form select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.roadmap-feedback-form textarea {
  resize: vertical;
  min-height: 100px;
}

.roadmap-feedback-form input:focus,
.roadmap-feedback-form textarea:focus,
.roadmap-feedback-form select:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.roadmap-feedback-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.roadmap-feedback-form .button {
  width: 100%;
  margin-top: 4px;
}

.roadmap-feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {

  .form-row-half,
  .roadmap-feedback-row {
    grid-template-columns: 1fr;
  }

  .roadmap-feedback-card {
    padding: 28px 20px;
  }
}

.support-body {
  color: var(--text-secondary);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 24px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================
   BADGES & TAGS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.badge--operational {
  color: var(--accent-success);
  background: rgba(78, 143, 114, 0.15);
  animation: operationalPulse 2.5s ease-in-out infinite;
}

.badge--degraded {
  color: #F5A623;
  background: rgba(245, 166, 35, 0.15);
}

.badge--outage {
  color: var(--accent-destructive);
  background: rgba(255, 69, 58, 0.15);
}

.tag {
  display: inline-flex;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(59, 134, 255, 0.18);
  border: 1px solid rgba(59, 134, 255, 0.45);
  border-radius: var(--radius-sm);
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 134, 255, 0.3);
  box-shadow: 0 8px 24px rgba(59, 134, 255, 0.08);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CLEAN LIST (Features)
   ======================================== */

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
}

.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.clean-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--brand-blue);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ========================================
   MESSAGES
   ======================================== */

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.message {
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-tertiary);
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.footer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.link-inline {
  color: var(--text-secondary);
  font-size: 14px;
}

.link-inline:hover {
  color: var(--text-primary);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes subtlePulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes operationalPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(78, 143, 114, 0.4);
  }

  50% {
    box-shadow: 0 0 8px 4px rgba(78, 143, 114, 0.15);
  }
}

.reveal {
  animation: fadeInUp 0.6s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.1s;
}

.reveal-delay-2 {
  animation-delay: 0.2s;
}

.reveal-delay-3 {
  animation-delay: 0.3s;
}

/* ========================================
   UTILITIES
   ======================================== */

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

/* ========================================
   ACCOUNT PAGES (Logged-in User Screens)
   ======================================== */

/* --- Layout --- */
/* ========================================
   ACCOUNT DASHBOARD
   Aligned with the vrbtm.app marketing site design language.
   ======================================== */

.acct-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 12px;
  position: relative;
}

/* Ambient brand glow behind the account area — echoes the atmospheric depth
   of the marketing hero so the logged-in view doesn't read as flat black. */
.acct-layout::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 0;
  right: 0;
  height: 560px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%,
    rgba(59, 134, 255, 0.10) 0%, rgba(167, 139, 250, 0.045) 42%, transparent 72%);
  pointer-events: none;
}

/* Grid/flex children default to min-width:auto (their content's min size),
   which let the horizontally-scrollable sidebar nav stretch the whole layout
   — and every account card — thousands of px wide on mobile. Allow them to
   shrink to the track so the nav scrolls inside itself instead. z-index keeps
   the content above the ambient glow. */
.acct-layout > *,
.acct-nav {
  min-width: 0;
}

.acct-layout > * {
  position: relative;
  z-index: 1;
}

/* --- Sidebar --- */
.acct-sidebar {
  position: sticky;
  top: calc(var(--header-height, 80px) + 16px);
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition-medium);
}

.acct-sidebar:hover {
  border-color: var(--border-strong);
}

.acct-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.acct-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B86FF 0%, #a78bfa 50%, #6366f1 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 0 0 2.5px var(--bg-surface), 0 0 0 4px rgba(59, 134, 255, 0.3), 0 4px 12px rgba(59, 134, 255, 0.12);
}

.acct-sidebar-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acct-sidebar-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-sidebar-email {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Sidebar Nav --- */
.acct-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0;
}

.acct-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  position: relative;
}

.acct-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all var(--transition-fast);
}

.acct-nav-link:hover {
  color: var(--text-primary);
  background: rgba(59, 134, 255, 0.06);
}

.acct-nav-link:hover svg {
  opacity: 0.85;
  color: var(--brand-blue);
}

.acct-nav-link.active {
  color: var(--text-primary);
  background: rgba(59, 134, 255, 0.10);
  font-weight: 600;
}

.acct-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-blue) 0%, #a78bfa 100%);
}

.acct-nav-link.active svg {
  opacity: 1;
  color: var(--brand-blue);
}

.acct-nav-link--signout {
  color: var(--text-tertiary);
}

.acct-nav-link--signout:hover {
  color: var(--accent-destructive);
  background: rgba(255, 69, 58, 0.06);
}

.acct-nav-link--signout:hover svg {
  color: var(--accent-destructive);
  opacity: 1;
}

.acct-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.acct-nav-logout {
  margin: 0;
}

/* Mobile-only disclosure trigger — hidden by default (desktop keeps the static
   vertical sidebar); revealed inside the mobile media query once JS is ready. */
.acct-nav-toggle {
  display: none;
}

/* --- Content --- */
.acct-content {
  min-width: 0;
}

.acct-content .section {
  padding: 0 0 16px;
}

.acct-content .page-header {
  text-align: left;
  align-items: flex-start;
  padding: 4px 0 20px;
  max-width: none;
  gap: 8px;
}

.acct-content .lead {
  font-size: 14px;
  color: var(--text-secondary);
}

.acct-content h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.acct-content h3 {
  font-size: 15px;
  font-weight: 600;
}

.acct-content .button {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.acct-content .button.ghost {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, transparent 0%, rgba(59, 134, 255, 0.02) 100%);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  gap: 6px;
}

.acct-content .button.ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.04) 0%, rgba(59, 134, 255, 0.10) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 134, 255, 0.08);
}

.acct-content .button.ghost:active {
  transform: translateY(0);
  box-shadow: none;
}

.acct-content .button.ghost svg {
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.acct-content .button.ghost:hover svg {
  opacity: 1;
}

.acct-content .form {
  max-width: none;
}

.acct-content .form textarea {
  min-height: 80px;
  max-height: 160px;
  resize: vertical;
}

.acct-content .card .muted {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* --- Page Title --- */
.acct-page-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.acct-page-title .acct-page-icon {
  margin-top: 2px;
}

/* Marketing signature: small uppercase eyebrow above the page title. */
.acct-page-title .eyebrow {
  margin-bottom: 10px;
}

.acct-page-title h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  /* Match the marketing headline gradient (white -> blue -> purple). */
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.acct-page-title .lead {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.acct-page-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.18) 0%, rgba(167, 139, 250, 0.12) 100%);
  border: 1px solid rgba(59, 134, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--brand-blue);
  flex-shrink: 0;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 16px rgba(59, 134, 255, 0.08);
}

.acct-page-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Account Cards --- */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.account-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
}

.account-grid--three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .account-grid--three-col {
    grid-template-columns: 1fr;
  }
}

.account-card {
  padding: 26px 28px;
  gap: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium), transform var(--transition-medium);
  animation: acct-card-in 0.5s ease both;
}

.account-card:nth-child(2) { animation-delay: 0.08s; }
.account-card:nth-child(3) { animation-delay: 0.16s; }
.account-card:nth-child(4) { animation-delay: 0.24s; }

@keyframes acct-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 134, 255, 0.12), 0 0 0 1px rgba(59, 134, 255, 0.14);
  border-color: rgba(59, 134, 255, 0.30);
}

[data-theme="light"] .account-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(59, 134, 255, 0.12);
}

.account-card p {
  margin: 0;
}

.account-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.acct-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.acct-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.14) 0%, rgba(167, 139, 250, 0.10) 100%);
  border: 1px solid rgba(59, 134, 255, 0.22);
  border-radius: 10px;
  color: var(--brand-blue);
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.acct-card-icon svg {
  width: 18px;
  height: 18px;
}

.account-card:hover .acct-card-icon {
  border-color: rgba(59, 134, 255, 0.35);
  box-shadow: 0 4px 12px rgba(59, 134, 255, 0.10);
}

/* --- Card Description --- */
.acct-card-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 2px 0 0;
  flex: 1;
}

/* --- Link Card (clickable entire card) --- */
.account-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  padding: 28px;
}

.account-card--link h3 {
  font-size: 16px;
  margin: 12px 0 4px;
}

.acct-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-medium);
}

.account-card--link:hover .acct-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Profile Overview Card --- */
.acct-profile-overview {
  padding: 0 !important;
  overflow: hidden;
}

.acct-profile-overview-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 32px 24px;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.06) 0%, rgba(167, 139, 250, 0.04) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.acct-profile-overview-top .acct-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
  margin-bottom: 16px;
}

.acct-profile-overview-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.acct-profile-overview-email {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 4px 0 0;
}

.acct-profile-overview-bottom {
  padding: 24px 32px 28px;
}

.acct-profile-overview-meta {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.acct-profile-overview-meta > div {
  flex: 1;
  min-width: 0;
}

.acct-profile-overview-meta .button.ghost {
  flex-shrink: 0;
  width: auto;
}

/* --- Preference Section Card --- */
.acct-pref-section-card {
  padding: 28px 30px;
}

.acct-pref-section-card .acct-pref-section-header {
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.acct-pref-section-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.4;
}

.acct-pref-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* --- Save Footer --- */
.acct-save-footer {
  position: sticky;
  bottom: 0;
  padding: 20px 0 24px;
  background: linear-gradient(to top, var(--bg-primary) 60%, transparent);
  z-index: 10;
}

.acct-save-footer .button {
  width: 100%;
}

/* --- Account Actions --- */
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.acct-card-icon--success {
  background: linear-gradient(135deg, rgba(78, 143, 114, 0.12) 0%, rgba(74, 222, 128, 0.06) 100%);
  border-color: rgba(78, 143, 114, 0.25);
  color: var(--accent-success);
}

.acct-card-icon--warning {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.25);
  color: #F5A623;
}

.acct-card-icon--danger {
  background: rgba(255, 69, 58, 0.10);
  border-color: rgba(255, 69, 58, 0.20);
  color: var(--accent-destructive);
}

/* --- Field Pairs --- */
.field-pair {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
}

.field-pair + .field-pair {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .field-pair + .field-pair {
  border-top-color: rgba(0, 0, 0, 0.04);
}

.field-pair p {
  margin: 0;
}

.field-pair p:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.field-pair p:last-child {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.field-pair code {
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 3px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* --- Preference Sections --- */
.pref-section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pref-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.pref-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}

/* --- Account Actions --- */
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.account-actions form {
  margin: 0;
}

/* --- Plan Status Badges --- */
.acct-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.acct-status-badge--active {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.25);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.08);
}

.acct-status-badge--trial {
  color: #F5A623;
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.acct-status-badge--inactive {
  color: var(--accent-destructive);
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.2);
}

.acct-status-badge--pro {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.10) 0%, rgba(59, 134, 255, 0.06) 100%);
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.06);
}

/* --- Danger Zone --- */
.acct-danger-card {
  border-color: rgba(255, 69, 58, 0.20);
}

.acct-danger-card:hover {
  border-color: rgba(255, 69, 58, 0.35);
  box-shadow: 0 4px 20px rgba(255, 69, 58, 0.06), 0 0 0 1px rgba(255, 69, 58, 0.05);
}

.acct-danger-card .button {
  background: var(--accent-destructive);
}

.acct-danger-card .button:hover {
  background: #ff6b6b;
  box-shadow: 0 4px 16px rgba(255, 69, 58, 0.3);
}

/* --- Login Event Cards --- */
.acct-event-card {
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.acct-event-card:hover {
  background: rgba(59, 134, 255, 0.03);
}

.acct-event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.acct-event-card:hover .acct-event-icon {
  transform: scale(1.08);
}

.acct-event-icon--success {
  background: rgba(74, 222, 128, 0.10);
  color: #4ade80;
}

.acct-event-icon--fail {
  background: rgba(255, 69, 58, 0.10);
  color: var(--accent-destructive);
}

.acct-event-icon svg {
  width: 16px;
  height: 16px;
}

.acct-event-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.acct-event-body h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.acct-event-body p {
  margin: 0;
  font-size: 13px;
}

/* --- Support Thread --- */
.acct-thread-staff {
  border-left: 3px solid var(--brand-blue);
}

.acct-thread-user {
  border-left: 3px solid var(--border-strong);
}

/* --- Section Dividers --- */
.acct-section {
  padding: 0 0 16px;
}

.acct-section+.acct-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Checkbox Toggle Style --- */
.acct-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.acct-toggle-row+.acct-toggle-row {
  border-top: 1px solid var(--border);
}

.acct-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.acct-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.acct-toggle-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Responsive: Account Layout --- */
@media (max-width: 900px) {
  /* Simple vertical stack on mobile (trigger, then content). Block avoids the
     single-column grid mis-placing the thin sidebar row. */
  .acct-layout {
    display: block;
  }

  /* Mobile account nav = a disclosure dropdown (replaces the old hidden-scroll
     tab strip). Sidebar is a plain positioning wrapper for the floating panel. */
  .acct-sidebar {
    position: relative;
    top: auto;
    z-index: 3;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Identity header stays hidden on mobile (duplicates the profile card). */
  .acct-sidebar-header {
    display: none;
  }

  /* Trigger appears only once JS is ready; without JS the plain nav list shows
     (see below), so every link stays reachable. */
  .acct-nav-toggle {
    display: none;
  }
  .acct-nav--ready .acct-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font: 600 14px/1.2 inherit;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition-fast);
  }
  .acct-nav-toggle:hover {
    border-color: var(--border-strong);
  }
  .acct-nav-toggle:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
  }
  .acct-nav-toggle-label {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .acct-nav-toggle-chevron {
    flex-shrink: 0;
    opacity: 0.65;
    transition: transform var(--transition-fast);
  }
  .acct-nav-open .acct-nav-toggle-chevron {
    transform: rotate(180deg);
  }

  /* Nav: a card-styled vertical panel. Static + visible without JS; once JS
     marks the sidebar ready it becomes a collapsible floating dropdown. */
  .acct-nav {
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    overflow: visible;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
  }
  .acct-nav--ready .acct-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast),
      transform var(--transition-fast),
      visibility var(--transition-fast);
  }
  .acct-nav--ready.acct-nav-open .acct-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Full-width rows with the desktop-style LEFT active bar restored. */
  .acct-nav-link {
    width: 100%;
    white-space: normal;
    min-height: 44px;
    padding: 11px 14px;
    gap: 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
  }
  .acct-nav-link.active::before {
    left: 0;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }

  /* Grouping dividers return in the vertical panel. */
  .acct-nav-divider {
    display: block;
  }
  .acct-nav-logout {
    width: 100%;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .acct-content .page-header {
    padding: 24px 0 20px;
  }

  .field-pair {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .field-pair p:last-child {
    text-align: left;
  }
}

@media (max-width: 500px) {
  .acct-sidebar-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .acct-sidebar-identity {
    align-items: center;
  }

  .acct-nav {
    justify-content: flex-start;
  }

  .acct-event-card {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Plan Hero Banner --- */
.acct-plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.10) 0%, rgba(167, 139, 250, 0.08) 40%, rgba(78, 143, 114, 0.05) 100%);
  border: 1px solid rgba(59, 134, 255, 0.18);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: acct-card-in 0.4s ease both;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.acct-plan-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 134, 255, 0.10) 0%, rgba(167, 139, 250, 0.04) 50%, transparent 70%);
  pointer-events: none;
  animation: plan-glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes plan-glow-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15); }
}

.acct-plan-banner:hover {
  border-color: rgba(59, 134, 255, 0.35);
  box-shadow: 0 12px 40px rgba(59, 134, 255, 0.10), 0 0 0 1px rgba(59, 134, 255, 0.06);
}

.acct-plan-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.acct-plan-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.25) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(59, 134, 255, 0.35);
  color: var(--brand-blue);
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(59, 134, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.acct-plan-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px rgba(59, 134, 255, 0.3));
}

.acct-plan-details h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-plan-details p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.acct-plan-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Preference Summary Chips --- */
.acct-pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 4px;
}

.acct-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(59, 134, 255, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.acct-pref-chip:hover {
  border-color: rgba(59, 134, 255, 0.25);
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(59, 134, 255, 0.06) 100%);
  transform: translateY(-1px);
}

.acct-pref-chip .chip-icon {
  font-size: 14px;
}

/* --- Toggle Switch (iOS-style) --- */
.acct-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.acct-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.acct-switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .acct-switch-track {
  background: rgba(0, 0, 0, 0.08);
}

.acct-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.acct-switch input:checked + .acct-switch-track {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.acct-switch input:checked + .acct-switch-track::after {
  transform: translateX(18px);
  background: #fff;
}

.acct-switch input:focus-visible + .acct-switch-track {
  box-shadow: 0 0 0 2px var(--brand-blue-glow);
}

/* --- Preference Sections (edit page) --- */
.acct-pref-section {
  padding: 28px 0;
}

.acct-pref-section:first-child {
  padding-top: 0;
}

.acct-pref-section + .acct-pref-section {
  border-top: 1px solid var(--border);
}

.acct-pref-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.acct-pref-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.15) 0%, rgba(167, 139, 250, 0.10) 100%);
  border: 1px solid rgba(59, 134, 255, 0.18);
  color: var(--brand-blue);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 134, 255, 0.06);
  margin-top: 2px;
}

.acct-pref-section-icon svg {
  width: 17px;
  height: 17px;
}

.acct-pref-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.acct-pref-section-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 2px 0 0;
  line-height: 1.4;
}

/* --- Toggle Label (text beside switch) --- */
.acct-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.acct-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.acct-toggle-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
  font-weight: 400;
}

/* --- Toggle Row (preference edit) --- */
.acct-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.acct-toggle-row:hover {
  background: rgba(59, 134, 255, 0.03);
}

.acct-toggle-row + .acct-toggle-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .acct-toggle-row + .acct-toggle-row {
  border-top-color: rgba(0, 0, 0, 0.04);
}

/* --- Inline Field Row (for selects/inputs in prefs) --- */
.acct-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.acct-field-row:hover {
  background: rgba(59, 134, 255, 0.03);
}

.acct-field-row + .acct-field-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .acct-field-row + .acct-field-row {
  border-top-color: rgba(0, 0, 0, 0.04);
}

.acct-field-row label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.acct-field-row label span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.acct-field-row label .acct-field-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.acct-field-row select,
.acct-field-row input[type="number"] {
  width: 140px;
  flex-shrink: 0;
}

/* --- Copy Block --- */
.acct-copy-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: border-color var(--transition-fast);
}

.acct-copy-block:hover {
  border-color: var(--border-strong);
}

.acct-copy-block code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
}

.acct-copy-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.acct-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-tertiary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.acct-copy-btn:hover {
  background: rgba(59, 134, 255, 0.10);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: scale(1.05);
}

.acct-copy-btn:active {
  transform: scale(0.95);
  background: rgba(59, 134, 255, 0.18);
}

.acct-copy-btn svg {
  width: 14px;
  height: 14px;
}

/* --- Profile Avatar (Large) --- */
.acct-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B86FF 0%, #a78bfa 50%, #6366f1 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 5px rgba(59, 134, 255, 0.25), 0 8px 24px rgba(59, 134, 255, 0.15);
  margin-bottom: 8px;
  position: relative;
  transition: box-shadow var(--transition-medium);
}

.acct-avatar-lg:hover {
  box-shadow: 0 0 0 3px var(--bg-surface), 0 0 0 5px rgba(59, 134, 255, 0.35), 0 12px 32px rgba(59, 134, 255, 0.20);
}

/* --- Profile Card Header --- */
.acct-profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  margin: -28px -28px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.06) 0%, rgba(167, 139, 250, 0.04) 50%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.acct-profile-header .acct-avatar-lg {
  margin-bottom: 0;
}

.acct-profile-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acct-profile-identity h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.acct-profile-identity p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Form Field Groups --- */
.acct-form-group {
  padding: 24px 0;
}

.acct-form-group:first-child {
  padding-top: 20px;
}

.acct-form-group + .acct-form-group {
  border-top: 1px solid var(--border);
}

.acct-form-group h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-form-group h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--brand-blue);
  border-radius: 2px;
  opacity: 0.6;
}

/* --- Session Groups --- */
.acct-session-group {
  margin-bottom: 24px;
}

.acct-session-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 10px;
  padding: 0 4px;
}

.acct-session-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.acct-session-count svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* --- Compact Event Card --- */
.acct-event-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.acct-event-compact .acct-event-body h3 {
  font-size: 13px;
}

.acct-event-ua {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* --- Password Section --- */
.acct-password-section {
  padding: 24px 26px;
}

.acct-password-section .form {
  max-width: 400px;
}

/* --- Danger Card (Delete Account) --- */
.acct-danger-card {
  border-color: rgba(239, 68, 68, 0.25);
}

.acct-danger-card:hover {
  border-color: rgba(239, 68, 68, 0.40);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.06);
}

.acct-card-icon--danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.acct-danger-card .button {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.acct-danger-card .button:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* --- Active Device List --- */
.acct-device-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acct-device-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.acct-device-row:hover {
  background: rgba(59, 134, 255, 0.03);
}

.acct-device-row--current {
  background: rgba(59, 134, 255, 0.06);
  border: 1px solid rgba(59, 134, 255, 0.12);
}

.acct-device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.acct-device-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.acct-device-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.acct-device-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.acct-device-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.acct-device-actions {
  flex-shrink: 0;
}

.acct-device-signout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.acct-device-signout:hover {
  color: var(--accent-destructive);
  border-color: rgba(255, 69, 58, 0.3);
  background: rgba(255, 69, 58, 0.06);
}

.tag--active {
  background: rgba(59, 134, 255, 0.12);
  color: var(--brand-blue);
  border-color: rgba(59, 134, 255, 0.2);
}

/* --- Date Filter Bar --- */
.acct-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.acct-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.acct-filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(59, 134, 255, 0.06);
}

.acct-filter-pill--active {
  color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.10);
  border-color: rgba(59, 134, 255, 0.3);
  font-weight: 600;
}

/* --- Custom Date Range --- */
.acct-custom-range {
  padding: 8px 0;
}

.acct-custom-range-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.acct-custom-range-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.acct-custom-range-form label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.acct-custom-range-form input[type="date"] {
  padding: 8px 12px;
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
}

/* --- Activity Feed --- */
.acct-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Inline Edit Fields --- */
.acct-inline-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.acct-inline-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.acct-inline-edit-btn {
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--brand-blue);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.acct-inline-edit-btn:hover {
  background: rgba(59, 134, 255, 0.08);
}

.acct-inline-edit-form {
  margin-top: -4px;
}

/* Input row with adjacent save button */
.acct-edit-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.acct-edit-input-row input {
  flex: 1;
  min-width: 0;
}

.acct-cancel-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.acct-cancel-btn:hover {
  color: var(--text-primary);
}

/* --- Field Status Indicator --- */
.acct-field-status {
  font-size: 12px;
  font-weight: 500;
  min-height: 18px;
  padding: 2px 0;
  transition: color var(--transition-fast);
}

.acct-field-status--ok {
  color: #4ade80;
}

.acct-field-status--error {
  color: var(--accent-destructive);
}

/* --- Email Change Row --- */
.acct-email-change-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.acct-email-change-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
}

.acct-email-change-row input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow);
}

@media (max-width: 520px) {
  .acct-email-change-row {
    flex-direction: column;
  }
  .acct-custom-range-form {
    flex-direction: column;
    align-items: stretch;
  }
  .acct-device-row {
    flex-wrap: wrap;
  }
  .acct-device-actions {
    width: 100%;
    margin-top: 4px;
  }
}

/* --- Account Actions Row --- */
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

/* --- Show More Button --- */
.acct-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
}

.acct-show-more:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.04);
}

/* --- Quick Stats (Overview) --- */
.acct-quick-stats {
  display: flex;
  gap: 6px;
  padding: 8px 0 0;
}

.acct-quick-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.acct-quick-stat svg {
  width: 13px;
  height: 13px;
  opacity: 0.6;
}

/* --- Responsive: New components --- */
@media (max-width: 900px) {
  .acct-plan-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .acct-pref-chips {
    gap: 6px;
  }

  .acct-profile-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .acct-profile-identity {
    align-items: center;
  }

  .acct-field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .acct-field-row select,
  .acct-field-row input[type="number"] {
    width: 100%;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .waitlist {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .waitlist-form .field-row {
    flex-direction: column;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 24px 16px;
  }

  .footer-col {
    align-items: center;
  }

  .footer-brand-section {
    align-items: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-meta {
    text-align: center;
  }

  .footer-status {
    justify-content: center;
  }

  .showcase-template {
    border-radius: 28px;
  }

  .showcase-slot {
    border-radius: 20px;
  }

  .showcase-slot--center {
    --slot-w: 36%;
    --slot-h: 54%;
    --slot-y: 16%;
    --slot-tilt-y: -4deg;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .content {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 60px;
  }

  .brand-logo {
    height: 38px;
  }

  .nav-wrap {
    position: relative;
    gap: 6px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 20px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 90;
    margin-left: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-primary,
  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-auth {
    margin-left: 0;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .nav-links a,
  .nav-link {
    padding: 12px 12px;
    font-size: 16px;
    width: 100%;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-auth {
    gap: 8px;
  }

  .nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    padding: 10px 20px !important;
    font-size: 14px !important;
    white-space: nowrap;
    width: 100%;
  }

  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .feature {
    padding: 24px;
  }

  .waitlist {
    padding: 32px 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .hero-download-btn {
    padding: 16px 28px;
    gap: 12px;
  }

  .hero-download-store {
    font-size: 19px;
  }

  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .button-group .button {
    width: 100%;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .page-header {
    padding: 32px 0 40px;
    gap: 12px;
  }

  .device-frame {
    padding: 12px;
    border-radius: 26px;
  }

  .device-screen {
    border-radius: 20px;
  }

  .button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .button svg {
    width: 18px;
    height: 18px;
  }

  .form {
    gap: 16px;
  }

  .form label {
    gap: 6px;
    font-size: 13px;
  }

  .form input,
  .form select,
  .form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-hint {
    font-size: 12px;
  }

  .auth-footer {
    margin-top: 18px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 14px !important;
  }

  .footer-logo {
    height: 30px;
  }

  .showcase-template {
    border-radius: 24px;
  }

  .showcase-slot {
    border-radius: 16px;
  }

  .showcase-slot--left {
    --slot-x: 2%;
    --slot-y: 28%;
    --slot-w: 34%;
    --slot-h: 46%;
    --slot-tilt-y: -14deg;
    --slot-tilt-z: -6deg;
  }

  .showcase-slot--center {
    --slot-x: 32%;
    --slot-y: 20%;
    --slot-w: 38%;
    --slot-h: 54%;
    --slot-tilt-y: -3deg;
    --slot-tilt-z: -1deg;
  }

  .showcase-slot--right {
    --slot-x: 64%;
    --slot-y: 30%;
    --slot-w: 34%;
    --slot-h: 46%;
    --slot-tilt-y: 14deg;
    --slot-tilt-z: 6deg;
  }
}

/* Light mode: revert gradient text to solid for page-headers */
[data-theme="light"] .page-header h1,
:root:has(input#theme-toggle:checked) .page-header h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-clip: unset !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .auth-card,
:root:has(input#theme-toggle:checked) .auth-card {
  background-image:
    linear-gradient(#fff, #fff),
    conic-gradient(from var(--pricing-border-angle, 0deg), rgba(31, 106, 225, 0.25), rgba(167, 139, 250, 0.15), rgba(31, 106, 225, 0.25)) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-container {
  max-width: 420px;
  margin: 0 auto;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Social Login Buttons */
.social-logins {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Apple */
.social-btn--apple {
  background: #000;
  color: #fff;
}

.social-btn--apple:hover {
  background: #333;
  color: #fff;
}

[data-theme="light"] .social-btn--apple,
:root:not([data-theme="dark"]) .social-btn--apple {
  background: #000;
  color: #fff;
}

/* Google */
.social-btn--google {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.social-btn--google:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

/* Microsoft */
.social-btn--microsoft {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.social-btn--microsoft:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Auth Form */
.auth-form {
  gap: 16px;
}

.auth-submit {
  width: 100%;
}

.terms-group {
  margin-top: 4px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-blue, #3B86FF);
  cursor: pointer;
}

.terms-label a {
  color: var(--brand-blue, #3B86FF);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-label a:hover {
  opacity: 0.85;
}

.auth-hint {
  text-align: center;
  font-size: 13px;
  margin: 0;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.auth-footer a {
  font-weight: 500;
}

/* ========================================
   LANDING PAGE - DARK MODE FIRST REDESIGN
   Silicon V1 Inspired
   ======================================== */

/* Landing page forces dark theme by default */
.landing-dark {
  --brand-blue: #3B86FF;
  --brand-blue-hover: #5a9aff;
  --brand-blue-glow: rgba(59, 134, 255, 0.4);
  --bg-primary: #0a0a0f;
  --bg-surface: rgba(18, 18, 24, 0.9);
  --bg-surface-rgb: 18, 18, 24;
  --bg-surface-secondary: rgba(22, 22, 30, 0.85);
  --bg-elevated: rgba(28, 28, 38, 0.92);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.48);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.22);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px var(--brand-blue-glow);
  color-scheme: dark;
}

/* ========================================
   HERO SPLIT LAYOUT
   ======================================== */

.hero-split {
  text-align: left;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-split .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-split .hero-content {
  align-items: flex-start;
  max-width: 560px;
}

.hero-split h1 {
  font-size: clamp(2.8rem, 5vw + 1rem, 4.2rem);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-split .lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Platform Toggle (iOS/Android) */
.platform-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 8px;
}

.platform-toggle button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-toggle button:hover {
  color: var(--text-secondary);
}

.platform-toggle button.active {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 134, 255, 0.4);
}

/* Hero Visual Container */
.hero-visual-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative Gradient Orbs */
.gradient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 8s ease-in-out infinite;
}

.gradient-orb--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 134, 255, 0.5) 0%, transparent 70%);
  top: 10%;
  right: 20%;
  animation-delay: 0s;
}

.gradient-orb--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  bottom: 15%;
  left: 10%;
  animation-delay: -3s;
}

.gradient-orb--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 134, 255, 0.35) 0%, transparent 70%);
  top: 50%;
  right: 5%;
  animation-delay: -5s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(15px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

/* Stacked Phone Mockups */
.phone-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  perspective: 1200px;
  transform-style: preserve-3d;
  z-index: 1;
}

.phone-mockup {
  position: absolute;
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.phone-mockup img,
.phone-mockup .placeholder-screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Placeholder screens until real assets */
.placeholder-screen {
  aspect-ratio: 9/19.5;
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.placeholder-screen svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

/* Phone positions - Left */
.phone-mockup--left {
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotateY(15deg) rotateX(5deg) translateZ(-40px);
  z-index: 1;
  opacity: 0.85;
}

/* Phone positions - Center (primary) */
.phone-mockup--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateY(-5deg) rotateX(3deg) translateZ(20px);
  z-index: 3;
  width: 245px;
}

/* Phone positions - Right */
.phone-mockup--right {
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotateY(-15deg) rotateX(5deg) translateZ(-40px);
  z-index: 2;
  opacity: 0.85;
}

/* Hover lifts */
.phone-stack:hover .phone-mockup--center {
  transform: translate(-50%, -52%) rotateY(-5deg) rotateX(3deg) translateZ(30px);
}

/* Platform-specific visibility */
.phone-stack[data-platform="ios"] .phone-android,
.phone-stack[data-platform="android"] .phone-ios {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(-50%);
}

.phone-stack[data-platform="ios"] .phone-ios,
.phone-stack[data-platform="android"] .phone-android {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   VIDEO SHOWCASE SECTION
   ======================================== */

.video-showcase {
  padding: 80px 0;
  text-align: center;
}

.video-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 134, 255, 0.15);
}

.video-container video,
.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* Video Placeholder */
.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #12121a 0%, #0d0d14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-tertiary);
}

.video-placeholder .play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 134, 255, 0.2);
  border: 2px solid var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.video-placeholder .play-icon svg {
  width: 32px;
  height: 32px;
  color: var(--brand-blue);
  margin-left: 4px;
}

.video-placeholder .play-icon:hover {
  background: rgba(59, 134, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(59, 134, 255, 0.4);
}

.video-placeholder span {
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 44px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), rgba(139, 92, 246, 0.6), var(--brand-blue));
  opacity: 0.4;
  z-index: 0;
}

.step-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-medium);
  z-index: 1;
}

.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 134, 255, 0.1);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #8b5cf6 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 134, 255, 0.4);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(59, 134, 255, 0.12);
  border: 1px solid rgba(59, 134, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}

/* ========================================
   ENHANCED FEATURES (Dark Theme)
   ======================================== */

.landing-dark .feature {
  background: var(--bg-surface);
  border-color: var(--border);
}

.landing-dark .feature:hover {
  border-color: rgba(59, 134, 255, 0.4);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 134, 255, 0.08);
}

.landing-dark .feature-icon {
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-color: rgba(59, 134, 255, 0.4);
}

/* ========================================
   ENHANCED WAITLIST (Dark Gradient)
   ======================================== */

.waitlist-dark {
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(59, 134, 255, 0.25);
}

.waitlist-dark h2 {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.waitlist-dark .button {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(59, 134, 255, 0.4);
}

.waitlist-dark .button:hover {
  box-shadow: 0 6px 30px rgba(59, 134, 255, 0.5), var(--shadow-glow);
}

/* ========================================
   LANDING PAGE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-split .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-split .hero-content {
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-visual-container {
    min-height: 450px;
  }

  .phone-mockup {
    width: 180px;
  }

  .phone-mockup--center {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .hero-split {
    padding: 60px 0 80px;
  }

  .hero-visual-container {
    min-height: 380px;
  }

  .phone-stack {
    min-height: 380px;
  }

  .phone-mockup {
    width: 150px;
  }

  .phone-mockup--center {
    width: 170px;
  }

  .phone-mockup--left {
    left: 5%;
  }

  .phone-mockup--right {
    right: 5%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card {
    flex-direction: row;
    text-align: left;
    padding: 24px;
    gap: 20px;
  }

  .step-card>div {
    flex: 1;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .video-showcase {
    padding: 60px 0;
  }
}

@media (max-width: 500px) {
  .phone-mockup {
    width: 120px;
    border-radius: 20px;
  }

  .phone-mockup--center {
    width: 140px;
  }

  .phone-mockup--left,
  .phone-mockup--right {
    display: none;
  }

  .phone-mockup--center {
    width: 200px;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0) rotateX(0);
  }

  .hero-visual-container {
    min-height: 340px;
  }

  .phone-stack {
    min-height: 340px;
  }

  .gradient-orb--1 {
    width: 180px;
    height: 180px;
  }

  .gradient-orb--2,
  .gradient-orb--3 {
    display: none;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
  }

  .platform-toggle button {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ========================================
   LIGHT MODE OVERRIDES FOR LANDING PAGE
   ======================================== */

[data-theme="light"] .landing-dark,
:root:has(input#theme-toggle:checked) .landing-dark {
  /* Reset to light mode colors */
  --bg-primary: #f8f9fc;
  --bg-surface: rgba(255, 255, 255, 0.9);
  --bg-surface-rgb: 255, 255, 255;
  --bg-surface-secondary: rgba(248, 249, 252, 0.95);
  --bg-elevated: rgba(255, 255, 255, 0.98);
  --text-primary: #0d0f13;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(59, 134, 255, 0.15);
  color-scheme: light;
}

/* Hero text in light mode - use solid dark color instead of gradient */
[data-theme="light"] .hero-split h1,
:root:has(input#theme-toggle:checked) .hero-split h1,
[data-theme="light"] .landing-dark .hero-split h1,
:root:has(input#theme-toggle:checked) .landing-dark .hero-split h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0d0f13 !important;
  background-clip: unset !important;
  color: #0d0f13 !important;
}

[data-theme="light"] .landing-dark .lead,
[data-theme="light"] .hero-split .lead,
:root:has(input#theme-toggle:checked) .landing-dark .lead,
:root:has(input#theme-toggle:checked) .hero-split .lead {
  color: #4a5568 !important;
}

[data-theme="light"] .hero-split .tagline,
[data-theme="light"] .landing-dark .tagline,
:root:has(input#theme-toggle:checked) .hero-split .tagline,
:root:has(input#theme-toggle:checked) .landing-dark .tagline {
  color: var(--brand-blue) !important;
}

/* Section headers in light mode */
[data-theme="light"] .landing-dark h2,
[data-theme="light"] .landing-dark .section-header h2,
:root:has(input#theme-toggle:checked) .landing-dark h2,
:root:has(input#theme-toggle:checked) .landing-dark .section-header h2 {
  color: #0d0f13 !important;
  background: none !important;
  -webkit-text-fill-color: #0d0f13 !important;
}

[data-theme="light"] .landing-dark .section-header .lead,
:root:has(input#theme-toggle:checked) .landing-dark .section-header .lead {
  color: #4a5568 !important;
}

[data-theme="light"] .landing-dark .eyebrow,
:root:has(input#theme-toggle:checked) .landing-dark .eyebrow {
  color: var(--brand-blue) !important;
  background: rgba(59, 134, 255, 0.1) !important;
}

/* Step cards in light mode */
[data-theme="light"] .step-card,
:root:has(input#theme-toggle:checked) .step-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .step-card h3,
:root:has(input#theme-toggle:checked) .step-card h3 {
  color: #0d0f13 !important;
}

[data-theme="light"] .step-card p,
:root:has(input#theme-toggle:checked) .step-card p {
  color: #4a5568 !important;
}

/* Feature cards in light mode */
[data-theme="light"] .landing-dark .feature,
:root:has(input#theme-toggle:checked) .landing-dark .feature {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .landing-dark .feature h2,
:root:has(input#theme-toggle:checked) .landing-dark .feature h2 {
  color: #0d0f13 !important;
}

[data-theme="light"] .landing-dark .feature .muted,
:root:has(input#theme-toggle:checked) .landing-dark .feature .muted {
  color: #4a5568 !important;
}

/* Waitlist in light mode */
[data-theme="light"] .waitlist-dark,
:root:has(input#theme-toggle:checked) .waitlist-dark {
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
  border-color: rgba(59, 134, 255, 0.2) !important;
}

[data-theme="light"] .waitlist-dark h2,
:root:has(input#theme-toggle:checked) .waitlist-dark h2 {
  color: #0d0f13 !important;
  background: none !important;
  -webkit-text-fill-color: #0d0f13 !important;
}

[data-theme="light"] .waitlist-dark .muted,
:root:has(input#theme-toggle:checked) .waitlist-dark .muted {
  color: #4a5568 !important;
}

/* Video placeholder in light mode */
[data-theme="light"] .video-placeholder,
:root:has(input#theme-toggle:checked) .video-placeholder {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%) !important;
  color: #4a5568 !important;
}

/* Phone mockups shadow in light mode */
[data-theme="light"] .phone-mockup,
:root:has(input#theme-toggle:checked) .phone-mockup {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

/* Placeholder screens in light mode */
[data-theme="light"] .landing-dark .placeholder-screen,
:root:has(input#theme-toggle:checked) .landing-dark .placeholder-screen {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%) !important;
  color: #4a5568 !important;
}

/* System preference light mode override */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-split h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0d0f13 !important;
    background-clip: unset !important;
    color: #0d0f13 !important;
  }

  :root:not([data-theme="dark"]) .landing-dark h2,
  :root:not([data-theme="dark"]) .landing-dark .section-header h2,
  :root:not([data-theme="dark"]) .waitlist-dark h2 {
    color: #0d0f13 !important;
    background: none !important;
    -webkit-text-fill-color: #0d0f13 !important;
  }

  :root:not([data-theme="dark"]) .landing-dark .lead,
  :root:not([data-theme="dark"]) .landing-dark .muted {
    color: #4a5568 !important;
  }

  :root:not([data-theme="dark"]) .step-card {
    background: #fff !important;
  }

  :root:not([data-theme="dark"]) .step-card h3 {
    color: #0d0f13 !important;
  }

  :root:not([data-theme="dark"]) .step-card p {
    color: #4a5568 !important;
  }

  :root:not([data-theme="dark"]) .landing-dark .feature {
    background: #fff !important;
  }

  :root:not([data-theme="dark"]) .landing-dark .placeholder-screen {
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%) !important;
    color: #4a5568 !important;
  }
}

/* ========================================
   APP SHOWCASE SECTION
   Large Featured Device Mockup
   ======================================== */

.app-showcase {
  padding: 80px 0 100px;
  text-align: center;
}

.app-showcase .showcase-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  perspective: 1000px;
}

.showcase-device {
  position: relative;
  width: 280px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.06),
    0 0 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-device:hover {
  transform: rotateY(0) rotateX(0);
}

.showcase-device img,
.showcase-device .placeholder-screen {
  width: 100%;
  display: block;
}

.showcase-device .placeholder-screen {
  aspect-ratio: 9/19.5;
}

/* Decorative elements behind showcase */
.showcase-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 134, 255, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Light mode showcase */
[data-theme="light"] .showcase-device,
:root:has(input#theme-toggle:checked) .showcase-device {
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.04),
    0 0 32px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* ========================================
   REVIEW LOOP — Visual circular flow
   ======================================== */

.review-loop {
  max-width: 800px;
  margin: 0 auto;
}

.review-loop-ring {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto auto auto;
  gap: 0;
  align-items: center;
  justify-items: center;
}

/* Step cards */
.loop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  min-width: 0;
}

.loop-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Position steps in the grid: clockwise flow */
.loop-step-1 { grid-column: 1; grid-row: 1; }
.loop-step-2 { grid-column: 3; grid-row: 1; }
.loop-step-3 { grid-column: 3; grid-row: 5; }
.loop-step-4 { grid-column: 1; grid-row: 5; }

/* Position arrows */
.loop-arrow-12 { grid-column: 2; grid-row: 1; }
.loop-arrow-23 { grid-column: 3; grid-row: 3; }
.loop-arrow-34 { grid-column: 2; grid-row: 5; }
.loop-arrow-41 { grid-column: 1; grid-row: 3; }

.loop-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* Step number */
.loop-step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* Step icon */
.loop-step-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.15), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--brand-blue);
}

.loop-step-icon svg {
  width: 22px;
  height: 22px;
}

.loop-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.loop-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Step 4 highlight — green accent for the differentiator */
.loop-step-highlight {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.03);
}

.loop-step-highlight .loop-step-number {
  background: #4ade80;
  color: #0a0a0a;
}

.loop-step-highlight .loop-step-icon {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.1));
  color: #4ade80;
}

.loop-step-highlight:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

/* Light mode */
[data-theme="light"] .loop-step {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .loop-step-highlight {
  border-color: rgba(34, 197, 94, 0.2) !important;
  background: rgba(34, 197, 94, 0.04) !important;
}

[data-theme="light"] .loop-arrow svg polyline,
[data-theme="light"] .loop-arrow svg polygon {
  stroke: rgba(0, 0, 0, 0.15);
  fill: rgba(0, 0, 0, 0.15);
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .review-loop-ring {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .loop-step {
    width: 100%;
    max-width: 340px;
  }

  .loop-arrow {
    padding: 4px;
  }

  /* Rotate horizontal arrows to vertical on mobile */
  .loop-arrow-12 svg,
  .loop-arrow-34 svg {
    transform: rotate(90deg);
  }
}

/* ========================================
   HOW IT WORKS - CLEAN VERTICAL CARDS
   ======================================== */

.steps-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.step-card-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card-clean::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card-clean:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-card-clean:hover::before {
  opacity: 1;
}

.step-card-clean-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.15), rgba(139, 92, 246, 0.1));
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--brand-blue);
}

.step-card-clean-icon svg {
  width: 24px;
  height: 24px;
}

.step-card-clean .step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.step-card-clean h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.step-card-clean p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Light mode overrides */
[data-theme="light"] .step-card-clean,
:root:has(input#theme-toggle:checked) .step-card-clean {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .step-card-clean h3,
:root:has(input#theme-toggle:checked) .step-card-clean h3 {
  color: #0d0f13 !important;
}

[data-theme="light"] .step-card-clean p,
:root:has(input#theme-toggle:checked) .step-card-clean p {
  color: #4a5568 !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .step-card-clean {
    background: #fff !important;
  }

  :root:not([data-theme="dark"]) .step-card-clean h3 {
    color: #0d0f13 !important;
  }

  :root:not([data-theme="dark"]) .step-card-clean p {
    color: #4a5568 !important;
  }
}

@media (max-width: 768px) {
  .steps-grid-clean {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .step-card-clean {
    padding: 32px 24px 28px;
  }
}

/* ========================================
   HOW IT WORKS - STEP MOCKUPS (legacy)
   ======================================== */

.step-card-enhanced {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: center;
  text-align: left;
}

.step-card-enhanced .step-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card-enhanced .step-mockup {
  width: 200px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-card-enhanced .step-mockup img,
.step-card-enhanced .step-mockup .placeholder-screen {
  width: 100%;
  display: block;
}

.step-card-enhanced .step-mockup .placeholder-screen {
  aspect-ratio: 9 / 19.5;
  font-size: 11px;
}

/* Alternate layout for middle step */
.step-card-enhanced.step-card-reversed {
  grid-template-columns: 200px 1fr;
}

.step-card-enhanced.step-card-reversed .step-content {
  order: 2;
}

.step-card-enhanced.step-card-reversed .step-mockup {
  order: 1;
}

/* ========================================
   FEATURE CARDS WITH INLINE MOCKUPS
   ======================================== */

.feature-with-mockup {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: center;
}

.feature-with-mockup .feature-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-with-mockup .feature-mockup {
  width: 200px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.feature-with-mockup .feature-mockup img,
.feature-with-mockup .feature-mockup .placeholder-screen {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.feature-with-mockup .feature-mockup .placeholder-screen {
  aspect-ratio: 9 / 19.5;
  font-size: 12px;
}

/* Light mode feature mockups */
[data-theme="light"] .feature-with-mockup .feature-mockup,
:root:has(input#theme-toggle:checked) .feature-with-mockup .feature-mockup {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ========================================
   RESPONSIVE - NEW SECTIONS
   ======================================== */

@media (max-width: 768px) {
  .step-card-enhanced {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-card-enhanced .step-mockup {
    width: min(280px, 100%);
    margin: 0 auto;
    order: -1;
    border-radius: 28px;
  }

  .step-card-enhanced.step-card-reversed {
    grid-template-columns: 1fr;
  }

  .step-card-enhanced.step-card-reversed .step-content {
    order: 1;
  }

  .step-card-enhanced.step-card-reversed .step-mockup {
    order: -1;
  }

  .feature-with-mockup {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .feature-with-mockup .feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-with-mockup .feature-mockup {
    width: min(280px, 100%);
    margin: 0 auto;
    order: -1;
    border-radius: 32px;
  }

  /* Tighten the icon + eyebrow spacing on mobile */
  .feature-with-mockup .feature-icon {
    margin: 8px auto 0;
    width: 40px;
    height: 40px;
  }

  .feature-with-mockup .feature-content .eyebrow {
    margin-top: 0;
    text-align: center;
  }

  .showcase-device {
    width: 280px;
    transform: none;
  }

  .app-showcase {
    padding: 60px 0 80px;
  }
}

@media (max-width: 500px) {

  .step-card-enhanced .step-mockup {
    width: min(280px, 100%);
  }

  .feature-with-mockup .feature-mockup {
    width: min(300px, 100%);
  }
}

/* ========================================
   DOWNLOAD CTA SECTION
   V3-Style with Trust Badges and App Store Buttons
   ======================================== */

.download-cta {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.download-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.download-cta-grid--reversed {
  grid-template-columns: auto 1fr;
}

.download-cta-grid--reversed .download-cta-visual {
  order: -1;
}

.download-cta-content {
  max-width: 540px;
}

.download-cta-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 16px;
}

.download-cta-content .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-badge-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFD700;
}

.trust-badge-stars svg {
  width: 18px;
  height: 18px;
}

.trust-badge-stars span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.trust-badge-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-badge-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* App Store Buttons */
.store-buttons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.store-button:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.store-button svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.store-button div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* CTA Device Mockup */
.download-cta-visual {
  position: relative;
}

.cta-device-mockup {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-device-mockup:hover {
  transform: rotateY(0) rotateX(0);
}

.cta-device-mockup img {
  width: 100%;
  display: block;
}

.cta-device-mockup .placeholder-screen {
  aspect-ratio: 9/19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-secondary) 100%);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.cta-device-mockup .placeholder-screen svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
  padding: 40px 0 80px;
}

.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.newsletter-content h3 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.newsletter-content .muted {
  font-size: 0.95rem;
  margin: 0;
}

.newsletter-form {
  flex-shrink: 0;
}

.newsletter-input-group {
  display: flex;
  gap: 8px;
}

.newsletter-input-group input {
  width: 280px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-input-group input:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.newsletter-input-group input::placeholder {
  color: var(--text-tertiary);
}

/* Newsletter mobile responsive */
@media (max-width: 768px) {
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-input-group input {
    width: 100%;
  }

  .newsletter-input-group .button {
    width: 100%;
    justify-content: center;
  }
}

/* Light mode adjustments for new sections */
[data-theme="light"] .store-button,
:root:has(input#theme-toggle:checked) .store-button {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .newsletter-card,
:root:has(input#theme-toggle:checked) .newsletter-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .newsletter-input-group input,
:root:has(input#theme-toggle:checked) .newsletter-input-group input {
  background: #f5f5f7 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .download-cta-content h2,
:root:has(input#theme-toggle:checked) .download-cta-content h2 {
  color: #0d0f13 !important;
}

[data-theme="light"] .newsletter-content h3,
:root:has(input#theme-toggle:checked) .newsletter-content h3 {
  color: #0d0f13 !important;
}

[data-theme="light"] .cta-device-mockup,
:root:has(input#theme-toggle:checked) .cta-device-mockup {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cta-device-mockup .placeholder-screen,
:root:has(input#theme-toggle:checked) .cta-device-mockup .placeholder-screen {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%) !important;
  color: #4a5568 !important;
}

/* ========================================
   FOOTER FIXES
   Larger logo, left-aligned on iPad+
   ======================================== */

.site-footer {
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand-section {
  text-align: left;
}

.footer-logo {
  width: 140px !important;
  height: auto !important;
  margin-bottom: 12px;
}

.footer-brand-section .muted {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-status {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-brand-section {
    text-align: center;
  }

  .footer-brand-section .muted {
    max-width: none;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-meta {
    text-align: center;
  }

  .footer-status {
    justify-content: center;
  }
}

/* Download CTA responsive */
@media (max-width: 900px) {
  .download-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .download-cta-content {
    max-width: none;
  }

  .trust-badges {
    justify-content: center;
  }

  .store-buttons-row {
    justify-content: center;
  }

  .download-cta-visual {
    display: flex;
    justify-content: center;
  }

  .cta-device-mockup {
    width: 240px;
    transform: none;
  }
}

@media (max-width: 600px) {
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group input {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    gap: 16px;
  }

  .download-cta {
    padding: 60px 0 40px;
  }

  .cta-device-mockup {
    width: 200px;
  }
}

/* ========================================
   MINI CTA SECTIONS
   Repeated CTAs throughout page
   ======================================== */

.mini-cta {
  padding: 0;
  background: none;
  border: none;
}

.mini-cta .container {
  max-width: 900px;
}

.mini-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 48px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(99, 140, 255, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.08), 0 0 48px rgba(139, 92, 246, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-cta-content:hover {
  border-color: rgba(99, 140, 255, 0.35);
  box-shadow: 0 4px 32px rgba(59, 130, 246, 0.14), 0 0 64px rgba(139, 92, 246, 0.06);
}

.mini-cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 140, 255, 0.4), rgba(139, 92, 246, 0.3), transparent);
}

.mini-cta-content p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.mini-cta-content .button {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .mini-cta .container {
    width: 100%;
  }

  .mini-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

  .mini-cta-content .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Light mode support */
[data-theme="light"] .mini-cta-content,
:root:has(input#theme-toggle:checked) .mini-cta-content {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, rgba(139, 92, 246, 0.07) 50%, rgba(59, 130, 246, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.06);
}

[data-theme="light"] .mini-cta-content:hover,
:root:has(input#theme-toggle:checked) .mini-cta-content:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 32px rgba(59, 130, 246, 0.1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mini-cta-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, rgba(139, 92, 246, 0.07) 50%, rgba(59, 130, 246, 0.04) 100%);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.06);
  }
}

/* ========================================
   AUDIENCE CARDS
   Built for / Not built for
   ======================================== */

.audience-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.audience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.audience-card--positive:hover {
  border-color: rgba(52, 199, 89, 0.3);
  box-shadow: 0 8px 32px rgba(52, 199, 89, 0.12), var(--shadow-lg);
}

.audience-card--negative:hover {
  border-color: rgba(255, 59, 48, 0.2);
  box-shadow: 0 8px 32px rgba(255, 59, 48, 0.08), var(--shadow-lg);
}

.audience-card-accent {
  height: 3px;
  transition: height 0.3s ease;
}

.audience-card:hover .audience-card-accent {
  height: 4px;
}

.audience-card-accent--green {
  background: linear-gradient(90deg, #34c759, #30d158);
}

.audience-card-accent--red {
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.6), rgba(255, 59, 48, 0.3));
}

.audience-card:hover .audience-card-accent--red {
  background: linear-gradient(90deg, #ff3b30, rgba(255, 59, 48, 0.5));
}

.audience-card-body {
  padding: 32px 28px;
}

.audience-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.audience-card:hover .audience-card-icon {
  transform: scale(1.08);
}

.audience-card-icon--green {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(52, 199, 89, 0.08));
}

.audience-card-icon--red {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 59, 48, 0.05));
}

.audience-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.audience-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-card-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}

.audience-card--positive .audience-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34c759;
  font-weight: 600;
}

.audience-card--negative .audience-card-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ff3b30;
  font-weight: 600;
}

@media (max-width: 768px) {
  .audience-card-body {
    padding: 24px 20px;
  }
}

/* ========================================
   SOCIAL PROOF SECTION
   Testimonials and trust signals
   ======================================== */

.social-proof {
  padding: 80px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  color: #fbbf24;
}

.testimonial-rating svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========================================
   HOME FAQ — Accordion style
   ======================================== */

.home-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
}

.home-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.home-faq-item[open] {
  border-color: rgba(59, 134, 255, 0.2);
}

.home-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.home-faq-item summary::-webkit-details-marker { display: none; }

.home-faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.home-faq-chevron {
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.home-faq-item[open] .home-faq-chevron {
  transform: rotate(180deg);
  opacity: 0.7;
}

.home-faq-answer {
  padding: 0 24px 20px;
}

.home-faq-answer p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* Light mode */
[data-theme="light"] .home-faq-item {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .home-faq-item[open] {
  border-color: rgba(59, 134, 255, 0.15) !important;
}

[data-theme="light"] .home-faq-item summary:hover {
  background: rgba(0, 0, 0, 0.02);
}

@media (max-width: 600px) {
  .home-faq-item summary {
    padding: 16px 18px;
    font-size: 0.9rem;
  }

  .home-faq-answer {
    padding: 0 18px 16px;
  }
}

/* ========================================
   INLINE FAQ SECTION (legacy)
   Quick answers on homepage
   ======================================== */

.inline-faq {
  padding: 80px 0;
}

.inline-faq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.inline-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  flex: 0 1 calc(33.333% - 22px);
  min-width: 280px;
}

.inline-faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.inline-faq-item p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.inline-faq-footer {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .inline-faq-item {
    flex: 0 1 calc(50% - 16px);
    min-width: 240px;
  }

  .inline-faq-grid {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .inline-faq-item {
    flex: 1 1 100%;
    min-width: unset;
  }
}

/* Light mode support */
[data-theme="light"] .testimonial-card,
[data-theme="light"] .inline-faq-item {
  background: var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   ROADMAP PAGE STYLES
   Kanban-style public roadmap
   ======================================== */

.roadmap-page {
  min-height: 100vh;
}

.roadmap-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.roadmap-hero-icon {
  margin: 0 auto 28px;
  width: 80px;
  height: 100px;
  animation: roadmapIconFloat 6s ease-in-out infinite;
}

@keyframes roadmapIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.roadmap-hero-content h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.roadmap-hero-content .lead {
  max-width: 600px;
  margin: 0 auto;
}

/* Kanban Board */
.roadmap-board {
  padding: 40px 0 80px;
}

.roadmap-columns {
  display: grid;
  /* Column count follows however many columns are actually rendered — the
     Shipped column is omitted entirely until something has graduated, so this
     is 3-up today and 4-up after. Wraps to 2-up on narrow desktops before
     collapsing to a single column on mobile (see the breakpoint below). */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

@media (max-width: 1100px) {
  .roadmap-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roadmap-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding: 16px 4px 16px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.roadmap-cards::-webkit-scrollbar {
  width: 4px;
}

.roadmap-cards::-webkit-scrollbar-track {
  background: transparent;
}

.roadmap-cards::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* Development Flow Visual */
.roadmap-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}

.roadmap-flow-step {
  text-align: center;
  max-width: 220px;
  padding: 0 16px;
}

.roadmap-flow-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--text-primary);
}

.roadmap-flow-step p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.roadmap-flow-dot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto;
  border: 1px solid;
}

.roadmap-flow-now {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.25);
}

.roadmap-flow-next {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
}

.roadmap-flow-later {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.25);
}

.roadmap-flow-arrow {
  flex-shrink: 0;
  padding-bottom: 48px;
}

@media (max-width: 768px) {
  .roadmap-flow {
    flex-direction: column;
    gap: 8px;
  }
  .roadmap-flow-arrow {
    transform: rotate(90deg);
    padding-bottom: 0;
  }
}

.roadmap-column-header {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.roadmap-column-header h2 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roadmap-column-header p {
  font-size: 0.8125rem;
  margin: 0;
}

.roadmap-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.roadmap-column-shipped .roadmap-status-dot {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.roadmap-column-now .roadmap-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.roadmap-column-next .roadmap-status-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.roadmap-column-later .roadmap-status-dot {
  background: #6b7280;
}

/* Cards — matches labs-status-card design */
.roadmap-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.roadmap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.roadmap-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid;
  flex-shrink: 0;
}

.roadmap-icon-core {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

.roadmap-icon-pro {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.roadmap-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.roadmap-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.roadmap-card>p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Badges */
.roadmap-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.roadmap-badge-core {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.roadmap-badge-pro {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.roadmap-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.8);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Collapsible Details */
.roadmap-details {
  margin-top: 12px;
  font-size: 0.8125rem;
}

.roadmap-details summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 500;
}

.roadmap-details summary:hover {
  text-decoration: underline;
}

.roadmap-details p {
  margin-top: 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.roadmap-empty {
  text-align: center;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* Collapsible Cards */
.roadmap-card-hidden {
  display: none;
}

.roadmap-cards-expanded .roadmap-card-hidden {
  display: block;
}

.roadmap-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roadmap-show-more:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.roadmap-show-more svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.roadmap-cards-expanded .roadmap-show-more svg {
  transform: rotate(180deg);
}

/* Philosophy Section */
.roadmap-philosophy {
  padding: 60px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.philosophy-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.philosophy-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.philosophy-icon-privacy {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.philosophy-icon-free {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.philosophy-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.philosophy-item p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* CTA / Feedback Section */
.roadmap-cta {
  padding: 60px 0;
}

.roadmap-feedback-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.roadmap-feedback-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.roadmap-feedback-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  flex-shrink: 0;
}

.roadmap-feedback-header h2 {
  margin-bottom: 4px;
}

.roadmap-feedback-header p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .roadmap-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .philosophy-card {
    padding: 32px 24px;
  }
}

/* Light mode support */
[data-theme="light"] .roadmap-card,
[data-theme="light"] .roadmap-column-header,
[data-theme="light"] .philosophy-item,
[data-theme="light"] .roadmap-feedback-card {
  background: var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   PRODUCT PAGE STYLES
   Enhanced feature-focused layout
   ======================================== */

.product-page {
  /* Inherits landing-dark theming */
  display: block;
}

/* Product Hero */
.product-hero {
  padding: 100px 0 60px;
  text-align: center;
}

.product-hero-content {
  max-width: 840px;
  margin: 0 auto;
}

.product-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 12px 0 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.product-hero .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.product-hero .trust-badges {
  justify-content: center;
}

/* Product Showcase */
.product-showcase {
  padding: 40px 0 100px;
  text-align: center;
}

.product-showcase-device {
  max-width: 320px;
  margin: 0 auto;
}

/* Feature Deep Dives */
.feature-deep-dives {
  padding: 60px 0;
}

.feature-deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.feature-deep-dive:last-child {
  border-bottom: none;
}

.feature-deep-dive-reversed {
  direction: rtl;
}

.feature-deep-dive-reversed>* {
  direction: ltr;
}

.feature-deep-content {
  max-width: 480px;
}

.feature-deep-content .feature-icon {
  width: 56px;
  height: 56px;
  padding: 14px;
  margin-bottom: 20px;
}

.feature-deep-content h2 {
  font-size: 2rem;
  margin: 8px 0 16px;
  color: var(--text-primary);
}

.feature-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border-radius: 50%;
}

/* Feature Mockup Large */
.feature-deep-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.feature-mockup-large {
  width: 340px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.06),
    0 0 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-mockup-large:hover {
  transform: translateY(-8px);
}

.feature-mockup-large img {
  width: 100%;
  display: block;
}

.feature-mockup-large .placeholder-screen {
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-secondary) 100%);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.feature-mockup-large .placeholder-screen svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* Light mode for product page */
[data-theme="light"] .product-hero h1,
:root:has(input#theme-toggle:checked) .product-hero h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0d0f13 !important;
  background-clip: unset !important;
  color: #0d0f13 !important;
}

[data-theme="light"] .feature-deep-content h2,
:root:has(input#theme-toggle:checked) .feature-deep-content h2 {
  color: #0d0f13 !important;
}

[data-theme="light"] .feature-mockup-large,
:root:has(input#theme-toggle:checked) .feature-mockup-large {
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.04),
    0 0 32px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .feature-mockup-large .placeholder-screen,
:root:has(input#theme-toggle:checked) .feature-mockup-large .placeholder-screen {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e0 100%) !important;
  color: #4a5568 !important;
}

[data-theme="light"] .feature-deep-dive,
:root:has(input#theme-toggle:checked) .feature-deep-dive {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Product page responsive */
@media (max-width: 900px) {
  .feature-deep-dive {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .feature-deep-dive-reversed {
    direction: ltr;
  }

  .feature-deep-content {
    max-width: none;
  }

  .feature-deep-content .feature-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-list {
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-mockup-large {
    width: min(340px, 100%);
    margin: 0 auto;
    border-radius: 32px;
  }
}

@media (max-width: 600px) {
  .product-hero {
    padding: 60px 0 40px;
  }

  .product-showcase {
    padding: 20px 0 60px;
  }

  .feature-deep-dive {
    padding: 48px 0;
  }

  .feature-mockup-large {
    width: min(320px, 100%);
    border-radius: 28px;
  }
}

/* --- Mockup Carousel (in-place swipeable) --- */
.mockup-carousel {
  position: relative;
  width: 100%;
}

.mockup-carousel .carousel-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 36px;
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.06),
    0 0 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mockup-carousel .carousel-slide {
  width: 100%;
  display: none;
}

.mockup-carousel .carousel-slide.active {
  display: block;
  animation: carouselFadeIn 0.35s ease;
}

@keyframes carouselFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mockup-carousel .carousel-slide img {
  width: 100%;
  display: block;
}

/* When feature-mockup-large contains a carousel, remove its own
   border-radius/shadow/overflow — the track handles it instead */
.feature-mockup-large:has(.mockup-carousel) {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: none;
}

.feature-mockup-large:has(.mockup-carousel):hover {
  transform: none;
}

/* Carousel navigation: arrows flanking dots */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.35;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.carousel-dots .dot.active {
  opacity: 1;
  background: var(--brand-blue);
  transform: scale(1.2);
}

.carousel-dots .dot:hover {
  opacity: 0.8;
}

/* Carousel arrow buttons */
.carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.6;
  padding: 0;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  opacity: 1;
}

/* Light mode arrows */
[data-theme="light"] .carousel-arrow,
:root:has(input#theme-toggle:checked) .carousel-arrow {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .carousel-arrow:hover,
:root:has(input#theme-toggle:checked) .carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .carousel-arrow {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.04);
  }

  :root:not([data-theme="dark"]) .carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
  }
}

[data-theme="light"] .mockup-carousel .carousel-track,
:root:has(input#theme-toggle:checked) .mockup-carousel .carousel-track {
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.04),
    0 0 32px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mockup-carousel .carousel-track {
    box-shadow:
      0 0 10px rgba(0, 0, 0, 0.04),
      0 0 32px rgba(0, 0, 0, 0.06),
      0 0 0 1px rgba(0, 0, 0, 0.03);
  }
}

/* ========================================
   PRICING PAGE STYLES
   Enhanced tier cards with highlighted option
   ======================================== */

.pricing-page {
  /* Inherits landing-dark theming */
  display: block;
}

/* Pricing Hero */
.pricing-hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(59, 134, 255, 0.15) 0%,
    rgba(167, 139, 250, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: pricingHeroGlow 6s ease-in-out infinite alternate;
}

@keyframes pricingHeroGlow {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.pricing-hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 800;
  margin: 12px 0 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pricing-hero .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pricing Cards Grid */
/* ─── Pricing Page ─── */
.pricing-page {
  position: relative;
}

.pricing-page .section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* Gradient section dividers */
.pricing-page .section + .section,
.labs-page .section + .section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, rgba(59, 134, 255, 0.2) 30%, rgba(167, 139, 250, 0.2) 70%, transparent 95%) 1;
}

.pricing-cards-section {
  padding: 40px 0 80px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  position: relative;
  padding: 40px 32px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Green accent bar on Free card — border-top follows border-radius; overflow clips corners */
.pricing-card:not(.pricing-card-featured) {
  border-top: 3px solid #22c55e;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(34, 197, 94, 0.12),
    0 0 0 1px rgba(34, 197, 94, 0.2),
    0 0 60px rgba(34, 197, 94, 0.06);
}

/* Featured Card — Animated Gradient Border */
@property --pricing-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.pricing-card-featured {
  background: var(--bg-surface);
  border: 2px solid transparent;
  color: var(--text-primary);
  box-shadow: 0 24px 48px rgba(59, 134, 255, 0.15);
  position: relative;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    conic-gradient(from var(--pricing-border-angle), var(--brand-blue), #a78bfa, var(--brand-blue));
  animation: pricingBorderRotate 4s linear infinite;
}

@keyframes pricingBorderRotate {
  to {
    --pricing-border-angle: 360deg;
  }
}

.pricing-card-featured:hover {
  box-shadow: 0 32px 64px rgba(59, 134, 255, 0.25), 0 0 40px rgba(59, 134, 255, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: #fff;
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.pricing-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-tier-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.pricing-card-featured .pricing-tier-eyebrow {
  color: var(--brand-blue);
}

.pricing-tier-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 16px;
  color: var(--text-primary);
}

.pricing-card-featured .pricing-tier-name {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card-featured .pricing-currency {
  color: var(--text-secondary);
}

.pricing-value {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-card-featured .pricing-value {
  color: var(--text-primary);
}

.pricing-period {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card-featured .pricing-period {
  color: var(--text-secondary);
}

.pricing-description {
  font-size: 0.95rem;
  margin: 0;
}

.pricing-card-featured .pricing-description {
  color: var(--text-secondary);
}

/* Features List */
.pricing-card-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features-list li:last-child {
  border-bottom: none;
}

.pricing-card-featured .pricing-features-list li {
  color: var(--text-secondary);
  border-bottom-color: var(--border);
}

.pricing-features-list li svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features-list li.included svg {
  color: #22c55e;
}

.pricing-card-featured .pricing-features-list li.included svg {
  color: #22c55e;
}

.pricing-features-list li.not-included {
  color: var(--text-tertiary);
}

.pricing-features-list li.not-included svg {
  color: var(--text-tertiary);
}

.pricing-card-featured .pricing-features-list li.not-included {
  color: var(--text-tertiary);
}

.pricing-card-featured .pricing-features-list li.not-included svg {
  color: var(--text-tertiary);
}

/* Card CTA */
.pricing-labs-link {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--brand-blue);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.pricing-labs-link:hover {
  opacity: 0.8;
}

.pricing-card-cta {
  margin-top: auto;
}

.pricing-button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.pricing-card-featured .pricing-button {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #a78bfa 100%);
  color: #fff;
  border: none;
}

.pricing-card-featured .pricing-button:hover {
  background: linear-gradient(135deg, var(--brand-blue-hover) 0%, #c4b5fd 100%);
  box-shadow: 0 8px 24px rgba(59, 134, 255, 0.3);
}

/* Pricing Note */
.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 0.9rem;
}

.pricing-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* FAQ Section */
.pricing-faq {
  padding: 80px 0;
}

.pricing-faq .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-faq .section-header h2 {
  margin: 8px 0 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.faq-item {
  padding: 24px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 134, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

/* Pricing FAQ accordion styles */
.pricing-faq .faq-item {
  cursor: pointer;
}

.pricing-faq .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}

.pricing-faq .faq-item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq .faq-item summary::marker {
  display: none;
  content: '';
}

.pricing-faq .faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 16px;
}

.pricing-faq .faq-item[open] summary::after {
  content: '\2212';
  color: var(--brand-blue);
}

.pricing-faq .faq-item p {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Feature Comparison Table ─── */
.comparison-section {
  padding: 40px 0 80px;
}

.comparison-table-wrap {
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 20px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.95);
  backdrop-filter: blur(12px);
  z-index: 1;
}

.comparison-table thead th:not(:first-child) {
  text-align: center;
  width: 140px;
}

.comparison-table thead th.col-free {
  color: #4ade80;
}

.comparison-table thead th.col-pro {
  color: var(--brand-blue);
}

.comparison-table tbody td {
  padding: 16px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table tbody td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.comparison-table tbody tr:hover td {
  background: rgba(59, 134, 255, 0.04);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .feature-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table .feature-name svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.comparison-table .feature-desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 2px;
  padding-left: 30px;
}

.comparison-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.comparison-check.yes {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.comparison-check.no {
  color: rgba(255, 255, 255, 0.15);
}

.comparison-check.pro-only {
  background: rgba(59, 134, 255, 0.15);
  color: var(--brand-blue);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Why Pro Section ─── */
.why-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.why-pro-pillar {
  padding: 32px 28px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.why-pro-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 134, 255, 0.3);
  box-shadow: 0 16px 40px rgba(59, 134, 255, 0.1);
}

.why-pro-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  margin-bottom: 20px;
}

.why-pro-icon.pro-accent {
  background: rgba(59, 134, 255, 0.1);
  color: var(--brand-blue);
}

.why-pro-pillar h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.why-pro-pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Privacy Split Layout ─── */
.privacy-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.privacy-split-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.privacy-big-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(59, 134, 255, 0.08);
  border: 1px solid rgba(59, 134, 255, 0.15);
  color: var(--brand-blue);
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.privacy-badge-item {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius-pill);
}

.privacy-split-content p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Labs Destination Grid ─── */
.labs-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.labs-destination-card {
  padding: 32px 28px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.labs-destination-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 134, 255, 0.3);
  box-shadow: 0 16px 40px rgba(59, 134, 255, 0.1);
}

.labs-dest-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
}

.labs-dest-icon.future-core {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.labs-dest-icon.future-pro {
  background: rgba(59, 134, 255, 0.1);
  color: var(--brand-blue);
}

.labs-dest-label {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.labs-destination-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0 12px;
  color: var(--text-primary);
}

.labs-destination-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   LABS PAGE — WORLD-CLASS VISUAL SYSTEM
   ═══════════════════════════════════════════════════ */

/* ─── Hero ─── */
/* ─── Nav Animated Icon Hover ─── */
.nav-anim-link .nav-icon-animated {
  display: none;
}

.nav-anim-link:hover .nav-icon-static {
  display: none;
}

.nav-anim-link:hover .nav-icon-animated {
  display: inline-block;
}

.labs-hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.labs-hero-orb {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(74, 222, 128, 0.12) 0%,
    rgba(59, 134, 255, 0.08) 35%,
    rgba(167, 139, 250, 0.05) 55%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: labsOrbPulse 8s ease-in-out infinite alternate;
}

@keyframes labsOrbPulse {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%  { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.labs-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 134, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 134, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black, transparent);
}

.labs-hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.labs-hero-flask {
  margin: 0 auto 32px;
  width: 80px;
  height: 100px;
  animation: labsFlaskFloat 6s ease-in-out infinite;
}

@keyframes labsFlaskFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.labs-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.labs-gradient-text {
  background: linear-gradient(135deg, #4ade80, #3b86ff, #a78bfa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: labsGradientShift 6s ease-in-out infinite;
}

@keyframes labsGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.labs-hero .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}

.labs-hero-labels {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.labs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.labs-hero-badge:hover {
  transform: translateY(-2px);
}

.future-core-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.future-core-badge:hover {
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.future-pro-badge {
  background: rgba(59, 134, 255, 0.1);
  border: 1px solid rgba(59, 134, 255, 0.25);
  color: var(--brand-blue);
}

.future-pro-badge:hover {
  box-shadow: 0 8px 24px rgba(59, 134, 255, 0.15);
}

/* ─── Pillar Cards with Glow ─── */
.labs-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.labs-pillar {
  position: relative;
  padding: 36px 28px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.labs-pillar:hover {
  transform: translateY(-6px);
}

.labs-pillar-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
}

.green-glow  { background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 70%); }
.blue-glow   { background: radial-gradient(circle, rgba(59, 134, 255, 0.2), transparent 70%); }
.purple-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.2), transparent 70%); }

.labs-pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.labs-pillar-icon.green  { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.labs-pillar-icon.blue   { background: rgba(59, 134, 255, 0.1); color: var(--brand-blue); }
.labs-pillar-icon.purple { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }

.labs-pillar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.labs-pillar p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Destination Label Showcase ─── */
.labs-labels-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.labs-label-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  transition: transform var(--transition-fast);
}

.labs-label-card:hover {
  transform: translateY(-6px);
}

.labs-label-core {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.2));
  background-size: 200% 200%;
  animation: labsCoreGlow 5s ease-in-out infinite;
}

.labs-label-pro {
  background: linear-gradient(135deg, rgba(59, 134, 255, 0.4), rgba(167, 139, 250, 0.1), rgba(59, 134, 255, 0.2));
  background-size: 200% 200%;
  animation: labsProGlow 5s ease-in-out infinite;
}

@keyframes labsCoreGlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes labsProGlow {
  0%, 100% { background-position: 100% 50%; }
  50%      { background-position: 0% 50%; }
}

.labs-label-card-inner {
  background: var(--bg-primary);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 36px 32px;
  text-align: center;
}

.labs-label-badge-large {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.labs-label-core .labs-label-badge-large {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.labs-label-pro .labs-label-badge-large {
  background: rgba(59, 134, 255, 0.12);
  color: var(--brand-blue);
  box-shadow: 0 0 30px rgba(59, 134, 255, 0.1);
}

.labs-label-tag {
  display: inline-block;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.labs-label-core .labs-label-tag {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.labs-label-pro .labs-label-tag {
  background: rgba(59, 134, 255, 0.1);
  color: var(--brand-blue);
  border: 1px solid rgba(59, 134, 255, 0.2);
}

.labs-label-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.labs-label-card p.muted {
  max-width: 380px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.labs-label-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.labs-label-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ─── Timeline ─── */
.labs-timeline {
  position: relative;
  padding: 60px 0 20px;
}

.labs-timeline-track {
  position: absolute;
  top: 82px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.labs-timeline-progress {
  width: 60%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ade80, #3b86ff);
  animation: labsProgressPulse 3s ease-in-out infinite alternate;
}

@keyframes labsProgressPulse {
  0%   { opacity: 0.5; width: 55%; }
  100% { opacity: 1; width: 65%; }
}

.labs-timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.labs-timeline-step {
  text-align: center;
}

.labs-timeline-dot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.8);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.labs-timeline-dot.active {
  border-color: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.2), 0 0 48px rgba(74, 222, 128, 0.08);
  background: rgba(34, 197, 94, 0.08);
}

.labs-timeline-step:hover .labs-timeline-dot {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(59, 134, 255, 0.15);
}

.labs-timeline-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.labs-timeline-step p {
  max-width: 280px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ─── Trust Note ─── */
.labs-trust-note {
  text-align: center;
  margin-top: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.75;
}

/* ─── Labs Expectations Grid ─── */
.labs-expectations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.labs-expectation-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.labs-expectation-icon {
  margin-bottom: 12px;
}

.labs-expectation-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.labs-expectation-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .labs-expectations-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Labs Status Grid ─── */
.labs-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.labs-status-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.labs-status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.labs-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.labs-status-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid;
}

.labs-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.labs-status-inlabs {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.labs-status-refining {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.labs-status-considering {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.labs-status-defining {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.labs-status-card-considering {
  border-style: dashed;
  opacity: 0.85;
}

.labs-status-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.labs-status-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.labs-status-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.labs-dest-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.labs-dest-core {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.15);
}

.labs-dest-pro {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.labs-status-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.65;
}

@media (max-width: 768px) {
  .labs-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Animated Dots ─── */
.labs-dot-pulse {
  animation: labsDotPulse 3s ease-in-out infinite;
}

@keyframes labsDotPulse {
  0%, 100% {
    border-color: rgba(59, 134, 255, 0.25);
    box-shadow: 0 0 12px rgba(59, 134, 255, 0.08);
    color: rgba(59, 134, 255, 0.5);
  }
  50% {
    border-color: rgba(59, 134, 255, 0.6);
    box-shadow: 0 0 24px rgba(59, 134, 255, 0.2), 0 0 48px rgba(59, 134, 255, 0.06);
    color: #3b86ff;
  }
}

/* ─── iPhone Image ─── */
.labs-iphone-img {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 32px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ─── Graduation Split Layout ─── */
.labs-grad-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.labs-grad-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical flow steps: dot + text side by side */
.labs-vflow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.labs-vflow-step .labs-flow-dot {
  flex-shrink: 0;
  margin: 0;
}

.labs-vflow-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.labs-vflow-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

.labs-vflow-arrow {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.labs-vflow-fork {
  display: flex;
  justify-content: center;
  margin: 4px 0 0;
}

/* Outcomes in forked row */
.labs-vflow-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.labs-vflow-outcomes .labs-flow-outcome {
  padding: 16px 12px;
}

.labs-vflow-outcomes .labs-flow-outcome-dot {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.labs-vflow-outcomes .labs-flow-outcome h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.labs-vflow-outcomes .labs-flow-outcome p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Right side: screenshot */
.labs-grad-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.labs-preview-caption {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
  max-width: 380px;
}

/* Keep shared flow dot styles */
.labs-flow-dot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.8);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.labs-flow-dot.active {
  border-color: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.2), 0 0 48px rgba(74, 222, 128, 0.08);
  background: rgba(34, 197, 94, 0.08);
}

/* Outcome cards */
.labs-flow-outcome {
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.labs-flow-outcome:hover {
  transform: translateY(-4px);
}

.labs-flow-graduated:hover { border-color: rgba(74, 222, 128, 0.3); }
.labs-flow-retired:hover   { border-color: rgba(245, 158, 11, 0.3); }

.labs-flow-outcome-dot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
}

.labs-flow-outcome-dot.graduated {
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.labs-flow-outcome-dot.retired {
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.labs-flow-outcome h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.labs-flow-graduated h3 { color: #4ade80; }
.labs-flow-retired h3   { color: #f59e0b; }
.labs-flow-outcome p { margin: 0; font-size: 0.88rem; line-height: 1.65; }

/* ─── App Preview Frame ─── */
.labs-app-preview-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(59, 134, 255, 0.06);
}

.labs-app-preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Labs CTA ─── */
.labs-cta {
  padding: 60px 0 100px;
}

.labs-cta-block {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  overflow: hidden;
}

.labs-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(74, 222, 128, 0.08) 0%,
    rgba(59, 134, 255, 0.05) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: labsCtaGlow 6s ease-in-out infinite alternate;
}

@keyframes labsCtaGlow {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.1); }
}

.labs-cta-block .eyebrow { position: relative; z-index: 1; }

.labs-cta-block h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 12px 0 14px;
}

.labs-cta-block p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.labs-cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.labs-cta-buttons .button {
  width: auto;
  min-width: 0;
  padding: 12px 28px;
  font-size: 0.92rem;
}

/* ─── Labs Page Mobile Responsive ─── */
@media (max-width: 768px) {
  /* Hero */
  .labs-hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .labs-hero .lead {
    font-size: 0.92rem;
  }

  .labs-hero-labels {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* Pillars: 3-col → 1-col */
  .labs-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .labs-pillar {
    padding: 24px 20px;
  }

  /* Destination Label Cards: 2-col → 1-col */
  .labs-labels-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Graduation flow: 2-col split → stacked */
  .labs-grad-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .labs-grad-preview {
    order: -1;
  }

  .labs-iphone-img {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Scale the fork SVG down for narrow screens */
  .labs-vflow-fork svg {
    width: 200px;
    height: auto;
  }

  .labs-vflow-outcomes {
    max-width: 280px;
  }

  /* CTA */
  .labs-cta {
    padding: 40px 0 60px;
  }

  .labs-cta-block {
    padding: 32px 20px;
  }

  .labs-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .labs-cta-buttons .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .labs-vflow-step {
    max-width: 100%;
  }

  .labs-flow-dot {
    width: 44px;
    height: 44px;
  }

  .labs-vflow-fork svg {
    width: 160px;
  }

  .labs-vflow-outcomes {
    max-width: 100%;
    gap: 10px;
  }

  .labs-vflow-outcomes .labs-flow-outcome {
    padding: 12px 8px;
  }

  .labs-vflow-outcomes .labs-flow-outcome-dot {
    width: 36px;
    height: 36px;
  }

  .labs-status-card {
    padding: 18px;
  }

  .labs-expectation-card {
    padding: 18px;
  }
}

/* ─── Compare Page ─── */
.compare-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid;
  margin-bottom: 16px;
}

/* ─── Compare Page Hero ─── */
.compare-hero {
  position: relative;
  overflow: hidden;
}

.compare-hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, rgba(59, 134, 255, 0.06) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: compare-orb-pulse 8s ease-in-out infinite;
}

@keyframes compare-orb-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ─── Comparison Table ─── */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table thead tr {
  border-bottom: 1px solid var(--border-strong, var(--border));
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: middle;
}

.compare-table-category {
  width: 22%;
  min-width: 160px;
}

.compare-table-col {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.compare-col-icon {
  margin-right: 6px;
  vertical-align: -2px;
  font-size: 1.1em;
}

.compare-col-icon svg {
  vertical-align: -3px;
  opacity: 0.7;
}

.compare-table-cloud {
  color: #60a5fa;
}

.compare-table-vrbtm {
  color: #4ade80;
}

/* Row styles */
.compare-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Category label with icon */
.compare-table-label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.compare-table-label svg {
  opacity: 0.4;
  margin-right: 8px;
  vertical-align: -3px;
}

/* Cell defaults */
.compare-table tbody td {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Vrbtm column — subtle green tint */
.compare-cell-vrbtm {
  background: rgba(74, 222, 128, 0.03);
}

/* Cloud column — subtle blue tint */
.compare-cell-cloud {
  background: rgba(96, 165, 250, 0.02);
}

/* Strong cell — checkmark indicator */
.compare-cell-strong {
  color: var(--text-primary) !important;
  font-weight: 500;
}

.compare-cell-strong svg {
  margin-right: 6px;
  vertical-align: -3px;
}

/* Weak cell — dimmed */
.compare-cell-weak {
  opacity: 0.55;
  font-style: italic;
}

/* Highlight row — core differentiator */
.compare-table-highlight-row {
  background: rgba(74, 222, 128, 0.04) !important;
  border-left: 3px solid rgba(74, 222, 128, 0.35);
}

.compare-table-highlight-row:hover {
  background: rgba(74, 222, 128, 0.07) !important;
}

.compare-table-highlight-row .compare-table-label {
  color: #4ade80;
}

@media (max-width: 768px) {
  .compare-table th,
  .compare-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .compare-table-category {
    min-width: 110px;
  }

  .compare-table-col {
    font-size: 0.9rem;
  }

  .compare-hero-orb {
    width: 300px;
    height: 300px;
  }
}

.compare-disclaimer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.7;
}

/* ─── Conviction Bridge ─── */
.compare-conviction-block {
  font-size: 1.05rem;
  line-height: 1.8;
}

.compare-conviction-quote {
  border-left: 3px solid #4ade80;
  padding-left: 24px;
  margin: 32px 0 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.compare-use-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-use-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(var(--bg-surface-rgb, 30, 30, 30), 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-use-right {
  border-left: 3px solid rgba(74, 222, 128, 0.3);
}

.compare-use-not {
  border-left: 3px solid rgba(248, 113, 113, 0.3);
}

.compare-use-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.compare-use-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.compare-use-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-use-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.compare-use-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
  font-weight: 600;
}

.compare-use-right .compare-use-list li::before {
  content: "✓";
  color: #4ade80;
}

.compare-use-not .compare-use-list li::before {
  content: "✗";
  color: #f87171;
}

.compare-use-note {
  margin-top: 16px;
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .compare-use-case-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing CTA */
.pricing-cta {
  padding: 40px 0 100px;
}

.pricing-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-cta-content h2 {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.pricing-cta-content p {
  margin: 0;
}

/* Light mode for pricing page */
[data-theme="light"] .pricing-hero h1,
:root:has(input#theme-toggle:checked) .pricing-hero h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0d0f13 !important;
  background-clip: unset !important;
  color: #0d0f13 !important;
}

[data-theme="light"] .pricing-card,
:root:has(input#theme-toggle:checked) .pricing-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .pricing-card-featured,
:root:has(input#theme-toggle:checked) .pricing-card-featured {
  background-image:
    linear-gradient(#fff, #fff),
    conic-gradient(from var(--pricing-border-angle), var(--brand-blue), #a78bfa, var(--brand-blue)) !important;
  box-shadow: 0 24px 48px rgba(31, 106, 225, 0.12) !important;
}

[data-theme="light"] .faq-item,
:root:has(input#theme-toggle:checked) .faq-item {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .faq-item h3,
:root:has(input#theme-toggle:checked) .faq-item h3 {
  color: #0d0f13 !important;
}

[data-theme="light"] .pricing-cta-card,
:root:has(input#theme-toggle:checked) .pricing-cta-card {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .pricing-cta-content h2,
:root:has(input#theme-toggle:checked) .pricing-cta-content h2 {
  color: #0d0f13 !important;
}

/* Pricing page responsive */
@media (max-width: 768px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .pricing-cta-card .store-buttons-row {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .pricing-hero {
    padding: 60px 0 40px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-faq {
    padding: 60px 0;
  }
}

/* ========================================
   AUTH PAGE STYLES
   Enhanced login/signup experience
   ======================================== */

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background decorations */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.auth-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--brand-blue);
  top: -200px;
  right: -150px;
}

.auth-glow-2 {
  width: 400px;
  height: 400px;
  background: #8b5cf6;
  bottom: -100px;
  left: -100px;
}

/* Auth section */
.auth-section {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Enhanced Auth Card */
.auth-card-enhanced {
  padding: 48px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

/* Brand in card */
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.5rem;
}

.auth-logo svg {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  color: var(--brand-blue);
}

/* Auth header */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.auth-header p {
  margin: 0;
  font-size: 0.95rem;
}

/* Enhanced form */
.auth-form-enhanced {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-size: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper input::placeholder {
  color: var(--text-tertiary);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 134, 255, 0.15);
}

/* Auth button */
.auth-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.auth-button svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
}

/* Auth hint */
.auth-hint {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--brand-blue);
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Light mode for auth pages */
[data-theme="light"] .auth-glow-1,
:root:has(input#theme-toggle:checked) .auth-glow-1 {
  opacity: 0.15;
}

[data-theme="light"] .auth-glow-2,
:root:has(input#theme-toggle:checked) .auth-glow-2 {
  opacity: 0.1;
}

[data-theme="light"] .auth-card-enhanced,
:root:has(input#theme-toggle:checked) .auth-card-enhanced {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .auth-header h1,
:root:has(input#theme-toggle:checked) .auth-header h1 {
  color: #0d0f13 !important;
}

[data-theme="light"] .input-wrapper input,
:root:has(input#theme-toggle:checked) .input-wrapper input {
  background: #f8fafd !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .input-wrapper input:focus,
:root:has(input#theme-toggle:checked) .input-wrapper input:focus {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(59, 134, 255, 0.1);
}

/* Auth page responsive */
@media (max-width: 480px) {
  .auth-section {
    padding: 80px 16px 40px;
  }

  .auth-card-enhanced {
    padding: 32px 24px;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }
}

/* ========================================
   CLEAN AUTH LAYOUT (base_auth.html)
   Minimal, focused authentication pages
   ======================================== */

.auth-body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 134, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 70%);
  z-index: 0;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Minimal Header */
.auth-header-minimal {
  padding: 24px 32px;
  display: flex;
  justify-content: center;
}

.auth-home-link {
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.auth-home-link:hover {
  opacity: 1;
}

.auth-logo-img {
  display: block;
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
}

/* Main Auth Content */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px 60px;
}

.auth-stack {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-page-clean {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--bg-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    conic-gradient(from var(--pricing-border-angle, 0deg), rgba(59, 134, 255, 0.3), rgba(167, 139, 250, 0.2), rgba(59, 134, 255, 0.3));
  animation: pricingBorderRotate 6s linear infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-card-header p {
  font-size: 0.875rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-form .input-wrapper {
  position: relative;
}

.auth-form .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 12px 14px 12px 44px;
  font-size: 0.9375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-form input:not([type="checkbox"])::placeholder {
  color: var(--text-muted);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 0.9375rem;
  margin-top: 4px;
}

.auth-hint {
  text-align: center;
  font-size: 0.8125rem;
  margin-top: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--brand-blue);
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-toggle-link {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-align: center;
  margin-bottom: 20px;
}

.auth-toggle-link:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.05);
}

.auth-forgot-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: right;
  margin-top: 6px;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--brand-blue);
}

/* Minimal Footer */
.auth-footer-minimal {
  padding: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-footer-minimal a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.auth-footer-minimal a:hover {
  color: var(--text-primary);
}

.auth-footer-dot {
  margin: 0 8px;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .auth-header-minimal {
    padding: 20px 16px;
  }

  .auth-main {
    padding: 0 16px 40px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-card-header h1 {
    font-size: 1.25rem;
  }
}

/* ========================================
   AUTH ALERTS & STATUS ICONS
   Semantic color alerts with dismiss
   ======================================== */

/* Status Icons */
.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.auth-icon-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.auth-icon-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.auth-icon-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.auth-icon-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Alert Component */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  position: relative;
}

.auth-alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert-content {
  flex: 1;
  min-width: 0;
}

.auth-alert-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-alert-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  color: inherit;
}

.auth-alert-dismiss:hover {
  opacity: 1;
}

/* Alert Color Variants */
.auth-alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.auth-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.auth-alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* Card state modifiers */
.auth-card-success .auth-card-header h1 {
  color: #22c55e;
}

.auth-card-error .auth-card-header h1 {
  color: #f87171;
}

/* Secondary button for auth */
.auth-submit.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.auth-submit.secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
}

/* Alert dismiss animation */
.auth-alert.dismissed {
  animation: alertDismiss 0.3s ease-out forwards;
}

@keyframes alertDismiss {
  to {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* ========================================
   SITE-WIDE ALERTS & CALLOUTS
   Reusable dismissible alerts for any page
   ======================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-content p {
  margin: 0;
}

.alert-content p+p {
  margin-top: 8px;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.alert-dismiss:hover {
  opacity: 1;
}

/* Alert Variants */
.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Light mode adjustments */
[data-theme="light"] .alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

[data-theme="light"] .alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

[data-theme="light"] .alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

[data-theme="light"] .alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Dismiss animation */
.alert.dismissed {
  animation: alertDismiss 0.3s ease-out forwards;
}

/* ========================================
   FAQ PAGE — WORLD-CLASS REDESIGN v2
   Animated gradient borders, grouped
   categories, search highlighting,
   micro-interactions, scroll-spy
   ======================================== */

/* ── Custom property for animated border ── */
@property --faq-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ── Reading Progress Bar ── */
.faq-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), #a78bfa, var(--brand-blue));
  background-size: 200% 100%;
  z-index: 9999;
  pointer-events: none;
  transition: width 0.15s ease-out;
  animation: progressShimmer 3s linear infinite;
  box-shadow: 0 0 8px var(--brand-blue-glow);
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Page ── */
.faq-page {
  --dot-color: rgba(255, 255, 255, 0.03);
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.faq-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.faq-page>* {
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.faq-hero {
  position: relative;
  padding: 56px 40px 44px;
  border-radius: 24px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

/* Animated gradient border */
.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(from var(--faq-border-angle),
      transparent 25%,
      var(--brand-blue) 37%,
      #a78bfa 50%,
      var(--brand-blue) 63%,
      transparent 75%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 6s linear infinite;
  pointer-events: none;
}

@keyframes borderRotate {
  to {
    --faq-border-angle: 360deg;
  }
}

.faq-hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 70%);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  pointer-events: none;
  filter: blur(70px);
  z-index: -1;
}

.faq-hero-glow--accent {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
  top: -80px;
  left: 20%;
  opacity: 0.5;
}

/* Floating + pulsing hero icon */
.faq-hero-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(59, 134, 255, 0.1);
  border: 1px solid rgba(59, 134, 255, 0.2);
  color: var(--brand-blue);
  animation: heroIconFloat 4s ease-in-out infinite;
  position: relative;
}

.faq-hero-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 0 20px var(--brand-blue-glow), 0 0 40px rgba(59, 134, 255, 0.1);
  animation: heroIconPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroIconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes heroIconPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.faq-hero-icon svg {
  width: 28px;
  height: 28px;
}

/* Gradient heading */
.faq-hero h1 {
  margin: 8px 0 8px;
  font-size: 2.15rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.faq-hero .lead {
  margin: 0 0 28px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.faq-hero .eyebrow {
  position: relative;
  z-index: 1;
}

/* ── Stat Strip ── */
.faq-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.faq-stats .faq-stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
  flex-shrink: 0;
}

.faq-stats span {
  white-space: nowrap;
}

/* ── Search ── */
.faq-hero-controls {
  position: relative;
  z-index: 2;
}

.faq-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.faq-search-wrap:focus-within .faq-search-icon {
  color: var(--brand-blue);
}

.faq-search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-search:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--brand-blue-glow), 0 4px 20px rgba(59, 134, 255, 0.1);
}

.faq-search::placeholder {
  color: var(--text-tertiary);
}

/* ── Toolbar ── */
.faq-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.faq-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  font-size: 0.8125rem !important;
}

.faq-result-count {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform var(--transition-fast);
}

.faq-count-flash {
  animation: countFlash 0.35s ease;
}

@keyframes countFlash {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Category Chips (sticky nav) ── */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 50;
  padding: 12px 0;
  background: var(--bg-primary);
  transition: box-shadow var(--transition-fast);
}

.faq-cats.is-stuck {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-chip {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.faq-chip .faq-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
  padding: 0 4px;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.faq-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.faq-chip.is-active {
  color: #fff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  box-shadow: 0 0 16px var(--brand-blue-glow);
}

.faq-chip.is-active .faq-chip-count {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* ── Starter Note ── */
.faq-starter-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 12px 16px;
}

.faq-starter-note svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.faq-starter-note p {
  margin: 0;
  font-size: 0.875rem;
}

/* ── Category Group Sections ── */
.faq-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px 8px;
  position: sticky;
  top: calc(var(--header-height, 72px) + 52px);
  z-index: 40;
  background: var(--bg-primary);
}

.faq-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 134, 255, 0.08);
  border: 1px solid rgba(59, 134, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.faq-group-icon svg {
  width: 18px;
  height: 18px;
}

.faq-group-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.faq-group-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.faq-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  display: none;
}

/* ── FAQ List ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── FAQ Item — Accordion ── */
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 16px;
  overflow: hidden;
  border-left: 3px solid transparent;
  position: relative;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    border-left-color var(--transition-medium),
    opacity 0.5s ease,
    transform 0.5s ease;

  /* Stagger reveal — start hidden */
  opacity: 0;
  transform: translateY(18px);
}

.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover — matches Why Pro pillar card style */
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 134, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.faq-item[open] {
  border-left-color: var(--brand-blue);
  background: var(--bg-elevated);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

/* Number indicator */
.faq-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.faq-item[open] .faq-num {
  color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.1);
  border-color: rgba(59, 134, 255, 0.25);
}

.faq-q {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.faq-cat-badge {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.faq-item[open] .faq-cat-badge {
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform var(--transition-medium), color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.faq-chevron svg {
  width: 14px;
  height: 14px;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.1);
  border-color: rgba(59, 134, 255, 0.25);
}

/* ── Answer — smooth open animation ── */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-medium);
  position: relative;
  z-index: 1;
}

.faq-item[open] .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
  padding: 0 20px 0 62px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.faq-item[open] .faq-answer {
  padding-bottom: 22px;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p+p {
  margin-top: 12px;
}

.faq-answer p:first-child::first-line {
  color: var(--text-primary);
  font-weight: 500;
}

/* Search highlight */
.faq-highlight {
  background: rgba(59, 134, 255, 0.15);
  color: var(--brand-blue);
  border-radius: 3px;
  padding: 1px 3px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(59, 134, 255, 0.4);
  text-underline-offset: 2px;
}

/* Hidden state */
.faq-item.is-hidden {
  display: none;
}

/* ── Empty / No Results ── */
#faq-no-results[hidden] {
  display: none !important;
}

.faq-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
}

.faq-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  animation: heroIconFloat 4s ease-in-out infinite;
}

.faq-empty-icon svg {
  width: 28px;
  height: 28px;
}

.faq-empty h3 {
  margin-bottom: 8px;
}

.faq-empty .muted {
  max-width: 36ch;
  margin: 0 auto;
}

.faq-empty .button {
  margin-top: 20px;
}

/* ── Bottom CTA ── */
.faq-cta {
  position: relative;
  text-align: center;
  padding: 56px 40px;
  border-radius: 24px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 12px;
  isolation: isolate;
}

/* CTA animated border */
.faq-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(from var(--faq-border-angle),
      transparent 30%,
      rgba(59, 134, 255, 0.4) 45%,
      rgba(167, 139, 250, 0.3) 50%,
      rgba(59, 134, 255, 0.4) 55%,
      transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 8s linear infinite;
  pointer-events: none;
}

.faq-cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-blue-glow) 0%, transparent 70%);
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(60px);
  z-index: -1;
}

.faq-cta-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(59, 134, 255, 0.1);
  border: 1px solid rgba(59, 134, 255, 0.2);
  color: var(--brand-blue);
  animation: heroIconFloat 4s ease-in-out infinite;
}

.faq-cta-icon svg {
  width: 28px;
  height: 28px;
}

.faq-cta h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-cta .muted {
  max-width: 42ch;
  margin: 0 auto 28px;
}

.faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ── Light Mode Adjustments ── */
[data-theme="light"] .faq-page {
  --dot-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .faq-hero::before,
[data-theme="light"] .faq-cta::before {
  background: conic-gradient(from var(--faq-border-angle),
      transparent 25%,
      rgba(31, 106, 225, 0.3) 37%,
      rgba(139, 92, 246, 0.2) 50%,
      rgba(31, 106, 225, 0.3) 63%,
      transparent 75%);
}

[data-theme="light"] .faq-hero-glow {
  opacity: 0.25;
}

[data-theme="light"] .faq-hero-glow--accent {
  opacity: 0.15;
}

[data-theme="light"] .faq-hero h1,
[data-theme="light"] .faq-cta h2 {
  background: linear-gradient(135deg, var(--text-primary) 0%, #1F6AE1 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(31, 106, 225, 0.06);
}



[data-theme="light"] .faq-cta-glow {
  opacity: 0.15;
}

[data-theme="light"] .faq-cats.is-stuck {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .faq-highlight {
  background: rgba(31, 106, 225, 0.12);
  color: #1F6AE1;
  text-decoration-color: rgba(31, 106, 225, 0.35);
}

[data-theme="light"] .faq-progress {
  background: linear-gradient(90deg, #1F6AE1, #7c3aed, #1F6AE1);
  background-size: 200% 100%;
  box-shadow: 0 0 6px rgba(31, 106, 225, 0.2);
}

/* prefers-color-scheme light */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .faq-page {
    --dot-color: rgba(0, 0, 0, 0.04);
  }

  :root:not([data-theme="dark"]) .faq-hero::before,
  :root:not([data-theme="dark"]) .faq-cta::before {
    background: conic-gradient(from var(--faq-border-angle),
        transparent 25%,
        rgba(31, 106, 225, 0.3) 37%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(31, 106, 225, 0.3) 63%,
        transparent 75%);
  }

  :root:not([data-theme="dark"]) .faq-hero-glow {
    opacity: 0.25;
  }

  :root:not([data-theme="dark"]) .faq-hero-glow--accent {
    opacity: 0.15;
  }

  :root:not([data-theme="dark"]) .faq-hero h1,
  :root:not([data-theme="dark"]) .faq-cta h2 {
    background: linear-gradient(135deg, var(--text-primary) 0%, #1F6AE1 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  :root:not([data-theme="dark"]) .faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(31, 106, 225, 0.06);
  }

  :root:not([data-theme="dark"]) .faq-cta-glow {
    opacity: 0.15;
  }

  :root:not([data-theme="dark"]) .faq-cats.is-stuck {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  :root:not([data-theme="dark"]) .faq-highlight {
    background: rgba(31, 106, 225, 0.12);
    color: #1F6AE1;
  }

  :root:not([data-theme="dark"]) .faq-progress {
    background: linear-gradient(90deg, #1F6AE1, #7c3aed, #1F6AE1);
    background-size: 200% 100%;
    box-shadow: 0 0 6px rgba(31, 106, 225, 0.2);
  }
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .faq-hero {
    padding: 40px 20px 32px;
    border-radius: 20px;
  }

  .faq-hero h1 {
    font-size: 1.55rem;
  }

  .faq-stats {
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 0.75rem;
  }

  .faq-toolbar {
    flex-direction: column;
    gap: 8px;
  }

  .faq-toolbar-btn {
    width: 100%;
    justify-content: center;
  }

  .faq-cats {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 6px 16px;
    justify-content: flex-start;
    top: var(--header-height, 72px);
    gap: 6px;
  }

  .faq-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .faq-group-header {
    top: calc(var(--header-height, 72px) + 42px);
    padding: 12px 4px 6px;
  }

  .faq-item summary {
    padding: 12px 14px;
    gap: 8px;
  }

  .faq-num {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }

  .faq-q {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Hide category badge on mobile — redundant with group header */
  .faq-cat-badge {
    display: none;
  }

  .faq-chevron {
    width: 22px;
    height: 22px;
  }

  .faq-chevron svg {
    width: 12px;
    height: 12px;
  }

  .faq-answer {
    padding: 0 14px 0 14px;
    font-size: 0.88rem;
  }

  .faq-item[open] .faq-answer {
    padding-bottom: 14px;
  }

  .faq-cta {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .faq-cta-actions {
    flex-direction: column;
  }

  .faq-cta-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ── Tight mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Reduce hero heading sizes across all pages */
  .hero h1,
  .page-header h1 {
    font-size: 2.6rem;
    letter-spacing: -0.02em;
  }

  .hero .lead,
  .page-header .lead {
    font-size: 1rem;
  }

  /* Compact device frames */
  .showcase-device,
  .product-showcase-device {
    max-width: 220px;
  }

  .device-frame {
    max-width: 240px;
    margin: 0 auto;
  }

  /* Tighter section padding */
  .section {
    padding: 36px 0;
  }

  .page-header {
    padding: 24px 0 32px;
    gap: 10px;
  }

  /* Video placeholder */
  .video-showcase {
    min-height: 200px;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 22, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(55, 65, 120, 0.9);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Light mode */
[data-theme="light"] .back-to-top,
:root:has(input#theme-toggle:checked) .back-to-top {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .back-to-top:hover,
:root:has(input#theme-toggle:checked) .back-to-top:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .back-to-top {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  :root:not([data-theme="dark"]) .back-to-top:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
  }
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}


/* ========================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   Consolidated mobile fixes for ≤480px
   ======================================== */

/* ── Tablet breakpoint (≤768px) additions ── */
@media (max-width: 768px) {

  /* Fluid hero typography — lower the clamp minimums */
  .hero-split h1 {
    font-size: clamp(1.8rem, 5vw + 0.5rem, 3.5rem);
  }

  .pricing-hero h1 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
  }

  .product-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .labs-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
  }

  .roadmap-hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
  }

  .changelog-hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
  }

  .pba-hero-content h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
  }

  .faq-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .support-hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .legal-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
  }

  /* Lead text scaling */
  .hero-split .lead,
  .pricing-hero .lead,
  .product-hero .lead,
  .labs-hero .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Section headings */
  .section-header h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  /* Tighter section padding */
  .section {
    padding: var(--space-2xl) 0;
  }

  .content {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  /* Cookie banner mobile */
  .cookie-banner-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 20px;
  }

  .cookie-banner-text {
    font-size: 0.85rem;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner-actions .button {
    flex: 1;
    min-width: 0;
  }

  /* Compare table — card stacked layout on mobile */
  .compare-table-wrap {
    overflow-x: visible;
  }

  .compare-table {
    display: block;
  }

  .compare-table thead {
    position: sticky;
    top: var(--header-height, 64px);
    z-index: 10;
    display: block;
    background: var(--bg-surface);
  }

  .compare-table thead tr {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .compare-table thead th {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .compare-table tbody {
    display: block;
  }

  .compare-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .compare-table-category {
    grid-column: 1 / -1;
    min-width: 0;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .compare-table-col {
    font-size: 0.82rem;
    padding: 6px 0;
    line-height: 1.5;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  /* Compare hero */
  .compare-hero-orb {
    width: 200px;
    height: 200px;
  }

  /* CTA sections — stack buttons */
  .labs-cta-buttons,
  .cta-buttons,
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .labs-cta-buttons .button,
  .cta-buttons .button,
  .hero-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Pricing — improve card spacing */
  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-cards-grid {
    max-width: 100%;
    gap: 24px;
  }

  /* Audience cards (Built for / Not built for) — stack to single column */
  .audience-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .audience-card-body {
    padding: 24px 20px;
  }

  /* Labs — pillar cards: stack to single column */
  .labs-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .labs-pillar {
    padding: 28px 24px;
  }

  /* Labs — destination grid: stack to single column */
  .labs-destination-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .labs-destination-card {
    padding: 28px 24px;
  }

  /* Labs status cards */
  .labs-status-grid {
    grid-template-columns: 1fr;
  }

  .labs-status-card {
    padding: 20px;
  }

  /* Labs hero badges — stack vertically */
  .labs-hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  /* Labs section header h2 */
  .labs-page .section-header h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  }

  /* Labs iPhone screenshot */
  .labs-iphone-img {
    max-width: 100%;
    height: auto;
  }

  /* Roadmap cards */
  .roadmap-quarter-cards {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    padding: 20px;
  }

  /* FAQ — category chips: horizontal scroll when too many */
  .faq-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Firefox */
    justify-content: flex-start;
    padding: 12px 4px;
    gap: 6px;
  }

  .faq-cats::-webkit-scrollbar {
    display: none;
  }

  .faq-chip {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  /* Error pages */
  .error-page {
    padding: 32px 24px;
  }

  .error-page h1 {
    font-size: 2rem;
  }

  .error-illustration {
    width: 160px;
    height: 160px;
  }
}


/* ── Small mobile breakpoint (≤480px) ── */
@media (max-width: 480px) {

  /* Even smaller hero text */
  .hero-split h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .pricing-hero h1,
  .product-hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .labs-hero h1,
  .roadmap-hero-content h1,
  .changelog-hero-content h1,
  .pba-hero-content h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .faq-hero h1,
  .support-hero-content h1,
  .legal-hero h1 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  /* Section headings */
  .section-header h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  /* Body text */
  .lead {
    font-size: 0.95rem;
  }

  /* Eyebrow */
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  /* Pricing card inner spacing */
  .pricing-card {
    padding: 24px 16px;
  }

  .pricing-card-price {
    font-size: 2rem;
  }

  /* Compare: stack each row fully */
  .compare-table tbody tr {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compare-table-col {
    padding-left: 12px;
    border-left: 2px solid var(--border);
  }

  .compare-table-col::before {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.5;
    margin-bottom: 2px;
  }

  .compare-table-cloud::before {
    content: "Cloud-First";
  }

  .compare-table-vrbtm::before {
    content: "Vrbtm";
  }

  /* CTA blocks */
  .labs-cta-block,
  .download-cta-content,
  .mini-cta {
    padding: 32px 20px;
  }

  .labs-cta-block h2,
  .download-cta-content h2,
  .mini-cta h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  /* PBA architecture cards */
  .pba-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Callout cards */
  .callout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ mobile */
  .faq-hero-controls {
    flex-direction: column;
    gap: 12px;
  }

  .faq-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .faq-search {
    font-size: 14px;
  }

  /* Tighter container on smallest screens */
  .container {
    width: min(var(--max-width), 88%);
  }

  /* Legal pages — improve readability */
  .legal-section {
    padding: 24px 0;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }

  .legal-section h3 {
    font-size: 1.05rem;
  }

  /* Labs — even tighter on small phones */
  .labs-pillar {
    padding: 22px 18px;
  }

  .labs-pillar h3 {
    font-size: 1rem;
  }

  .labs-pillar p {
    font-size: 0.85rem;
  }

  .labs-destination-card {
    padding: 22px 18px;
  }

  .labs-destination-card h3 {
    font-size: 1rem;
  }

  .labs-destination-card p {
    font-size: 0.85rem;
  }

  /* Roadmap cards */
  .roadmap-card {
    padding: 16px;
  }

  /* Footer — single-column with centered content */
  .footer-grid {
    gap: 16px;
  }

  .footer-links {
    gap: 8px 16px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================
   PREMIUM UX OVERHAUL STYLES
   ======================================== */

/* --- Card & Sidebar Interactive Enhancements --- */
.card.account-card {
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.card.account-card:hover {
  border-color: rgba(59, 134, 255, 0.25);
  box-shadow: var(--shadow-md), 0 0 25px rgba(59, 134, 255, 0.05);
}

.acct-nav-link {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.acct-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--brand-blue);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.acct-nav-link.active::before {
  transform: scaleY(1);
}

.acct-nav-link.active {
  background: rgba(59, 134, 255, 0.08) !important;
  color: var(--brand-blue) !important;
}

/* --- Elevated Inline Display Fields --- */
.acct-inline-edit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.acct-inline-edit:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-secondary);
}

.acct-inline-edit-btn {
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--brand-blue);
  background: rgba(59, 134, 255, 0.08);
  border: 1px solid rgba(59, 134, 255, 0.15);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.acct-inline-edit-btn:hover {
  background: rgba(59, 134, 255, 0.16);
  border-color: rgba(59, 134, 255, 0.3);
  color: var(--brand-blue-hover);
}

/* --- Glassmorphic Premium Modals --- */
.premium-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal-container {
  width: 100%;
  max-width: 480px;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 134, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="light"] .premium-modal-container {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(31, 106, 225, 0.05);
}

.premium-modal-overlay.active .premium-modal-container {
  transform: scale(1) translateY(0);
}

.premium-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.premium-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premium-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.premium-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.premium-modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-modal-close:hover {
  color: var(--text-primary);
  background: var(--border);
}

.premium-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.premium-modal-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.premium-modal-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow), inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.premium-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

/* --- Checking/Pulsing Indicators & Spinners --- */
.acct-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 134, 255, 0.2);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: premiumSpinner 0.6s linear infinite;
}

@keyframes premiumSpinner {
  to { transform: rotate(360deg); }
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.checking {
  background: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue-glow);
  animation: pulseChecking 1.5s infinite ease-in-out;
}

.status-indicator-dot.ok {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: pulseOk 1.5s infinite ease-in-out;
}

.status-indicator-dot.error {
  background: var(--accent-destructive);
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.5);
  animation: pulseError 1.5s infinite ease-in-out;
}

@keyframes pulseChecking {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--brand-blue-glow); }
}

@keyframes pulseOk {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(52, 211, 153, 0.7); }
}

@keyframes pulseError {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(255, 69, 58, 0.7); }
}

/* --- Premium Table Styles (Security activity) --- */
.premium-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-medium);
}

.premium-table-container:hover {
  border-color: var(--border-strong);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.premium-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-table td {
  padding: 14px 18px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr {
  transition: background var(--transition-fast);
}

.premium-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Glowing Success/Fail tags inside table */
.premium-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.premium-status-tag.success {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.05);
}

.premium-status-tag.failed {
  background: rgba(255, 69, 58, 0.1);
  color: var(--accent-destructive);
  border: 1px solid rgba(255, 69, 58, 0.2);
  box-shadow: 0 0 10px rgba(255, 69, 58, 0.05);
}

.premium-ip-code {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Modal confirm styling overrides */
.button.destructive {
  background: var(--accent-destructive);
  color: #fff;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

.button.destructive:hover {
  background: #ff544a;
  box-shadow: 0 0 15px rgba(255, 69, 58, 0.3);
}

/* Table responsiveness rule */
@media (max-width: 768px) {
  .premium-table th:nth-child(4),
  .premium-table td:nth-child(4) {
    display: none; /* Hide IP column on small mobile screens */
  }
}