/* ===========================
   DecoPlus — Soft Craft Glassmorphism
   Design System: docs/DESIGN.md
   =========================== */

[hidden] { display: none !important; }

:root {
  /* Backgrounds */
  --color-bg: #FAFAF8;
  --color-bg-warm: #F5F3EF;
  --color-bg-alt: #F0EDE8;
  --color-surface: rgba(255, 255, 255, 0.6);
  --color-surface-hover: rgba(255, 255, 255, 0.75);
  --color-surface-solid: #FFFFFF;

  /* Text */
  --color-text: #3D3833;
  --color-text-secondary: #7A7267;
  --color-text-tertiary: #A69E94;
  --color-heading: #1E1B18;
  --color-text-on-dark: #F5F3EF;
  --color-text-on-dark-muted: rgba(245, 243, 239, 0.55);

  /* Brand */
  --color-primary: #2E5CE5;
  --color-primary-hover: #2349C4;
  --color-primary-light: rgba(46, 92, 229, 0.08);
  --color-accent: #E5943A;
  --color-accent-light: rgba(229, 148, 58, 0.10);
  --color-accent-dark: #C47A24;
  --color-success: #2D9F6F;
  --color-error: #D94B4B;

  /* Borders */
  --border-glass: 1px solid rgba(255, 255, 255, 0.12);
  --border-glass-light: 1px solid rgba(255, 255, 255, 0.08);
  --border-subtle: 1px solid rgba(30, 27, 24, 0.07);
  --border-input: 1px solid #DDD8D0;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (warm-tinted) */
  --shadow-xs: 0 1px 2px rgba(30, 27, 24, 0.04);
  --shadow-sm: 0 2px 8px rgba(30, 27, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 27, 24, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 27, 24, 0.10);
  --shadow-xl: 0 16px 48px rgba(30, 27, 24, 0.12);
  --shadow-glow: 0 0 24px rgba(46, 92, 229, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease);
  --transition-base: 200ms var(--ease);
  --transition-slow: 350ms var(--ease);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46, 92, 229, 0.20);
}

.btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(30, 27, 24, 0.12);
  color: var(--color-heading);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(30, 27, 24, 0.03);
  border-color: rgba(30, 27, 24, 0.20);
  color: var(--color-heading);
  box-shadow: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-on-dark);
  box-shadow: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-sm { font-size: 14px; padding: 8px 20px; }
.btn-lg { font-size: 17px; padding: 18px 36px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ===========================
   Nav — Glass on scroll
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s var(--ease);
  background: transparent;
}

.nav-scrolled {
  background: rgba(250, 250, 248, 0.80);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(30, 27, 24, 0.06);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-accent);
}

/* Nav on hero (dark bg) */
.nav:not(.nav-scrolled) .logo { color: var(--color-text-on-dark); }
.nav:not(.nav-scrolled) .logo span { color: var(--color-accent); }

.nav:not(.nav-scrolled) .btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-dark);
  box-shadow: none;
}

.nav:not(.nav-scrolled) .btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

/* ===========================
   Hero
   =========================== */

.hero {
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Warm orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 148, 58, 0.09) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.h1-accent {
  color: var(--color-accent);
  line-height: 1.12;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-ctas .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-dark);
  box-shadow: none;
}

.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-note {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.35);
}

/* ===========================
   Hero Split Layout
   =========================== */

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

/* ===========================
   Hero Dashboard Mockup
   =========================== */

.hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.hero-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

@keyframes heroMockupEntrance {
  0% {
    opacity: 0;
    transform: rotateY(-8deg) rotateX(4deg) translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: rotateY(-4deg) rotateX(2deg) translateY(0) scale(1);
  }
}

@keyframes heroMockupFloat {
  0%, 100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-8px); }
}

/* Shimmer sweep */
.mockup-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

@keyframes shimmerSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Window Chrome */
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.25);
  letter-spacing: 0.02em;
  font-family: var(--font);
}

/* Dashboard Body */
.mockup-body {
  padding: 16px;
  position: relative;
}

/* Header */
.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mockup-logo {
  font-size: 13px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
  letter-spacing: -0.3px;
}

.mockup-logo span {
  color: var(--color-primary);
}

.mockup-greeting {
  font-size: 10px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 2px;
}

.mockup-sync-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.4);
  padding: 4px 8px;
  background: rgba(45, 159, 111, 0.08);
  border: 1px solid rgba(45, 159, 111, 0.15);
  border-radius: 20px;
}

.mockup-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(45, 159, 111, 0.5);
}

/* Stat Cards */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 10px 8px;
}

.mockup-stat-primary {
  background: rgba(46, 92, 229, 0.08);
  border-color: rgba(46, 92, 229, 0.15);
}

.mockup-stat-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 243, 239, 0.35);
  margin-bottom: 4px;
}

.mockup-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mockup-stat-sub {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.25);
  margin-top: 2px;
}

.mockup-stat-positive { color: #6EE7B7; }
.mockup-stat-warn { color: var(--color-accent); }

/* Table */
.mockup-table-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.mockup-table-header {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.35);
  padding: 10px 12px 6px;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
}

.mockup-table thead th {
  text-align: left;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 243, 239, 0.25);
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mockup-table tbody td {
  font-size: 10px;
  color: rgba(245, 243, 239, 0.6);
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-family: var(--font);
}

.mockup-table tbody tr:last-child td {
  border-bottom: none;
}

.mockup-cell-id {
  font-weight: 700;
  color: rgba(245, 243, 239, 0.85) !important;
}

/* Staggered row entrance */
.mockup-row {
  opacity: 0;
  animation: mockupRowIn 0.4s ease forwards;
}

.mockup-row-1 { animation-delay: 1.1s; }
.mockup-row-2 { animation-delay: 1.25s; }
.mockup-row-3 { animation-delay: 1.4s; }
.mockup-row-4 { animation-delay: 1.55s; }
.mockup-row-5 { animation-delay: 1.7s; }

@keyframes mockupRowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Status Badges */
.mockup-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.mockup-badge-green {
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
}

.mockup-badge-blue {
  background: rgba(46, 92, 229, 0.15);
  color: #93B5FF;
}

.mockup-badge-purple {
  background: rgba(168, 130, 255, 0.15);
  color: #C4B5FD;
}

.mockup-badge-amber {
  background: rgba(229, 148, 58, 0.15);
  color: #FBD38D;
}

/* Automation Toast */
.mockup-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(45, 159, 111, 0.08);
  border: 1px solid rgba(45, 159, 111, 0.18);
  border-radius: 8px;
  opacity: 0;
  animation: toastSlideIn 0.5s ease 2.2s forwards;
}

.mockup-toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

.mockup-toast strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #A7F3D0;
}

.mockup-toast span {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.4);
}

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

/* ===========================
   Mockup Tabs
   =========================== */

.mockup-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 14px;
  position: relative;
}

.mockup-tab {
  flex: 1;
  padding: 5px 8px;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.35);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.mockup-tab:hover {
  color: rgba(245, 243, 239, 0.6);
}

.mockup-tab.active {
  color: rgba(245, 243, 239, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

/* Tab Panels */
.mockup-tab-panel {
  display: none;
}

.mockup-tab-panel.active {
  display: block;
  animation: panelFadeIn 0.35s ease;
}

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

/* ===========================
   Pipeline Kanban View
   =========================== */

.mockup-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.kanban-col {
  min-width: 0;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 8px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.4);
}

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

.kanban-dot-amber { background: #F59E0B; }
.kanban-dot-purple { background: #A78BFA; }
.kanban-dot-blue { background: #60A5FA; }
.kanban-dot-green { background: #34D399; }

.kanban-col-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.3);
}

.kanban-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 7px;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}

.kanban-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.kanban-card-title {
  font-size: 8px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.kanban-card-detail {
  font-size: 7px;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 3px;
}

.kanban-card-amount {
  font-size: 9px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.6);
}

/* Staggered kanban card entrance */
.mockup-tab-panel.active .kanban-card {
  animation: kanbanCardIn 0.3s ease forwards;
  opacity: 0;
}

.kanban-card-1 { animation-delay: 0.05s !important; }
.kanban-card-2 { animation-delay: 0.10s !important; }
.kanban-card-3 { animation-delay: 0.15s !important; }
.kanban-card-4 { animation-delay: 0.08s !important; }
.kanban-card-5 { animation-delay: 0.13s !important; }
.kanban-card-6 { animation-delay: 0.06s !important; }
.kanban-card-7 { animation-delay: 0.11s !important; }
.kanban-card-8 { animation-delay: 0.04s !important; }
.kanban-card-9 { animation-delay: 0.09s !important; }

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

/* ===========================
   Contacts View
   =========================== */

.mockup-contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  min-height: 220px;
}

.contacts-list-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contacts-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 4px;
}

.contacts-search svg {
  width: 11px;
  height: 11px;
  color: rgba(245, 243, 239, 0.2);
  flex-shrink: 0;
}

