/* BizPilot Premium CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Font Families */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Calm Dark Theme Variables (Dashboard & Core Default) */
  --bg-app: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #0f172a;
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.15);
  
  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.15);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --info: #3b82f6;

  /* Custom Transitions & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.4);
}

/* Warm Light Theme variables for Customer QR Flow */
.theme-customer {
  --bg-app: #fafaf9;
  --bg-card: #ffffff;
  --bg-input: #f5f5f4;
  --border-color: #e7e5e4;
  --text-main: #1c1917;
  --text-muted: #78716c;
  
  --primary: #0d9488; /* Sage Teal */
  --primary-hover: #0f766e;
  --primary-light: rgba(13, 148, 136, 0.1);
  --focus-ring: 0 0 0 3px rgba(13, 148, 136, 0.3);
}

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

body, h1, h2, h3, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Container Utility */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Focus indicator */
*:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

/* Base Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.925rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: 0.5rem;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.btn-primary:disabled {
  background-color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: var(--bg-input);
}

.btn-danger {
  background-color: var(--error);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover {
  color: var(--primary-hover);
}

/* Inputs and Forms */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin-top: 0.5rem;
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  accent-color: var(--primary);
  margin-top: 0.2rem;
}

.form-error {
  color: var(--error);
  font-size: 0.825rem;
  margin-top: 0.35rem;
}

.form-input.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px var(--error-light) !important;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Loader, Spinners and Status screens */
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.status-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.status-screen h3 {
  margin: 1rem 0 0.5rem 0;
}

