/* CheffyIQ Design System */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --primary-soft: #bfdbfe;
  --accent: #06b6d4;
  --accent-light: #cffafe;
  --secondary: #059669;
  --secondary-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #2563eb;
  --info-light: #dbeafe;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px 0 rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  user-select: none;
  position: relative;
  font-family: inherit;
}
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(37,99,235,0.25); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Primary — branded, with subtle shine + lift */
.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(15,23,42,0.08);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -4px rgba(37,99,235,0.45); }
.btn-primary:active { box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 1px 2px rgba(37,99,235,0.3); transform: translateY(0); }

/* Secondary — clean white with crisp border */
.btn-secondary {
  background: white;
  color: var(--gray-900);
  border-color: var(--gray-200);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); transform: translateY(-1px); box-shadow: 0 4px 10px -2px rgba(15,23,42,0.08); }
.btn-secondary:active { background: var(--gray-100); transform: translateY(0); box-shadow: none; }

/* Dark — high-contrast for staff/admin */
.btn-dark { background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 1px 2px rgba(0,0,0,0.2); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 16px -4px rgba(15,23,42,0.4); }

/* Ghost — minimal, only paint on hover */
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

/* Danger / Success / Warning — same elevation pattern as primary */
.btn-danger { background: linear-gradient(180deg, #ef4444 0%, var(--danger) 100%); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(0,0,0,0.08); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -4px rgba(220,38,38,0.45); }
.btn-success { background: linear-gradient(180deg, #10b981 0%, var(--secondary) 100%); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 1px 2px rgba(0,0,0,0.08); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -4px rgba(5,150,105,0.45); }
.btn-warning { background: linear-gradient(180deg, #fbbf24 0%, var(--warning) 100%); color: #78350f; box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 1px 2px rgba(0,0,0,0.08); }
.btn-warning:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 6px 16px -4px rgba(245,158,11,0.45); }

/* Soft variants — tinted backgrounds for low-emphasis actions */
.btn-soft-primary { background: var(--primary-light); color: var(--primary-dark); }
.btn-soft-primary:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-soft-success { background: var(--secondary-light); color: #065f46; }
.btn-soft-success:hover { background: #a7f3d0; transform: translateY(-1px); }
.btn-soft-danger { background: var(--danger-light); color: #991b1b; }
.btn-soft-danger:hover { background: #fecaca; transform: translateY(-1px); }
.btn-soft-warning { background: var(--warning-light); color: #92400e; }
.btn-soft-warning:hover { background: #fde68a; transform: translateY(-1px); }
.btn-soft-info { background: var(--info-light); color: #1e40af; }
.btn-soft-info:hover { background: #bfdbfe; transform: translateY(-1px); }

/* Sizes */
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: 0.75rem; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; border-radius: 0.5rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 0.4rem; gap: 0.3rem; }
.btn-icon { padding: 0.5rem; aspect-ratio: 1; }
.btn-icon.btn-sm { padding: 0.375rem; }

/* Pill (extreme rounded) */
.btn-pill { border-radius: 999px; }

/* Loading spinner inside button */
.btn .btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Button group — connected buttons sharing borders */
.btn-group {
  display: inline-flex; align-items: center;
  border-radius: 0.625rem;
  background: white;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.btn-group .btn {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--gray-200);
  background: transparent;
  color: var(--gray-900);
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  box-shadow: none;
}
.btn-group .btn:last-child { border-right: 0; }
.btn-group .btn:hover { background: var(--gray-50); transform: none; box-shadow: none; }
.btn-group .btn.btn-primary { background: var(--primary); color: white; border-right-color: var(--primary-dark); }
.btn-group .btn.btn-primary:hover { background: var(--primary-dark); }
.btn-group .btn.btn-success { background: var(--secondary); color: white; border-right-color: #047857; }
.btn-group .btn.btn-success:hover { background: #047857; }
.btn-group .btn.btn-danger { background: var(--danger); color: white; border-right-color: #b91c1c; }
.btn-group .btn.btn-danger:hover { background: #b91c1c; }

/* Kebab / more menu trigger */
.btn-more {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gray-500);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-more:hover { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-200); }
.btn-more.open { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-300); }

/* Action menu (dropdown shown by clicking .btn-more) */
.action-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: white; border: 1px solid var(--gray-200);
  border-radius: 0.625rem;
  box-shadow: 0 12px 30px -8px rgba(15,23,42,0.18);
  min-width: 200px; z-index: 60;
  padding: 0.375rem;
  animation: ciqSlideUp 0.15s;
}
.action-menu a, .action-menu button {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.4rem;
  font-size: 0.8125rem; color: var(--gray-800);
  text-decoration: none; cursor: pointer;
  background: transparent; border: 0; width: 100%; text-align: left;
  font-family: inherit;
}
.action-menu a:hover, .action-menu button:hover { background: var(--gray-100); }
.action-menu .divider { height: 1px; background: var(--gray-100); margin: 0.25rem 0; }
.action-menu .menu-danger { color: var(--danger); }
.action-menu .menu-danger:hover { background: var(--danger-light); }

/* ===== Cards ===== */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-tight { padding: 1rem; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: all 0.2s; }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}
.badge-success { background: var(--secondary-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #1e40af; }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }

/* ===== Forms ===== */
.input, .select, .textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.625rem;
  background: white;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}
.help-text { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ===== Layout: Dashboard ===== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--dark);
  color: var(--gray-300);
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  padding: 1.25rem 0.875rem;
  z-index: 100;
  transition: transform 0.25s ease;
}
/* Mobile: hide sidebar by default, show via .sidebar-open class on body */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,0.4); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content:''; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:90; }
  .main { margin-left: 0 !important; }
  .sidebar-toggle { display: inline-flex !important; }
  .topbar { padding: 0.625rem 1rem; gap: 0.5rem; }
  .topbar-search { display: none; }
  .topbar-actions { gap: 0.4rem; }
  .topbar-actions select { display: none; }
  .user-chip span { display: none; }
  .page { padding: 1rem; }
  .page-title { font-size: 1.25rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .grid-cards-12 { grid-template-columns: 1fr; }
  .stat-card .value { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .table { font-size: 0.75rem; }
  .table th, .table td { padding: 0.5rem 0.625rem; }
}
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--gray-200); }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  border-bottom: 1px solid var(--dark-3);
  margin-bottom: 1rem;
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 12px -2px rgba(37,99,235,0.4);
}
.nav-section { margin-bottom: 1rem; }
.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
  transition: all 0.15s;
}
.nav-item:hover { background: var(--dark-2); color: white; }
.nav-item.active { background: rgba(37,99,235,0.15); color: var(--primary-soft); }
.nav-item.active::before {
  content: ''; width: 3px; height: 18px; background: var(--primary);
  border-radius: 2px; margin-right: 0.5rem; margin-left: -0.875rem;
}
.nav-item i { width: 18px; height: 18px; }

.main { flex: 1; margin-left: 260px; min-width: 0; }
.topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.875rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
}
.topbar-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--gray-100); padding: 0.5rem 0.875rem;
  border-radius: 0.5rem; flex: 1; max-width: 400px;
}
.topbar-search input { background: transparent; border: 0; outline: none; flex: 1; font-size: 0.875rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; background: var(--gray-100);
  color: var(--gray-700); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--gray-200); }
.dot {
  width: 8px; height: 8px; background: var(--danger);
  border-radius: 50%; position: absolute; top: 6px; right: 6px;
  border: 2px solid white;
}
.user-chip {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  background: var(--gray-100); border-radius: 999px; cursor: pointer;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-weight: 700; font-size: 0.8125rem;
  display: flex; align-items: center; justify-content: center;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.125rem; }

.page { padding: 2rem; max-width: 1600px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; }
.page-subtitle { color: var(--gray-500); font-size: 0.9rem; margin: 0; }

/* ===== Grid utilities ===== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cards-12 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cards-12 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Stat Card ===== */
.stat-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.stat-card .label { color: var(--gray-500); font-size: 0.8125rem; margin-bottom: 0.5rem; font-weight: 500; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.stat-card .delta { font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.25rem; }
.delta-up { color: var(--secondary); }
.delta-down { color: var(--danger); }
.stat-icon {
  width: 40px; height: 40px; border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}

/* ===== Table ===== */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left; padding: 0.875rem 1rem;
  background: var(--gray-50); color: var(--gray-600);
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-200);
}
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--gray-50); }