.contacts-search span {
  font-size: 9px;
  color: rgba(245, 243, 239, 0.2);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s ease;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact-row-active {
  background: rgba(46, 92, 229, 0.10);
  border: 1px solid rgba(46, 92, 229, 0.18);
}

.contact-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-avatar-blue { background: rgba(46, 92, 229, 0.15); color: #93B5FF; }
.contact-avatar-purple { background: rgba(168, 130, 255, 0.15); color: #C4B5FD; }
.contact-avatar-amber { background: rgba(229, 148, 58, 0.15); color: #FBD38D; }
.contact-avatar-teal { background: rgba(56, 189, 248, 0.15); color: #7DD3FC; }

.contact-row-name {
  font-size: 9px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-row-sub {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.3);
}

/* Contact row entrance */
.mockup-tab-panel.active .contact-anim {
  animation: contactRowIn 0.3s ease forwards;
  opacity: 0;
}

.contact-anim-1 { animation-delay: 0.05s !important; }
.contact-anim-2 { animation-delay: 0.10s !important; }
.contact-anim-3 { animation-delay: 0.15s !important; }
.contact-anim-4 { animation-delay: 0.20s !important; }
.contact-anim-5 { animation-delay: 0.25s !important; }

@keyframes contactRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Contact Detail Panel */
.contact-detail-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.contact-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-detail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-name {
  font-size: 11px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
}

.contact-detail-company {
  font-size: 9px;
  color: rgba(245, 243, 239, 0.4);
}

.contact-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.contact-detail-stat {
  text-align: center;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.contact-detail-stat-value {
  font-size: 12px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.85);
  letter-spacing: -0.02em;
}

.contact-detail-stat-label {
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.3);
  margin-top: 1px;
}

.contact-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.contact-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.contact-field-label {
  font-size: 8px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-field-value {
  font-size: 9px;
  color: rgba(245, 243, 239, 0.65);
}

.contact-detail-timeline-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

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

.timeline-dot-green { background: #34D399; }
.timeline-dot-blue { background: #60A5FA; }
.timeline-dot-amber { background: #F59E0B; }

.timeline-text {
  font-size: 8px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.65);
}

.timeline-time {
  font-size: 7px;
  color: rgba(245, 243, 239, 0.25);
}

/* ===========================
   Sections shared
   =========================== */

section {
  padding: 96px 0;
  position: relative;
}

section h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ===========================
   Pain Points
   =========================== */

.pain {
  background: var(--color-bg-warm);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.pain-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition-base);
}

.pain-card:hover {
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
}

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

.pain-card p {
  font-size: 15px;
  line-height: 1.5;
}

.pain-stat {
  text-align: center;
  font-size: 18px;
  color: var(--color-heading);
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 36px;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-subtle);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}

/* ===========================
   Before / After Section
   =========================== */

.before-after {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.ba-card {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.ba-before {
  background: var(--color-surface);
  border: var(--border-subtle);
}

.ba-after {
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.06) 0%, rgba(45, 159, 111, 0.06) 100%);
  border: 1px solid rgba(46, 92, 229, 0.12);
}

.ba-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.ba-before .ba-label { color: var(--color-text-tertiary); }
.ba-after .ba-label { color: var(--color-success); }

.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ba-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ba-list li:last-child { border-bottom: none; }

.ba-before .ba-list li {
  color: var(--color-text-secondary);
}

.ba-before .ba-list li::before {
  content: '✕ ';
  color: var(--color-error);
  font-weight: 700;
  margin-right: 6px;
}

.ba-after .ba-list li::before {
  content: '✓ ';
  color: var(--color-success);
  font-weight: 700;
  margin-right: 6px;
}

.ba-reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ba-reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.15s;
}

.ba-reveal-left.visible,
.ba-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.ba-card .ba-list li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ba-card.visible .ba-list li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.3s; }
.ba-card.visible .ba-list li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.45s; }
.ba-card.visible .ba-list li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.6s; }
.ba-card.visible .ba-list li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .ba-reveal-left,
  .ba-reveal-right,
  .ba-card .ba-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   Revenue Intelligence Section
   =========================== */

.intelligence {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.intel-card {
  background: var(--color-surface-solid);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-fast);
}

.intel-card:hover {
  border-color: rgba(46, 92, 229, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intel-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.intel-icon svg { width: 22px; height: 22px; }

.intel-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.intel-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===========================
   Social Proof
   =========================== */

/* ===========================
   Automation Feed Section
   =========================== */

.hp-autofeed {
  padding: 80px 0;
}

.hp-autofeed-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hp-autofeed-stat {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hp-autofeed-text h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.hp-autofeed-text > p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 243, 239, 0.55);
  margin-bottom: 24px;
}

/* Outcome stat cards */
.hp-af-outcomes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.hp-af-outcome {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.visible .hp-af-outcome-1 { opacity: 1; transform: none; transition-delay: 0.1s; }
.visible .hp-af-outcome-2 { opacity: 1; transform: none; transition-delay: 0.25s; }
.visible .hp-af-outcome-3 { opacity: 1; transform: none; transition-delay: 0.4s; }

.hp-af-outcome-val {
  font-size: 20px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hp-af-outcome-label {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
  line-height: 1.4;
}

/* Mockup */
.hp-autofeed-mockup-wrap {
  perspective: 1200px;
}

.hp-autofeed-mockup {
  background: linear-gradient(145deg, #1A1520, #1E2235);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: afEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
  opacity: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hp-autofeed-mockup.af-animate {
  animation-play-state: running;
}

.hp-autofeed-mockup.af-animate .hp-af-item {
  animation-play-state: running;
}

@keyframes afEntrance {
  from {
    opacity: 0;
    transform: rotateY(-8deg) rotateX(4deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: rotateY(-4deg) rotateX(2deg) translateY(0);
  }
}

.hp-af-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(163, 132, 245, 0.04) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: afShimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes afShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.hp-af-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hp-af-chrome .mockup-url {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.35);
  letter-spacing: 0.02em;
}

.hp-af-body {
  padding: 20px;
}

.hp-af-counter {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hp-af-counter-num {
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary);
  margin-right: 4px;
}

.hp-af-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-af-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateX(20px);
  animation: afItemSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
  transition: background 0.2s;
}

.hp-af-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Highlight row — the payoff moment */
.hp-af-highlight {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.15);
  padding: 14px 14px;
}

.hp-af-highlight:hover {
  background: rgba(74, 222, 128, 0.09);
}

.hp-af-highlight .hp-af-title {
  font-size: 13.5px;
}

.hp-af-won {
  color: #4ade80;
  font-weight: 700;
}

.hp-af-icon-success {
  background: rgba(74, 222, 128, 0.12);
}

.hp-af-icon-success svg {
  color: #4ade80;
}

.hp-af-item-1 { animation-delay: 0.6s; }
.hp-af-item-2 { animation-delay: 1.0s; }
.hp-af-item-3 { animation-delay: 1.25s; }
.hp-af-item-4 { animation-delay: 1.5s; }
.hp-af-item-5 { animation-delay: 1.75s; }

@keyframes afItemSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hp-af-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: afPulse 2.5s ease-in-out infinite;
}

.hp-af-dot-blue {
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(163, 132, 245, 0.5);
}
.hp-af-dot-green {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
.hp-af-dot-amber {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}
.hp-af-dot-purple {
  background: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

@keyframes afPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hp-af-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-af-icon svg {
  width: 14px;
  height: 14px;
  color: rgba(245, 243, 239, 0.45);
}

.hp-af-content {
  min-width: 0;
}

.hp-af-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-af-meta {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================
   Before/After + Intelligence Responsive
   =========================== */

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

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

}

@media (max-width: 900px) {
  .hp-autofeed-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hp-autofeed-text {
    text-align: center;
  }

  .hp-autofeed-text .btn {
    margin: 0 auto;
  }

  .hp-af-outcome {
    justify-content: center;
  }

  .hp-autofeed-mockup {
    transform: none;
    animation-name: afEntranceMobile;
  }

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

@media (max-width: 480px) {
  .hp-autofeed {
    padding: 48px 0;
  }

  .hp-af-outcome {
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
  }

  .hp-af-meta {
    display: none;
  }

  .hp-af-item {
    padding: 8px 10px;
  }

  .hp-af-highlight {
    padding: 10px 10px;
  }
}

/* ===========================
   Demo Video
   =========================== */

.demo {
  background: var(--color-bg);
}

.video-placeholder {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(245, 243, 239, 0.4);
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.video-play {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.video-play:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
  transform: scale(1.06);
}

.video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

/* ===========================
   How It Works
   =========================== */

.how-it-works {
  background: var(--color-bg-warm);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: var(--color-surface);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.step:hover {
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(46, 92, 229, 0.25);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 72px;
  color: var(--color-text-tertiary);
}

.step-arrow svg { width: 24px; height: 24px; }

/* ===========================
   Automations
   =========================== */

.automations {
  background: var(--color-bg);
}

.auto-group {
  margin-bottom: 52px;
}

.auto-group:last-child { margin-bottom: 0; }

.auto-group-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-align: left;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(46, 92, 229, 0.12);
}

.auto-group-badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

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

.auto-card {
  background: var(--color-bg-warm);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
}

.auto-card:hover {
  background: var(--color-surface-hover);
  border-color: rgba(46, 92, 229, 0.10);
  box-shadow: var(--shadow-sm);
}

.auto-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.auto-card-icon svg { width: 22px; height: 22px; }

.auto-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.auto-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.auto-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ===========================
   Pricing
   =========================== */

.pricing {
  background: var(--color-bg-warm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 36px;
}

.pricing-card {
  background: var(--color-surface);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  background: var(--color-surface-solid);
  border: 2px solid rgba(46, 92, 229, 0.20);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured:hover {
  box-shadow: var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46, 92, 229, 0.25);
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(30, 27, 24, 0.06);
}

.pricing-header h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.04em;
}

.pricing-period {
  font-size: 16px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text);
}

.pricing-features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-success);
}

.pricing-note {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.pricing-extras {
  text-align: center;
  margin-top: 24px;
  padding: 20px 28px;
  background: var(--color-surface);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-extras p {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.pricing-extras a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ===========================
   Sign-Up — Dark CTA section
   =========================== */

.signup {
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  position: relative;
  overflow: hidden;
}

.signup::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.signup::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 148, 58, 0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.signup .container { position: relative; z-index: 1; }

.signup-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.signup-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-text-on-dark);
  margin-bottom: 16px;
}

.signup-cta-sub {
  color: var(--color-text-on-dark-muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.signup-cta .btn {
  font-size: 18px;
  padding: 20px 48px;
}

.signup-cta-note {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 16px;
}

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

.faq {
  background: var(--color-bg);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(30, 27, 24, 0.08);
}

.faq-item:first-child {
  border-top: 1px solid rgba(30, 27, 24, 0.08);
}

.faq-item summary {
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-item summary:hover { color: var(--color-primary); }

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   Footer
   =========================== */

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(30, 27, 24, 0.06);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer .logo { color: var(--color-heading); }
.footer .logo span { color: var(--color-accent); }

/* ===========================
   Signup Page — Wizard
   =========================== */

.signup-page {
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.signup-page::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.10) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.signup-page::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 148, 58, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.nav-signup {
  position: relative;
  background: transparent;
  padding: 20px 0;
}

.nav-signup .logo { color: var(--color-text-on-dark); }
.nav-signup .logo span { color: var(--color-accent); }

.signup-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.signup-container {
  width: 100%;
  max-width: 560px;
}

/* Progress dots */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.wizard-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.wizard-step-dot.active {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(46, 92, 229, 0.30);
}

.wizard-step-dot.completed {
  border-color: var(--color-success);
  background: var(--color-success);
  box-shadow: 0 2px 8px rgba(45, 159, 111, 0.25);
}

.wizard-step-line {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}

.wizard-step-line-fill {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.4s var(--ease);
}

/* Wizard card (glass) */

.wizard-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
}

.wizard-card h1 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-text-on-dark);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.wizard-sub {
  text-align: center;
  color: var(--color-text-on-dark-muted);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Form rows (two columns) */

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

.label-optional {
  font-weight: 400;
  color: rgba(245, 243, 239, 0.35);
  font-size: 12px;
}

.wizard-card .form-group { margin-bottom: 20px; }

.wizard-card .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.80);
  margin-bottom: 6px;
}

.wizard-card .form-group input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-on-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.wizard-card .form-group input::placeholder {
  color: rgba(245, 243, 239, 0.28);
}

.wizard-card .form-group input:focus {
  border-color: rgba(46, 92, 229, 0.50);
  box-shadow: 0 0 0 3px rgba(46, 92, 229, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.wizard-card .form-group input.input-error {
  border-color: rgba(217, 75, 75, 0.60);
  box-shadow: 0 0 0 3px rgba(217, 75, 75, 0.12);
}

.wizard-card .form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-card .form-hint {
  display: block;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 6px;
}

.wizard-card .form-error {
  display: block;
  font-size: 13px;
  color: #F87171;
  margin-top: 6px;
}

.wizard-card .btn {
  margin-top: 8px;
  width: 100%;
}

/* Back button */

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(245, 243, 239, 0.5);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color var(--transition-fast);
}

.wizard-back:hover { color: var(--color-text-on-dark); }
.wizard-back svg { width: 18px; height: 18px; }

/* Password toggle */

.input-password-wrap {
  position: relative;
}

.input-password-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: rgba(245, 243, 239, 0.35);
  transition: color var(--transition-fast);
}

.password-toggle:hover { color: rgba(245, 243, 239, 0.65); }
.password-toggle svg { width: 20px; height: 20px; display: block; }
.password-toggle svg[hidden] { display: none !important; }

/* Validation result */

.validate-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.validate-result svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.validate-result strong {
  display: block;
  margin-bottom: 2px;
}

.validate-success {
  background: rgba(45, 159, 111, 0.12);
  border: 1px solid rgba(45, 159, 111, 0.25);
  color: #A7F3D0;
}

.validate-success svg { color: var(--color-success); }

.validate-error {
  background: rgba(217, 75, 75, 0.10);
  border: 1px solid rgba(217, 75, 75, 0.20);
  color: #FCA5A5;
}

.validate-error svg { color: var(--color-error); }

/* Enterprise notice */

.wizard-enterprise-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.4);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: rgba(229, 148, 58, 0.06);
  border: 1px solid rgba(229, 148, 58, 0.12);
  border-radius: var(--radius-md);
}

.wizard-enterprise-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Store preview card */

.store-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.preview-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 16px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.preview-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}

.preview-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.preview-stat-highlight {
  background: rgba(229, 148, 58, 0.08);
  border-color: rgba(229, 148, 58, 0.15);
}

.preview-stat-alert {
  background: rgba(217, 75, 75, 0.08);
  border-color: rgba(217, 75, 75, 0.18);
}

.preview-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
}

.preview-stat-highlight .preview-stat-value {
  color: var(--color-accent);
}

.preview-stat-alert .preview-stat-value {
  color: #F87171;
}

.preview-stat-label {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.45);
  margin-top: 2px;
}

.preview-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(229, 148, 58, 0.06);
  border: 1px solid rgba(229, 148, 58, 0.12);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 243, 239, 0.6);
}

.preview-insight svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-accent);
}

/* Payment step */

.payment-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.payment-value-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.payment-value-header {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.payment-value-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(245, 243, 239, 0.8);
}

.payment-value-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

.payment-card-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-plan-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(229, 148, 58, 0.08);
  border: 1px solid rgba(229, 148, 58, 0.15);
  border-radius: var(--radius-lg);
}

.payment-plan-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-on-dark);
}

.payment-plan-price {
  font-weight: 800;
  font-size: 24px;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.payment-plan-interval {
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.5);
}

.payment-plan-trial {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.45);
  width: 100%;
}

.payment-card-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.65);
}

