/* VibeLaunchPad - "Launch Ledger" Theme (default) */
/* Playful neo-brutalist: cream paper, warm ink, teal / mustard / coral accents.
   Former dark palette lives under [data-theme="dark"] */

/* CSS Custom Properties */
:root {
  color-scheme: light;

  /* Cream paper + warm ink */
  --background: 38 66% 94%;
  --foreground: 24 15% 9%;

  --card: 41 70% 97%;
  --card-foreground: 24 15% 9%;

  --popover: 41 70% 97%;
  --popover-foreground: 24 15% 9%;

  /* Teal green */
  --primary: 161 76% 38%;
  --primary-foreground: 41 70% 97%;

  /* Mustard yellow */
  --secondary: 42 91% 63%;
  --secondary-foreground: 24 15% 9%;

  --muted: 38 40% 88%;
  --muted-foreground: 24 9% 34%;

  /* Coral red */
  --accent: 12 79% 58%;
  --accent-foreground: 41 70% 97%;

  --destructive: 12 79% 48%;
  --destructive-foreground: 41 70% 97%;

  /* Ink borders everywhere */
  --border: 24 15% 12%;
  --input: 24 15% 12%;
  --ring: 161 76% 38%;

  --radius: 1rem;

  /* Brand utility colors */
  --ink: 24 15% 9%;
  --cream: 38 66% 94%;
  --yellow: 42 91% 63%;
  --teal: 161 76% 38%;
  --coral: 12 79% 58%;

  /* Semantic status + track colors */
  --success: 161 76% 32%;
  --warning: 36 90% 42%;
  --track-saas: 161 76% 34%;
  --track-marketing: 12 79% 50%;
  --track-operations: 36 90% 38%;

  --sidebar: 41 70% 97%;
  --sidebar-foreground: 24 15% 9%;
  --sidebar-primary: 161 76% 38%;
  --sidebar-primary-foreground: 41 70% 97%;
  --sidebar-accent: 38 50% 90%;
  --sidebar-accent-foreground: 24 15% 9%;
  --sidebar-border: 24 15% 12%;
  --sidebar-ring: 161 76% 38%;

  --surface-overlay: 24 15% 9%;

  /* Flat brand "gradients" (kept as tokens for legacy rules) */
  --gradient-primary: linear-gradient(135deg, hsl(161 76% 38%) 0%, hsl(161 76% 30%) 100%);
  --gradient-surface: linear-gradient(180deg, hsl(24 15% 9% / 0.03) 0%, transparent 100%);
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Modern Dark Theme */
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;

  --card: 222 41% 10%;
  --card-foreground: 210 40% 98%;

  --popover: 222 41% 10%;
  --popover-foreground: 210 40% 98%;

  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;

  --secondary: 217 19% 27%;
  --secondary-foreground: 210 40% 98%;

  --muted: 217 19% 27%;
  --muted-foreground: 215 20% 65%;

  --accent: 217 91% 60%;
  --accent-foreground: 222 47% 11%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;

  --border: 217 19% 27%;
  --input: 217 19% 27%;
  --ring: 217 91% 60%;

  --radius: 0.75rem;

  /* Semantic status + track colors */
  --success: 160 84% 39%;
  --warning: 38 92% 50%;
  --track-saas: 217 91% 60%;
  --track-marketing: 270 70% 60%;
  --track-operations: 160 84% 39%;

  --sidebar: 222 47% 6%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-primary: 217 91% 60%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 217 19% 27%;
  --sidebar-accent-foreground: 210 40% 98%;
  --sidebar-border: 217 19% 27%;
  --sidebar-ring: 217 91% 60%;

  --surface-overlay: 0 0% 100%;

  /* Modern gradients */
  --gradient-primary: linear-gradient(135deg, hsl(217 91% 60%) 0%, hsl(250 76% 58%) 100%);
  --gradient-surface: linear-gradient(180deg, hsl(0 0% 100% / 0.05) 0%, hsl(0 0% 100% / 0) 100%);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
  padding-bottom: 0.05em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Glassmorphism */
.glass {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.4);
}

.text-gradient-primary {
  background: linear-gradient(135deg, hsl(221 83% 53%) 0%, hsl(250 76% 58%) 50%, hsl(280 65% 55%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  line-height: 1.2;
}

/* Glow Effects */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Colors */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/5 { background-color: hsl(var(--muted) / 0.05); }
.bg-muted\/10 { background-color: hsl(var(--muted) / 0.1); }
.bg-muted\/20 { background-color: hsl(var(--muted) / 0.2); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-sidebar { background-color: hsl(var(--sidebar)); }
.bg-sidebar-accent { background-color: hsl(var(--sidebar-accent)); }
.bg-emerald-500\/10 { background-color: hsl(var(--success) / 0.1); }
.bg-emerald-500\/15 { background-color: hsl(var(--success) / 0.15); }
.bg-emerald-600 { background-color: hsl(var(--success)); }
.bg-amber-500\/5 { background-color: hsl(var(--warning) / 0.05); }
.bg-destructive\/10 { background-color: hsl(var(--destructive) / 0.1); }
.bg-red-500\/10 { background-color: hsl(var(--destructive) / 0.1); }
.text-red-400 { color: hsl(var(--destructive)); }
.border-red-500\/20 { border-color: hsl(var(--destructive) / 0.2); }

.text-foreground { color: hsl(var(--foreground)); }
.text-foreground\/80 { color: hsl(var(--foreground) / 0.8); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground\/40 { color: hsl(var(--muted-foreground) / 0.4); }
.text-muted-foreground\/50 { color: hsl(var(--muted-foreground) / 0.5); }
.text-destructive { color: hsl(var(--destructive)); }
.text-emerald-500 { color: hsl(var(--success)); }
.text-emerald-400 { color: hsl(var(--success)); }
.border-emerald-500\/30 { border-color: hsl(var(--success) / 0.3); }
.bg-primary\/15 { background-color: hsl(var(--primary) / 0.15); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-muted\/30 { border-color: hsl(var(--muted) / 0.3); }
.text-muted-foreground\/60 { color: hsl(var(--muted-foreground) / 0.6); }
.text-muted-foreground\/70 { color: hsl(var(--muted-foreground) / 0.7); }
.text-muted-foreground\/80 { color: hsl(var(--muted-foreground) / 0.8); }
.bg-sidebar-accent\/30 { background-color: hsl(var(--sidebar-accent) / 0.3); }
.bg-sidebar-accent\/50 { background-color: hsl(var(--sidebar-accent) / 0.5); }
.text-amber-500 { color: hsl(var(--warning)); }
.text-amber-600 { color: hsl(var(--warning)); }
.text-white { color: white; }

/* Borders */
.border { border: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }
.border-border\/10 { border-color: hsl(var(--border) / 0.1); }
.border-border\/20 { border-color: hsl(var(--border) / 0.2); }
.border-border\/30 { border-color: hsl(var(--border) / 0.3); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-primary\/10 { border-color: hsl(var(--primary) / 0.1); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.border-sidebar-border { border-color: hsl(var(--sidebar-border)); }
.border-sidebar-border\/50 { border-color: hsl(var(--sidebar-border) / 0.5); }
.border-amber-500\/50 { border-color: hsl(var(--warning) / 0.5); }
.border-emerald-500 { border-color: hsl(var(--success)); }
.border-emerald-500\/20 { border-color: hsl(var(--success) / 0.2); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-b { border-bottom: 1px solid hsl(var(--border)); }
.border-l-4 { border-left-width: 4px; }

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

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: ui-monospace, monospace; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }

/* Gap X/Y utilities */
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-x-16 { column-gap: 4rem; }
.gap-x-20 { column-gap: 5rem; }

.gap-y-2 { row-gap: 0.5rem; }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-4 { row-gap: 1rem; }
.gap-y-6 { row-gap: 1.5rem; }
.gap-y-8 { row-gap: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.space-y-20 > * + * { margin-top: 5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 4rem; padding-bottom: 4rem; }
.py-28 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 6rem; padding-bottom: 6rem; }
.py-36 { padding-top: 7rem; padding-bottom: 7rem; }

.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pt-32 { padding-top: 8rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-28 { padding-bottom: 7rem; }
.pb-32 { padding-bottom: 8rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pl-11 { padding-left: 2.75rem; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-28 { margin-bottom: 7rem; }
.mb-32 { margin-bottom: 8rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-72 { width: 18rem; }

.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; height: 100dvh; }

.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.min-h-\[100px\] { min-height: 100px; }
.min-h-\[400px\] { min-height: 400px; }
.min-h-\[60vh\] { min-height: 60vh; }
.min-w-0 { min-width: 0; }

.max-w-none { max-width: none; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* Border Radius */
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.top-3\.5 { top: 0.875rem; }
.top-4 { top: 1rem; }
.right-0 { right: 0; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.12); }
.ring-1 { box-shadow: 0 0 0 1px var(--tw-ring-color, hsl(var(--ring))); }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, hsl(var(--ring))); }
.ring-primary\/50 { --tw-ring-color: hsl(var(--primary) / 0.5); }

.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }

.backdrop-blur { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition-property: transform; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

/* Line Clamp */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Aspect Ratio */
.aspect-video { aspect-ratio: 16 / 9; }

/* Bracket-syntax utilities */
.text-\[10px\] { font-size: 10px; line-height: 1; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.text-emerald-600 { color: hsl(var(--success)); }
.bg-emerald-500\/20 { background-color: hsl(var(--success) / 0.2); }
.line-through { text-decoration: line-through; }
.p-1\.5 { padding: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.-skew-y-3 { transform: skewY(-3deg); }
.origin-right { transform-origin: right; }
.scale-110 { transform: scale(1.1); }
.translate-x-1 { transform: translateX(0.25rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.translate-x-0\.5 { transform: translateX(0.125rem); }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Divide */
.divide-y > * + * { border-top: 1px solid hsl(var(--border) / 0.5); }
.divide-border\/50 > * + * { border-top: 1px solid hsl(var(--border) / 0.5); }

/* Components */

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  outline: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn svg {
  flex-shrink: 0;
  display: block;
}

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

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

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
}

.btn-md {
  height: 3rem;
  padding: 0 1.5rem;
}

.btn-lg {
  height: 4rem;
  padding: 0 3rem;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.5);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px -10px hsl(var(--primary) / 0.6);
  background: linear-gradient(135deg, hsl(221 83% 58%) 0%, hsl(250 76% 65%) 100%);
}

.shadow-primary-glow {
  box-shadow: 0 0 25px 2px hsl(var(--primary) / 0.3);
}

.shadow-primary-glow:hover {
  box-shadow: 0 0 40px 8px hsl(var(--primary) / 0.5);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--border));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Card */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  padding-bottom: 1rem;
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.375rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.pricing-recommended-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.3);
  z-index: 10;
}

.glass-card {
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--surface-overlay) / 0.06) 0%, hsl(var(--surface-overlay) / 0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--surface-overlay) / 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Static surfaces keep only a subtle border tint on hover; interactive cards
   (.pricing-card, .project-card) define their own lift. */
.glass-card:hover {
  border-color: hsl(var(--primary) / 0.25);
}

/* Pricing Card Micro-animations */
.pricing-card {
  position: relative;
  background: hsl(var(--card));
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, hsl(var(--primary) / 0) 0%, hsl(var(--primary) / 0.1) 100%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: hsl(var(--primary) / 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 30px hsl(var(--primary) / 0.08);
}

.pricing-card:hover .pricing-icon {
  transform: scale(1.1) rotate(5deg);
}

.pricing-card .pricing-icon {
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover .btn {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px hsl(var(--primary) / 0.3);
}

.pricing-card .btn {
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pricing Grid - Equal Height Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.pricing-card-tier {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground) / 0.5);
  margin-bottom: 0.75rem;
}

.pricing-card-tier-pro {
  color: hsl(var(--primary));
}

.pricing-card-featured {
  border-color: hsl(var(--primary) / 0.3);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.04) 0%, hsl(250 76% 58% / 0.06) 100%);
}

.pricing-card-inner {
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .pricing-card-inner {
    padding-top: 2.5rem;
  }
}

/* Anchor Pricing Styles */
.price-anchor {
  position: relative;
  display: inline-block;
}

.price-original {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground) / 0.6);
  text-decoration: line-through;
  font-weight: 600;
}

.price-savings {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: hsl(var(--success) / 0.12);
  color: hsl(var(--success));
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  width: -webkit-fit-content;
  width: fit-content;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.billing-toggle:hover {
  color: hsl(var(--foreground));
}

.billing-toggle.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Testimonial Card */
.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: hsl(var(--primary) / 0.2);
  line-height: 1;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

/* Progressive Disclosure */
/* Pricing Footer — Trust Signals + Enterprise Link */
.pricing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding-bottom: 1rem;
}

.pricing-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
}

.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.pricing-trust-item svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.pricing-trust-divider {
  width: 1px;
  height: 1rem;
  background: hsl(var(--border));
  flex-shrink: 0;
}

.enterprise-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground) / 0.6);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 200ms ease;
}