/* ===== Landing page ===== */
.nav-public {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem; max-width: 1280px; margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); }
.nav-links a:hover { color: var(--primary); }
.brand-text { font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.brand-text span { color: var(--primary); }

.hero {
  padding: 4rem 2.5rem 6rem;
  text-align: center;
  max-width: 1100px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 1.5rem 0 1.25rem;
  color: var(--dark);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.125rem; color: var(--gray-600);
  max-width: 640px; margin: 0 auto 2rem; line-height: 1.6;
}
.hero-cta { display: flex; justify-content: center; gap: 0.875rem; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.875rem; background: var(--primary-light);
  color: var(--primary-dark); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
}
.section { padding: 5rem 2.5rem; max-width: 1280px; margin: 0 auto; }
.section-tight { padding: 3rem 2.5rem; max-width: 1280px; margin: 0 auto; }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; letter-spacing: -0.02em; margin: 0.75rem 0; }
.section-sub { text-align: center; color: var(--gray-600); max-width: 600px; margin: 0 auto 3rem; font-size: 1.05rem; }

.feature-card {
  background: white; padding: 1.75rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 700; }
.feature-card p { color: var(--gray-600); font-size: 0.9rem; margin: 0; line-height: 1.6; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width:768px){ .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: white; font-size: 0.875rem; margin: 0 0 1rem; }
.footer-col a { display: block; padding: 0.3rem 0; font-size: 0.875rem; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1280px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--dark-3); display: flex; justify-content: space-between; font-size: 0.8125rem; flex-wrap: wrap; gap: 1rem; }