.stripe-card-element {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition-fast);
}

.stripe-card-element:focus-within,
.stripe-card-element.StripeElement--focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(229, 148, 58, 0.12);
}

.stripe-card-errors {
  font-size: 13px;
  color: #F87171;
  margin-top: -8px;
}

.payment-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.4);
  margin-top: 4px;
}

.payment-disclaimer svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.payment-disclaimer strong {
  color: rgba(245, 243, 239, 0.65);
}

.payment-stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(245, 243, 239, 0.3);
  margin-top: 0;
}

.payment-stripe-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Start Trial button (green) */

.btn-success-action {
  background: var(--color-success);
  box-shadow: 0 2px 8px rgba(45, 159, 111, 0.25);
}

.btn-success-action:hover {
  background: #238C5F;
  box-shadow: 0 4px 16px rgba(45, 159, 111, 0.30);
}

/* Spinner animation */

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn .btn-loading,
.btn .btn-text {
  align-items: center;
  justify-content: center;
}

.btn .btn-loading { display: none; }
.btn .btn-text { display: inline-flex; }

.btn.is-loading .btn-loading { display: inline-flex; }
.btn.is-loading .btn-text { display: none; }

/* Footer text */

.wizard-footer-text {
  text-align: center;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 20px;
}

.wizard-footer-text a {
  color: rgba(245, 243, 239, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-footer-text a:hover { color: var(--color-text-on-dark); }

.wizard-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wizard-security-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

/* Step 3: Success */

.wizard-card-success {
  text-align: center;
}

.wizard-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(45, 159, 111, 0.15);
  border: 2px solid rgba(45, 159, 111, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}

.wizard-success-icon svg {
  width: 36px;
  height: 36px;
}

.success-next-steps {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 28px;
}

.success-next-steps h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 20px;
}

.success-next-steps ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-next-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.success-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46, 92, 229, 0.15);
  border: 1px solid rgba(46, 92, 229, 0.25);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.success-next-steps strong {
  display: block;
  font-size: 15px;
  color: var(--color-text-on-dark);
  margin-bottom: 4px;
}

.success-next-steps p {
  font-size: 14px;
  color: var(--color-text-on-dark-muted);
  line-height: 1.5;
}

/* ===========================
   Onboarding Page — Business Profile
   =========================== */

.onboarding-container {
  max-width: 620px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 8px;
}

.onboarding-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(46, 92, 229, 0.12);
  border: 1px solid rgba(46, 92, 229, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.onboarding-icon svg {
  width: 26px;
  height: 26px;
}

.onboarding-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.onboarding-fieldset legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.onboarding-fieldset legend .label-optional {
  text-transform: none;
  letter-spacing: 0;
}

.wizard-card select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-on-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='rgba(245,243,239,0.4)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}

.wizard-card select:focus {
  border-color: rgba(46, 92, 229, 0.50);
  box-shadow: 0 0 0 3px rgba(46, 92, 229, 0.12);
  background-color: rgba(255, 255, 255, 0.08);
}

.wizard-card select option {
  background: #1E2235;
  color: var(--color-text-on-dark);
}

.onboarding-skip {
  margin-top: 12px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(245, 243, 239, 0.50);
  box-shadow: none;
}

.onboarding-skip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(245, 243, 239, 0.70);
  box-shadow: none;
}

/* ===========================
   Workflow Toggle Cards
   =========================== */

.workflow-select-all {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: var(--color-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all var(--transition-fast);
}

.workflow-select-all:hover {
  background: rgba(46, 92, 229, 0.06);
  border-color: rgba(46, 92, 229, 0.25);
}

.workflow-tier {
  margin-bottom: 24px;
}

.workflow-tier-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-tier-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(229, 148, 58, 0.12);
  color: var(--color-accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.workflow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workflow-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.workflow-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.workflow-card-locked {
  opacity: 0.55;
  cursor: default;
}

.workflow-card-locked:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.workflow-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workflow-card-info {
  flex: 1;
  min-width: 0;
}

.workflow-card-info strong {
  display: inline;
  font-size: 15px;
  color: var(--color-text-on-dark);
}

.workflow-card-info p {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
  line-height: 1.5;
  margin-top: 4px;
}

.workflow-badge-growth {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(229, 148, 58, 0.12);
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  vertical-align: middle;
}

.workflow-locked-note {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.3);
  margin-top: 8px;
  padding-left: 2px;
}

/* Toggle switch */

.workflow-toggle {
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}

.workflow-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  position: relative;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.toggle-knob {
  display: block;
  width: 18px;
  height: 18px;
  background: rgba(245, 243, 239, 0.4);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all var(--transition-fast);
}

.workflow-toggle input:checked + .toggle-track {
  background: rgba(45, 159, 111, 0.25);
  border-color: rgba(45, 159, 111, 0.40);
}

.workflow-toggle input:checked + .toggle-track .toggle-knob {
  background: var(--color-success);
  transform: translateX(20px);
}

.workflow-toggle input:disabled + .toggle-track {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===========================
   Success Page — Email + Call CTA
   =========================== */

.success-email-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(46, 92, 229, 0.08);
  border: 1px solid rgba(46, 92, 229, 0.18);
  border-radius: var(--radius-md);
  margin-top: 20px;
  text-align: left;
}

.success-email-notice svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.success-email-notice strong {
  display: block;
  font-size: 15px;
  color: var(--color-text-on-dark);
  margin-bottom: 2px;
}

.success-email-notice p {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.55);
  line-height: 1.5;
}

.success-call-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
}

.success-call-cta h3 {
  font-size: 17px;
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
}

.success-call-cta p {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.55);
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-call-cta .btn {
  margin-top: 0;
}

/* Signup + onboarding responsive */

@media (max-width: 600px) {
  .signup-main { padding: 16px; }
  .signup-container { max-width: 100%; }
  .wizard-card { padding: 32px 20px; }
  .wizard-progress { margin-bottom: 28px; }
  .wizard-step-line { width: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .preview-stats { grid-template-columns: repeat(2, 1fr); }
  .success-next-steps { padding: 20px 16px; }
  .onboarding-container { max-width: 100%; }
  .workflow-card-body { flex-direction: column; gap: 12px; }
  .workflow-toggle { align-self: flex-start; }
}

/* ===========================
   Scroll Reveal
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Accessibility
   =========================== */

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 92, 229, 0.30);
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .mockup-shimmer { animation: none; background: none; }
  .mockup-row { opacity: 1; animation: none; }
  .mockup-toast { opacity: 1; animation: none; }
  .kanban-card { opacity: 1; animation: none; }
  .contact-anim { opacity: 1; animation: none; }
  .mockup-tab-panel.active { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .pain-card,
  .step,
  .pricing-card,
  .wizard-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-surface-solid);
  }
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .auto-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mockup-wrap {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

  @keyframes heroMockupEntrance {
    0% {
      opacity: 0;
      transform: rotateY(0) rotateX(4deg) translateY(40px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: rotateY(0) rotateX(2deg) translateY(0) scale(1);
    }
  }

  @keyframes heroMockupFloat {
    0%, 100% { transform: rotateY(0) rotateX(2deg) translateY(0); }
    50% { transform: rotateY(0) rotateX(2deg) translateY(-6px); }
  }
}

@media (max-width: 700px) {
  section { padding: 64px 0; }

  .hero { padding: 130px 0 64px; }

  .steps { flex-direction: column; gap: 12px; }
  .step { padding: 28px 20px; }

  .step-arrow {
    padding-top: 0;
    justify-content: center;
    display: none;
  }

  .pain-grid { grid-template-columns: 1fr; }
  .auto-grid { grid-template-columns: 1fr; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .pricing-card { padding: 32px 24px; }

  .video-placeholder { border-radius: var(--radius-lg); }

  .hero-mockup-wrap {
    max-width: 100%;
  }

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

@media (max-width: 480px) {
  .mockup-table thead th:nth-child(3),
  .mockup-table tbody td:nth-child(3) {
    display: none;
  }

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

  .mockup-contacts-layout {
    grid-template-columns: 1fr;
  }

  .contact-detail-col {
    display: none;
  }
}

/* ===========================
   Setup Guide Page
   =========================== */

.setup-page {
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  min-height: 100vh;
  position: relative;
}

.setup-page::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.nav-setup {
  position: relative;
  background: transparent;
  padding: 20px 0;
}

.nav-setup .logo { color: var(--color-text-on-dark); }
.nav-setup .logo span { color: var(--color-accent); }

.setup-embedded .setup-main { padding-top: 0; }

.setup-main {
  padding: 24px;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.setup-container {
  width: 100%;
  max-width: 580px;
}

.setup-header {
  text-align: center;
  margin-bottom: 36px;
}

.setup-progress-ring {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
}

.setup-progress-ring svg {
  width: 88px;
  height: 88px;
}

#progress-circle {
  transition: stroke-dashoffset 0.6s var(--ease);
}

.progress-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
}

.ring-complete #progress-circle {
  stroke: var(--color-success);
}

.setup-header h1 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.setup-sub {
  color: var(--color-text-on-dark-muted);
  font-size: 15px;
  line-height: 1.6;
}

.setup-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.setup-loading, .setup-error {
  text-align: center;
  color: var(--color-text-on-dark-muted);
  font-size: 15px;
  padding: 40px 0;
}

.setup-error { color: #FCA5A5; }

.checklist-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.checklist-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.checklist-done {
  border-color: rgba(45, 159, 111, 0.20);
  background: rgba(45, 159, 111, 0.04);
}

.checklist-saving { opacity: 0.5; pointer-events: none; }

.checklist-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.checklist-icon svg {
  width: 24px;
  height: 24px;
  color: rgba(245, 243, 239, 0.25);
}

.checklist-done .checklist-icon svg {
  color: var(--color-success);
}

.checklist-body {
  flex: 1;
  min-width: 0;
}

.checklist-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin-bottom: 6px;
}

.checklist-done .checklist-label {
  color: rgba(245, 243, 239, 0.55);
}

.checklist-status-done {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
}

.checklist-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checklist-action-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.checklist-action-link:hover { color: #5B8AFF; }

.checklist-mark-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checklist-mark-btn:hover {
  background: rgba(45, 159, 111, 0.12);
  border-color: rgba(45, 159, 111, 0.30);
  color: var(--color-success);
}

.setup-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.setup-footer-links .btn-outline {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 243, 239, 0.6);
  box-shadow: none;
}

.setup-footer-links .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--color-text-on-dark);
  box-shadow: none;
}

.setup-support-link {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.35);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.setup-support-link:hover { color: rgba(245, 243, 239, 0.6); }

/* ===========================
   Dashboard Page
   =========================== */

.dash-page {
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  min-height: 100vh;
  position: relative;
}

.dash-page::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 92, 229, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.dash-page::after {
  content: '';
  position: fixed;
  bottom: -25%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 148, 58, 0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.nav-dash {
  position: relative;
  background: transparent;
  padding: 20px 0;
}

.nav-dash .logo { color: var(--color-text-on-dark); }
.nav-dash .logo span { color: var(--color-accent); }

.dash-embedded .dash-main { padding-top: 0; }

.dash-main {
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}

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

.dash-header {
  margin-bottom: 32px;
}

.dash-header h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dash-sub {
  color: var(--color-text-on-dark-muted);
  font-size: 16px;
}

.dash-loading {
  text-align: center;
  color: var(--color-text-on-dark-muted);
  font-size: 15px;
  padding: 60px 0;
}

.dash-error {
  text-align: center;
  color: #FCA5A5;
  font-size: 15px;
  padding: 60px 0;
}

/* Stat cards */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition-fast);
}

.dash-stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.dash-stat-icon svg { width: 20px; height: 20px; }

.dash-stat-icon-plan {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.dash-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.dash-stat-label {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.45);
}

/* Sections */

.dash-section {
  margin-bottom: 28px;
}

.dash-section h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 12px;
  text-align: left;
}

.dash-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Sync Health */

.dash-sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-on-dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sync-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.2);
  flex-shrink: 0;
}

.sync-dot-ok { background: var(--color-success); box-shadow: 0 0 8px rgba(45, 159, 111, 0.40); }
.sync-dot-error { background: var(--color-error); box-shadow: 0 0 8px rgba(217, 75, 75, 0.40); }
.sync-dot-warn { background: var(--color-accent); box-shadow: 0 0 8px rgba(229, 148, 58, 0.40); }