.enterprise-link:hover {
  color: hsl(var(--muted-foreground));
}

.enterprise-link-cta {
  color: hsl(var(--primary) / 0.7);
  font-weight: 500;
  transition: color 200ms ease;
}

.enterprise-link:hover .enterprise-link-cta {
  color: hsl(var(--primary));
}

.enterprise-link svg {
  transition: transform 300ms ease;
  opacity: 0.5;
}

.enterprise-link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (max-width: 639px) {
  .pricing-trust-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
  }
  .pricing-trust-divider {
    width: 3rem;
    height: 1px;
  }
}

.disclosure-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 200ms ease;
  padding: 0.75rem 1.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  background: transparent;
}

.disclosure-trigger:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
}

.disclosure-trigger svg {
  transition: transform 300ms ease;
}

.disclosure-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.disclosure-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.disclosure-content[data-open="true"] {
  grid-template-rows: 1fr;
}

.disclosure-content > div {
  overflow: hidden;
}

.badge-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

/* Input */
.input {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-with-icon {
  padding-left: 2.5rem;
}

/* Textarea */
.textarea {
  display: flex;
  width: 100%;
  min-height: 80px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input));
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  resize: vertical;
  transition: border-color 150ms, box-shadow 150ms;
}

.textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.textarea:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Label */
.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Checkbox */
.checkbox {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--primary));
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  transition: all 150ms;
}

.checkbox:checked {
  background-color: hsl(var(--primary));
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}

/* Progress Bar */
.progress {
  height: 0.5rem;
  width: 100%;
  border-radius: 9999px;
  background-color: hsl(var(--sidebar-accent));
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: hsl(var(--primary));
  transition: width 300ms;
}

/* Separator */
.separator {
  height: 1px;
  background-color: hsl(var(--border));
  width: 100%;
}

/* Scroll Area */
.scroll-area {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

.scroll-area::-webkit-scrollbar {
  width: 8px;
}

.scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
  border-radius: 4px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground));
}

.logo-icon {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15) 0%, hsl(250 76% 58% / 0.15) 100%);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
  transition: all 300ms ease;
}

.logo:hover .logo-icon {
  background-color: hsl(var(--primary) / 0.25);
  transform: rotate(-5deg) scale(1.05);
}

.logo-icon svg {
  height: 1.25rem;
  width: 1.25rem;
  color: hsl(var(--primary));
}

/* Features section ambient glow (replaces background image) */
#features::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, hsl(var(--primary) / 0.06) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

#features::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, hsl(250 76% 58% / 0.05) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* Capabilities Split Layout */
.capabilities-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.capabilities-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: -2rem;
  padding: 2rem;
  position: relative;
}

/* Ambient glow behind the capabilities image */
.capabilities-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse, hsl(217 91% 50% / 0.10) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: -1;
}

.capabilities-visual img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 0;
  /* Composite mask: fade each edge independently for seamless blending */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 12%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 12%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 88%, transparent 100%);
  mask-composite: intersect;
}

.capabilities-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .capabilities-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .capabilities-visual {
    order: -1;
  }

  .capabilities-visual {
    margin: -1rem;
    padding: 1rem;
  }

  .capabilities-visual img {
    max-width: 380px;
    margin: 0 auto;
  }
}

/* Feature Card */
.feature-card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.2), transparent);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--card));
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(250 76% 58% / 0.1) 100%);
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
  transition: all 300ms ease;
  border: 1px solid hsl(var(--primary) / 0.15);
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.4);
  border-color: transparent;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 18rem;
  border-right: 1px solid hsl(var(--sidebar-border));
  background-color: hsl(var(--sidebar));
}

.sidebar-header {
  display: flex;
  height: 4rem;
  align-items: center;
  border-bottom: 1px solid hsl(var(--sidebar-border));
  padding: 0 1.5rem;
}

.sidebar-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--sidebar-foreground) / 0.7);
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.sidebar-link:hover {
  background-color: hsl(var(--sidebar-accent) / 0.5);
  color: hsl(var(--sidebar-foreground));
}

.sidebar-link.active {
  background-color: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}

.sidebar-link.locked {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Launchpad Card (Combined Toggle + Progress) --- */
.launchpad-card {
  border-radius: 0.75rem;
  background: hsl(var(--sidebar-accent) / 0.3);
  border: 1px solid hsl(var(--sidebar-border) / 0.7);
  overflow: hidden;
  transition: border-color 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.09),
              0 0 0 1px hsl(var(--sidebar-border) / 0.15);
}

/* --- Toggle Row (top of card) --- */
.launchpad-toggle-track {
  position: relative;
  display: flex;
  padding: 4px;
  gap: 2px;
  background: hsl(var(--sidebar-accent) / 0.5);
  border-bottom: 1px solid hsl(var(--sidebar-border) / 0.3);
}

.launchpad-toggle-slider {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 5px);
  border-radius: 0.5rem;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              background 300ms ease,
              box-shadow 300ms ease;
  pointer-events: none;
  z-index: 0;
}

.launchpad-toggle-slider.slider-left {
  transform: translateX(0);
  background: hsl(var(--primary) / 0.18);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.3),
              0 0 10px hsl(var(--primary) / 0.08);
}

.launchpad-toggle-slider.slider-right {
  transform: translateX(calc(100% + 2px));
  background: hsl(var(--track-marketing) / 0.18);
  box-shadow: inset 0 0 0 1px hsl(var(--track-marketing) / 0.3),
              0 0 10px hsl(var(--track-marketing) / 0.08);
}

.launchpad-toggle-option {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground) / 0.35);
  transition: color 200ms ease;
}

.launchpad-toggle-option:hover {
  color: hsl(var(--muted-foreground) / 0.65);
}

.launchpad-toggle-option.active[data-type="saas"] {
  color: hsl(var(--primary));
  text-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

.launchpad-toggle-option.active[data-type="marketing"] {
  color: hsl(var(--track-marketing));
  text-shadow: 0 0 20px hsl(var(--track-marketing) / 0.3);
}

.launchpad-toggle-option svg {
  flex-shrink: 0;
}

.launchpad-toggle-option.active[data-type="saas"] svg {
  filter: drop-shadow(0 0 4px hsl(var(--primary) / 0.5));
}

.launchpad-toggle-option.active[data-type="marketing"] svg {
  filter: drop-shadow(0 0 4px hsl(var(--track-marketing) / 0.5));
}

/* --- Progress Row (bottom of card) --- */
.launchpad-progress {
  padding: 0 0.5rem 0.5rem;
}

.launchpad-progress-track {
  height: 3px;
  border-radius: 9999px;
  background: hsl(var(--sidebar-accent) / 0.7);
  overflow: hidden;
  margin-bottom: 0.4375rem;
}

.launchpad-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.35);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1),
              background 300ms ease,
              box-shadow 300ms ease;
  min-width: 3px;
}

/* Marketing color override for progress bar */
.launchpad-card--marketing .launchpad-progress-fill {
  background: hsl(var(--track-marketing));
  box-shadow: 0 0 8px hsl(var(--track-marketing) / 0.35);
}

.launchpad-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.125rem;
}

.launchpad-progress-label {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  font-variant-numeric: tabular-nums;
}

.launchpad-progress-count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.launchpad-progress-sep {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.4);
  margin: 0 0.0625rem;
}

.launchpad-progress-total {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.45);
}

.launchpad-progress-unit {
  font-size: 0.625rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.35);
  margin-left: 0.1875rem;
}

.launchpad-progress-pct {
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--primary) / 0.7);
  letter-spacing: 0.02em;
  transition: color 300ms ease;
}

.launchpad-card--marketing .launchpad-progress-pct {
  color: hsl(var(--track-marketing) / 0.7);
}

/* --- Sidebar Phase/Step Navigation --- */
.sidebar-phases {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-phase-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-phase-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.125rem;
}

.sidebar-phase-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3125rem;
  background: hsl(var(--sidebar-accent) / 0.8);
  border: 1px solid hsl(var(--sidebar-border) / 0.8);
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground) / 0.7);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.sidebar-phase-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground) / 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-step-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
  margin-left: 1.25rem;
  padding-left: 0.875rem;
  border-left: 1px solid hsl(var(--sidebar-border) / 0.5);
}

.sidebar-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.4375rem;
  color: hsl(var(--sidebar-foreground) / 0.55);
  transition: all 150ms ease;
  text-decoration: none;
  position: relative;
}

.sidebar-step:hover {
  background: hsl(var(--sidebar-accent) / 0.35);
  color: hsl(var(--sidebar-foreground) / 0.85);
}

.sidebar-step-active {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.12);
}