/* ===== Auth pages ===== */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.auth-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 3rem; max-width: 480px; margin: 0 auto; width: 100%; }
.auth-form-wrap h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.auth-form-wrap p.muted { color: var(--gray-500); margin: 0 0 2rem; }

/* ===== Onboarding wizard ===== */
.wizard-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
@media (max-width: 900px) { .wizard-shell { grid-template-columns: 1fr; } .wizard-aside { display: none; } }
.wizard-aside {
  background: var(--dark); color: white; padding: 2rem 1.75rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.wizard-step {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 0.75rem 0; color: var(--gray-400); font-size: 0.875rem;
}
.wizard-step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dark-3); color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 600; flex-shrink: 0;
}
.wizard-step.done .num { background: var(--secondary); color: white; }
.wizard-step.active { color: white; }
.wizard-step.active .num { background: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.wizard-step .step-title { font-weight: 600; }
.wizard-step .step-desc { font-size: 0.75rem; color: var(--gray-500); }

.wizard-body { padding: 2rem 3rem; max-width: 880px; }
.wizard-step-content { display: none; }
.wizard-step-content.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.kbd { font-family: ui-monospace,monospace; background: var(--gray-100); border: 1px solid var(--gray-200); padding: 0.05rem 0.375rem; border-radius: 0.25rem; font-size: 0.75rem; color: var(--gray-700); }
.dot-status { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-live { background: var(--secondary); box-shadow: 0 0 0 0 rgba(5,150,105,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(5,150,105,0.6);} 70%{box-shadow:0 0 0 8px rgba(5,150,105,0);} 100%{box-shadow:0 0 0 0 rgba(5,150,105,0);} }

.cam-tile { background: var(--dark); border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 16/10; }

/* ===== Camera-feed realism layer ===== */
/* Adds film grain, scan lines, vignette to make illustrated/SVG camera
   scenes look like real CCTV/security footage. */
.cam-feed { position: relative; overflow: hidden; isolation: isolate; }
/* Make sure AI overlays (bounding boxes, tags, labels) stack above grain & vignette
   without disturbing existing absolute positioning */
.cam-feed > *:not(.cam-bg) { z-index: 5; }

/* Underlying scene image with photographic color grading */
.cam-feed > .cam-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: contrast(1.08) saturate(0.85) brightness(0.92);
}

/* Vignette + scan lines */
.cam-feed::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.06) 0,
      rgba(0,0,0,0.06) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Film grain overlay (SVG noise via data URL) */