.dash-sync-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-sync-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-sync-detail-label {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.45);
}

.dash-sync-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-on-dark);
}

.sync-result-error { color: #FCA5A5 !important; }

/* Setup Progress */

.dash-setup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.dash-setup-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dash-setup-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.dash-setup-bar-fill {
  height: 100%;
  background: var(--color-success);
  border-radius: 4px;
  transition: width 0.6s var(--ease);
}

.dash-setup-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  min-width: 36px;
  text-align: right;
}

.dash-setup-text {
  font-size: 14px;
  color: rgba(245, 243, 239, 0.55);
}

.dash-setup-card .btn {
  margin-top: 0;
}

/* CRM Update */

.dash-update-card {
  border-color: rgba(229, 148, 58, 0.25);
  background: rgba(229, 148, 58, 0.04);
}

.dash-update-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(229, 148, 58, 0.15);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.dash-update-text {
  font-size: 15px;
  color: rgba(245, 243, 239, 0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Quick Links */

.dash-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dash-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: rgba(245, 243, 239, 0.6);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dash-link-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-dark);
}

.dash-link-card svg {
  width: 22px;
  height: 22px;
}

/* ===========================
   Refresh Modal
   =========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: #1E2235;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h2 {
  font-size: 20px;
  color: var(--color-text-on-dark);
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: -0.02em;
}

.modal-section {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.modal-section-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.modal-section-icon svg {
  width: 22px;
  height: 22px;
}

.modal-section strong {
  display: block;
  font-size: 14px;
  color: var(--color-text-on-dark);
  margin-bottom: 4px;
}

.modal-section p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 243, 239, 0.55);
}

.modal-section-success {
  background: rgba(45, 159, 111, 0.08);
  border: 1px solid rgba(45, 159, 111, 0.18);
}

.modal-section-success .modal-section-icon { color: var(--color-success); }

.modal-section-safe {
  background: rgba(46, 92, 229, 0.06);
  border: 1px solid rgba(46, 92, 229, 0.15);
}

.modal-section-safe .modal-section-icon { color: var(--color-primary); }

.modal-section-warn {
  background: rgba(229, 148, 58, 0.06);
  border: 1px solid rgba(229, 148, 58, 0.15);
}

.modal-section-warn .modal-section-icon { color: var(--color-accent); }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn { flex: 1; }

.modal-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 243, 239, 0.6);
  box-shadow: none;
}

.modal-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--color-text-on-dark);
  box-shadow: none;
}

.modal-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.modal-result strong { display: block; margin-bottom: 2px; }

.modal-result-success {
  background: rgba(45, 159, 111, 0.12);
  border: 1px solid rgba(45, 159, 111, 0.25);
  color: #A7F3D0;
}

.modal-result-error {
  background: rgba(217, 75, 75, 0.10);
  border: 1px solid rgba(217, 75, 75, 0.20);
  color: #FCA5A5;
}

/* ===========================
   Dashboard + Setup Responsive
   =========================== */

@media (max-width: 700px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-links {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 28px 20px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 480px) {
  .dash-container { max-width: 100%; }
  .setup-container { max-width: 100%; }
}

/* ===========================
   Dashboard v2 — Reporting UI
   =========================== */

.dash-container-wide {
  max-width: 960px;
}

/* Header row */

.dash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dash-freshness {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.35);
  white-space: nowrap;
}

.btn-crm {
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-crm {
  border: none;
  cursor: pointer;
}

.btn-crm:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 92, 229, 0.3);
}

.crm-btn-wrap {
  position: relative;
}

.crm-login-hint {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(30, 35, 50, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 260px;
  z-index: 100;
  animation: hintFadeIn 0.2s ease;
}

.crm-login-hint p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--color-text-on-dark);
}

.crm-login-hint small {
  color: var(--color-text-on-dark-muted);
  font-size: 11px;
}

@keyframes hintFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tabs */

.dash-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 24px;
}

.dash-tab {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.45);
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-tab:hover {
  color: rgba(245, 243, 239, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.dash-tab.active {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
}

/* Period Selector */

.dash-period-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.dash-period-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  color: var(--color-text-on-dark);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}

.dash-period-select option {
  background: #1E2235;
  color: var(--color-text-on-dark);
}

/* Hero Stats */

.dash-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dash-hero-stats-sm {
  margin-bottom: 28px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  transition: all var(--transition-fast);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-stat-primary {
  background: rgba(46, 92, 229, 0.08);
  border-color: rgba(46, 92, 229, 0.18);
}

.hero-stat-primary:hover {
  background: rgba(46, 92, 229, 0.12);
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat-warn {
  color: var(--color-accent);
}

.hero-stat-sub {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.4);
  margin-top: 4px;
}

.tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 243, 239, 0.5);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
}

/* Cost Coverage */

.dash-cost-coverage {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(229, 148, 58, 0.06);
  border: 1px solid rgba(229, 148, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(245, 243, 239, 0.55);
  line-height: 1.5;
  margin-bottom: 24px;
}

.cost-coverage-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 1px;
}

/* Chart */

.dash-chart-section {
  margin-bottom: 32px;
}

.dash-chart-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 12px;
}

.dash-chart-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  height: 280px;
  position: relative;
}

.dash-chart-empty {
  text-align: center;
  color: rgba(245, 243, 239, 0.35);
  font-size: 14px;
  padding: 60px 20px;
}

/* Tables */

.dash-section h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.45);
  margin-bottom: 12px;
}

.dash-table-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dash-table-wide {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.35);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.dash-table tbody td {
  padding: 12px 16px;
  color: rgba(245, 243, 239, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dash-table-empty {
  text-align: center;
  color: rgba(245, 243, 239, 0.35);
  font-size: 14px;
  padding: 40px 20px;
}

.order-id-cell {
  font-weight: 600;
  color: var(--color-text-on-dark) !important;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges */

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-shipped { background: rgba(45, 159, 111, 0.15); color: #6EE7B7; }
.status-production { background: rgba(46, 92, 229, 0.15); color: #93B5FF; }
.status-hold { background: rgba(229, 148, 58, 0.15); color: #FBD38D; }
.status-cancelled { background: rgba(217, 75, 75, 0.12); color: #FCA5A5; }
.status-awaiting-po { background: rgba(229, 148, 58, 0.15); color: #FBD38D; }
.status-awaiting-stock { background: rgba(56, 189, 248, 0.15); color: #7DD3FC; }
.status-awaiting-art { background: rgba(168, 130, 255, 0.15); color: #C4B5FD; }
.status-new { background: rgba(255, 255, 255, 0.08); color: rgba(245, 243, 239, 0.6); }

/* Margin indicators */

.margin-positive { color: #6EE7B7; }
.margin-negative { color: #FCA5A5; }
.margin-none { color: rgba(245, 243, 239, 0.25); }

/* Clickable order rows */

.order-row-clickable {
  cursor: pointer;
}

.order-row-clickable:hover {
  background: rgba(46, 92, 229, 0.06) !important;
}

/* Taller chart wrap for horizontal bar charts */

.dash-chart-wrap-tall {
  height: 320px;
}

/* Charges Grid */

.dash-charges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.dash-charge-card {
  padding: 16px 20px;
}

.charge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.charge-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.5);
}

.charge-count {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.3);
}

.charge-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.charge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.charge-list li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(245, 243, 239, 0.5);
  padding: 3px 0;
}

.charge-list li span:last-child {
  font-weight: 500;
  color: rgba(245, 243, 239, 0.7);
}

/* Product cost coverage note */

.dash-product-cost-note {
  font-size: 12px;
  color: rgba(245, 243, 239, 0.45);
  background: rgba(229, 148, 58, 0.06);
  border: 1px solid rgba(229, 148, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 12px;
}

/* Order Detail Panel */

.dash-order-detail {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  animation: detailSlideIn 0.25s ease;
}

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

.dash-order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-order-detail-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

.dash-detail-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 243, 239, 0.5);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dash-detail-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-on-dark);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.4);
}

.detail-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-on-dark);
}

/* Hints */

.dash-hint {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.4);
  line-height: 1.6;
  margin-top: 12px;
}

/* ===========================
   Import Animation (Glassmorphism)
   =========================== */

.dash-importing {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.import-glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.import-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.05) 0%, transparent 50%, rgba(229, 148, 58, 0.03) 100%);
  pointer-events: none;
}

.import-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  border: 1px solid rgba(46, 92, 229, 0.15);
  animation: import-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes import-pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.import-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(46, 92, 229, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  animation: import-spin 3s linear infinite;
}

.import-icon svg { width: 28px; height: 28px; }

@keyframes import-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.import-glass-card h2 {
  position: relative;
  font-size: 20px;
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.import-status {
  position: relative;
  font-size: 14px;
  color: rgba(245, 243, 239, 0.5);
  margin-bottom: 28px;
}

.import-counter {
  position: relative;
  margin-bottom: 20px;
}

.import-count {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
}

.import-count-label {
  font-size: 13px;
  color: rgba(245, 243, 239, 0.4);
  display: block;
  margin-top: 4px;
}

.import-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.import-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.import-progress-fill.indeterminate {
  width: 30%;
  animation: import-progress-slide 1.8s ease-in-out infinite;
}

@keyframes import-progress-slide {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 50%; }
  100% { transform: translateX(400%); width: 30%; }
}

.import-eta {
  position: relative;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
  margin: 8px 0 4px;
  font-weight: 500;
}

.import-note {
  position: relative;
  font-size: 12px;
  color: rgba(245, 243, 239, 0.3);
  line-height: 1.5;
}

/* ===========================
   Dashboard v2 Responsive
   =========================== */

@media (max-width: 768px) {
  .dash-container-wide { max-width: 100%; }

  .dash-header-row {
    flex-direction: column;
    gap: 12px;
  }

  .dash-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dash-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dash-tab {
    white-space: nowrap;
    min-width: 80px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .hero-stat-value { font-size: 22px; }

  .dash-table { font-size: 13px; }
  .dash-table thead th { padding: 10px 12px; }
  .dash-table tbody td { padding: 10px 12px; }

  .dash-charges-grid { grid-template-columns: 1fr; }
  .dash-chart-wrap-tall { height: 280px; }

  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-stat-value { font-size: 16px; }
}

@media (max-width: 480px) {
  .dash-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-stat {
    padding: 14px 12px;
  }

  .hero-stat-value { font-size: 20px; }

  .dash-chart-wrap { height: 220px; padding: 12px 8px; }
  .dash-chart-wrap-tall { height: 240px; }

  .import-glass-card { padding: 32px 24px; }
  .import-count { font-size: 36px; }

  .charge-total { font-size: 18px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   Nav Links
   =========================== */

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.55);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-active {
  color: var(--color-text-on-dark);
}

.nav-scrolled .nav-link {
  color: var(--color-text-secondary);
}

.nav-scrolled .nav-link:hover {
  color: var(--color-heading);
  background: rgba(30, 27, 24, 0.04);
}

.nav-scrolled .nav-link-active {
  color: var(--color-heading);
}

/* ===========================
   Workflows Page — Hero
   =========================== */

.wf-hero {
  padding: 150px 0 100px;
}

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

.wf-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(229, 148, 58, 0.12);
  border: 1px solid rgba(229, 148, 58, 0.20);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* ===========================
   Workflow Builder Mockup
   =========================== */

.wf-hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.wf-flow-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

.wf-flow-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

.wf-flow-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wf-flow-body {
  padding: 24px 20px;
  position: relative;
}

/* Flow Nodes */
.wf-flow-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wf-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  width: 100%;
  max-width: 260px;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
}

.wf-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-node-icon svg {
  width: 16px;
  height: 16px;
}

.wf-node-trigger .wf-node-icon {
  background: rgba(229, 148, 58, 0.15);
  color: #FBD38D;
}

.wf-node-check .wf-node-icon {
  background: rgba(46, 92, 229, 0.15);
  color: #93B5FF;
}

.wf-node-email .wf-node-icon {
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
}

.wf-node-wait .wf-node-icon {
  background: rgba(168, 130, 255, 0.15);
  color: #C4B5FD;
}

.wf-node-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.8);
  line-height: 1.2;
}

.wf-node-desc {
  font-size: 9px;
  color: rgba(245, 243, 239, 0.35);
}

/* Flow connecting lines */
.wf-flow-line {
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  opacity: 0;
}