.sidebar-step-active:hover {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

/* Active step connector highlight */
.sidebar-step-active::before {
  content: '';
  position: absolute;
  left: -0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1rem;
  background: hsl(var(--primary) / 0.6);
  border-radius: 1px;
  margin-left: -0.5px;
}

.sidebar-step-locked {
  opacity: 0.35;
  pointer-events: none;
}

.sidebar-step-done {
  color: hsl(var(--sidebar-foreground) / 0.45);
}

/* Completed step connector highlight */
.sidebar-step-done::before {
  content: '';
  position: absolute;
  left: -0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1rem;
  background: hsl(var(--success) / 0.35);
  border-radius: 1px;
  margin-left: -0.5px;
}

.sidebar-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.sidebar-step-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.3);
}

.sidebar-step-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground) / 0.3);
}

.sidebar-step-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--muted-foreground) / 0.2);
  transition: all 200ms ease;
  box-shadow: 0 0 0 2px hsl(var(--sidebar) / 0);
}

.sidebar-step:hover .sidebar-step-dot {
  background: hsl(var(--muted-foreground) / 0.4);
}

.sidebar-step-dot.active {
  width: 0.5rem;
  height: 0.5rem;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.4),
              0 0 0 2px hsl(var(--primary) / 0.15);
}

.sidebar-step-title {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color 150ms;
}

.sidebar-step-pulse {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  animation: sidebar-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sidebar-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* --- Sidebar Footer --- */
.sidebar-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.45);
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  text-decoration: none;
}

.sidebar-footer-link:hover {
  color: hsl(var(--foreground) / 0.8);
  background: hsl(var(--sidebar-accent) / 0.3);
}

.sidebar-footer-link svg {
  opacity: 0.5;
  transition: opacity 150ms;
}

.sidebar-footer-link:hover svg {
  opacity: 0.8;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: hsl(var(--sidebar-accent) / 0.2);
  border: 1px solid hsl(var(--sidebar-border) / 0.4);
  transition: background 150ms ease;
}

.sidebar-user-card:hover {
  background: hsl(var(--sidebar-accent) / 0.3);
}

.sidebar-user-avatar {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.1));
  border: 1px solid hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.sidebar-logout-btn {
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground) / 0.4);
  cursor: pointer;
  transition: all 150ms ease;
}

.sidebar-logout-btn:hover {
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
}

/* ============================================================
   NEW NAV-SIDEBAR STYLES  (matches templates/includes/sidebar.html)
   ============================================================ */

/* ── Container ── */
.nav-sidebar {
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: hsl(var(--sidebar));
  overflow: hidden;
  min-height: 0;
}

/* ── Project Picker Zone ── */
.nav-project-zone {
  padding: 0.75rem;
  position: relative;
}

.nav-project-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--sidebar-foreground));
  cursor: pointer;
  transition: background 150ms ease;
}

.nav-project-btn:hover {
  background: hsl(var(--sidebar-accent) / 0.35);
}

.nav-project-btn.open {
  background: hsl(var(--sidebar-accent) / 0.4);
}

.nav-project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.15);
  border: 1px solid hsl(var(--primary) / 0.25);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

/* Right divider line after the logo icon */
.nav-project-icon::after {
  content: '';
  position: absolute;
  right: -0.375rem;
  top: 0.125rem;
  bottom: 0.125rem;
  width: 1px;
  background: hsl(var(--sidebar-border) / 0.5);
}

.nav-project-btn .nav-project-icon {
  position: relative;
  margin-right: 0.25rem;
}

.nav-project-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.nav-project-icon--mktg {
  background: hsl(var(--track-marketing) / 0.15);
  border-color: hsl(var(--track-marketing) / 0.25);
  color: hsl(var(--track-marketing));
}

.nav-project-icon--ops {
  background: hsl(var(--success) / 0.15);
  border-color: hsl(var(--success) / 0.25);
  color: hsl(var(--success));
}

.nav-project-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.nav-project-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--sidebar-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-project-type {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground) / 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-project-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground) / 0.4);
  transition: transform 200ms ease;
}

.nav-project-btn.open .nav-project-chevron {
  transform: rotate(180deg);
}

/* ── Project Dropdown ── */
.nav-project-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0.75rem;
  right: 0.75rem;
  background: hsl(var(--sidebar));
  border: 1px solid hsl(var(--sidebar-border));
  border-radius: 0.5rem;
  padding: 0.375rem;
  z-index: 50;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
}

.nav-project-dropdown.open {
  display: block;
}

.nav-dropdown-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground) / 0.4);
  padding: 0.375rem 0.5rem 0.25rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: hsl(var(--sidebar-foreground) / 0.7);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  text-decoration: none;
  font-family: inherit;
}

.nav-dropdown-item:hover {
  background: hsl(var(--sidebar-accent) / 0.5);
  color: hsl(var(--sidebar-foreground));
}

.nav-dropdown-item--active {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  cursor: default;
}

.nav-dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.3125rem;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.nav-dropdown-item-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.nav-dropdown-item-icon--mktg {
  background: hsl(var(--track-marketing) / 0.12);
  color: hsl(var(--track-marketing));
}

.nav-dropdown-item-icon--ops {
  background: hsl(var(--success) / 0.12);
  color: hsl(var(--success));
}

.nav-dropdown-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-dropdown-check {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--success));
  flex-shrink: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: hsl(var(--sidebar-border) / 0.5);
  margin: 0.25rem 0.5rem;
}

.nav-dropdown-item--new {
  color: hsl(var(--muted-foreground) / 0.5);
}

.nav-dropdown-item--new:hover {
  color: hsl(var(--sidebar-foreground));
}

/* ── Progress Bar ── */
.nav-progress {
  padding: 0.5rem 0.75rem 0;
}

.nav-progress-bar {
  height: 3px;
  border-radius: 9999px;
  background: hsl(var(--sidebar-accent) / 0.7);
  overflow: hidden;
  margin-bottom: 0.4375rem;
}

.nav-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.35);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 3px;
}

.nav-progress-fill--mktg {
  background: hsl(var(--track-marketing));
  box-shadow: 0 0 8px hsl(var(--track-marketing) / 0.35);
}

.nav-progress-fill--ops {
  background: hsl(var(--success));
  box-shadow: 0 0 8px hsl(var(--success) / 0.35);
}

.nav-progress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.nav-progress-dim {
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.45);
}

.nav-progress-pct {
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--primary) / 0.7);
  letter-spacing: 0.02em;
}

/* ── Type Toggle (moved to dash-tabs in main content) ── */
.nav-toggle-zone {
  display: none;
}

.nav-type-toggle {
  position: relative;
  display: flex;
  padding: 4px;
  gap: 2px;
  border-radius: 0.625rem;
  background: hsl(var(--sidebar-accent) / 0.5);
  border: 1px solid hsl(var(--sidebar-border) / 0.3);
}

.nav-type-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 5px);
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.18);
  box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.3),
              0 0 10px hsl(var(--primary) / 0.08);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              background 300ms ease,
              box-shadow 300ms ease;
  pointer-events: none;
  z-index: 0;
}

.nav-type-slider--right {
  transform: translateX(calc(100% + 2px));
  background: hsl(var(--track-marketing) / 0.18);
  box-shadow: inset 0 0 0 1px hsl(var(--track-marketing) / 0.3),
              0 0 10px hsl(var(--track-marketing) / 0.08);
}

.nav-type-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--muted-foreground) / 0.35);
  transition: color 200ms ease;
  font-family: inherit;
}

.nav-type-opt:hover {
  color: hsl(var(--muted-foreground) / 0.65);
}

.nav-type-opt svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.nav-type-opt--active {
  color: hsl(var(--primary));
  text-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

.nav-type-opt--active svg {
  filter: drop-shadow(0 0 4px hsl(var(--primary) / 0.5));
}

.nav-type-opt--mktg {
  color: hsl(var(--track-marketing));
  text-shadow: 0 0 20px hsl(var(--track-marketing) / 0.3);
}

.nav-type-opt--mktg svg {
  filter: drop-shadow(0 0 4px hsl(var(--track-marketing) / 0.5));
}

/* ── Phase Navigation ── */
.nav-phases-zone {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--sidebar-accent)) transparent;
}

.nav-phases-zone::-webkit-scrollbar {
  width: 4px;
}

.nav-phases-zone::-webkit-scrollbar-track {
  background: transparent;
}

.nav-phases-zone::-webkit-scrollbar-thumb {
  background: hsl(var(--sidebar-accent));
  border-radius: 9999px;
}

.nav-phase {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.25rem;
}

.nav-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: 0.4375rem;
  cursor: pointer;
  transition: background 150ms ease;
}

.nav-phase-header:hover {
  background: hsl(var(--sidebar-accent) / 0.35);
}

.nav-phase-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  min-width: 0;
}

.nav-phase-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3125rem;
  background: hsl(var(--sidebar-accent) / 0.8);
  border: 1px solid hsl(var(--sidebar-border) / 0.8);
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground) / 0.7);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.nav-phase-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground) / 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-phase-caret {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground) / 0.3);
  transition: transform 200ms ease;
}

.nav-phase-caret--closed {
  transform: rotate(-90deg);
}

/* ── Step List ── */
.nav-step-list {
  display: none;
  flex-direction: column;
  gap: 1px;
  position: relative;
  margin-left: 1.25rem;
  padding-left: 0.875rem;
  border-left: 1px solid hsl(var(--sidebar-border) / 0.5);
}

.nav-step-list--open {
  display: flex;
}

.nav-step {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.4375rem;
  color: hsl(var(--sidebar-foreground) / 0.55);
  transition: all 150ms ease;
  text-decoration: none;
  position: relative;
}

.nav-step:hover {
  background: hsl(var(--sidebar-accent) / 0.35);
  color: hsl(var(--sidebar-foreground) / 0.85);
}

.nav-step--current {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.12);
}

.nav-step--current:hover {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.nav-step--current::before {
  content: '';
  position: absolute;
  left: -0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1rem;
  background: hsl(var(--primary) / 0.6);
  border-radius: 1px;
  margin-left: -0.5px;
}

.nav-step--locked {
  opacity: 0.35;
  pointer-events: none;
}

.nav-step--done {
  color: hsl(var(--sidebar-foreground) / 0.45);
}

.nav-step--done::before {
  content: '';
  position: absolute;
  left: -0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1rem;
  background: hsl(var(--success) / 0.35);
  border-radius: 1px;
  margin-left: -0.5px;
}

/* ── Step Markers ── */
.nav-step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.nav-step-check-svg {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  display: block;
  color: hsl(var(--success));
  background: hsl(var(--success) / 0.15);
  border: 1px solid hsl(var(--success) / 0.3);
  border-radius: 9999px;
  padding: 1px;
}

.nav-step-marker svg {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  display: block;
}

.nav-step-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--muted-foreground) / 0.2);
  transition: all 200ms ease;
  display: block;
}