.cam-feed::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* Subtle chromatic aberration via box-shadow on inner content */
.cam-feed .cam-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,0,0,0.02);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Camera UI overlay (timestamp, REC, camera ID) — gives that "real footage" feel */
.cam-ui-overlay {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  font-family: ui-monospace, 'SF Mono', monospace;
}
.cam-ui-rec {
  position: absolute; top: 0.625rem; right: 0.625rem;
  display: flex; align-items: center; gap: 0.3rem;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  padding: 0.2rem 0.5rem; border-radius: 3px;
  color: white; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.05em;
}
.cam-ui-rec::before {
  content: ''; width: 6px; height: 6px; background: #ef4444;
  border-radius: 50%; animation: recPulse 1s infinite;
}
@keyframes recPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }
.cam-ui-timecode {
  position: absolute; bottom: 0.625rem; left: 0.625rem;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  padding: 0.15rem 0.5rem; border-radius: 3px;
  color: #67e8f9; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em;
}
.cam-ui-id {
  position: absolute; top: 0.625rem; left: 0.625rem;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  padding: 0.15rem 0.5rem; border-radius: 3px;
  color: white; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.cam-tile .cam-overlay { position: absolute; inset: 0; padding: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.cam-tag { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); padding: 0.25rem 0.625rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 600; align-self: flex-start; }
.cam-bbox { position: absolute; border: 2px solid var(--secondary); border-radius: 0.25rem; }
.cam-bbox.warn { border-color: var(--warning); }
.cam-bbox.bad { border-color: var(--danger); }
.cam-label { position: absolute; top: -22px; left: -1px; background: var(--secondary); color: white; padding: 0.1rem 0.4rem; font-size: 0.65rem; border-radius: 0.25rem; font-weight: 600; white-space: nowrap; }
.cam-label.warn { background: var(--warning); }
.cam-label.bad { background: var(--danger); }

.alert-row { display: flex; gap: 0.875rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--gray-200); margin-bottom: 0.625rem; background: white; }
.alert-row .ic { width: 36px; height: 36px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alert-row .alert-title { font-weight: 600; font-size: 0.9rem; }
.alert-row .alert-meta { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.125rem; }

.progress { background: var(--gray-200); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }

.tab-nav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab { padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; cursor: pointer; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 999px; cursor: pointer; transition: .2s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

.upload {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 2rem; text-align: center; color: var(--gray-500);
  background: var(--gray-50); cursor: pointer; transition: all .15s;
}
.upload:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3rem 0.75rem; background: var(--gray-100); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.chip-removable { padding-right: 0.4rem; }
.chip i { cursor: pointer; }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.3rem; top: 0.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); }

.score-ring {
  --p: 75; --c: var(--secondary);
  width: 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p)*1%), var(--gray-200) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.score-ring::before { content: ''; position: absolute; inset: 8px; background: white; border-radius: 50%; }
.score-ring .score-val { position: relative; font-weight: 800; font-size: 1.5rem; }

.section-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.section-card-h h3 { margin: 0; font-size: 1rem; font-weight: 700; }

/* ============================================================ */
/* ============= COMPREHENSIVE MOBILE RESPONSIVE LAYER ========= */
/* ============================================================ */

/* Always: prevent horizontal scrolling on mobile */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, svg, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* Tablet & smaller (≤ 1024px) */
@media (max-width: 1024px) {
  .nav-public { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; font-size: 0.85rem; }
  .section { padding: 4rem 1.5rem; }
  .section-tight { padding: 2.5rem 1.5rem; }
  .hero { padding: 3.5rem 1.5rem 4.5rem; }
}