.wf-flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(46, 92, 229, 0.6), rgba(45, 159, 111, 0.4));
  border-radius: 1px;
}

/* Node entrance animations */
.wf-node-anim-1 { animation: wfNodeIn 0.4s ease 0.6s forwards; }
.wf-node-anim-2 { animation: wfNodeIn 0.4s ease 1.0s forwards; }
.wf-node-anim-3 { animation: wfNodeIn 0.4s ease 1.4s forwards; }
.wf-node-anim-4 { animation: wfNodeIn 0.4s ease 1.8s forwards; }
.wf-node-anim-5 { animation: wfNodeIn 0.4s ease 2.2s forwards; }
.wf-node-anim-6 { animation: wfNodeIn 0.4s ease 2.6s forwards; }

.wf-line-anim-1 { animation: wfLineIn 0.3s ease 0.85s forwards; }
.wf-line-anim-2 { animation: wfLineIn 0.3s ease 1.25s forwards; }
.wf-line-anim-3 { animation: wfLineIn 0.3s ease 1.65s forwards; }
.wf-line-anim-4 { animation: wfLineIn 0.3s ease 2.05s forwards; }
.wf-line-anim-5 { animation: wfLineIn 0.3s ease 2.45s forwards; }

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

@keyframes wfLineIn {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: 16px; }
}

/* Pulse on lines after reveal */
.wf-flow-line.wf-line-anim-1 { animation: wfLineIn 0.3s ease 0.85s forwards, wfLinePulse 2s ease 3.2s infinite; }
.wf-flow-line.wf-line-anim-2 { animation: wfLineIn 0.3s ease 1.25s forwards, wfLinePulse 2s ease 3.4s infinite; }
.wf-flow-line.wf-line-anim-3 { animation: wfLineIn 0.3s ease 1.65s forwards, wfLinePulse 2s ease 3.6s infinite; }
.wf-flow-line.wf-line-anim-4 { animation: wfLineIn 0.3s ease 2.05s forwards, wfLinePulse 2s ease 3.8s infinite; }
.wf-flow-line.wf-line-anim-5 { animation: wfLineIn 0.3s ease 2.45s forwards, wfLinePulse 2s ease 4.0s infinite; }

@keyframes wfLinePulse {
  0%, 100% { background: rgba(255, 255, 255, 0.08); }
  50% { background: rgba(46, 92, 229, 0.25); }
}

/* Toast */
.wf-flow-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  background: rgba(45, 159, 111, 0.08);
  border: 1px solid rgba(45, 159, 111, 0.18);
  border-radius: 8px;
  opacity: 0;
  animation: toastSlideIn 0.5s ease 3s forwards;
}

.wf-flow-toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

.wf-flow-toast strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #A7F3D0;
}

.wf-flow-toast span {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.4);
}

/* ===========================
   Stat Block Section
   =========================== */

.wf-stat-section {
  padding: 48px 0;
  background: var(--color-bg);
}

.wf-stat-card {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-subtle);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.wf-stat-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.wf-stat-card p {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   Automation Categories
   =========================== */

.wf-categories {
  background: var(--color-bg-warm);
  padding: 96px 0;
}

.wf-categories h2 {
  text-align: center;
  margin-bottom: 12px;
}

.wf-group {
  margin-bottom: 48px;
}

.wf-group:last-child {
  margin-bottom: 0;
}

.wf-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(30, 27, 24, 0.08);
}

.wf-group-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wf-group-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.wf-tag-amber {
  background: rgba(229, 148, 58, 0.10);
  color: var(--color-accent-dark);
}

.wf-tag-purple {
  background: rgba(168, 130, 255, 0.10);
  color: #7C5CC4;
}

.wf-tag-blue {
  background: rgba(46, 92, 229, 0.08);
  color: var(--color-primary);
}

.wf-tag-green {
  background: rgba(45, 159, 111, 0.10);
  color: #1B7A50;
}

/* Automation Cards */
.wf-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wf-card {
  display: flex;
  gap: 16px;
  background: var(--color-surface-solid);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition-base);
}

.wf-card:hover {
  border-color: rgba(46, 92, 229, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.wf-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-card-icon svg {
  width: 20px;
  height: 20px;
}

.wf-icon-amber {
  background: rgba(229, 148, 58, 0.10);
  color: var(--color-accent-dark);
}

.wf-icon-blue {
  background: rgba(46, 92, 229, 0.08);
  color: var(--color-primary);
}

.wf-icon-green {
  background: rgba(45, 159, 111, 0.10);
  color: #1B7A50;
}

.wf-icon-purple {
  background: rgba(168, 130, 255, 0.10);
  color: #7C5CC4;
}

.wf-icon-red {
  background: rgba(217, 75, 75, 0.10);
  color: #C03B3B;
}

.wf-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.wf-card-body p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.wf-card-meta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wf-email-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.wf-trigger-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

/* ===========================
   Walkthrough Timeline
   =========================== */

.wf-walkthrough {
  background: var(--color-bg);
  padding: 96px 0;
}

.wf-walkthrough h2 {
  text-align: center;
  margin-bottom: 12px;
}

.wf-timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 52px;
}

.wf-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(30, 27, 24, 0.08);
}

.wf-timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.wf-timeline-item:last-child {
  margin-bottom: 0;
}

.wf-timeline-marker {
  position: absolute;
  left: -52px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  z-index: 1;
}

.wf-timeline-marker svg {
  width: 16px;
  height: 16px;
}

.wf-marker-blue {
  background: rgba(46, 92, 229, 0.12);
  border: 2px solid rgba(46, 92, 229, 0.25);
  color: var(--color-primary);
}

.wf-marker-amber {
  background: rgba(229, 148, 58, 0.12);
  border: 2px solid rgba(229, 148, 58, 0.25);
  color: var(--color-accent-dark);
}

.wf-marker-green {
  background: rgba(45, 159, 111, 0.12);
  border: 2px solid rgba(45, 159, 111, 0.25);
  color: var(--color-success);
}

.wf-marker-muted {
  background: rgba(30, 27, 24, 0.05);
  border: 2px solid rgba(30, 27, 24, 0.10);
  color: var(--color-text-tertiary);
}

.wf-timeline-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.wf-timeline-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.wf-timeline-exit {
  padding: 12px 0;
  margin-bottom: 24px;
}

.wf-timeline-exit .wf-timeline-content {
  padding: 14px 18px;
  background: rgba(45, 159, 111, 0.05);
  border: 1px solid rgba(45, 159, 111, 0.12);
  border-radius: var(--radius-md);
}

/* Email Preview Cards */
.wf-email-preview {
  margin-top: 10px;
  padding: 16px 18px;
  background: var(--color-surface-solid);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font);
}

.wf-email-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(30, 27, 24, 0.06);
}

.wf-email-preview p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ===========================
   Email Style Comparison
   =========================== */

.wf-email-compare {
  background: var(--color-bg-warm);
  padding: 96px 0;
}

.wf-email-compare h2 {
  text-align: center;
  margin-bottom: 12px;
}

.wf-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.wf-compare-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wf-compare-label {
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wf-compare-label-bad {
  background: rgba(217, 75, 75, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(217, 75, 75, 0.12);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wf-compare-label-good {
  background: rgba(45, 159, 111, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(45, 159, 111, 0.15);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wf-compare-email {
  background: var(--color-surface-solid);
  border: var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px 20px;
  min-height: 340px;
}

/* Generic email mockup (skeleton) */
.wf-compare-bad .wf-compare-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wf-fake-header-bar {
  width: 100%;
  height: 6px;
  background: rgba(217, 75, 75, 0.15);
  border-radius: 3px;
}

.wf-fake-logo-block {
  width: 80px;
  height: 32px;
  background: rgba(30, 27, 24, 0.06);
  border-radius: 4px;
  margin: 4px 0;
}

.wf-fake-hero-img {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, rgba(30, 27, 24, 0.06), rgba(30, 27, 24, 0.10));
  border-radius: var(--radius-sm);
}

.wf-fake-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: 0.08em;
  margin: 4px 0 8px;
}

.wf-fake-line {
  height: 8px;
  background: rgba(30, 27, 24, 0.06);
  border-radius: 4px;
  width: 100%;
}

.wf-fake-line-80 { width: 80%; }
.wf-fake-line-60 { width: 60%; }
.wf-fake-line-90 { width: 90%; }
.wf-fake-line-50 { width: 50%; }
.wf-fake-line-70 { width: 70%; }
.wf-fake-line-40 { width: 40%; }

.wf-fake-muted {
  background: rgba(30, 27, 24, 0.04);
}

.wf-fake-button {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(217, 75, 75, 0.12);
  color: var(--color-error);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  margin: 8px 0;
}

.wf-fake-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 27, 24, 0.04);
  margin-top: auto;
}

/* Real email (DecoPlus) */
.wf-compare-email-real {
  font-family: var(--font);
  min-height: 340px;
}

.wf-compare-email-real p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.wf-compare-email-real p:last-child {
  margin-bottom: 0;
}

.wf-real-from {
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
}

.wf-real-subject {
  font-size: 13px !important;
  color: var(--color-heading) !important;
}

.wf-real-divider {
  height: 1px;
  background: rgba(30, 27, 24, 0.08);
  margin: 12px 0 16px;
}

/* ===========================
   Workflows Page — Responsive
   =========================== */

@media (max-width: 900px) {
  .wf-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wf-hero-mockup-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .wf-flow-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

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

  .wf-compare-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 700px) {
  .wf-hero { padding: 130px 0 64px; }

  .wf-card-grid {
    grid-template-columns: 1fr;
  }

  .wf-stat-card {
    padding: 28px 24px;
  }

  .wf-stat-number {
    font-size: 42px;
  }

  .wf-stat-card p {
    font-size: 15px;
  }

  .wf-timeline {
    padding-left: 44px;
  }

  .wf-timeline-marker {
    left: -44px;
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .wf-timeline-marker svg {
    width: 14px;
    height: 14px;
  }

  .wf-timeline::before {
    left: 15px;
  }

  .wf-group-header {
    flex-wrap: wrap;
  }

  .wf-compare-email {
    min-height: auto;
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .wf-hero-mockup-wrap {
    max-width: 100%;
  }

  .wf-node {
    max-width: 100%;
  }
}

/* Workflows — Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wf-flow-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .wf-flow-shimmer { animation: none; background: none; }
  .wf-node { opacity: 1; transform: none; animation: none; }
  .wf-flow-line { opacity: 1; height: 16px; animation: none; }
  .wf-flow-toast { opacity: 1; animation: none; }
}

/* ===========================
   Nav Dropdown
   =========================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.nav-dropdown-trigger svg {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: rgba(30, 35, 50, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.65);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-item-active {
  color: var(--color-text-on-dark);
  font-weight: 600;
}

/* Scrolled state dropdown */
.nav-scrolled .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 27, 24, 0.08);
  box-shadow: var(--shadow-lg);
}

.nav-scrolled .nav-dropdown-item {
  color: var(--color-text-secondary);
}

.nav-scrolled .nav-dropdown-item:hover {
  color: var(--color-heading);
  background: rgba(30, 27, 24, 0.04);
}

.nav-scrolled .nav-dropdown-item-active {
  color: var(--color-heading);
  font-weight: 600;
}

/* ===========================
   CRM Page — Hero
   =========================== */

.crm-hero {
  padding: 150px 0 100px;
}

.crm-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.crm-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(46, 92, 229, 0.12);
  border: 1px solid rgba(46, 92, 229, 0.20);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* ===========================
   CRM Contact Mockup
   =========================== */

.crm-hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.crm-contact-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

.crm-mock-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

.crm-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crm-mock-body {
  padding: 18px 16px;
  position: relative;
}

/* Contact Profile Header */
.crm-mock-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crm-mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crm-mock-name {
  font-size: 14px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
  line-height: 1.2;
}

.crm-mock-company {
  font-size: 10px;
  color: rgba(245, 243, 239, 0.4);
  margin-top: 1px;
}

.crm-mock-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.crm-mock-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crm-mock-tag-green {
  background: rgba(45, 159, 111, 0.15);
  color: #6EE7B7;
}

.crm-mock-tag-blue {
  background: rgba(46, 92, 229, 0.15);
  color: #93B5FF;
}

/* Stats Row */
.crm-mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.crm-mock-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.crm-mock-stat-primary {
  background: rgba(46, 92, 229, 0.08);
  border-color: rgba(46, 92, 229, 0.15);
}

.crm-mock-stat-value {
  font-size: 13px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.crm-mock-stat-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 2px;
}

/* Timeline */
.crm-mock-timeline-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 8px;
}