.nav-step:hover .nav-step-dot {
  background: hsl(var(--muted-foreground) / 0.4);
}

.nav-step-dot--active {
  width: 0.5rem;
  height: 0.5rem;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.4),
              0 0 0 2px hsl(var(--primary) / 0.15);
}

.nav-step-label {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms;
}

.nav-step-pulse {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  animation: nav-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes nav-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* ── Footer ── */
.nav-footer {
  margin-top: auto;
  border-top: 1px solid hsl(var(--sidebar-border) / 0.5);
  padding: 0.5rem 0.75rem 0.625rem;
}

.nav-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.nav-footer-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.45);
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 150ms ease;
  text-decoration: none;
}

.nav-footer-link:hover {
  color: hsl(var(--foreground) / 0.8);
  background: hsl(var(--sidebar-accent) / 0.3);
}

.nav-footer-link svg {
  width: 0.875rem;
  height: 0.875rem;
  max-width: 0.875rem;
  max-height: 0.875rem;
  opacity: 0.5;
  transition: opacity 150ms;
}

.nav-footer-link:hover svg {
  opacity: 0.8;
}

.nav-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: hsl(var(--sidebar-accent) / 0.2);
  border: 1px solid hsl(var(--sidebar-border) / 0.4);
  transition: background 150ms ease;
}

.nav-user:hover {
  background: hsl(var(--sidebar-accent) / 0.3);
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.nav-user-avatar {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.2), hsl(var(--primary) / 0.1));
  border: 1px solid hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.nav-user-email {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--sidebar-foreground) / 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout {
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground) / 0.4);
  cursor: pointer;
  transition: all 150ms ease;
  padding: 0;
}

.nav-logout:hover {
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.1);
}

.nav-logout svg {
  width: 0.875rem;
  height: 0.875rem;
  max-width: 0.875rem;
  max-height: 0.875rem;
}

/* Utility classes used by sidebar SVG icons */
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }

.w-2\.5, .h-2\.5, .w-3, .h-3, .w-3\.5, .h-3\.5 {
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   END NAV-SIDEBAR STYLES
   ============================================================ */

/* Step Item */
.step-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  transition: background-color 150ms;
}

.step-item:hover {
  background-color: hsl(var(--muted) / 0.3);
}

.step-item.locked {
  opacity: 0.6;
  background-color: hsl(var(--muted) / 0.1);
}

.step-number {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-number.completed {
  border-color: hsl(var(--success));
  background-color: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.step-number.active {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.step-number.locked {
  border-color: hsl(var(--muted-foreground) / 0.3);
  background-color: hsl(var(--muted) / 0.1);
  color: hsl(var(--muted-foreground));
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  animation: slideIn 300ms ease-out;
}

.toast.success {
  border-color: hsl(var(--success) / 0.5);
}

.toast.error {
  border-color: hsl(var(--destructive) / 0.5);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 500ms ease-out;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background-color: hsl(var(--sidebar));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-100%);
  transition: transform 300ms ease-in-out;
  z-index: 100;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms, visibility 300ms;
  z-index: 99;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:text-right { text-align: right; }
  .sm\:w-auto { width: auto; }
  .sm\:pl-0 { padding-left: 0; }
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Gap */
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-x-10 { column-gap: 2.5rem; }
  /* Text sizes */
  .sm\:text-xs { font-size: 0.75rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  /* Spacing */
  .sm\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .sm\:mb-6 { margin-bottom: 1.5rem; }
  .sm\:mt-2 { margin-top: 0.5rem; }
  .sm\:mt-4 { margin-top: 1rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  .md\:items-center { align-items: center; }
  .md\:items-start { align-items: flex-start; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:text-left { text-align: left; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-4 { gap: 1rem; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-10 { gap: 2.5rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:gap-x-16 { column-gap: 4rem; }
  .md\:gap-x-20 { column-gap: 5rem; }
  .md\:space-y-4 > * + * { margin-top: 1rem; }
  .md\:space-y-6 > * + * { margin-top: 1.5rem; }
  .md\:space-y-8 > * + * { margin-top: 2rem; }
  .md\:space-y-10 > * + * { margin-top: 2.5rem; }
  .md\:space-y-16 > * + * { margin-top: 4rem; }
  /* Text sizes */
  .md\:text-xs { font-size: 0.75rem; }
  .md\:text-sm { font-size: 0.875rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  /* Spacing */
  .md\:p-3 { padding: 0.75rem; }
  .md\:p-4 { padding: 1rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:p-12 { padding: 3rem; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
  .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .md\:py-24 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-32 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-36 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:pt-8 { padding-top: 2rem; }
  .md\:pt-10 { padding-top: 2.5rem; }
  .md\:pt-12 { padding-top: 3rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-4 { padding-bottom: 1rem; }
  .md\:pb-20 { padding-bottom: 5rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  /* Dimensions */
  .md\:h-3\.5 { height: 0.875rem; }
  .md\:h-5 { height: 1.25rem; }
  .md\:h-8 { height: 2rem; }
  .md\:h-16 { height: 4rem; }
  .md\:w-3\.5 { width: 0.875rem; }
  .md\:w-5 { width: 1.25rem; }
  .md\:w-8 { width: 2rem; }
  .md\:w-16 { width: 4rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:text-xl { font-size: 1.25rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:text-8xl { font-size: 6rem; }
}

@media (min-width: 1280px) {
  .xl\:text-7xl { font-size: 4.5rem; }
  .xl\:text-8xl { font-size: 6rem; }
  .xl\:text-9xl { font-size: 8rem; }
}

/* Landing Page Visual Elements */

/* Hero Split Layout */
.hero-section {
  padding: 2rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: left;
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 4rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }

  .hero-content {
    gap: 2rem;
  }
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  animation: subtleFloat 6s ease-in-out infinite;
  /* Allow the image to bleed outside bounds for seamless edge blending */
  overflow: visible;
  margin: -3rem -4rem -3rem -2rem;
  padding: 3rem 4rem 3rem 2rem;
}

.hero-visual-wrapper:hover {
  animation-play-state: paused;
}

/* Ambient glow behind the dashboard */
.hero-visual-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse, hsl(217 91% 50% / 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-visual-img {
  width: 115%;
  height: auto;
  margin-left: -8%;
  border-radius: 0;
  /* Composite mask: fade each edge independently for seamless blending */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 14%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 14%, black 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  mask-composite: intersect;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-wrapper:hover .hero-visual-img {
  transform: translateY(-6px) scale(1.008);
}

.features-bg-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.features-bg-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(1px);
}

.pricing-bg-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.pricing-bg-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: blur(0.5px);
}

.cta-section {
  padding: 6rem 0;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.cta-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    hsl(var(--background)) 0%,
    hsl(var(--background) / 0.88) 30%,
    hsl(var(--background) / 0.5) 60%,
    hsl(var(--background) / 0.15) 100%
  );
}

.cta-content {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 4rem 0;
    min-height: auto;
  }

  .cta-overlay {
    background: hsl(var(--background) / 0.8);
  }

  .cta-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .hero-visual-wrapper {
    margin: -1rem;
    padding: 1rem;
  }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Icons (using inline SVG) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ Marketing Dashboard - Dark Theme ============ */

/* Marketing Sidebar */

/* Marketing Main Content */

/* Marketing Tabs */

/* Phase Card */

/* Step Row */

/* Marketing Start Button */

/* ICP Tab */

/* Marketing Mobile Header */

/* Marketing Mobile Menu */

/* Responsive adjustments */

/* Floating Navigation */
.nav-floating {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  transition: all 300ms ease;
}

/* ================================================
   Onboarding Wizard
   ================================================ */

.wizard-progress-bar {
  height: 3px;
  background: hsl(var(--border));
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.wizard-step {
  display: none;
  animation: wizardFadeIn 300ms ease forwards;
}

.wizard-step.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.wizard-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.wizard-back-btn:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent));
}

/* Stage radio card options */
.stage-option {
  display: block;
  cursor: pointer;
}

.stage-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stage-option-content {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  transition: all 200ms ease;
}

.stage-option input[type="radio"]:checked + .stage-option-content {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.3);
}

.stage-option:hover .stage-option-content {
  border-color: hsl(var(--primary) / 0.4);
}

.stage-option-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.stage-option-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.stage-option-desc {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}


/* ================================================
   Launchpad Chooser – Redesigned
   ================================================ */

/* Hero */
.chooser-hero {
  padding: 3rem 0 2rem;
}

/* Track cards section */
.chooser-cards-section {
  padding: 0 0 3rem;
}

.chooser-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .chooser-cards-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .chooser-cards-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 1.5rem;
  }
}

/* On mobile, recommended card comes first */
.chooser-card-wrap--recommended {
  order: -1;
}

@media (min-width: 768px) {
  .chooser-card-wrap--recommended {
    order: 0;
  }
}

/* Card base */
.chooser-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  margin: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  background: hsl(var(--card));
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  color: inherit;
}

.chooser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.3), transparent);
  transition: opacity 300ms;
}

/* Recommended card glow */
.chooser-card--recommended {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 60px -8px hsl(var(--primary) / 0.3);
}

/* Badge */
.chooser-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 12px -2px hsl(var(--primary) / 0.4);
  z-index: 2;
}

.chooser-card-body {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.chooser-card--recommended .chooser-card-body {
  padding-top: 2.5rem;
}

/* Card icon */
.chooser-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms;
}

.chooser-card-icon--saas {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

.chooser-card-icon--marketing {
  background: hsl(var(--track-marketing) / 0.1);
  color: hsl(var(--track-marketing));
  border: 1px solid hsl(var(--track-marketing) / 0.2);
}

.chooser-card-icon--operations {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

/* Outcome line */
.chooser-card-outcome {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Mini timeline */
.chooser-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 1rem 0;
  padding: 0.875rem;
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border) / 0.5);
}

.chooser-timeline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.chooser-timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chooser-timeline-dot--saas { background: hsl(var(--primary)); }
.chooser-timeline-dot--marketing { background: hsl(var(--track-marketing)); }
.chooser-timeline-dot--operations { background: hsl(var(--success)); }

.chooser-timeline-label {
  flex: 1;
  color: hsl(var(--foreground));
  font-weight: 500;
}

.chooser-timeline-count {
  color: hsl(var(--muted-foreground));
  font-size: 0.6875rem;
}

/* Bullet list */
.chooser-card-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.chooser-card-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* CTA buttons */
.chooser-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: all 300ms;
  pointer-events: none;
}

.chooser-card-cta--saas {
  background: var(--gradient-primary);
  box-shadow: 0 8px 24px -8px hsl(var(--primary) / 0.5);
}

.chooser-card-cta--marketing {
  background: linear-gradient(135deg, hsl(270 70% 55%), hsl(280 60% 50%));
  box-shadow: 0 8px 24px -8px hsl(var(--track-marketing) / 0.5);
}

.chooser-card-cta--operations {
  background: hsl(var(--success));
  box-shadow: 0 8px 24px -8px hsl(var(--success) / 0.5);
}

/* Hover effects */
.chooser-card:hover {
  transform: translateY(-4px);
}

.chooser-card[data-type="saas"]:hover {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 16px 40px -8px hsl(var(--primary) / 0.15);
}

.chooser-card[data-type="marketing"]:hover {
  border-color: hsl(var(--track-marketing) / 0.4);
  box-shadow: 0 16px 40px -8px hsl(var(--track-marketing) / 0.15);
}

.chooser-card[data-type="operations"]:hover {
  border-color: hsl(var(--success) / 0.4);
  box-shadow: 0 16px 40px -8px hsl(var(--success) / 0.15);
}

.chooser-card:hover .chooser-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.chooser-card[data-type="saas"]:hover .chooser-card-icon--saas {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 0 20px hsl(var(--primary) / 0.4);
  border-color: transparent;
}

.chooser-card[data-type="marketing"]:hover .chooser-card-icon--marketing {
  background: linear-gradient(135deg, hsl(270 70% 55%), hsl(280 60% 50%));
  color: #fff;
  box-shadow: 0 0 20px hsl(var(--track-marketing) / 0.4);
  border-color: transparent;
}

.chooser-card[data-type="operations"]:hover .chooser-card-icon--operations {
  background: hsl(var(--success));
  color: #fff;
  box-shadow: 0 0 20px hsl(var(--success) / 0.4);
  border-color: transparent;
}


/* Comparison strip */
.chooser-comparison {
  padding: 3rem 0;
}

.chooser-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .chooser-comparison-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.chooser-comparison-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border));
}