/* Mobile (≤ 768px) — main breakpoint for stacking */
@media (max-width: 768px) {
  /* Typography */
  .section-title { font-size: 1.75rem; line-height: 1.2; }
  .hero h1 { font-size: clamp(1.875rem, 8vw, 2.5rem); margin: 1rem 0 0.875rem; }
  .hero-sub { font-size: 1rem; }
  h1 { font-size: 1.875rem; line-height: 1.2; }
  h2 { font-size: 1.5rem; line-height: 1.25; }
  h3 { font-size: 1.125rem; }
  body { font-size: 0.95rem; }

  /* Layout */
  .nav-public { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .nav-links { display: none !important; }
  .section { padding: 3rem 1.25rem; }
  .section-tight { padding: 2rem 1.25rem; }
  .hero { padding: 2.5rem 1.25rem 3.5rem; }
  .hero-cta { gap: 0.625rem; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Common content grids forced to single column on mobile.
     Hero camera composites + visual 2x2 decks keep their layout. */
  .contact-shell, .roi-mini-grid, .calendar-grid,
  .case-study-card, .founders-grid, .footer-inner,
  .hd-mega-grid, .hd-mega-grid.hd-mega-2 {
    grid-template-columns: 1fr !important;
  }
  .case-metrics { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem; }
  .case-metric .v { font-size: 1.25rem; }
  .case-metric .l { font-size: 0.625rem; }
  .case-study-content { padding: 1.75rem 1.5rem !important; }
  .case-study-image { min-height: 220px !important; }

  /* Hero deck on mobile: smaller padding, smaller cam tiles, but stays 2x2 */
  .hero-deck { padding: 1rem !important; border-radius: 0.875rem; }
  .hero-cam { aspect-ratio: 4/3; }

  /* Bento grid → 2 columns; big & wide span both columns */
  .bento-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .bento-big, .bento-wide { grid-column: span 2 !important; grid-row: auto !important; }
  .bento-big { padding: 1.5rem !important; }
  .bento-big h3 { font-size: 1.25rem !important; }

  /* ROI calc: stack inputs above output */
  .roi-mini { padding: 3rem 1.25rem !important; }
  .roi-mini-grid { gap: 2rem !important; }
  .roi-result { padding: 1.25rem !important; }
  .roi-result .big { font-size: 2.25rem !important; }

  /* Tour panel stacks */
  .tour-section { padding: 3rem 1rem !important; }
  .tour-tabs { padding: 0.375rem 0.375rem 0 !important; }
  .tour-tab { padding: 0.625rem 0.75rem !important; font-size: 0.8rem !important; }
  .tour-panels { padding: 1.25rem !important; min-height: 0 !important; }
  .tour-panel.active { grid-template-columns: 1fr !important; gap: 1.25rem !important; }

  /* Compliance + integration grids: 3-col mobile */
  .compliance-row { grid-template-columns: repeat(3, 1fr) !important; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Customer wall: 2-col on mobile */
  .logo-wall-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cust-grid { grid-template-columns: 1fr !important; padding: 0 1.25rem !important; }

  /* Testimonial / founder cards stack */
  .testi-card { padding: 1.25rem !important; }
  .founder-card { padding: 1.25rem !important; }

  /* Workflow viz lines hidden when stacked */
  .wf-flow { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  .wf-line, .wf-particle { display: none !important; }

  /* Calendar slots: 3 columns max */
  .cal-slots { grid-template-columns: repeat(3, 1fr) !important; }

  /* Press strip wraps */
  .press-row { gap: 1.25rem 1.5rem !important; }
  .press-logo, .award-badge { font-size: 0.85rem !important; }

  /* Newsletter form stacks */
  .newsletter form { flex-direction: column !important; }
  .newsletter input[type="email"] { width: 100%; }

  /* Sticky CTA: smaller pill */
  .sticky-cta { bottom: 1rem !important; right: 1rem !important; padding: 0.5rem 0.875rem !important; font-size: 0.8rem !important; }

  /* Activity ticker hidden on mobile (avoid clutter) */
  .activity-ticker { display: none !important; }

  /* Toast stack hidden too */
  .toast-stack { display: none !important; }

  /* Mega menu hover-open disabled (drawer takes over) */
  .hd-nav { display: none !important; }
  .hd-search, .nav-status-chip, .hd-signin { display: none !important; }
  .hd-cta { padding: 0.5rem 0.75rem !important; font-size: 0.75rem !important; }
  .hd-cta i { width: 12px !important; }

  /* Stats row in customer hero wraps */
  .cust-hero { padding: 3rem 1.25rem 2rem !important; }
  .cust-hero .stats-row { gap: 1.25rem !important; padding-top: 1.5rem !important; margin-top: 1.5rem !important; }
  .cust-hero .stat .v { font-size: 1.4rem !important; }

  /* Auth shell — already handled */

  /* Buttons */
  .btn { min-height: 44px; padding: 0.625rem 1rem; }
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
  .btn-sm { min-height: 36px; }

  /* Cards & spacing */
  .card { padding: 1.25rem; }
  .feature-card { padding: 1.25rem; }
  .feature-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; }

  /* Tables — make scrollable */
  .card > .table, .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 0.8rem; }
  .table th, .table td { padding: 0.625rem 0.75rem; white-space: nowrap; }

  /* Footer */
  footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { margin-top: 2rem; padding-top: 1.5rem; flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Forms & inputs — prevent iOS zoom on focus */
  input, textarea, select { font-size: 16px !important; }
  .input, .select, .textarea { padding: 0.75rem 0.875rem; }

  /* Eyebrow chips */
  .eyebrow { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
}

/* Small mobile (≤ 480px) — final tightening */
@media (max-width: 480px) {
  .nav-public { padding: 0.625rem 0.875rem; }
  .nav-public img { height: 32px !important; }
  .hd-inner { padding: 0.5rem 0.875rem !important; gap: 0.5rem !important; }
  .hd-logo img { height: 30px !important; }
  .section { padding: 2.5rem 1rem; }
  .section-tight { padding: 1.75rem 1rem; }
  .hero { padding: 2rem 1rem 3rem; }
  .hero h1 { font-size: clamp(1.625rem, 7vw, 2rem); }
  .section-title { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col { text-align: center; }
  .card { padding: 1rem; border-radius: 0.625rem; }
  .btn { font-size: 0.875rem; }

  /* Ultra-small: bento collapses to single column */
  .bento-grid { grid-template-columns: 1fr !important; }
  .bento-big, .bento-wide { grid-column: span 1 !important; }

  /* Compliance + integrations: 2 cols max */
  .compliance-row { grid-template-columns: repeat(2, 1fr) !important; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Cust hero stats: 2x2 grid */
  .cust-hero .stats-row { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 1rem !important; border: 0; padding-top: 1rem !important; }

  /* Calendar slots: 2 columns */
  .cal-slots { grid-template-columns: repeat(2, 1fr) !important; }

  /* Stats bar from index */
  .grid.grid-4.reveal-stagger > div > div:first-child { font-size: 1.5rem !important; }

  /* Demo chip-nav wraps tighter */
  .chip-nav .chip { font-size: 0.7rem !important; padding: 0.3rem 0.625rem !important; }

  /* Tour panel visual smaller */
  .tour-visual { aspect-ratio: 4/3 !important; }
}

/* Touch-friendly — disable hover-only effects on touch devices */
@media (hover: none) {
  .card-hover:hover, .card-tilt:hover { transform: none !important; box-shadow: none; }
  .card-tilt { transform: none !important; }
  .btn-magnetic { transform: none !important; }
}

/* Safe area on notched devices */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .sticky-cta, .activity-ticker { bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* ============================================================ */
/* ============= ENHANCED SITE HEADER (shared) ================ */
/* ============================================================ */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(15,23,42,0.06); transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.site-header.scrolled { background: rgba(255,255,255,0.92); box-shadow: 0 6px 24px -10px rgba(15,23,42,0.12); border-bottom-color: rgba(15,23,42,0.08); }
.hd-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1320px; margin: 0 auto; padding: 0.625rem 1.5rem; gap: 1.5rem; }
.hd-logo { display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.2s cubic-bezier(0.22,1,0.36,1); text-decoration: none; }
.hd-logo:hover { transform: scale(1.04); }
.hd-logo img { display: block; }

.hd-nav { display: none; gap: 0.125rem; align-items: center; }
@media (min-width: 1000px) { .hd-nav { display: flex; } }
.hd-nav-item { position: relative; }
.hd-nav-link { background: none; border: 0; padding: 0.5rem 0.875rem; font-size: 0.9rem; font-weight: 500; color: var(--gray-700); border-radius: 0.5rem; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.3rem; font-family: inherit; line-height: 1; text-decoration: none; position: relative; white-space: nowrap; }
.hd-nav-link:hover { color: var(--gray-900); background: rgba(15,23,42,0.04); }
.hd-nav-link.active { color: var(--primary); background: rgba(37,99,235,0.06); }
.hd-nav-link i.dropdown-arrow { transition: transform 0.25s ease; }
.hd-nav-item.open .hd-nav-link i.dropdown-arrow,
.hd-nav-item:hover .hd-nav-link i.dropdown-arrow { transform: rotate(180deg); }

.hd-dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px); background: white; border: 1px solid rgba(15,23,42,0.08); border-radius: 1rem; box-shadow: 0 28px 56px -16px rgba(15,23,42,0.20), 0 0 0 1px rgba(15,23,42,0.02); padding: 1.25rem; opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1); min-width: 280px; z-index: 100; }
.hd-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.hd-nav-item:hover > .hd-dropdown,
.hd-nav-item.open > .hd-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.hd-mega { min-width: 720px; left: 0; transform: translateX(-25%) translateY(-6px); }
.hd-nav-item:hover > .hd-mega,
.hd-nav-item.open > .hd-mega { transform: translateX(-25%) translateY(0); }
.hd-mega.hd-mega-r { left: auto; right: 0; transform: translateX(0) translateY(-6px); }
.hd-nav-item:hover > .hd-mega.hd-mega-r,
.hd-nav-item.open > .hd-mega.hd-mega-r { transform: translateX(0) translateY(0); }

.hd-mega-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 1.5rem; }
.hd-mega-grid.hd-mega-2 { grid-template-columns: 1.4fr 1fr; }
.hd-mega-h { font-size: 0.65rem; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.625rem; padding: 0 0.5rem; }
.hd-mega-link { display: flex; gap: 0.625rem; padding: 0.5rem; border-radius: 0.5rem; transition: background 0.2s ease; align-items: flex-start; color: inherit; text-decoration: none; }
.hd-mega-link:hover { background: var(--gray-50); }
.hd-mega-ic { width: 32px; height: 32px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s ease; }
.hd-mega-link:hover .hd-mega-ic { transform: scale(1.08); }
.hd-mega-ic i { width: 16px; }
.hd-mega-link strong { display: block; font-size: 0.875rem; color: var(--gray-900); font-weight: 600; line-height: 1.2; margin-bottom: 0.15rem; }
.hd-mega-link span { font-size: 0.75rem; color: var(--gray-500); line-height: 1.4; }
.hd-mega-promo { background: linear-gradient(135deg, var(--primary-light), white); border: 1px solid var(--primary-soft); border-radius: 0.75rem; padding: 1rem; }
.hd-mega-promo-badge { display: inline-block; padding: 0.15rem 0.5rem; background: var(--primary); color: white; border-radius: 999px; font-size: 0.6rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.hd-mega-promo h4 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.hd-mega-promo p { margin: 0 0 0.625rem; font-size: 0.7rem; color: var(--gray-600); line-height: 1.4; }
.hd-mega-promo .btn { font-size: 0.75rem; padding: 0.4rem 0.75rem; }

.hd-right { display: flex; align-items: center; gap: 0.5rem; }
.hd-signin { display: none; padding: 0.45rem 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); background: none; border: 0; border-radius: 0.5rem; text-decoration: none; }
@media (min-width: 760px) { .hd-signin { display: inline-flex; } }
.hd-signin:hover { background: var(--gray-100); color: var(--gray-900); }
.hd-cta { font-size: 0.8125rem; padding: 0.5rem 0.875rem; gap: 0.4rem; line-height: 1; box-shadow: 0 4px 12px -2px rgba(37,99,235,0.35); display: inline-flex; align-items: center; }
.hd-cta i { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); }
.hd-cta:hover { box-shadow: 0 6px 16px -2px rgba(37,99,235,0.45); transform: translateY(-1px); }
.hd-cta:hover i { transform: translateX(3px); }

.hd-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 0; color: var(--gray-700); cursor: pointer; border-radius: 0.5rem; transition: background 0.2s ease; }
.hd-menu-toggle:hover { background: var(--gray-100); }
@media (min-width: 1000px) { .hd-menu-toggle { display: none; } }