.crm-mock-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.crm-mock-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  padding-left: 12px;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-6px);
}

.crm-mock-tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  margin-left: -16px;
}

.crm-tl-dot-green { background: #34D399; }
.crm-tl-dot-blue { background: #60A5FA; }
.crm-tl-dot-purple { background: #A78BFA; }
.crm-tl-dot-amber { background: #F59E0B; }

.crm-mock-tl-text {
  font-size: 9px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.7);
  line-height: 1.3;
}

.crm-mock-tl-meta {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.25);
  margin-top: 1px;
}

/* Timeline entrance animations */
.crm-tl-anim-1 { animation: crmTlIn 0.35s ease 1.2s forwards; }
.crm-tl-anim-2 { animation: crmTlIn 0.35s ease 1.45s forwards; }
.crm-tl-anim-3 { animation: crmTlIn 0.35s ease 1.70s forwards; }
.crm-tl-anim-4 { animation: crmTlIn 0.35s ease 1.95s forwards; }
.crm-tl-anim-5 { animation: crmTlIn 0.35s ease 2.20s forwards; }

@keyframes crmTlIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Toast */
.crm-mock-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(45, 159, 111, 0.08);
  border: 1px solid rgba(45, 159, 111, 0.18);
  border-radius: 8px;
  opacity: 0;
  animation: toastSlideIn 0.5s ease 2.6s forwards;
}

.crm-mock-toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

.crm-mock-toast strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #A7F3D0;
}

.crm-mock-toast span {
  font-size: 8px;
  color: rgba(245, 243, 239, 0.4);
}

/* ===========================
   Duct Tape Problem Section
   =========================== */

.crm-problem {
  background: var(--color-bg);
  padding: 96px 0;
}

.crm-stack-visual {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.crm-stack-before,
.crm-stack-after {
  flex: 1;
}

.crm-stack-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.crm-stack-label-good {
  color: var(--color-success);
}

.crm-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.crm-tool-card {
  text-align: center;
  padding: 16px 10px;
  background: var(--color-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.crm-tool-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  background: rgba(217, 75, 75, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-error);
}

.crm-tool-icon svg {
  width: 16px;
  height: 16px;
}

.crm-tool-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-heading);
}

.crm-tool-what {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.crm-stack-problem-tag {
  font-size: 13px;
  color: var(--color-error);
  font-weight: 500;
  text-align: center;
}

.crm-stack-arrow {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.crm-stack-arrow svg {
  width: 28px;
  height: 28px;
}

/* Single Platform Card */
.crm-single-card {
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.06) 0%, rgba(45, 159, 111, 0.06) 100%);
  border: 1px solid rgba(46, 92, 229, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.crm-single-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.crm-single-logo span {
  color: var(--color-primary);
}

.crm-single-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.crm-single-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.crm-single-feat svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

.crm-single-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(45, 159, 111, 0.12);
}

/* ===========================
   Order Lifecycle Pipeline
   =========================== */

.crm-lifecycle {
  background: var(--color-bg-warm);
  padding: 96px 0;
}

.crm-pipeline-visual {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.crm-pipe-stage {
  text-align: center;
  flex-shrink: 0;
  min-width: 110px;
}

.crm-pipe-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto 8px;
}

.crm-pipe-dot-amber { background: #F59E0B; box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.crm-pipe-dot-purple { background: #A78BFA; box-shadow: 0 0 8px rgba(167, 139, 250, 0.3); }
.crm-pipe-dot-blue { background: #60A5FA; box-shadow: 0 0 8px rgba(96, 165, 250, 0.3); }
.crm-pipe-dot-green { background: #34D399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.3); }

.crm-pipe-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.crm-pipe-auto {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  font-style: italic;
}

.crm-pipe-connector {
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  background: rgba(30, 27, 24, 0.12);
  margin-top: 6px;
  border-radius: 1px;
}

.crm-pipe-connector-dashed {
  background: none;
  border-top: 2px dashed rgba(30, 27, 24, 0.15);
}

.crm-lifecycle-note {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 32px auto 0;
  line-height: 1.6;
}

/* ===========================
   Contact Intelligence
   =========================== */

.crm-intelligence {
  background: var(--color-bg);
  padding: 96px 0;
}

.crm-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.crm-intel-card {
  background: var(--color-surface-solid);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
}

.crm-intel-card:hover {
  border-color: rgba(46, 92, 229, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.crm-intel-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.crm-intel-value-no {
  color: var(--color-success);
}

.crm-intel-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.crm-intel-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===========================
   No Integrations / Sync
   =========================== */

.crm-no-integrations {
  background: var(--color-bg-warm);
  padding: 96px 0;
}

.crm-sync-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 48px;
}

.crm-sync-block {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
}

.crm-sync-deco {
  background: var(--color-surface-solid);
  border: var(--border-subtle);
}

.crm-sync-plus {
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.06) 0%, rgba(45, 159, 111, 0.06) 100%);
  border: 1px solid rgba(46, 92, 229, 0.15);
}

.crm-sync-block-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.crm-sync-block-icon svg {
  width: 22px;
  height: 22px;
}

.crm-sync-block-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.crm-sync-block-detail {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.crm-sync-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0 8px;
}

.crm-sync-arrow-line {
  width: 24px;
  height: 2px;
  background: rgba(46, 92, 229, 0.25);
  border-radius: 1px;
}

.crm-sync-arrow-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Sync Stats */
.crm-sync-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.crm-sync-stat {
  text-align: center;
}

.crm-sync-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}

.crm-sync-stat-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ===========================
   Trust Section (GHL)
   =========================== */

.crm-trust {
  background: var(--color-bg);
  padding: 96px 0;
}

.crm-trust-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 36px;
  background: linear-gradient(135deg, #1A1520 0%, #1E2235 50%, #172030 100%);
  border-radius: var(--radius-xl);
}

.crm-trust-card h3 {
  font-size: 22px;
  color: var(--color-text-on-dark);
  margin-bottom: 14px;
}

.crm-trust-card p {
  font-size: 15px;
  color: rgba(245, 243, 239, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

.crm-trust-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.crm-trust-features span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.45);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
}

/* ===========================
   CRM Page — Responsive
   =========================== */

@media (max-width: 900px) {
  .crm-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .crm-hero-mockup-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .crm-contact-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

  .crm-stack-visual {
    flex-direction: column;
    gap: 24px;
  }

  .crm-stack-arrow {
    transform: rotate(90deg);
  }

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

  .crm-sync-visual {
    flex-direction: column;
    gap: 16px;
  }

  .crm-sync-arrow {
    flex-direction: row;
    padding: 0;
  }

  .crm-sync-arrow-line {
    width: 2px;
    height: 20px;
  }
}

@media (max-width: 700px) {
  .crm-hero { padding: 130px 0 64px; }

  .crm-tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .crm-intel-grid {
    grid-template-columns: 1fr;
  }

  .crm-sync-stats {
    flex-direction: column;
    gap: 20px;
  }

  .crm-pipeline-visual {
    gap: 0;
    justify-content: flex-start;
  }

  .crm-pipe-stage {
    min-width: 90px;
  }

  .crm-trust-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .crm-hero-mockup-wrap {
    max-width: 100%;
  }

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

  .crm-mock-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .crm-trust-features {
    flex-direction: column;
    align-items: center;
  }
}

/* CRM — Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .crm-contact-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .crm-mock-shimmer { animation: none; background: none; }
  .crm-mock-tl-item { opacity: 1; transform: none; animation: none; }
  .crm-mock-toast { opacity: 1; animation: none; }
}


/* ===========================
   Homepage: Three Pillars
   =========================== */

.hp-pillars {
  background: var(--color-bg);
}

.hp-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hp-pillar-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  padding: 32px 24px;
  text-decoration: none;
  display: block;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hp-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(46, 92, 229, 0.2);
}

.hp-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

.hp-pillar-icon-blue {
  background: rgba(46, 92, 229, 0.10);
  color: var(--color-primary);
}

.hp-pillar-icon-green {
  background: rgba(72, 187, 120, 0.10);
  color: #48bb78;
}

.hp-pillar-icon-purple {
  background: rgba(128, 90, 213, 0.10);
  color: #805ad5;
}

.hp-pillar-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--color-heading);
}

.hp-pillar-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.hp-pillar-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}


/* ===========================
   Homepage: How It Works Teaser
   =========================== */

.hp-hiw-teaser {
  background: var(--color-bg);
}

.hp-hiw-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.hp-hiw-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.hp-hiw-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 92, 229, 0.08);
  border: 1px solid rgba(46, 92, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 auto 12px;
}

.hp-hiw-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.hp-hiw-step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.hp-hiw-arrow {
  flex-shrink: 0;
  width: 24px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}

.hp-hiw-arrow svg {
  width: 20px;
  height: 20px;
}

.hp-hiw-cta {
  text-align: center;
  margin-top: 36px;
}


/* ===========================
   Homepage: Pricing Teaser
   =========================== */

.hp-pricing-teaser {
  background: var(--color-bg-warm);
}

.hp-pricing-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-card-bg);
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 8px 32px rgba(46, 92, 229, 0.08);
}

.hp-pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #48bb78;
  background: rgba(72, 187, 120, 0.08);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.hp-pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 14px;
}

.hp-pricing-dollar {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  align-self: flex-start;
  margin-top: 4px;
}

.hp-pricing-amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hp-pricing-period {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

.hp-pricing-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hp-pricing-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hp-pricing-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.hp-pricing-link:hover {
  text-decoration: underline;
}


/* ===========================
   Homepage: Responsive Additions
   =========================== */

@media (max-width: 900px) {
  .hp-pillar-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .hp-hiw-steps {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .hp-hiw-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .hp-pricing-card {
    padding: 36px 24px;
  }

  .hp-pricing-amount {
    font-size: 44px;
  }
}

@media (max-width: 480px) {
  .hp-pillar-card {
    padding: 24px 20px;
  }
}


/* ===========================
   Revenue Intelligence Page
   =========================== */

.rev-hero {
  padding: 150px 0 100px;
}

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

.rev-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(46, 92, 229, 0.08);
  border: 1px solid rgba(46, 92, 229, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.rev-hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

/* Revenue Dashboard Mockup */
.rev-dashboard-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

.rev-mock-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

.rev-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rev-mock-body {
  padding: 14px 14px 16px;
  position: relative;
}

/* Revenue Stats Row */
.rev-mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.rev-mock-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 8px 8px;
  text-align: center;
}

.rev-mock-stat-primary {
  background: rgba(46, 92, 229, 0.08);
  border-color: rgba(46, 92, 229, 0.15);
}

.rev-mock-stat-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.35);
  margin-bottom: 3px;
}

.rev-mock-stat-value {
  font-size: 14px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.9);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rev-mock-stat-sub {
  font-size: 7px;
  color: rgba(245, 243, 239, 0.3);
  margin-top: 2px;
}

.rev-mock-sub-positive {
  color: rgba(72, 187, 120, 0.7);
}

.rev-mock-value-warn {
  color: rgba(237, 137, 54, 0.9);
}

/* Revenue Mini Chart */
.rev-mock-chart {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px 8px;
  margin-bottom: 12px;
}

.rev-mock-chart-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 8px;
}

.rev-mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.rev-mock-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(46, 92, 229, 0.4), rgba(46, 92, 229, 0.7));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  animation: revBarGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rev-mock-bar:nth-child(1)  { animation-delay: 0.9s; }
.rev-mock-bar:nth-child(2)  { animation-delay: 0.95s; }
.rev-mock-bar:nth-child(3)  { animation-delay: 1.0s; }
.rev-mock-bar:nth-child(4)  { animation-delay: 1.05s; }
.rev-mock-bar:nth-child(5)  { animation-delay: 1.1s; }
.rev-mock-bar:nth-child(6)  { animation-delay: 1.15s; }
.rev-mock-bar:nth-child(7)  { animation-delay: 1.2s; }
.rev-mock-bar:nth-child(8)  { animation-delay: 1.25s; }
.rev-mock-bar:nth-child(9)  { animation-delay: 1.3s; }
.rev-mock-bar:nth-child(10) { animation-delay: 1.35s; }
.rev-mock-bar:nth-child(11) { animation-delay: 1.4s; }
.rev-mock-bar:nth-child(12) { animation-delay: 1.45s; }