.chooser-comparison-card--saas {
  border-top: 2px solid hsl(var(--primary));
}

.chooser-comparison-card--marketing {
  border-top: 2px solid hsl(var(--track-marketing));
}

.chooser-comparison-card--operations {
  border-top: 2px solid hsl(var(--success));
}

.chooser-comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chooser-comparison-card li {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  padding-left: 1rem;
  position: relative;
}

.chooser-comparison-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: hsl(var(--muted-foreground) / 0.5);
}


/* Quiz section */
.chooser-quiz-section {
  padding: 2rem 0 3rem;
}

.chooser-quiz {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1.25rem;
  background: hsl(var(--card) / 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border));
}

.quiz-question {
  display: none;
  animation: wizardFadeIn 300ms ease forwards;
}

.quiz-question.active {
  display: block;
}

.quiz-question-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms ease;
}

.quiz-option:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.05);
}

.quiz-result {
  animation: wizardFadeIn 300ms ease forwards;
}

.quiz-result-inner {
  text-align: center;
  padding: 1rem 0;
}

/* "Best if you" section inside cards */
.chooser-best-for {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border) / 0.5);
  border-left: 2px solid hsl(var(--muted-foreground) / 0.3);
}

.chooser-card[data-type="saas"] .chooser-best-for {
  border-left-color: hsl(var(--primary));
}

.chooser-card[data-type="marketing"] .chooser-best-for {
  border-left-color: hsl(var(--track-marketing));
}

.chooser-card[data-type="operations"] .chooser-best-for {
  border-left-color: hsl(var(--success));
}

.chooser-best-for-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: hsl(var(--foreground) / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.chooser-best-for-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.chooser-best-for-list li {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  padding-left: 1.125rem;
  position: relative;
  line-height: 1.4;
}

.chooser-best-for-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: hsl(var(--muted-foreground) / 0.5);
}

/* Trust footer */
.chooser-trust {
  padding: 2rem 0 3rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

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

/* Filter Bar */
.faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.faq-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.faq-filter-btn:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / 0.3);
  background: hsl(var(--muted) / 0.3);
}

.faq-filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px -4px hsl(var(--primary) / 0.4);
}

/* Category Groups */
.faq-category-group {
  margin-bottom: 2.5rem;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--surface-overlay) / 0.03) 0%, transparent 100%);
  border: 1px solid hsl(var(--surface-overlay) / 0.05);
}

.faq-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.faq-category-count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.4);
  padding: 0.1875rem 0.625rem;
  border-radius: 100px;
  margin-left: auto;
  letter-spacing: 0.02em;
}

/* Accordion Items */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--surface-overlay) / 0.04) 0%, hsl(var(--surface-overlay) / 0.01) 100%);
  border: 1px solid hsl(var(--surface-overlay) / 0.06);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  border-color: hsl(var(--primary) / 0.2);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 20px hsl(var(--primary) / 0.05);
}

.faq-item.open {
  border-color: hsl(var(--primary) / 0.25);
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--primary) / 0.04) 0%, hsl(var(--surface-overlay) / 0.02) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.1),
    0 0 24px hsl(var(--primary) / 0.08);
}

.faq-item:last-child {
  border-bottom: 1px solid hsl(var(--surface-overlay) / 0.06);
}

.faq-item:last-child:hover {
  border-color: hsl(var(--primary) / 0.2);
}

.faq-item.open:last-child {
  border-color: hsl(var(--primary) / 0.25);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: color 150ms ease;
}

.faq-trigger:hover {
  color: hsl(var(--primary));
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

.faq-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: hsl(var(--muted) / 0.3);
  color: hsl(var(--muted-foreground));
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon-minus {
  display: none;
}

.faq-item.open .faq-icon-plus {
  display: none;
}

.faq-item.open .faq-icon-minus {
  display: block;
}

.faq-item.open .faq-icon-wrap {
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary));
  transform: rotate(0deg);
}

/* Answer Animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer-inner p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
  max-width: 680px;
}

/* CTA Banner */
.faq-cta-banner {
  margin-top: 3.5rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--surface-overlay) / 0.08);
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--surface-overlay) / 0.05) 0%, hsl(var(--primary) / 0.06) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.faq-cta-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 639px) {
  .faq-filter-bar {
    gap: 0.375rem;
  }

  .faq-filter-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
  }

  .faq-accordion {
    gap: 0.5rem;
  }

  .faq-trigger {
    padding: 1rem 1.125rem;
  }

  .faq-answer-inner {
    padding: 0 1.125rem 1rem 1.125rem;
  }

  .faq-question {
    font-size: 0.9375rem;
  }

  .faq-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .faq-cta-banner .flex {
    width: 100%;
  }

  .faq-cta-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .faq-category-header {
    padding: 0.75rem 1rem;
  }

  .faq-category-header h2 {
    font-size: 1.125rem;
  }
}

/* ================================================
   Projects Page
   ================================================ */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 12px 32px -8px hsl(var(--primary) / 0.12);
}

.project-card[data-type="marketing"]:hover {
  border-color: hsl(270 70% 55% / 0.3);
  box-shadow: 0 12px 32px -8px hsl(270 70% 55% / 0.1);
}

/* Active card highlight */
.project-card--active {
  border-color: hsl(var(--primary) / 0.35);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.04) 0%, hsl(var(--card)) 100%);
}

/* Top accent stripe */
.project-card-stripe {
  height: 3px;
  background: var(--gradient-primary);
}

.project-card[data-type="marketing"] .project-card-stripe {
  background: linear-gradient(90deg, hsl(270 70% 55%) 0%, hsl(280 60% 50%) 100%);
}

/* Card body */
.project-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .project-card-body {
    padding: 1.5rem 2rem;
  }
}

/* Main content area (icon + info) */
.project-card-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

/* Type icon */
.project-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.12) 0%, hsl(250 76% 58% / 0.12) 100%);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.15);
  transition: all 300ms ease;
}

.project-card-icon--marketing {
  background: linear-gradient(135deg, hsl(270 70% 55% / 0.12) 0%, hsl(280 60% 50% / 0.1) 100%);
  color: hsl(270 70% 55%);
  border-color: hsl(270 70% 55% / 0.15);
}

.project-card-icon--operations {
  background: linear-gradient(135deg, hsl(var(--success) / 0.12) 0%, hsl(var(--success) / 0.1) 100%);
  color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.15);
}

.project-card:hover .project-card-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 16px hsl(var(--primary) / 0.35);
  border-color: transparent;
}

.project-card[data-type="marketing"]:hover .project-card-icon {
  background: linear-gradient(135deg, hsl(270 70% 55%) 0%, hsl(280 60% 50%) 100%);
  box-shadow: 0 0 16px hsl(270 70% 55% / 0.35);
}

.project-card[data-type="operations"]:hover .project-card-icon {
  background: hsl(var(--success));
  box-shadow: 0 0 16px hsl(var(--success) / 0.35);
}

/* Info section */
.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20rem;
}

.project-card-badges {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Badges */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-badge--saas {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

.project-badge--marketing {
  background: hsl(270 70% 55% / 0.1);
  color: hsl(270 70% 55%);
  border: 1px solid hsl(270 70% 55% / 0.2);
}

.project-badge--operations {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

.project-badge--active {
  background: hsl(160 84% 31% / 0.12);
  color: hsl(160 84% 45%);
  border: 1px solid hsl(160 84% 45% / 0.2);
}

.project-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(160 84% 45%);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Description & meta */
.project-card-desc {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-top: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-meta {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground) / 0.5);
  margin-top: 0.5rem;
}

/* Actions column */
.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
  font-family: inherit;
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.project-action-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -4px hsl(var(--primary) / 0.4);
}

.project-action-btn--primary:hover {
  box-shadow: 0 6px 16px -4px hsl(var(--primary) / 0.5);
  transform: translateY(-1px);
}

.project-action-btn--switch {
  border-color: hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.project-action-btn--switch:hover {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.project-action-btn--delete {
  padding: 0.375rem;
  color: hsl(var(--muted-foreground) / 0.4);
}

.project-action-btn--delete:hover {
  color: hsl(0 72% 51%);
  background: hsl(0 72% 51% / 0.1);
}

/* Empty state */
.projects-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: 1.5rem;
  background: hsl(var(--card) / 0.5);
}

.projects-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  width: 4.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(250 76% 58% / 0.1) 100%);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.15);
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .project-card-body {
    flex-direction: column;
    gap: 1rem;
  }

  .project-card-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
  }

  .project-card-title {
    max-width: 100%;
  }

  .project-card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

/* ================================================
   Step View Header
   ================================================ */

.step-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}

.step-view-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.15), transparent);
}

@media (min-width: 768px) {
  .step-view-header {
    height: 4rem;
    padding: 0 2rem;
  }
}

.step-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: all 200ms ease;
  flex-shrink: 0;
}

.step-back-btn:hover {
  background: hsl(var(--muted) / 0.8);
  color: hsl(var(--foreground));
}

.step-header-divider {
  width: 1px;
  height: 1.25rem;
  background: hsl(var(--border) / 0.5);
  flex-shrink: 0;
}


/* ==========================================
   Dashboard Content Styles
   ========================================== */