.status-screen p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-draft { background-color: var(--border-color); color: var(--text-main); }
.badge-scheduled { background-color: var(--info); color: white; }
.badge-active { background-color: var(--success); color: white; }
.badge-paused { background-color: var(--warning); color: white; }
.badge-cancelled { background-color: var(--error); color: white; }
.badge-expired { background-color: #4b5563; color: white; }
.badge-redeemed { background-color: #10b981; color: white; }

/* Custom Rating Controls */
.rating-group-container {
  margin-bottom: 1.5rem;
}

.rating-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 320px;
}

.rating-btn {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.rating-btn:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.rating-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* Layout Elements - Dashboard Wrapper */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar styling */
.sidebar {
  background-color: #0b0f19;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  color: #ffffff;
  background-color: #1e293b;
}

.nav-item.active {
  border-left: 3px solid var(--primary);
  padding-left: calc(0.85rem - 3px);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.staff-info {
  display: flex;
  flex-direction: column;
}

.staff-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.staff-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
}

.dashboard-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.period-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background-color: var(--bg-card);
}

.period-btn,
.rating-focus-btn {
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-btn:hover,
.rating-focus-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.period-btn.active,
.rating-focus-btn.active {
  background-color: var(--primary);
  color: #ffffff;
}

.featured-rating-card {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
}

.featured-rating-eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.featured-rating-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.featured-rating-copy p {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 1rem;
}

.rating-focus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.featured-rating-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.featured-rating-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.95;
}

.featured-rating-max {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.featured-rating-bar {
  width: 100%;
  height: 10px;
  margin-top: 1rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.featured-rating-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* KPI Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.kpi-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.kpi-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Client & Visit Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  padding: 1rem 1.25rem;
  background-color: rgba(0,0,0,0.15);
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  vertical-align: middle;
}

.data-table tr:hover td {
  color: var(--text-main);
  background-color: rgba(255,255,255,0.015);
}

.rating-star-span {
  color: var(--warning);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Compact Client Card Views for Mobile Screens */
.mobile-card-list {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mobile-client-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.mobile-client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.mobile-client-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-client-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  font-size: 0.825rem;
  margin-bottom: 0.75rem;
}

/* Client History Timeline */
.timeline {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.75rem + 1px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--bg-app);
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-ratings {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
  flex-wrap: wrap;
}

/* Campaign Wizard Stepper styling */
.wizard-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  overflow-x: auto;
  gap: 0.5rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 80px;
  position: relative;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.step-label {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.step-indicator.active .step-num {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.step-indicator.active .step-label {
  color: var(--text-main);
  font-weight: 600;
}

.step-indicator.completed .step-num {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.step-indicator.completed .step-label {
  color: var(--text-main);
}

.wizard-content {
  min-height: 250px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

/* Coupon Campaign customer select table wrapper */
.campaign-customer-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 250px;
  overflow-y: auto;
  margin-top: 0.5rem;
}

/* Switch & toggle controls */
.mutual-exclusive-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.excl-option {
  background-color: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.excl-option:hover {
  border-color: var(--primary);
}

.excl-option.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.live-example {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--success);
  font-size: 1.1rem;
  display: inline-block;
}

.theme-customer .live-example {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Menu Builder services lists */
.menu-category-section {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-card);
}

.menu-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.menu-item-row:last-child {
  border-bottom: none;
}

/* Live Preview Mock Devices */
.preview-pane-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.preview-device {
  border: 12px solid #334155;
  border-radius: 36px;
  background-color: #fafaf9;
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  position: sticky;
  top: 1rem;
}

.preview-device-screen {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  color: #1c1917;
  font-family: var(--font-sans);
}

.preview-device-header {
  height: 24px;
  background-color: #334155;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-device-notch {
  width: 110px;
  height: 14px;
  background-color: #0f172a;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Custom Success/Submit pages */
.success-actions-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.action-btn-external {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.action-btn-external::after {
  content: '↗';
  font-size: 0.85em;
  margin-left: 0.5rem;
}

/* Form Consent Box styling */
.consent-box-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background-color: var(--bg-input);
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.consent-box-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

/* Low rating alerts grid */
.alerts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--error);
  background-color: var(--error-light);
  color: var(--text-main);
  font-size: 0.875rem;
}

/* Modal Drawer container */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.drawer-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  padding-top: calc(2rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 550px;
  max-height: 90dvh;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25);
  animation: slideUp 0.2s ease-out;
}

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

/* Marketing Page Helper Layout Classes */
.hero-buttons-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mkt-cta-buttons-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.founder-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

/* Responsive Grid Utilities */
.grid-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-split-3-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}
.grid-split-2-3 {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}
.grid-split-large {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}
.coupon-redemption-row {
  display: flex;
  gap: 0.5rem;
}
.mockup-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-split-2, .grid-split-3-2, .grid-split-2-3, .grid-split-large {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 80px 1fr;
  }
  .sidebar-logo span, .nav-item span {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
  }
  .nav-item {
    justify-content: center;
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sidebar-logo {
    margin-bottom: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }
  .nav-item {
    padding: 0.5rem 0.75rem;
  }
  .nav-item.active {
    border-left: none;
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
  }
  .sidebar-footer {
    display: none;
  }
  
  /* Tables hide on mobile ONLY if they have a card fallback */
  .table-container.table-has-fallback {
    display: none;
  }
  .table-container {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-card-list {
    display: flex;
  }

  .main-content {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 1.25rem !important;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .lead-stage-select {
    font-size: 16px !important;
    padding: 0.5rem !important;
    width: 140px !important;
  }
  
  /* Preview panel adjustments */
  .preview-pane-container {
    grid-template-columns: 1fr;
  }
  .preview-device {
    display: none; /* Hide device frames on smaller layouts to save space */
  }
  
  .mutual-exclusive-row {
    grid-template-columns: 1fr;
  }

  .featured-rating-card {
    grid-template-columns: 1fr;
  }

  /* Mobile Spacing System */
  .feature-section {
    padding: 3rem 1.25rem !important;
  }
  .section-title-wrapper {
    margin-bottom: 2rem !important;
  }
  .legal-container {
    padding: 3rem 1.25rem !important;
  }

  /* Mobile Typography Tokens */
  .hero-content h1 {
    font-size: 2.25rem !important; /* 36px */
    line-height: 1.2 !important;
  }
  .legal-container h1 {
    font-size: 2rem !important; /* 32px */
    line-height: 1.25 !important;
  }
  .mkt-cta-banner h2 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.3 !important;
  }
  .section-title-wrapper h2 {
    font-size: 1.75rem !important; /* 28px */
    line-height: 1.3 !important;
  }
  .card h3, 
  .feature-card h3,
  .process-step h3 {
    font-size: 1.25rem !important; /* 20px */
  }
  body, p, li, 
  .feature-card p, 
  .legal-content p, 
  .legal-content ul {
    font-size: 1rem !important; /* 16px */
    line-height: 1.5 !important;
  }
  small, 
  .text-muted, 
  .mkt-footer-bottom {
    font-size: 0.875rem !important; /* 14px */
  }

  /* Feature and Legal Card Padding Overrides */
  .legal-container .card, 
  .feature-section .card,
  .feature-card {
    padding: 1.25rem !important;
  }
  .legal-container .card ul {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding-left: 1.15rem !important;
  }
  .legal-container .card li {
    margin-bottom: 0.5rem !important;
  }

  /* Industry Segment Mobile Adjustments */
  .industry-cards-container {
    gap: 1.25rem !important;
  }
  .industry-card {
    padding: 1.15rem !important;
  }
  .industry-card-title {
    margin-bottom: 0.35rem !important;
  }
  .industry-card-challenge {
    margin-bottom: 0.35rem !important;
  }

  /* Mockup Visualizer Mobile Presentation scale */
  .mockup-grid {
    grid-template-columns: 1fr 1.2fr !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }
  .mockup-grid .card {
    padding: 0.6rem !important;
    border-radius: var(--radius-sm) !important;
  }
  .mockup-grid .alert-item {
    margin-top: 0.4rem !important;
    padding: 0.25rem !important;
    font-size: 0.55rem !important;
  }
  .mockup-grid div[style*="width:70px"] {
    width: 45px !important;
    height: 45px !important;
    font-size: 0.6rem !important;
    margin: 0.25rem auto !important;
  }
  .mockup-grid div, 
  .mockup-grid span {
    font-size: 0.65rem !important;
  }

  /* Header Mobile Compact Controls */
  .mkt-header {
    height: calc(60px + env(safe-area-inset-top, 0px)) !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-left: calc(1rem + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(1rem + env(safe-area-inset-right, 0px)) !important;
  }
  .mkt-header-actions {
    gap: 0.5rem !important;
  }
  .mkt-header-actions .mkt-trial-btn {
    display: none !important;
  }
  .mkt-mobile-toggle, .mobile-menu-toggle {
    display: flex !important;
  }

  /* Footer Spacing Adjustments */
  .mkt-footer {
    padding: 3rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.25rem !important;
  }
  .mkt-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .rating-buttons {
    max-width: 100%;
  }
  .btn {
    width: 100%;
  }

  .hero-buttons-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-buttons-container .btn {
    width: 100%;
  }
  
  .mkt-cta-buttons-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .mkt-cta-buttons-container .btn {
    width: 100%;
  }

  .period-selector {
    width: 100%;
    justify-content: space-between;
  }

  .period-btn,
  .rating-focus-btn {
    flex: 1 1 0;
    text-align: center;
    padding-inline: 0.6rem;
  }

  .coupon-redemption-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .coupon-redemption-row input {
    font-size: 1.25rem !important;
    text-align: center;
  }
  .coupon-redemption-row button {
    width: 100%;
    padding: 0.75rem !important;
  }
}

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

/* ==========================================================================
   Admin Operations Portal Design System
   ========================================================================== */

.theme-admin {
  --bg-app: #090d16;
  --bg-card: #121824;
  --bg-input: #090d16;
  --border-color: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  --primary: #3b82f6; /* SaaS Blue */
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.12);
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.theme-admin body {
  background-color: var(--bg-app);
  color: var(--text-main);
}

/* Sidebar nav group sectioning labels */
.nav-group-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.08em;
  margin: 1rem 0.85rem 0.35rem 0.85rem;
  user-select: none;
}

/* CAPTCHA validation element styles */
.captcha-box-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.captcha-box {
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.25em;
  color: #f59e0b;
  user-select: none;
  font-style: italic;
  text-decoration: line-through;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

/* Lead Pipeline Kanban Board Columns */
.pipeline-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  align-items: flex-start;
}

.pipeline-column {
  flex: 1;
  min-width: 280px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.pipeline-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.pipeline-column-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pipeline-column-count {
  font-size: 0.75rem;
  background-color: var(--bg-input);
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
}

.pipeline-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pipeline-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Onboarding Checklist progress styling */
.onboarding-checklist-card {
  margin-bottom: 1rem;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.onboarding-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.onboarding-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.onboarding-item.completed {
  color: var(--text-main);
  text-decoration: line-through;
}

.onboarding-item.completed::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.onboarding-item.pending::before {
  content: '○';
  color: var(--text-muted);
}

/* Printable invoice template CSS */
.invoice-print-container {
  background-color: #ffffff;
  color: #1e293b;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
}

@media print {
  body * {
    visibility: hidden;
  }
  .invoice-print-container, .invoice-print-container * {
    visibility: visible;
  }
  .invoice-print-container {
    position: absolute;
    left: 0;
    top: 0;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

.invoice-preview-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.invoice-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.invoice-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.invoice-summary-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.9rem;
}

/* Badges override details */
.badge-lead { background-color: #8b5cf6; color: white; }
.badge-trial { background-color: #3b82f6; color: white; }
.badge-won { background-color: #10b981; color: white; }
.badge-lost { background-color: #6b7280; color: white; }
.badge-contacted { background-color: #f59e0b; color: white; }
.badge-suspended { background-color: #ef4444; color: white; }

/* ==========================================================================
   Public Marketing Portal Design System
   ========================================================================== */

.theme-marketing {
  --bg-app: #faf9f6; /* Premium warm ivory white background */
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --border-color: #e4e4e7;
  --text-main: #09090b;
  --text-muted: #71717a;
  
  --primary: #2563eb; /* Cobalt Blue */
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.theme-marketing body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
}

/* Announcement Bar */
.announcement-bar {
  background-color: #09090b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  line-height: 1.4;
}

.announcement-bar a {
  color: #3b82f6;
  text-decoration: underline;
  font-weight: 600;
}

/* Sticky Header */
.mkt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: calc(70px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: calc(2rem + env(safe-area-inset-left, 0px));
  padding-right: calc(2rem + env(safe-area-inset-right, 0px));
  max-width: 100%;
}

.mkt-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

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

.mkt-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.mkt-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.mkt-nav-link:hover {
  color: var(--primary);
}

.mkt-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-preview-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Feature Layout Blocks */
.feature-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-title-wrapper h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-title-wrapper p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Challenge Section Grid */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.challenge-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.challenge-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.challenge-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.challenge-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.challenge-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .challenge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .challenge-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .challenge-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Process visualizer steps */
.process-steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.process-step {
  flex: 1;
  min-width: 250px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.process-step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
  user-select: none;
}

/* Industry segments */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.industry-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.industry-card:hover {
  border-color: var(--primary);
}

/* FAQ Accordion container */
.faq-accordion {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: -2px !important;
  box-shadow: none !important;
}

.faq-question span {
  font-size: 1.15rem;
  font-weight: 500;
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms ease;
  opacity: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-content {
  min-height: 0;
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none !important;
  }
}

/* CTA Banner Blocks */
.mkt-cta-banner {
  background-color: #09090b;
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 4rem auto;
  border: 1px solid #1e293b;
}

.mkt-cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

/* Marketing Footer */
.mkt-footer {
  background-color: #09090b;
  color: #a1a1aa;
  padding: 5rem 2rem calc(2.5rem + env(safe-area-inset-bottom, 0px)) 2rem;
  border-top: 1px solid #1e293b;
}

.mkt-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
}

.mkt-footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

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

.mkt-footer-col h4 {
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.mkt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mkt-footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.mkt-footer-links a:hover {
  color: #ffffff;
}

.mkt-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.775rem;
}

/* Legal & dedicated pages layout */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Target Industries Page Styles */
.industry-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.industry-card {
  padding: 2rem;
  margin-bottom: 0 !important; /* Rely entirely on container gap */
}

.industry-card-title {
  font-size: clamp(1.3rem, 4.5vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-weight: 700;
  word-break: normal;
  overflow-wrap: normal;
  word-wrap: normal;
}

.industry-card-challenge {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.industry-card-description {
  font-size: clamp(0.85rem, 2.2vw, 0.925rem);
  line-height: 1.5;
  margin: 0;
}

.legal-content h2,
.legal-content h3 {
  font-family: var(--font-display);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content ul {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3f3f46;
  margin-bottom: 1.25rem;
}

.mkt-mobile-toggle, .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-preview-box {
    max-width: 550px;
    margin: 0 auto;
  }
  .mkt-nav {
    display: none; /* Hide standard nav on mobile */
  }
  .mkt-mobile-toggle {
    display: flex !important; /* Show hamburger button centered vertically */
  }
  .mkt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mkt-footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Redesigned Login Page Styles */
.login-page-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: #090d16;
  color: #f8fafc;
  overflow-x: hidden;
  font-family: var(--font-sans);
}

.login-left-panel {
  width: 45%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 1) 0%, rgba(9, 13, 22, 1) 90%);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium radial / mesh background highlight */
.login-left-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.login-left-panel::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.login-left-header {
  z-index: 10;
}

.login-left-content {
  margin: auto 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trial-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #60a5fa;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  gap: 0.35rem;
}

.trial-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px #60a5fa;
  animation: pulse-dot 2s infinite;
}

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

.login-left-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.03em;
  max-width: 480px;
}

.login-left-title span {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-left-tagline {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 400px;
  margin-top: 0.5rem;
}

/* Visualization Showcase Area */
.login-left-showcase {
  position: relative;
  width: 100%;
  height: 320px;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dashboard Mock */
.mock-dashboard {
  width: 80%;
  height: 220px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  position: absolute;
  left: 5%;
  top: 15%;
  transform: rotate(-3deg);
  transition: transform var(--transition-normal);
}

.mock-dashboard:hover {
  transform: rotate(0deg) scale(1.02);
}

.mock-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.mock-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin-right: 4px;
}

.mock-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mock-dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.5rem;
}

.mock-dash-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
}

.mock-dash-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 0.25rem;
}

.mock-dash-chart {
  height: 35px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 0.5rem;
}

.mock-dash-bar {
  flex: 1;
  background: linear-gradient(to top, #2563eb, #3b82f6);
  border-radius: 2px;
}

/* Floating Illustration Cards */
.floating-card {
  position: absolute;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.float-feedback {
  background: rgba(16, 185, 129, 0.1);
  background-image: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  border-color: rgba(16, 185, 129, 0.2);
  right: 2%;
  top: 5%;
  transform: rotate(3deg);
  animation: float-slow 6s ease-in-out infinite;
}

.float-qr {
  background: rgba(37, 99, 235, 0.1);
  background-image: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  border-color: rgba(37, 99, 235, 0.2);
  left: 2%;
  bottom: 0%;
  transform: rotate(-5deg);
  animation: float-medium 5s ease-in-out infinite;
}

.float-coupon {
  background: rgba(249, 115, 22, 0.1);
  background-image: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  border-color: rgba(249, 115, 22, 0.2);
  right: 5%;
  bottom: 8%;
  transform: rotate(5deg);
  animation: float-fast 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-16px) rotate(-3deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

.trust-indicators {
  margin-top: auto;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.trust-text {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.trust-item svg {
  color: #3b82f6;
}

/* Right Login Panel */
.login-right-panel {
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background-color: #090d16;
  position: relative;
}

.login-right-panel::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.glass-login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  padding: 3rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-login-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

.login-header-group {
  margin-bottom: 2.25rem;
}

.login-header-logo-mobile {
  display: none;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.login-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.login-subheading {
  color: #94a3b8;
  font-size: 0.95rem;
}

.workspace-input-wrapper {
  position: relative;
}

.workspace-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 0.875rem;
  pointer-events: none;
  font-weight: 500;
  user-select: none;
}

.workspace-input {
  padding-right: 7.5rem !important;
}

.form-helper-text {
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field {
  padding-right: 3rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: #ffffff;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.label-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.label-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.login-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Custom premium check box */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  appearance: none;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  padding: 8px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.checkbox-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-input:checked::after {
  content: '\2713';
  font-size: 10px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

.checkbox-input:focus-visible {
  box-shadow: var(--focus-ring);
}

.caps-warning-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--warning);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  transition: opacity var(--transition-fast);
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.timeout-notice {
  font-size: 0.75rem;
  color: #475569;
  text-align: center;
  margin-top: 1rem;
}

.login-footer-text {
  text-align: center;
  margin-top: 2rem;
  color: #64748b;
  font-size: 0.875rem;
}

/* Forgot password message banner */
.forgot-password-banner {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.forgot-password-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .login-page-wrapper {
    flex-direction: column;
  }
  .login-left-panel {
    display: none; /* Hide left panel on medium & small screens */
  }
  .login-right-panel {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem 1rem;
  }
  .glass-login-card {
    padding: 2.25rem 1.5rem;
    max-width: 440px;
  }
  .login-header-logo-mobile {
    display: flex;
  }
}

/* Slider Verify CAPTCHA Styles */
.slider-verify-container {
  position: relative;
  width: 100%;
  height: 48px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  margin-top: 0.5rem;
  touch-action: none;
}

.slider-verify-bg {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slider-verify-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: left 0.1s ease, background 0.3s ease;
  touch-action: none;
}

.slider-verify-thumb:active {
  cursor: grabbing;
}

.slider-verify-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(37, 99, 235, 0.15);
  z-index: 2;
  pointer-events: none;
  transition: width 0.1s ease;
}

.slider-verify-container.verified {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.slider-verify-container.verified .slider-verify-thumb {
  background: var(--success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: default;
}

.slider-verify-container.verified .slider-verify-bg {
  color: var(--success);
  font-weight: 600;
}

/* Branded Sign-in Transition Screen overlay styles */
.signin-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: #ffffff; /* White background to blend cleanly with logo */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  pointer-events: all;
}

.signin-transition-overlay.active {
  opacity: 1;
}

.signin-transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 90%;
  box-sizing: border-box;
}

.signin-transition-logo-container {
  position: relative;
  width: clamp(110px, 30vw, 190px);
  height: clamp(110px, 30vw, 190px);
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.signin-transition-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback static logo is hidden unless SVG animation is not supported or fails */
.signin-transition-fallback-logo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SVG Path Animation setup */
.path-blue-circle {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.path-orange-circle {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.blue-capsule {
  opacity: 0;
}

/* SVG Path Animations on active transition */
.signin-transition-overlay.active .path-blue-circle {
  animation: draw-blue-circle 850ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 200ms;
}

.signin-transition-overlay.active .path-orange-circle {
  animation: draw-orange-circle 1100ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 500ms;
}

.signin-transition-overlay.active .blue-capsule {
  animation: fade-in-capsule 400ms ease-out forwards;
  animation-delay: 1500ms;
}

.signin-transition-overlay.active .signin-transition-svg {
  animation: pulse-glow-symbol 400ms ease-in-out forwards;
  animation-delay: 1900ms;
}

/* Subtle logo backdrop radial glow */
.signin-transition-logo-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(249, 115, 22, 0.04) 50%, transparent 100%);
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.signin-transition-overlay.active .signin-transition-logo-glow {
  opacity: 1;
}

/* Text elements styling and transition keyframes */
.signin-transition-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.65rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(8px);
}

.signin-transition-status {
  font-size: clamp(0.75rem, 2.5vw, 0.825rem);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
}

.signin-transition-overlay.active .signin-transition-brand-name {
  animation: fade-up-text 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1300ms;
}

.signin-transition-status {
  font-size: clamp(0.75rem, 2.5vw, 0.825rem);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
}

.signin-transition-overlay.active .signin-transition-status {
  animation: fade-up-text 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1600ms;
}

/* Animations declarations */
@keyframes draw-blue-circle {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

@keyframes draw-orange-circle {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in-capsule {
  from { opacity: 0; transform: scale(0.8); transform-origin: 50px 36px; }
  to { opacity: 1; transform: scale(1); transform-origin: 50px 36px; }
}

@keyframes pulse-glow-symbol {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.45)) drop-shadow(0 0 10px rgba(249, 115, 22, 0.25));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(37, 99, 235, 0));
  }
}

@keyframes fade-up-text {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: prefers-reduced-motion overrides */
.signin-transition-overlay.reduced-motion .path-blue-circle,
.signin-transition-overlay.reduced-motion .path-orange-circle,
.signin-transition-overlay.reduced-motion .blue-capsule {
  stroke-dashoffset: 0 !important;
  opacity: 1 !important;
  animation: none !important;
}

.signin-transition-overlay.reduced-motion .signin-transition-svg {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

.signin-transition-overlay.reduced-motion .signin-transition-logo-glow {
  animation: none !important;
  opacity: 0.3 !important;
}

.signin-transition-overlay.reduced-motion .signin-transition-brand-name,
.signin-transition-overlay.reduced-motion .signin-transition-status {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ==========================================================================
   Plans & Pricing Page Elements
   ========================================================================== */

.plans-page-bg {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.plans-page-bg::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
}

.plans-page-bg::after {
  content: '';
  position: absolute;
  top: 35%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, rgba(249, 115, 22, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
}

.plans-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.plans-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.plans-hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

.billing-toggle-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
  gap: 1rem;
}

.billing-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.billing-toggle-label.active {
  color: var(--primary);
}

.billing-toggle-container {
  display: flex;
  background-color: var(--bg-card);
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.billing-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  user-select: none;
}

.billing-toggle-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.billing-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.plans-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  align-items: stretch;
  padding: 0 1.5rem;
}

.plan-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--primary-light);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

@keyframes popular-border-pulse {
  0% { border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15), var(--shadow-lg); }
  50% { border-color: #f97316; box-shadow: 0 10px 35px -8px rgba(249, 115, 22, 0.2), var(--shadow-lg); }
  100% { border-color: var(--primary); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15), var(--shadow-lg); }
}

.plan-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15), var(--shadow-lg);
  transform: scale(1.02);
  animation: popular-border-pulse 4s ease-in-out infinite;
}

.plan-card.popular:hover {
  transform: translateY(-8px) scale(1.03);
  animation-play-state: paused;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 42px;
}

.plan-price-block {
  margin-bottom: 2rem;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.plan-standard-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  opacity: 0.8;
}

.plan-promo-price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--text-main);
}

.plan-promo-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-effective-price {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 0.4rem;
}

.plan-discount-badge {
  display: inline-block;
  background-color: var(--success-light);
  color: var(--success);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  align-self: flex-start;
}

.plan-trial-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.plan-features-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.plan-features-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-disclaimer {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  text-align: center;
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 1.5rem;
}

.addons-container {
  max-width: 1000px;
  margin: 0 auto 5rem auto;
  padding: 2.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.addon-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.addon-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.addon-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.addon-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.comparison-section {
  max-width: 1200px;
  margin: 0 auto 5rem auto;
  padding: 0 1.5rem;
}

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  -webkit-overflow-scrolling: touch; /* smooth iOS touch momentum scroll */
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.01);
}

.comparison-table td:not(:first-child) {
  text-align: center;
  font-weight: 500;
}

.comparison-category-row td {
  font-weight: 700 !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
}

.plans-trial-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(249, 115, 22, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin: 4rem 1.5rem;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1240px) {
  .plans-trial-banner {
    margin: 4rem auto;
  }
}



@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .plan-card.popular {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  .addons-container {
    margin: 0 1.5rem 5rem 1.5rem;
    padding: 2rem 1.5rem;
  }
  .addons-grid {
    grid-template-columns: 1fr;
  }
  .plans-trial-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plans-hero h1 {
    font-size: 2.25rem;
  }
  .plan-card {
    padding: 2rem 1.5rem;
  }
  .comparison-section {
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .billing-toggle-label {
    display: none;
  }
  .billing-toggle-wrapper {
    margin-bottom: 2.5rem;
  }
  .faq-question {
    padding: 1.25rem 1rem;
    font-size: 1rem;
  }
  .faq-answer-content {
    padding: 0 1rem 1.25rem 1rem;
    font-size: 0.875rem;
  }
}