.rev-mock-bar-current {
  background: linear-gradient(to top, rgba(72, 187, 120, 0.5), rgba(72, 187, 120, 0.8));
}

@keyframes revBarGrow {
  from { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
  to   { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
}

/* Revenue Mini Table */
.rev-mock-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 10px 6px;
}

.rev-mock-table-header {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 6px;
}

.rev-mock-table table {
  width: 100%;
  border-collapse: collapse;
}

.rev-mock-table th {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.25);
  text-align: left;
  padding: 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rev-mock-table td {
  font-size: 10px;
  color: rgba(245, 243, 239, 0.7);
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rev-mock-cell-id {
  font-weight: 700;
  color: rgba(46, 92, 229, 0.8);
}

.rev-mock-cell-margin-pos {
  color: rgba(72, 187, 120, 0.9);
  font-weight: 700;
}

.rev-mock-cell-margin-warn {
  color: rgba(237, 137, 54, 0.9);
  font-weight: 700;
}

.rev-mock-row {
  opacity: 0;
  animation: revRowFade 0.4s ease forwards;
}

.rev-row-1 { animation-delay: 1.5s; }
.rev-row-2 { animation-delay: 1.7s; }
.rev-row-3 { animation-delay: 1.9s; }

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


/* =========================
   Revenue: Blind Spot
   ========================= */

.rev-blindspot {
  background: var(--color-bg);
  padding: 80px 0;
}

.rev-blindspot-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.04), rgba(229, 148, 58, 0.03));
  border: 1px solid rgba(46, 92, 229, 0.10);
  border-radius: 16px;
  padding: 56px 48px;
}

.rev-blindspot-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.rev-blindspot-card p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}


/* =========================
   Revenue: Stat Grid
   ========================= */

.rev-stats-section {
  background: var(--color-bg-alt);
}

.rev-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.rev-stat-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}

.rev-stat-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.rev-stat-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.rev-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.rev-stat-icon svg {
  width: 22px;
  height: 22px;
}

.rev-stat-icon-blue {
  background: rgba(46, 92, 229, 0.10);
  color: var(--color-primary);
}

.rev-stat-icon-green {
  background: rgba(72, 187, 120, 0.10);
  color: #48bb78;
}

.rev-stat-icon-purple {
  background: rgba(128, 90, 213, 0.10);
  color: #805ad5;
}

.rev-stat-icon-amber {
  background: rgba(237, 137, 54, 0.10);
  color: #ed8936;
}


/* =========================
   Revenue: Per-Job Table
   ========================= */

.rev-perjob {
  background: var(--color-bg);
}

.rev-table-mockup {
  max-width: 840px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.rev-demo-table {
  width: 100%;
  border-collapse: collapse;
}

.rev-demo-table thead {
  background: var(--color-bg-alt);
}

.rev-demo-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  text-align: left;
}

.rev-demo-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-card-border);
}

.rev-demo-table tbody tr:last-child td {
  border-bottom: none;
}

.rev-demo-id {
  font-weight: 700;
  color: var(--color-primary);
}

.rev-demo-margin {
  font-weight: 700;
  font-size: 14px;
}

.rev-demo-margin small {
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.6;
}

.rev-demo-margin-good {
  color: #48bb78;
}

.rev-demo-margin-ok {
  color: #ed8936;
}

.rev-demo-margin-low {
  color: #e53e3e;
}

.rev-demo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.rev-demo-badge-green {
  background: rgba(72, 187, 120, 0.10);
  color: #48bb78;
}

.rev-demo-badge-blue {
  background: rgba(46, 92, 229, 0.10);
  color: var(--color-primary);
}

.rev-demo-badge-amber {
  background: rgba(237, 137, 54, 0.10);
  color: #ed8936;
}

.rev-table-note {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  border-top: 1px solid var(--color-card-border);
  text-align: center;
}


/* =========================
   Revenue: Trends Section
   ========================= */

.rev-trends {
  background: var(--color-bg-alt);
}

.rev-trend-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.rev-trend-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.rev-trend-legend-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rev-trend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.rev-trend-dot-blue {
  background: var(--color-primary);
}

.rev-trend-dot-amber {
  background: #ed8936;
}

.rev-trend-dot-green {
  background: #48bb78;
}

.rev-trend-chart-area {
  position: relative;
}

.rev-trend-bars {
  display: flex;
  gap: 12px;
  height: 160px;
  align-items: flex-end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-card-border);
}

.rev-trend-bar-group {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 100%;
}

.rev-trend-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rev-trend-bar-revenue {
  background: linear-gradient(to top, rgba(46, 92, 229, 0.3), rgba(46, 92, 229, 0.7));
}

.rev-trend-bar-cost {
  background: linear-gradient(to top, rgba(237, 137, 54, 0.3), rgba(237, 137, 54, 0.6));
}

.rev-trend-x-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
}

.rev-trend-x-labels span {
  font-size: 10px;
  color: var(--color-text-tertiary);
  font-weight: 500;
}


/* =========================
   Revenue: Top Customers
   ========================= */

.rev-customers {
  background: var(--color-bg);
}

.rev-customer-grid {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rev-customer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.rev-customer-1 {
  border-left: 3px solid var(--color-primary);
}

.rev-customer-2 {
  border-left: 3px solid #805ad5;
}

.rev-customer-3 {
  border-left: 3px solid #48bb78;
}

.rev-customer-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.rev-customer-1 .rev-customer-rank {
  background: rgba(46, 92, 229, 0.10);
  color: var(--color-primary);
}

.rev-customer-info {
  flex: 1;
}

.rev-customer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
}

.rev-customer-detail {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.rev-customer-revenue {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}


/* =========================
   Revenue: Transparency
   ========================= */

.rev-transparency {
  background: var(--color-bg-alt);
}

.rev-transparency-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.rev-transparency-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(46, 92, 229, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.rev-transparency-icon svg {
  width: 26px;
  height: 26px;
}

.rev-transparency-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.rev-transparency-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}


/* =========================
   Revenue: Responsive
   ========================= */

@media (max-width: 900px) {
  .rev-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rev-hero-mockup-wrap {
    max-width: 440px;
    margin: 0 auto;
  }

  .rev-dashboard-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

  .rev-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rev-trend-bars {
    height: 120px;
  }
}

@media (max-width: 700px) {
  .rev-hero { padding: 130px 0 64px; }

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

  .rev-demo-table th,
  .rev-demo-table td {
    padding: 12px 10px;
    font-size: 12px;
  }

  .rev-demo-table th:last-child,
  .rev-demo-table td:last-child {
    display: none;
  }

  .rev-trend-bars {
    gap: 6px;
  }

  .rev-trend-x-labels span {
    font-size: 8px;
  }

  .rev-blindspot-card {
    padding: 40px 28px;
  }
}

@media (max-width: 480px) {
  .rev-hero-mockup-wrap {
    max-width: 100%;
  }

  .rev-mock-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rev-stat-grid {
    grid-template-columns: 1fr;
  }

  .rev-customer-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .rev-customer-revenue {
    font-size: 15px;
  }

  .rev-trend-card {
    padding: 20px 16px;
  }

  .rev-trend-legend {
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* Revenue: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .rev-dashboard-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .rev-mock-shimmer { animation: none; background: none; }
  .rev-mock-bar { opacity: 1; animation: none; }
  .rev-mock-row { opacity: 1; animation: none; }
}


/* ===========================
   Pricing Page
   =========================== */

.pri-hero {
  padding: 150px 0 100px;
}

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

.pri-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #48bb78;
  background: rgba(72, 187, 120, 0.08);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.pri-hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

/* "What You're Replacing" Stack Mockup */
.pri-stack-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  padding: 20px 18px;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

.pri-mock-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

/* Old tools stack */
.pri-stack-old {
  margin-bottom: 16px;
}

.pri-stack-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.3);
  margin-bottom: 8px;
}

.pri-old-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  opacity: 0;
  animation: priOldFade 0.4s ease forwards;
}

.pri-old-1 { animation-delay: 0.6s; }
.pri-old-2 { animation-delay: 0.8s; }
.pri-old-3 { animation-delay: 1.0s; }
.pri-old-4 { animation-delay: 1.2s; }
.pri-old-5 { animation-delay: 1.4s; }
.pri-old-6 { animation-delay: 1.6s; }
.pri-old-7 { animation-delay: 1.8s; }
.pri-old-8 { animation-delay: 2.0s; }

@keyframes priOldFade {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pri-old-name {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.5);
  font-weight: 500;
}

.pri-old-cost {
  font-size: 11px;
  font-weight: 700;
  color: rgba(237, 137, 54, 0.8);
}

.pri-old-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-top: 6px;
  background: rgba(229, 62, 62, 0.06);
  border: 1px solid rgba(229, 62, 62, 0.12);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  animation: priOldFade 0.4s ease forwards;
}

.pri-old-total span:first-child {
  color: rgba(245, 243, 239, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 8px;
}

.pri-old-total span:last-child {
  color: rgba(229, 62, 62, 0.9);
  font-size: 12px;
}

/* New DecoPlus card */
.pri-stack-new {
  position: relative;
}

.pri-new-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(72, 187, 120, 0.6);
  margin-bottom: 8px;
}

.pri-new-entrance {
  opacity: 0;
  animation: priNewSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards;
}

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

.pri-new-card {
  background: rgba(46, 92, 229, 0.06);
  border: 1px solid rgba(46, 92, 229, 0.18);
  border-radius: 8px;
  padding: 14px 12px;
}

.pri-new-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(46, 92, 229, 0.8);
  margin-bottom: 4px;
}

.pri-new-price {
  font-size: 28px;
  font-weight: 800;
  color: rgba(245, 243, 239, 0.95);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.pri-new-dollar {
  font-size: 16px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 1px;
  color: rgba(245, 243, 239, 0.5);
}

.pri-new-period {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.35);
}

.pri-new-includes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pri-new-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.6);
}

.pri-new-check svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #48bb78;
}


/* =========================
   Pricing: Main Card
   ========================= */

.pri-card-section {
  background: var(--color-bg);
  padding: 80px 0 96px;
}

.pri-main-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  padding: 0;
  box-shadow:
    0 8px 32px rgba(46, 92, 229, 0.08),
    0 0 0 1px rgba(46, 92, 229, 0.04);
  overflow: hidden;
}

.pri-card-header {
  text-align: center;
  padding: 40px 40px 32px;
  background: linear-gradient(135deg, rgba(46, 92, 229, 0.04), rgba(46, 92, 229, 0.01));
  border-bottom: 1px solid var(--color-card-border);
}

.pri-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #48bb78;
  background: rgba(72, 187, 120, 0.08);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.pri-card-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.pri-card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.pri-card-dollar {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-tertiary);
  align-self: flex-start;
  margin-top: 4px;
}

.pri-card-amount {
  font-size: 64px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pri-card-period {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  margin-left: 2px;
}

.pri-card-trial {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* Feature pillars */
.pri-card-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--color-card-border);
}

.pri-card-pillar {
  padding: 28px 24px;
  border-right: 1px solid var(--color-card-border);
}

.pri-card-pillar:last-child {
  border-right: none;
}

.pri-card-pillar h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.pri-card-pillar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pri-card-pillar li {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.pri-card-pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(72, 187, 120, 0.3);
  border: 1.5px solid #48bb78;
}

/* No hidden fees */
.pri-card-nohidden {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.pri-nohidden-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.pri-nohidden-item svg {
  width: 14px;
  height: 14px;
  color: #48bb78;
  flex-shrink: 0;
}

/* Card CTA */
.pri-card-cta {
  display: block;
  margin: 0 24px 24px;
  text-align: center;
  font-size: 16px;
}


/* =========================
   Pricing: ROI Section
   ========================= */

.pri-roi {
  background: var(--color-bg-alt);
}

.pri-roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.pri-roi-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.pri-roi-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pri-roi-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.pri-roi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.pri-roi-icon svg {
  width: 22px;
  height: 22px;
}

.pri-roi-icon-amber {
  background: rgba(237, 137, 54, 0.10);
  color: #ed8936;
}

.pri-roi-icon-red {
  background: rgba(229, 62, 62, 0.10);
  color: #e53e3e;
}

.pri-roi-icon-green {
  background: rgba(72, 187, 120, 0.10);
  color: #48bb78;
}

.pri-roi-value {
  font-size: 28px;
  font-weight: 800;
  color: #e53e3e;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pri-roi-value-positive {
  color: #48bb78;
}

.pri-roi-bottom {
  text-align: center;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-top: 36px;
}

.pri-roi-bottom strong {
  color: var(--color-heading);
}


/* =========================
   Pricing: Services
   ========================= */

.pri-services {
  background: var(--color-bg);
}

.pri-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pri-service-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pri-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pri-service-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.pri-service-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pri-service-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.pri-service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 4px 10px;
}