.dash-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .dash-content {
    padding: 3rem 2.5rem 5rem;
  }
}

/* --- Dashboard Header --- */
.dash-header {
  margin-bottom: 1.25rem;
}

.dash-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

@media (min-width: 768px) {
  .dash-title {
    font-size: 1.75rem;
  }
}

.dash-subtitle {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-progress-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* --- Type Toggle (compact segmented control) --- */
.dash-type-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: hsl(var(--secondary) / 0.4);
  border-radius: 0.5rem;
  padding: 0.1875rem;
  border: none;
  flex-shrink: 0;
}

.dash-type-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
  white-space: nowrap;
}

.dash-type-btn:hover {
  color: hsl(var(--muted-foreground));
}

.dash-type-btn--active {
  color: hsl(var(--primary));
  background: hsl(var(--background));
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.08);
}

.dash-type-btn--active:hover {
  color: hsl(var(--primary));
}

.dash-type-btn--mktg {
  color: hsl(var(--track-marketing));
  background: hsl(var(--background));
  box-shadow: 0 1px 3px hsl(var(--track-marketing) / 0.15);
}

.dash-type-btn--mktg:hover {
  color: hsl(var(--track-marketing));
}

.dash-type-btn--ops {
  color: hsl(var(--success));
  background: hsl(var(--background));
  box-shadow: 0 1px 3px hsl(var(--success) / 0.15);
}

.dash-type-btn--ops:hover {
  color: hsl(var(--success));
}

.dash-type-btn-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* --- Combined Navigation Container --- */
.dash-nav-container {
  background: hsl(var(--secondary) / 0.25);
  border: 1px solid hsl(var(--border) / 0.4);
  border-radius: 0.875rem;
  padding: 0.5rem;
  margin-bottom: 2rem;
}

.dash-nav-container--compact {
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.dash-nav-container--compact .dash-type-toggle {
  display: flex;
  width: 100%;
}

.dash-nav-container--compact .dash-type-btn {
  flex: 1;
  justify-content: center;
}

.dash-nav-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 639px) {
  .dash-nav-top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .ops-subtab-bar {
    width: 100%;
  }
}

/* --- Alert --- */
.dash-alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: hsl(var(--warning) / 0.06);
  border: 1px solid hsl(var(--warning) / 0.12);
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.dash-alert-icon {
  color: hsl(var(--warning));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* --- Phases --- */
.dash-phases {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash-phase {
  display: flex;
  flex-direction: column;
}

.dash-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.dash-phase-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dash-phase-number {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.dash-phase-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.dash-phase-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.6);
  margin-top: 0.0625rem;
  line-height: 1.4;
}

/* --- Phase Progress Ring --- */
.dash-phase-progress {
  flex-shrink: 0;
}

.dash-phase-progress-ring {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

.dash-phase-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dash-ring-bg {
  fill: none;
  stroke: hsl(var(--muted) / 0.4);
  stroke-width: 3;
}

.dash-ring-fill {
  fill: none;
  stroke: hsl(var(--primary));
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 600ms ease;
}

.dash-ring-fill[stroke-dasharray="0, 100"] {
  stroke: transparent;
}

.dash-ring-fill--ops {
  stroke: hsl(var(--success));
}

.dash-phase-number--ops {
  background: hsl(var(--success) / 0.1);
  border-color: hsl(var(--success) / 0.2);
  color: hsl(var(--success));
}

.dash-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
  color: hsl(var(--muted-foreground) / 0.7);
}

/* --- Steps --- */
.dash-steps {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border) / 0.5);
  overflow: hidden;
  background: hsl(var(--card) / 0.3);
}

.dash-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.dash-step:last-child {
  border-bottom: none;
}

.dash-step:hover {
  background: hsl(var(--muted) / 0.15);
}

.dash-step--locked {
  opacity: 0.45;
  cursor: default;
}

.dash-step--locked:hover {
  background: transparent;
}

.dash-step--done {
  /* subtle completed state */
}

.dash-step-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dash-step-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 150ms ease;
}

.dash-step:hover .dash-step-icon {
  transform: scale(1.05);
}

.dash-step-icon--todo {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
}

.dash-step-icon--done {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

.dash-step-icon--locked {
  background: hsl(var(--muted) / 0.15);
  color: hsl(var(--muted-foreground) / 0.4);
}

.dash-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
}

.dash-step-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.3;
}

.dash-step:hover .dash-step-name {
  color: hsl(var(--foreground));
}

.dash-step-desc {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground) / 0.55);
  line-height: 1.4;
  margin-top: 0.0625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28rem;
}

/* --- Step Badges --- */
.dash-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.dash-step-badge--start {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

.dash-step:hover .dash-step-badge--start {
  background: hsl(var(--primary) / 0.15);
}

.dash-step-badge--done {
  color: hsl(var(--success) / 0.7);
  background: hsl(var(--success) / 0.06);
}

.dash-step-badge--locked {
  color: hsl(var(--muted-foreground) / 0.4);
  font-size: 0.625rem;
}

.dash-step-arrow {
  transition: transform 150ms ease;
}

.dash-step:hover .dash-step-arrow {
  transform: translateX(2px);
}

/* --- Feedback --- */
.dash-feedback {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
}

.dash-feedback-inner {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.dash-feedback-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.8);
}

.dash-feedback-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.5);
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

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

.dash-feedback-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dash-feedback-input {
  height: 2.25rem;
  font-size: 0.8125rem;
}

.dash-feedback-textarea {
  font-size: 0.8125rem;
  min-height: 3.5rem;
  resize: vertical;
}

.dash-feedback-btn {
  width: 100%;
  height: 2.25rem;
  font-size: 0.8125rem;
}

/* ============ Mobile-Friendly Optimizations ============ */

/* Respect reduced-motion preferences (WCAG 2.1) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Show admin action buttons on touch devices */
@media (hover: none) {
  .card[data-phase-id] .btn.opacity-0,
  [data-step-id] .opacity-0 {
    opacity: 1;
  }
}

/* Increase touch targets on coarse pointer devices */
@media (pointer: coarse) {
  .btn-sm {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
  .step-back-btn {
    height: 2.75rem;
    width: 2.75rem;
  }
}

/* ==========================================
   Metrics / Credibility Strip
   ========================================== */
.stats-strip {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border) / 0.1);
  border-bottom: 1px solid hsl(var(--border) / 0.1);
}

.stats-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.stats-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

.stats-strip-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  line-height: 1.1;
}

.stats-strip-label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stats-strip-divider {
  width: 1px;
  height: 2.5rem;
  background: hsl(var(--border) / 0.3);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .stats-strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .stats-strip-divider {
    display: none;
  }

  .stats-strip-number {
    font-size: 1.75rem;
  }
}

/* ==========================================
   Risk Reversal Strip
   ========================================== */
.risk-reversal-section {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid hsl(var(--border) / 0.1);
}

.risk-reversal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.risk-reversal-item {
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background-color: hsl(var(--card));
  background-image: linear-gradient(135deg, hsl(var(--surface-overlay) / 0.04) 0%, hsl(var(--surface-overlay) / 0.01) 100%);
  border: 1px solid hsl(var(--border) / 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.risk-reversal-item .feature-icon {
  margin-bottom: 0.75rem;
}

@media (max-width: 767px) {
  .risk-reversal-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .risk-reversal-item {
    padding: 2rem 1.25rem;
  }
}

/* Safe-area inset for fixed bottom elements on notched devices */
.mobile-fixed-bottom {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* ── Operations Sub-Tab Bar ── */
.ops-subtab-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem;
  background: hsl(var(--secondary) / 0.4);
  border-radius: 0.5rem;
  border: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.ops-subtab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.6);
  background: transparent;
  text-decoration: none;
  transition: all 150ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ops-subtab:hover {
  color: hsl(var(--muted-foreground));
}

.ops-subtab--active {
  color: hsl(var(--success));
  background: hsl(var(--background));
  box-shadow: 0 1px 3px hsl(var(--success) / 0.15);
}

.ops-subtab--active:hover {
  color: hsl(var(--success));
}

/* ===== Focused Dashboard (Typeform-style) ===== */

.dash-focused {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 2rem 0;
  text-align: center;
}

/* Completion state */
.dash-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.dash-complete-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  border: 2px solid hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.dash-complete-icon--locked {
  background: hsl(var(--muted-foreground) / 0.08);
  border-color: hsl(var(--muted-foreground) / 0.15);
  color: hsl(var(--muted-foreground));
}

.dash-complete-title {
  font-size: 1.375rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: hsl(var(--foreground));
}

.dash-complete-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 26rem;
  line-height: 1.5;
}

/* Phase header */
.dash-focus-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
}

.dash-focus-phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.15);
  font-family: 'Space Grotesk', monospace;
}

.dash-focus-phase-title {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
}

.dash-focus-phase-desc {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
  line-height: 1.5;
}

/* Progress bar */
.dash-focus-progress {
  width: 100%;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.dash-focus-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', monospace;
}

.dash-focus-progress-bar {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: hsl(var(--muted) / 0.5);
  overflow: hidden;
}

.dash-focus-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: hsl(var(--primary));
  transition: width 400ms ease;
  min-width: 0;
}

/* Step card */
.dash-focus-card {
  display: block;
  width: 100%;
  max-width: 28rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.dash-focus-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 4px 24px hsl(var(--primary) / 0.08);
  transform: translateY(-2px);
}

.dash-focus-card-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.dash-focus-card-step {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.375rem;
  font-family: 'Space Grotesk', monospace;
}

.dash-focus-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.5rem;
}

.dash-focus-card-desc {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dash-focus-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  transition: opacity 150ms ease;
}

.dash-focus-card:hover .dash-focus-card-btn {
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 639px) {
  .dash-focused {
    min-height: 40vh;
    padding: 1.5rem 0;
  }

  .dash-focus-phase-title {
    font-size: 1.125rem;
  }

  .dash-focus-card {
    max-width: 100%;
  }

  .dash-focus-progress {
    max-width: 100%;
  }

  .dash-complete-title {
    font-size: 1.25rem;
  }
}

/* ===== Step Prev/Next Navigation ===== */

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.step-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  max-width: 48%;
  min-width: 0;
}

.step-nav-btn:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.06);
  transform: translateY(-1px);
}

.step-nav-btn--next {
  margin-left: auto;
  text-align: right;
}

.step-nav-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
}

.step-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.step-nav-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  font-family: 'Space Grotesk', monospace;
}

.step-nav-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20ch;
}

/* Form wrapper for state-aware nav button */
.step-nav-form {
  margin-left: auto;
  max-width: 48%;
  min-width: 0;
}

/* Reset button elements to match anchor styling */
button.step-nav-btn {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  max-width: none;
}

/* Primary gradient CTA (States 1 & 2) */
.step-nav-btn--primary {
  background: var(--gradient-primary) !important;
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 4px 20px -4px hsl(var(--primary) / 0.45);
}