.hd-drawer { position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); z-index: 95; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.hd-drawer.open { opacity: 1; pointer-events: auto; }
.hd-drawer-content { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: white; padding: 1.5rem 1.5rem 2rem; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); overflow-y: auto; display: flex; flex-direction: column; }
.hd-drawer.open .hd-drawer-content { transform: translateX(0); }
.hd-drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); margin-bottom: 1.25rem; }
.hd-drawer-close { width: 40px; height: 40px; background: none; border: 0; border-radius: 0.5rem; cursor: pointer; color: var(--gray-700); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.hd-drawer-close:hover { background: var(--gray-100); }
.hd-drawer-section { margin-bottom: 1.25rem; }
.hd-drawer-section h4 { font-size: 0.65rem; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.5rem; padding: 0 0.5rem; }
.hd-drawer-section a { display: flex; gap: 0.625rem; align-items: center; padding: 0.625rem 0.5rem; color: var(--gray-700); border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; transition: background 0.2s ease; text-decoration: none; }
.hd-drawer-section a:hover { background: var(--gray-50); color: var(--primary); }
.hd-drawer-section a i { width: 16px; color: var(--gray-500); flex-shrink: 0; }
.hd-drawer-section a:hover i { color: var(--primary); }
.hd-drawer-cta { padding: 1rem 0 0; border-top: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

@media (max-width: 768px) {
  .hd-nav { display: none !important; }
  .hd-signin { display: none !important; }
  .hd-cta { padding: 0.5rem 0.75rem !important; font-size: 0.75rem !important; }
  .hd-cta i { width: 12px !important; }
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 640px; margin: 0 auto; background: rgba(15,23,42,0.96); color: white; backdrop-filter: blur(12px); border-radius: 0.875rem; padding: 1rem 1.25rem; box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06); z-index: 110; display: none; align-items: center; gap: 1rem; flex-wrap: wrap; opacity: 0; transform: translateY(40px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1); font-size: 0.875rem; }
.cookie-banner.show { display: flex; opacity: 1; transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-banner p a { color: #67e8f9; text-decoration: underline; }
.cookie-banner .cookie-buttons { display: flex; gap: 0.5rem; }
.cookie-banner button { font-family: inherit; font-size: 0.8125rem; font-weight: 600; padding: 0.5rem 0.875rem; border-radius: 0.5rem; cursor: pointer; border: 0; transition: all 0.2s ease; }
.cookie-banner .cookie-accept { background: var(--primary); color: white; }
.cookie-banner .cookie-accept:hover { background: var(--primary-dark); }
.cookie-banner .cookie-reject { background: rgba(255,255,255,0.1); color: white; }
.cookie-banner .cookie-reject:hover { background: rgba(255,255,255,0.15); }
@media (max-width: 600px) {
  .cookie-banner { bottom: 0.5rem; left: 0.5rem; right: 0.5rem; padding: 0.875rem; }
  .cookie-banner .cookie-buttons { width: 100%; }
  .cookie-banner button { flex: 1; }
}

/* ============= REVEAL-ON-SCROLL (shared) ============= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cookie-banner { transition: none !important; }
}

/* ============= SKIP-TO-CONTENT (a11y) ============= */
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--primary); color: white; padding: 0.625rem 1rem; border-radius: 0.5rem; font-weight: 700; z-index: 999; transition: top 0.2s ease; text-decoration: none; }
.skip-link:focus { top: 1rem; }