/* =========================
   Pricing: Responsive
   ========================= */

@media (max-width: 900px) {
  .pri-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pri-hero-mockup-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

  .pri-stack-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

  .pri-card-features {
    grid-template-columns: 1fr;
  }

  .pri-card-pillar {
    border-right: none;
    border-bottom: 1px solid var(--color-card-border);
    padding: 22px 28px;
  }

  .pri-card-pillar:last-child {
    border-bottom: none;
  }

  .pri-roi-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pri-services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .pri-hero { padding: 130px 0 64px; }

  .pri-card-header {
    padding: 32px 24px 24px;
  }

  .pri-card-amount {
    font-size: 52px;
  }

  .pri-card-nohidden {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pri-hero-mockup-wrap {
    max-width: 100%;
  }

  .pri-card-pillar {
    padding: 18px 20px;
  }

  .pri-service-price {
    font-size: 26px;
  }
}


/* Pricing: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .pri-stack-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .pri-mock-shimmer { animation: none; background: none; }
  .pri-old-item, .pri-old-total { opacity: 1; animation: none; }
  .pri-new-entrance { opacity: 1; animation: none; }
}


/* ===========================
   How It Works Page
   =========================== */

.hiw-hero {
  padding: 150px 0 100px;
}

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

.hiw-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(46, 92, 229, 0.08);
  border: 1px solid rgba(46, 92, 229, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hiw-hero-mockup-wrap {
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

/* Timeline Mockup */
.hiw-timeline-mockup {
  background: #13111a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 80px rgba(46, 92, 229, 0.06);
  overflow: hidden;
  position: relative;
  transform: rotateY(-4deg) rotateX(2deg);
  animation: heroMockupEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroMockupFloat 6s ease-in-out 1s infinite;
  opacity: 0;
}

.hiw-mock-shimmer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out 1.5s infinite;
}

.hiw-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-mock-body {
  padding: 20px 18px 24px;
}

/* Timeline */
.hiw-tl {
  position: relative;
  padding-left: 24px;
}

.hiw-tl-line {
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.hiw-tl-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, rgba(72, 187, 120, 0.5), rgba(46, 92, 229, 0.5));
  border-radius: 1px;
  animation: hiwLineFill 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes hiwLineFill {
  from { height: 0%; }
  to   { height: 100%; }
}

.hiw-tl-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
  opacity: 0;
  animation: hiwStepFade 0.4s ease forwards;
}

.hiw-tl-1 { animation-delay: 0.7s; }
.hiw-tl-2 { animation-delay: 1.1s; }
.hiw-tl-3 { animation-delay: 1.5s; }
.hiw-tl-4 { animation-delay: 1.9s; }
.hiw-tl-5 { animation-delay: 2.3s; }

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

.hiw-tl-dot {
  position: absolute;
  left: -24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
}

.hiw-tl-dot-done {
  background: rgba(72, 187, 120, 0.3);
  border: 2px solid #48bb78;
}

.hiw-tl-dot-active {
  background: rgba(46, 92, 229, 0.3);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 8px rgba(46, 92, 229, 0.4);
}

.hiw-tl-content {
  flex: 1;
}

.hiw-tl-time {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Inter', monospace;
  color: rgba(245, 243, 239, 0.35);
  letter-spacing: 0.02em;
}

.hiw-tl-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 243, 239, 0.8);
}

.hiw-tl-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #48bb78;
}

.hiw-tl-check svg {
  width: 100%;
  height: 100%;
}

.hiw-tl-step-highlight .hiw-tl-label {
  color: rgba(245, 243, 239, 0.95);
  font-weight: 700;
}

.hiw-tl-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 92, 229, 0.2);
  flex-shrink: 0;
  animation: hiwPulse 2s ease-in-out 2.6s infinite;
}

@keyframes hiwPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.5); opacity: 0; }
}


/* =========================
   HIW: Steps
   ========================= */

.hiw-step {
  padding: 80px 0;
}

.hiw-step-odd {
  background: var(--color-bg);
}

.hiw-step-even {
  background: var(--color-bg-alt);
}

.hiw-step-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hiw-step-inner-reverse {
  grid-template-columns: 1.1fr 1fr;
}

.hiw-step-inner-reverse .hiw-step-text {
  order: 2;
}

.hiw-step-inner-reverse .hiw-step-mockup {
  order: 1;
}

.hiw-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 92, 229, 0.08);
  border: 1px solid rgba(46, 92, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hiw-step-text h2 {
  text-align: left;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.hiw-step-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.hiw-step-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.hiw-step-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(72, 187, 120, 0.04);
  border: 1px solid rgba(72, 187, 120, 0.10);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #48bb78;
}

.hiw-step-trust svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* =========================
   HIW: Connect Mockup
   ========================= */

.hiw-connect-mock, .hiw-sync-mock, .hiw-launch-mock {
  background: #13111a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hiw-connect-chrome, .hiw-sync-chrome, .hiw-launch-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hiw-connect-body {
  padding: 18px 16px;
}

.hiw-connect-title, .hiw-sync-title, .hiw-launch-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.8);
  margin-bottom: 14px;
}

.hiw-connect-field {
  margin-bottom: 10px;
}

.hiw-connect-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 243, 239, 0.35);
  margin-bottom: 4px;
}

.hiw-connect-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: rgba(245, 243, 239, 0.7);
  display: flex;
  align-items: center;
}

.hiw-connect-typed {
  color: rgba(245, 243, 239, 0.8);
}

.hiw-connect-cursor {
  width: 1px;
  height: 14px;
  background: var(--color-primary);
  margin-left: 1px;
  animation: hiwBlink 1s step-end infinite;
}

@keyframes hiwBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hiw-connect-filled {
  color: rgba(245, 243, 239, 0.5);
}

.hiw-connect-btn {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 12px;
  cursor: default;
}

.hiw-connect-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(72, 187, 120, 0.06);
  border: 1px solid rgba(72, 187, 120, 0.15);
  border-radius: 8px;
  opacity: 0;
  animation: hiwPreviewIn 0.5s ease 1.0s forwards;
}

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

.hiw-connect-preview svg {
  width: 20px;
  height: 20px;
  color: #48bb78;
  flex-shrink: 0;
}

.hiw-connect-preview strong {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.85);
  display: block;
}

.hiw-connect-preview span {
  font-size: 10px;
  color: rgba(245, 243, 239, 0.45);
}


/* =========================
   HIW: Sync Mockup
   ========================= */

.hiw-sync-body {
  padding: 20px 16px;
  text-align: center;
}

.hiw-sync-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  color: var(--color-primary);
  animation: hiwSpin 2s linear infinite;
}

.hiw-sync-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes hiwSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hiw-sync-bar-wrap {
  max-width: 260px;
  margin: 10px auto;
}

.hiw-sync-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.hiw-sync-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #48bb78);
  border-radius: 3px;
  animation: hiwBarFill 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes hiwBarFill {
  from { width: 0%; }
  to   { width: 85%; }
}

.hiw-sync-count {
  font-size: 11px;
  color: rgba(245, 243, 239, 0.45);
  margin-top: 6px;
  margin-bottom: 14px;
}

.hiw-sync-count-num {
  font-weight: 700;
  color: rgba(245, 243, 239, 0.8);
}

.hiw-sync-items {
  text-align: left;
}

.hiw-sync-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
  font-size: 10px;
  color: rgba(245, 243, 239, 0.55);
  opacity: 0;
  animation: hiwItemIn 0.3s ease forwards;
}

.hiw-sync-item-1 { animation-delay: 1.0s; }
.hiw-sync-item-2 { animation-delay: 1.4s; }
.hiw-sync-item-3 { animation-delay: 1.8s; }
.hiw-sync-item-4 { animation-delay: 2.2s; }

@keyframes hiwItemIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hiw-sync-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48bb78;
  flex-shrink: 0;
}


/* =========================
   HIW: Launch Mockup
   ========================= */

.hiw-launch-body {
  padding: 16px 14px;
}

.hiw-launch-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  opacity: 0;
  animation: hiwCardIn 0.4s ease forwards;
}

.hiw-launch-card-1 { animation-delay: 0.4s; }
.hiw-launch-card-2 { animation-delay: 0.6s; }
.hiw-launch-card-3 { animation-delay: 0.8s; }
.hiw-launch-card-4 { animation-delay: 1.0s; }

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

.hiw-launch-card-info {
  flex: 1;
}

.hiw-launch-card-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(245, 243, 239, 0.8);
}

.hiw-launch-card-desc {
  font-size: 9px;
  color: rgba(245, 243, 239, 0.35);
  margin-top: 1px;
}

.hiw-launch-toggle {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.hiw-launch-toggle-on {
  background: rgba(72, 187, 120, 0.5);
}

.hiw-launch-toggle-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.hiw-launch-toggle-on .hiw-launch-toggle-knob {
  transform: translateX(14px);
}

.hiw-launch-more {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(46, 92, 229, 0.7);
  margin-top: 10px;
  padding: 6px;
}


/* =========================
   HIW: What You Don't Have To Do
   ========================= */

.hiw-dont {
  background: var(--color-bg-alt);
  padding: 80px 0;
}

.hiw-dont-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.hiw-dont-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}

.hiw-dont-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.hiw-dont-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.hiw-dont-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(229, 62, 62, 0.03);
  border: 1px solid rgba(229, 62, 62, 0.08);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.hiw-dont-item svg {
  width: 18px;
  height: 18px;
  color: rgba(229, 62, 62, 0.5);
  flex-shrink: 0;
}


/* =========================
   HIW: After Setup
   ========================= */

.hiw-after {
  background: var(--color-bg);
}

.hiw-after-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.hiw-after-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.hiw-after-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hiw-after-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hiw-after-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.hiw-after-icon svg {
  width: 22px;
  height: 22px;
}

.hiw-after-icon-blue {
  background: rgba(46, 92, 229, 0.10);
  color: var(--color-primary);
}

.hiw-after-icon-green {
  background: rgba(72, 187, 120, 0.10);
  color: #48bb78;
}

.hiw-after-icon-purple {
  background: rgba(128, 90, 213, 0.10);
  color: #805ad5;
}


/* =========================
   HIW: Responsive
   ========================= */

@media (max-width: 900px) {
  .hiw-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hiw-hero-mockup-wrap {
    max-width: 380px;
    margin: 0 auto;
  }

  .hiw-timeline-mockup {
    transform: rotateY(0) rotateX(2deg);
  }

  .hiw-step-inner,
  .hiw-step-inner-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hiw-step-inner-reverse .hiw-step-text { order: 1; }
  .hiw-step-inner-reverse .hiw-step-mockup { order: 2; }

  .hiw-step-text h2 {
    text-align: center;
  }

  .hiw-step-num {
    margin: 0 auto 16px;
  }

  .hiw-step-text {
    text-align: center;
  }

  .hiw-step-trust {
    justify-content: center;
  }

  .hiw-step-mockup {
    max-width: 400px;
    margin: 0 auto;
  }

  .hiw-after-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 700px) {
  .hiw-hero { padding: 130px 0 64px; }

  .hiw-dont-card {
    padding: 36px 24px;
  }

  .hiw-dont-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hiw-hero-mockup-wrap {
    max-width: 100%;
  }
}


/* HIW: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hiw-timeline-mockup {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hiw-mock-shimmer { animation: none; background: none; }
  .hiw-tl-step { opacity: 1; animation: none; }
  .hiw-tl-line::after { animation: none; height: 100%; }
  .hiw-tl-pulse { animation: none; }
  .hiw-sync-icon { animation: none; }
  .hiw-sync-bar-fill { animation: none; width: 85%; }
  .hiw-sync-item { opacity: 1; animation: none; }
  .hiw-launch-card { opacity: 1; animation: none; }
  .hiw-connect-preview { opacity: 1; animation: none; }
  .hiw-connect-cursor { animation: none; }
}