.step-nav-btn--primary:hover {
  box-shadow: 0 6px 28px -4px hsl(var(--primary) / 0.6);
  transform: translateY(-2px);
}

.step-nav-btn--primary .step-nav-label {
  color: hsl(0 0% 100% / 0.8);
}

.step-nav-btn--primary .step-nav-title {
  color: #fff;
}

.step-nav-btn--primary .step-nav-icon {
  color: hsl(0 0% 100% / 0.8);
}

/* Subtle style (State 4) */
.step-nav-btn--subtle {
  background: hsl(var(--muted) / 0.3);
  border-color: hsl(var(--border) / 0.5);
}

.step-nav-btn--subtle .step-nav-label {
  color: hsl(var(--muted-foreground) / 0.7);
}

.step-nav-btn--subtle .step-nav-title {
  color: hsl(var(--muted-foreground));
}

.step-nav-btn--subtle:hover {
  border-color: hsl(var(--border));
  background: hsl(var(--muted) / 0.5);
}

/* ===== Mobile Fixed Bar Button Styles ===== */

.step-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
}

.step-mobile-btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 16px -4px hsl(var(--primary) / 0.4);
}

.step-mobile-btn--default {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.step-mobile-btn--subtle {
  background: hsl(var(--muted) / 0.3);
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border) / 0.5);
}

@media (max-width: 639px) {
  .step-nav {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }

  .step-nav-btn {
    padding: 0.75rem 1rem;
    max-width: 50%;
  }

  .step-nav-form {
    max-width: 50%;
  }

  .step-nav-title {
    font-size: 0.75rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   AI MODEL SELECT & RESPONSE
   ═══════════════════════════════════════════════════════════════ */

.ai-model-select {
  appearance: none;
  -webkit-appearance: none;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--foreground) / 0.8);
  font-family: var(--font-mono, ui-monospace, monospace);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  height: 2.25rem;
}

.ai-model-select:hover {
  border-color: hsl(var(--primary) / 0.4);
  background-color: hsl(var(--muted) / 0.5);
}

.ai-model-select:focus {
  outline: none;
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

.ai-model-select option {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Pulse animation for status dot */
.ai-pulse {
  animation: ai-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* AI response content typography */
.ai-response-content {
  min-height: 2rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ai-response-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: hsl(var(--foreground));
}

.ai-response-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: hsl(var(--foreground));
}

.ai-response-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: hsl(var(--foreground) / 0.9);
}

.ai-response-content p {
  margin: 0.75rem 0;
  line-height: 1.75;
}

.ai-response-content strong {
  font-weight: 700;
  color: hsl(var(--foreground));
}

.ai-response-content ul,
.ai-response-content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.ai-response-content li {
  margin: 0.25rem 0;
  line-height: 1.6;
}

.ai-response-content ul li {
  list-style: disc;
}

.ai-response-content pre {
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ai-response-content code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85em;
  background: hsl(var(--muted) / 0.4);
  padding: 0.15em 0.35em;
  border-radius: 0.25rem;
}

.ai-response-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.ai-response-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.ai-response-content th,
.ai-response-content td {
  padding: 0.625rem 1rem;
  text-align: left;
  border: 1px solid hsl(var(--border) / 0.4);
}

.ai-response-content th {
  background: hsl(var(--muted) / 0.3);
  font-weight: 600;
  color: hsl(var(--foreground));
}

.ai-response-content td {
  color: hsl(var(--foreground) / 0.85);
}

.ai-response-content tr:nth-child(even) td {
  background: hsl(var(--muted) / 0.1);
}

/* Emerald accent for Run with AI buttons */
/* Copy-success state (step page "Copied!" feedback) */
.btn-emerald {
  background: hsl(var(--success) / 0.2);
  border-color: hsl(var(--success) / 0.4);
  color: hsl(var(--success));
}

/* ============ Variant & one-off utilities referenced by templates ============ */
/* These classes were used across templates but never defined (hand-rolled utility
   subset, no Tailwind build) — hover/focus feedback and several layouts were dead. */

/* hover: variants */
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-primary\/80:hover { color: hsl(var(--primary) / 0.8); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-destructive:hover { color: hsl(var(--destructive)); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-muted\/20:hover { background-color: hsl(var(--muted) / 0.2); }
.hover\:bg-muted\/50:hover { background-color: hsl(var(--muted) / 0.5); }
.hover\:border-primary\/50:hover { border-color: hsl(var(--primary) / 0.5); }
.hover\:opacity-80:hover { opacity: 0.8; }

/* focus: variants */
.focus\:border-primary:focus { border-color: hsl(var(--primary)); }
.focus\:border-primary\/50:focus { border-color: hsl(var(--primary) / 0.5); }

/* group-hover: variants (activated by a .group ancestor) */
.group:hover .group-hover\:text-primary { color: hsl(var(--primary)); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(0.125rem); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:duration-200 { transition-duration: 200ms; }

/* color shades (greens intentionally mapped to the emerald ramp for one success color) */
.text-blue-500 { color: hsl(var(--primary)); }
.text-purple-400 { color: hsl(var(--track-marketing)); }
.text-green-400 { color: hsl(var(--success)); }
.text-emerald-400\/60 { color: hsl(var(--success) / 0.6); }
.bg-green-500\/10 { background-color: hsl(var(--success) / 0.1); }
.border-green-500\/30 { border-color: hsl(var(--success) / 0.3); }
.bg-emerald-500\/40 { background-color: hsl(var(--success) / 0.4); }
.border-emerald-500\/50 { border-color: hsl(var(--success) / 0.5); }
.bg-red-500\/20 { background-color: hsl(var(--destructive) / 0.2); }
.border-red-500\/30 { border-color: hsl(var(--destructive) / 0.3); }
.bg-amber-400 { background-color: rgb(251 191 36); }
.bg-amber-500\/20 { background-color: hsl(var(--warning) / 0.2); }
.border-amber-500\/30 { border-color: hsl(var(--warning) / 0.3); }

/* layout one-offs */
.max-h-\[60vh\] { max-height: 60vh; }
.min-h-\[60px\] { min-height: 60px; }
.min-h-\[80px\] { min-height: 80px; }
.min-h-\[120px\] { min-height: 120px; }
.min-h-\[150px\] { min-height: 150px; }
@media (min-width: 768px) {
  .md\:grid-cols-\[1fr_300px\] { grid-template-columns: 1fr 300px; }
}

/* Global keyboard focus ring — bespoke controls (reg-*, pills, accordions, sidebar
   links) defined hover states but almost no :focus-visible parity. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ============ Auth pages (login, forgot/reset password) ============
   One shell/panel/field/button family, values matched to register's reg-*
   system (3rem inputs, 3.25rem submit, 0.8125rem sentence-case labels) so all
   four auth screens read as one design. */
.auth-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--background));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.auth-logo { margin-bottom: 2.5rem; text-align: center; }
.auth-panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background-color: hsl(var(--card));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
@media (min-width: 768px) { .auth-panel { padding: 2.5rem; } }
.auth-panel-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.5), transparent);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.auth-desc { font-size: 0.9375rem; color: hsl(var(--muted-foreground)); }
.auth-icon-bubble {
  margin: 0 auto 1rem;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.5);
}
.auth-icon-bubble svg { width: 1.5rem; height: 1.5rem; }

.auth-field { margin-bottom: 1.25rem; }
.auth-label { display: block; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.auth-label-row .auth-label { margin-bottom: 0; }
.auth-link-sm { font-size: 0.8125rem; font-weight: 600; color: hsl(var(--primary)); transition: color 150ms ease; }
.auth-link-sm:hover { color: hsl(var(--primary) / 0.8); }

.auth-input-wrap { position: relative; }
.auth-input-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: hsl(var(--muted-foreground) / 0.5);
  pointer-events: none;
  transition: color 0.2s;
}
.auth-input-wrap:focus-within .input-icon { color: hsl(var(--primary)); }
.auth-input {
  width: 100%;
  height: 3rem;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input::placeholder { color: hsl(var(--muted-foreground) / 0.45); }
.auth-input:hover { border-color: hsl(var(--muted-foreground) / 0.3); }
.auth-input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.08); }
.auth-input--icon { padding-left: 2.75rem; }

.auth-submit {
  width: 100%;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--gradient-primary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px hsl(var(--primary) / 0.25);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px hsl(var(--primary) / 0.35); }
.auth-submit:active { transform: translateY(0); }
.auth-submit svg { width: 1.125rem; height: 1.125rem; }

.auth-alt { text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 1.5rem; }
.auth-alt a { color: hsl(var(--primary)); font-weight: 700; transition: color 150ms ease; }
.auth-alt a:hover { color: hsl(var(--primary) / 0.8); }

.auth-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}
.auth-alert--error { background: hsl(var(--destructive) / 0.1); border-color: hsl(var(--destructive) / 0.2); color: hsl(var(--destructive)); }
.auth-alert--success { background: hsl(var(--success) / 0.1); border-color: hsl(var(--success) / 0.2); color: hsl(var(--success)); }
.auth-alert svg { width: 1rem; height: 1rem; flex-shrink: 0; }
/* Touch-target extension: text links in the public header/footer are 16-20px
   tall; pad the hit area to ~44px and cancel the visual shift with negative
   margins so layout is unchanged. */
.nav-floating nav a:not(.btn) {
  padding: 0.75rem 0.5rem;
  margin: -0.75rem -0.5rem;
}
footer a {
  display: inline-block;
  padding: 0.875rem 0.5rem;
  margin: -0.875rem -0.5rem;
}

/* ============ Account pages (billing, checkout result) ============ */
.account-shell { min-height: 100vh; display: flex; flex-direction: column; }
.account-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1.5rem; }
.account-main--centered { align-items: center; padding: 2rem; }
.account-wrap { width: 100%; max-width: 540px; }
.account-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.account-subtitle { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

.account-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: hsl(var(--card));
}
.account-card--featured { border-color: hsl(var(--primary) / 0.45); }
.account-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}
.account-card-label--primary { color: hsl(var(--primary)); font-weight: 700; margin-bottom: 0.5rem; }
.account-card-value { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
}
.status-badge--active { background: hsl(var(--success) / 0.1); color: hsl(var(--success)); }
.status-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 150ms ease;
}
.account-back-link:hover { color: hsl(var(--foreground)); }

.account-result-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: hsl(var(--muted) / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
}
.font-extrabold { font-weight: 800; }

/* ============================================================
   LAUNCH LEDGER THEME — neo-brutalist component layer
   (PartnerLedger-style: cream paper, ink borders, hard shadows,
   pill buttons, mustard/teal/coral accents, doodle illustrations)
   Appended last so it wins the cascade over legacy rules.
   ============================================================ */

:root {
  --shadow-hard: 4px 4px 0 0 hsl(var(--ink));
  --shadow-hard-sm: 3px 3px 0 0 hsl(var(--ink));
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

body {
  background-color: hsl(var(--background));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-weight: 900; }

/* Kill the old glow/gradient look */
.glow-bg { display: none; }

.text-gradient-primary {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: hsl(var(--ink));
}

/* Hand-drawn coral underline for hero emphasis */
.squiggle-underline {
  position: relative;
  display: inline-block;
}
.squiggle-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 20 2, 40 10, 60 6 S 100 2, 118 7' fill='none' stroke='%23E9603F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* ---------- Buttons: chunky pills with ink borders ---------- */
.btn {
  border-radius: 999px;
  border: 2px solid hsl(var(--ink));
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 hsl(var(--ink));
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-primary {
  background: hsl(var(--yellow));
  color: hsl(var(--ink));
}
.btn-primary:hover {
  background: hsl(42 91% 58%);
  color: hsl(var(--ink));
  box-shadow: 1px 1px 0 0 hsl(var(--ink));
}

.btn-secondary {
  background: hsl(var(--ink));
  color: hsl(var(--cream));
}
.btn-secondary:hover {
  background: hsl(24 15% 16%);
  color: hsl(var(--cream));
}

.btn-outline {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink));
  color: hsl(var(--ink));
}
.btn-outline:hover {
  background: hsl(var(--muted));
  color: hsl(var(--ink));
}

.btn-ghost {
  border-color: transparent;
  box-shadow: none;
}
.btn-ghost:hover {
  transform: none;
  box-shadow: none;
}

.btn-emerald,
.shadow-primary-glow {
  box-shadow: var(--shadow-hard-sm);
}

/* ---------- Cards ---------- */
.glass-card,
.feature-card,
.pricing-card {
  background: hsl(var(--card));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid hsl(var(--ink));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hard);
}
.feature-card:hover,
.glass-card:hover {
  transform: none;
  border-color: hsl(var(--ink));
  box-shadow: var(--shadow-hard);
}

.pricing-card-featured {
  background: hsl(var(--yellow));
  border: 2px solid hsl(var(--ink));
  box-shadow: 6px 6px 0 0 hsl(var(--ink));
}
.pricing-card-featured .text-muted-foreground {
  color: hsl(24 15% 22%);
}
/* Teal-green accents sit at ~2:1 contrast on the yellow card — deepen to a readable green */
.pricing-card-featured .text-emerald-500,
.pricing-card-featured .pricing-card-tier-pro,
.pricing-card-featured .text-primary {
  color: hsl(161 95% 16%);
}
.pricing-card-featured .text-muted-foreground\/50 { color: hsl(24 15% 22% / 0.6); }
.pricing-card-featured .text-muted-foreground\/70 { color: hsl(24 15% 22% / 0.8); }
.pricing-recommended-badge {
  background: hsl(var(--coral));
  color: hsl(var(--cream));
  border: 2px solid hsl(var(--ink));
  border-radius: 999px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ---------- Section labels: outlined mono pills ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink));
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--ink));
  box-shadow: 2px 2px 0 0 hsl(var(--ink));
  margin-bottom: 1.25rem;
}
.section-label--teal { background: hsl(var(--teal)); color: hsl(var(--cream)); }
.section-label--yellow { background: hsl(var(--yellow)); }
.section-label--coral { background: hsl(var(--coral)); color: hsl(var(--cream)); }

/* ---------- Floating pill nav ---------- */
.nav-floating {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 0 1rem;
}
.nav-floating > .container {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink));
  border-radius: 999px;
  box-shadow: var(--shadow-hard-sm);
  max-width: 72rem;
}

.logo { font-family: var(--font-display); font-weight: 900; }
.logo-icon {
  background: hsl(var(--yellow)) !important;
  border: 2px solid hsl(var(--ink));
  border-radius: 0.6rem;
  box-shadow: none !important;
  color: hsl(var(--ink));
}
.logo span,
.logo .text-gradient-primary {
  color: hsl(var(--ink));
}
/* Rocket mark: primary green is illegible on the yellow tile */
.logo-icon svg { color: hsl(161 95% 16%); }

/* ---------- Ticker marquee strip ---------- */
.vlp-ticker {
  border-top: 2px solid hsl(var(--ink));
  border-bottom: 2px solid hsl(var(--ink));
  background: hsl(var(--card));
  overflow: hidden;
  white-space: nowrap;
  padding: 0.65rem 0;
}
.vlp-ticker-track {
  display: inline-block;
  animation: vlp-marquee 40s linear infinite;
}
.vlp-ticker span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--ink));
  padding: 0 1.25rem;
}
.vlp-ticker .tick-dot { color: hsl(var(--coral)); }
@keyframes vlp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Teal doodle band ---------- */
.vlp-teal-band {
  background: hsl(var(--teal)) url("../images/nb2-teal-pattern.cf3932267688.png") center / cover;
  border-top: 2px solid hsl(var(--ink));
  border-bottom: 2px solid hsl(var(--ink));
  color: hsl(var(--cream));
}
.vlp-teal-band h2 { color: hsl(var(--cream)); }
.vlp-teal-band .section-label {
  background: hsl(var(--yellow));
  color: hsl(var(--ink));
}

/* Numbered feature cards on the teal band */
.vlp-num-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hard);
  padding: 1.5rem;
  color: hsl(var(--ink));
}
.vlp-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid hsl(var(--ink));
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1rem;
}
.vlp-num-badge--yellow { background: hsl(var(--yellow)); }
.vlp-num-badge--coral { background: hsl(var(--coral)); color: hsl(var(--cream)); }
.vlp-num-badge--teal { background: hsl(var(--teal)); color: hsl(var(--cream)); }
.vlp-num-badge--cream { background: hsl(var(--cream)); }
.vlp-num-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.vlp-num-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.55; }

/* ---------- Framed illustration panels ---------- */
.vlp-illustration-frame {
  border: 2px solid hsl(var(--ink));
  border-radius: 1.5rem;
  box-shadow: 6px 6px 0 0 hsl(var(--ink));
  overflow: hidden;
  background: hsl(var(--card));
}
.vlp-illustration-frame img { display: block; width: 100%; height: auto; }

.hero-visual-img {
  border: 2px solid hsl(var(--ink));
  border-radius: 1.5rem;
  box-shadow: 6px 6px 0 0 hsl(var(--ink));
  background: hsl(var(--card));
  transform: rotate(1.5deg);
}

/* ---------- Feature icons: sticker circles ---------- */
.feature-icon {
  background: hsl(var(--yellow));
  border: 2px solid hsl(var(--ink));
  border-radius: 999px;
  color: hsl(var(--ink));
  box-shadow: 2px 2px 0 0 hsl(var(--ink));
}

/* ---------- Stats strip ---------- */
.stats-strip {
  border-top: 2px solid hsl(var(--ink));
  border-bottom: 2px solid hsl(var(--ink));
  background: hsl(var(--card));
}
.stats-strip-number {
  font-family: var(--font-display);
  font-weight: 900;
  color: hsl(var(--teal));
}
.stats-strip-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
.stats-strip-divider { background: hsl(var(--ink) / 0.25); }

/* ---------- FAQ: bordered pill rows ---------- */
.faq-item {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink)) !important;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-hard-sm);
  overflow: hidden;
  transition: border-radius 0.2s ease;
}
.faq-item.open { border-radius: 1.5rem; }
.faq-question { font-weight: 700; }
.faq-icon-wrap { color: hsl(var(--coral)); }

/* ---------- How-it-works steps ---------- */
.vlp-step { text-align: left; }
.vlp-step h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800; margin: 0.9rem 0 0.4rem; }
.vlp-step p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Yellow CTA band ---------- */
.vlp-cta-band {
  background: hsl(var(--yellow)) url("../images/nb2-cta-band.1bfcbfe035fb.png") center / cover;
  border-top: 2px solid hsl(var(--ink));
  border-bottom: 2px solid hsl(var(--ink));
  color: hsl(var(--ink));
  padding: 5rem 1rem;
  text-align: center;
}
.vlp-cta-band h2 { color: hsl(var(--ink)); }
.vlp-cta-band p { color: hsl(24 15% 18%); }

/* Legacy CTA section neutralized (replaced by .vlp-cta-band) */
.cta-overlay { display: none; }

/* ---------- Footer ---------- */
.vlp-footer {
  border-top: 2px solid hsl(var(--ink));
  background: hsl(var(--card));
  padding: 3rem 0 2rem;
}
.vlp-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.vlp-footer a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}
.vlp-footer a:hover { color: hsl(var(--ink)); text-decoration: underline; }

/* ---------- Misc polish ---------- */
.pricing-card-tier {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}
.pricing-bg-visual { display: none; }
.mobile-menu {
  background: hsl(var(--background));
  border-left: 2px solid hsl(var(--ink));
}
input, select, textarea {
  border-color: hsl(var(--ink)) !important;
}

/* ---------- Onboarding tours: spotlight overlay + card ---------- */
.vlp-tour {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.vlp-tour-dim {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vlp-tour-dim-fill { fill: hsl(var(--ink) / 0.55); }
.vlp-tour-spotlight {
  position: fixed;
  border-radius: 0.9rem;
  border: 2px solid hsl(var(--yellow));
  pointer-events: none;
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.vlp-tour-card {
  position: fixed;
  background: hsl(var(--card));
  border: 2px solid hsl(var(--ink));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hard);
  padding: 1.25rem 1.25rem 1rem;
  transition: left 0.25s ease, top 0.25s ease;
}
.vlp-tour--no-motion .vlp-tour-spotlight,
.vlp-tour--no-motion .vlp-tour-card {
  transition: none;
}
.vlp-tour-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.vlp-tour-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: hsl(var(--yellow));
  border: 2px solid hsl(var(--ink));
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 hsl(var(--ink));
  color: hsl(var(--ink));
}
.vlp-tour-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
}
.vlp-tour-head-meta { flex: 1; min-width: 0; }
.vlp-tour-counter {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.15rem;
}
.vlp-tour-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: hsl(var(--ink));
  line-height: 1.3;
}
.vlp-tour-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}
.vlp-tour-close:hover { color: hsl(var(--ink)); }
.vlp-tour-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.vlp-tour-progress {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}
.vlp-tour-progress-seg {
  height: 0.3rem;
  flex: 1;
  border-radius: 999px;
  border: 1px solid hsl(var(--ink) / 0.35);
  background: hsl(var(--muted));
}
.vlp-tour-progress-seg--done {
  background: hsl(var(--yellow));
  border-color: hsl(var(--ink));
}
.vlp-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.vlp-tour-skip {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem 0;
}
.vlp-tour-skip:hover { color: hsl(var(--ink)); text-decoration: underline; }
.vlp-tour-nav { display: flex; gap: 0.5rem; }
.vlp-tour-btn { min-width: 4.5rem; }
