/* ============================================
   ReRouting Products — POC Stylesheet
   Editorial/Magazine Aesthetic
   ============================================ */

/* CSS Custom Properties */
:root {
  --ink: #1a1a2e;
  --terracotta: #c4754b;
  --terracotta-hover: #b5683f;
  --terracotta-light: rgba(196, 117, 75, 0.1);
  --sage: #8fae8b;
  --sage-hover: #7d9e79;
  --sage-light: rgba(143, 174, 139, 0.1);
  --bg: #f8f9fa;
  --card: #ffffff;
  --border: #e9ecef;
  --text: #495057;
  --text-muted: #868e96;
  --heading: #212529;
  --success: #8fae8b;
  --error: #e03131;
  --error-light: rgba(224, 49, 49, 0.1);
  --warning: #f08c00;
  --warning-light: rgba(240, 140, 0, 0.1);
  --info: #1c7ed6;
  --info-light: rgba(28, 126, 214, 0.1);
  --grade-a: #2f9e44;
  --grade-b: #74b816;
  --grade-c: #f08c00;
  --grade-d: #e8590c;
  --grade-f: #e03131;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 3px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.12);
  --sidebar-width: 260px;
  --header-height: 64px;
  --transition: 200ms ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-editorial: 'Libre Bodoni', 'Georgia', serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

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

a:hover {
  color: var(--terracotta-hover);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
  font-size: inherit;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

/* ============================================
   Layout
   ============================================ */

#app {
  min-height: 100vh;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--ink);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), width var(--transition);
  overflow-y: auto;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.collapsed .logo-text {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.4);
  padding: 8px 12px 4px;
  font-weight: 600;
}

.collapsed .sidebar-section-title {
  display: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
  cursor: pointer;
  font-size: 0.9375rem;
  white-space: nowrap;
  position: relative;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-item.active {
  background: rgba(196, 117, 75, 0.2);
  color: #fff;
}

.sidebar-item .item-icon {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.collapsed .sidebar-item span:not(.item-icon):not(.sidebar-badge) {
  display: none;
}

.sidebar-badge {
  background: var(--terracotta);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
}

.collapsed .sidebar-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.collapsed .sidebar-user-info {
  display: none;
}

/* Header */
.app-header {
  height: var(--header-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 90;
  transition: left var(--transition);
}

.sidebar.collapsed ~ .app-main .app-header {
  left: 72px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
  font-size: 1.25rem;
}

.sidebar-toggle:hover {
  background: var(--bg);
}

.header-search {
  position: relative;
}

.header-search input {
  width: 280px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--terracotta-light);
}

.header-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  font-size: 1.125rem;
}

.header-btn:hover {
  background: var(--bg);
  color: var(--heading);
}

.header-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--card);
}

/* Main Content */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
}

.sidebar.collapsed ~ .app-main {
  margin-left: 72px;
}

.app-content {
  padding: 24px;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* Page Header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header-text h1 {
  margin-bottom: 4px;
}

.page-header-text p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.page-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

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

.breadcrumbs a:hover {
  color: var(--terracotta);
}

.breadcrumbs .separator {
  color: var(--border);
}

.breadcrumbs .current {
  color: var(--heading);
  font-weight: 500;
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: var(--terracotta);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.auth-logo h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--terracotta);
  font-weight: 500;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all var(--transition);
}

.step-dot.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.step-dot.completed {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
}

.step-line.completed {
  background: var(--sage);
}

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.password-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.password-strength-bar.weak { background: var(--error); }
.password-strength-bar.fair { background: var(--warning); }
.password-strength-bar.good { background: var(--grade-b); }
.password-strength-bar.strong { background: var(--grade-a); }

.password-strength-text {
  font-size: 0.75rem;
  margin-top: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.4;
}

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

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.btn-primary:hover:not(:disabled) {
  background: var(--terracotta-hover);
  border-color: var(--terracotta-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.btn-success {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.btn-success:hover:not(:disabled) {
  background: var(--sage-hover);
  border-color: var(--sage-hover);
}

.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.btn-danger:hover:not(:disabled) {
  background: #c92a2a;
  border-color: #c92a2a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  color: var(--heading);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius);
}

.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
}

/* ============================================
   Forms
   ============================================ */

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

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--heading);
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--heading);
  background: var(--card);
  transition: all var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-light);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px var(--error-light);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23868e96' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Toggle */
.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9375rem;
}

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle-track.active {
  background: var(--terracotta);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-track.active .toggle-thumb {
  transform: translateX(20px);
}

/* Search input with icon */
.search-input-wrapper {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 320px;
}

.search-input-wrapper input {
  padding-left: 36px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Range slider */
.form-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--terracotta);
  border-radius: 50%;
  cursor: pointer;
}

/* ============================================
   Cards
   ============================================ */

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

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Stats Card */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow var(--transition);
}

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

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

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-card-icon {
  font-size: 1.25rem;
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-card-trend {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  color: var(--grade-a);
}

.trend-down {
  color: var(--error);
}

/* ============================================
   Data Tables
   ============================================ */

.table-container {
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.data-table th.sortable {
  cursor: pointer;
}

.data-table th.sortable:hover {
  color: var(--heading);
}

.data-table th .sort-icon {
  margin-left: 4px;
  opacity: 0.3;
}

.data-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--terracotta);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(196, 117, 75, 0.03);
}

.data-table tbody tr.clickable {
  cursor: pointer;
}

.data-table tbody tr.clickable:hover {
  background: rgba(196, 117, 75, 0.06);
}

/* ============================================
   Badges
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Grade badges */
.badge-grade-a {
  background: rgba(47, 158, 68, 0.1);
  color: var(--grade-a);
}

.badge-grade-b {
  background: rgba(116, 184, 22, 0.1);
  color: var(--grade-b);
}

.badge-grade-c {
  background: rgba(240, 140, 0, 0.1);
  color: var(--grade-c);
}

.badge-grade-d {
  background: rgba(232, 89, 12, 0.1);
  color: var(--grade-d);
}

.badge-grade-f {
  background: rgba(224, 49, 49, 0.1);
  color: var(--grade-f);
}

.badge-grade-lg {
  padding: 8px 20px;
  font-size: 1.25rem;
  border-radius: var(--radius);
}

/* Status badges */
.badge-pending {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-grading {
  background: var(--info-light);
  color: var(--info);
}

.badge-graded {
  background: var(--info-light);
  color: var(--info);
}

.badge-routed {
  background: rgba(143, 174, 139, 0.15);
  color: var(--sage-hover);
}

.badge-exchanged {
  background: rgba(143, 174, 139, 0.15);
  color: var(--sage-hover);
}

.badge-completed {
  background: rgba(47, 158, 68, 0.1);
  color: var(--grade-a);
}

.badge-cancelled {
  background: rgba(134, 142, 150, 0.1);
  color: var(--text-muted);
}

.badge-active {
  background: rgba(47, 158, 68, 0.1);
  color: var(--grade-a);
}

.badge-shipped {
  background: var(--info-light);
  color: var(--info);
}

.badge-accepted {
  background: rgba(143, 174, 139, 0.15);
  color: var(--sage-hover);
}

.badge-connected {
  background: rgba(47, 158, 68, 0.1);
  color: var(--grade-a);
}

.badge-disconnected {
  background: rgba(134, 142, 150, 0.1);
  color: var(--text-muted);
}

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

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.125rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--heading);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-lg {
  max-width: 720px;
}

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

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
}

.tab:hover {
  color: var(--heading);
}

.tab.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ============================================
   Timeline
   ============================================ */

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

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  z-index: 1;
}

.timeline-dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.timeline-dot.completed {
  background: var(--sage);
  border-color: var(--sage);
}

.timeline-content h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   Charts
   ============================================ */

.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}

/* Simple CSS bar chart fallback */
.css-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: 20px;
}

.css-bar {
  flex: 1;
  background: var(--terracotta);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-width: 24px;
  transition: height 0.6s ease;
  position: relative;
}

.css-bar:hover {
  opacity: 0.8;
}

.css-bar .bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.css-bar .bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}

/* Horizontal bar chart */
.h-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-bar-label {
  width: 140px;
  font-size: 0.8125rem;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}

.h-bar-track {
  flex: 1;
  height: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.h-bar-fill {
  height: 100%;
  border-radius: var(--radius);
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.h-bar-fill.terracotta { background: var(--terracotta); }
.h-bar-fill.sage { background: var(--sage); }
.h-bar-fill.ink { background: var(--ink); }
.h-bar-fill.info { background: var(--info); }
.h-bar-fill.warning { background: var(--warning); }

/* Donut chart */
.donut-chart-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.donut-chart {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.donut-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 440px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  border-left: 4px solid;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--error);
}

.toast-warning {
  border-left-color: var(--warning);
}

.toast-info {
  border-left-color: var(--info);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-message {
  flex: 1;
  font-size: 0.9375rem;
}

.toast-close {
  color: var(--text-muted);
  font-size: 1.125rem;
  padding: 4px;
  transition: color var(--transition);
}

.toast-close:hover {
  color: var(--heading);
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 360px;
}

/* ============================================
   Loading
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #e1e4e8 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

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

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-heading {
  height: 24px;
  width: 50%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 120px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-fill.sage {
  background: var(--sage);
}

.progress-fill.info {
  background: var(--info);
}

.progress-bar-labeled {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-labeled .progress-bar {
  flex: 1;
}

.progress-bar-labeled .progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading);
  min-width: 40px;
  text-align: right;
}

/* Multi-step progress */
.multi-step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.progress-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--transition);
}

.progress-step.active .progress-step-dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.progress-step.completed .progress-step-dot {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.progress-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.progress-step.completed .progress-step-line {
  background: var(--sage);
}

.progress-step:last-child .progress-step-line {
  display: none;
}

/* ============================================
   Photo Grid
   ============================================ */

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

.photo-item {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}

.photo-item:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.photo-placeholder .photo-icon {
  font-size: 1.5rem;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

/* Photo zoom modal */
.photo-zoom {
  max-width: 90vw;
  max-height: 80vh;
}

.photo-zoom img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--border);
}

.pagination-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================
   Widget Styles
   ============================================ */

.widget-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.widget-header {
  padding: 20px 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.widget-header h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.widget-header p {
  font-size: 0.875rem;
  opacity: 0.7;
}

.widget-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.widget-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.widget-step-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
  text-align: center;
}

/* Circular progress */
.circular-progress {
  width: 160px;
  height: 160px;
  margin: 24px auto;
  position: relative;
}

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

.circular-progress .progress-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.circular-progress .progress-fg {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.circular-progress .progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
}

.circular-progress .progress-subtext {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-area:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.upload-area .upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-area p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Exchange offer card */
.exchange-offer-card {
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
}

.exchange-offer-card h4 {
  color: var(--sage-hover);
  margin-bottom: 8px;
}

.exchange-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(143, 174, 139, 0.2);
}

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

.exchange-item-img {
  width: 48px;
  height: 48px;
  background: var(--card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exchange-bonus {
  background: var(--sage);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}

/* ============================================
   Two-Column Layout
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.two-col-60-40 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

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

/* ============================================
   Activity Feed
   ============================================ */

.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.activity-item:hover {
  background: rgba(196, 117, 75, 0.03);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  margin-top: 7px;
  flex-shrink: 0;
}

.activity-dot.sage { background: var(--sage); }
.activity-dot.info { background: var(--info); }
.activity-dot.warning { background: var(--warning); }

.activity-text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* ============================================
   Quick Actions
   ============================================ */

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   Filters Bar
   ============================================ */

.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filters-bar .form-select,
.filters-bar .form-input {
  width: auto;
  min-width: 160px;
}

/* ============================================
   Side by Side Comparison
   ============================================ */

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.side-by-side .comparison-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.comparison-card h5 {
  margin-bottom: 8px;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ============================================
   Settings Specific
   ============================================ */

.settings-section {
  margin-bottom: 32px;
}

.settings-section h3 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.settings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

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

.settings-row-info {
  flex: 1;
}

.settings-row-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.settings-row-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.settings-row-control {
  flex-shrink: 0;
}

/* Integration card */
.integration-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition);
}

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

.integration-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.integration-icon.shopify { background: #95bf47; color: #fff; }
.integration-icon.prestashop { background: #df0067; color: #fff; }
.integration-icon.sendcloud { background: #1b8fd2; color: #fff; }
.integration-icon.brevo { background: #0b996e; color: #fff; }

.integration-info {
  flex: 1;
}

.integration-info h4 {
  margin-bottom: 4px;
}

.integration-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.integration-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Plan card */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.plan-card.current {
  border-color: var(--terracotta);
  position: relative;
}

.plan-card.current::after {
  content: 'Current Plan';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 12px;
  border-radius: 10px;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta);
}

.plan-price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  margin: 16px 0;
  text-align: left;
}

.plan-features li {
  padding: 6px 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '\2713';
  color: var(--sage);
  font-weight: 700;
}

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

.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.onboarding-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}

.onboarding-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.onboarding-body {
  padding: 32px;
}

.onboarding-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Confetti */
@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-out forwards;
  z-index: 3000;
  pointer-events: none;
}

/* Store buttons */
.store-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.store-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}

.store-btn:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.store-btn.selected {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.store-btn .store-icon {
  font-size: 2rem;
}

.store-btn span {
  font-weight: 600;
}

/* ============================================
   Widget Demo Page
   ============================================ */

.widget-demo-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d4e 100%);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.widget-demo-header {
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.widget-demo-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.widget-demo-header p {
  opacity: 0.7;
}

.widget-demo-back {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.widget-demo-back:hover {
  color: #fff;
}

/* ============================================
   Routing Rules
   ============================================ */

.rule-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  background: var(--card);
  margin-bottom: 8px;
}

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

.rule-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 1.25rem;
}

.rule-priority {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rule-info {
  flex: 1;
}

.rule-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

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

.rule-conditions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rule-condition {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
}

.rule-destination {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--terracotta);
}

.rule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Notes / Comments
   ============================================ */

.notes-section {
  margin-top: 16px;
}

.note-input-row {
  display: flex;
  gap: 8px;
}

.note-input-row input {
  flex: 1;
}

.notes-list {
  margin-top: 12px;
}

.note-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.note-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.note-content {
  flex: 1;
}

.note-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.note-text {
  font-size: 0.875rem;
}

/* ============================================
   Defects List
   ============================================ */

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

.defect-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.defect-severity {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.defect-severity.minor {
  background: var(--warning-light);
  color: var(--warning);
}

.defect-severity.major {
  background: var(--error-light);
  color: var(--error);
}

/* ============================================
   Page Transition
   ============================================ */

.page-transition-enter {
  opacity: 0;
  transform: translateY(8px);
}

.page-transition-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

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

  .app-main {
    margin-left: 0;
  }

  .app-header {
    left: 0;
  }

  .app-content {
    padding: 16px;
  }

  .two-col,
  .two-col-60-40 {
    grid-template-columns: 1fr;
  }

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

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

  .page-header-actions {
    align-self: flex-start;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-bar .form-select,
  .filters-bar .form-input {
    width: 100%;
    min-width: 0;
  }

  .search-input-wrapper {
    max-width: 100%;
  }

  .side-by-side {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    grid-template-columns: 1fr;
  }

  .modal {
    margin: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  .header-search input {
    width: 180px;
  }

  .donut-chart-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

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

  .quick-actions {
    flex-direction: column;
  }

  .pagination {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted { color: var(--text-muted); }
.text-heading { color: var(--heading); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-terracotta { color: var(--terracotta); }

.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.8125rem; }
.text-base { font-size: 0.9375rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block; }

.cursor-pointer { cursor: pointer; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   MARKETING PAGES — Editorial Redesign
   Magazine-inspired, asymmetric, human-designed
   ============================================ */

/* Auth Back Nav */
.auth-back-nav {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 50;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.auth-back-link:hover {
  color: var(--terracotta);
}

/* Marketing Page Base */
.marketing-page {
  min-height: 100vh;
  background: #faf9f7;
}

.marketing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Kicker / Eyebrow Label */
.ed-kicker {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--terracotta);
  display: block;
  margin-bottom: 16px;
}

.ed-kicker--light {
  color: rgba(255, 255, 255, 0.5);
}

/* Editorial Heading */
.ed-heading {
  font-family: var(--font-editorial);
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.ed-heading--xl { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.ed-heading--lg { font-size: clamp(2rem, 4vw, 3rem); }
.ed-heading--md { font-size: clamp(1.5rem, 3vw, 2.25rem); }

.ed-heading--white { color: #fff; }

/* Editorial Body Text */
.ed-body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 540px;
}

.ed-body--muted { color: var(--text-muted); }
.ed-body--white { color: rgba(255, 255, 255, 0.7); }
.ed-body--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Horizontal Rule */
.ed-rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.ed-rule--bold {
  height: 3px;
  background: var(--ink);
  width: 48px;
}

.ed-rule--terracotta {
  height: 3px;
  background: var(--terracotta);
  width: 48px;
}

/* ---- MARKETING NAV ---- */
.marketing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.marketing-nav.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.marketing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.marketing-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.marketing-nav.scrolled .marketing-nav-logo {
  color: var(--ink);
}

.marketing-nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-editorial);
}

.marketing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.marketing-nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
  position: relative;
}

.marketing-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.marketing-nav-links a:hover::after {
  width: 100%;
}

.marketing-nav-links a:hover {
  color: #fff;
}

.marketing-nav.scrolled .marketing-nav-links a {
  color: var(--text-muted);
}

.marketing-nav.scrolled .marketing-nav-links a:hover {
  color: var(--ink);
}

.marketing-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.marketing-nav-login {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marketing-nav-login:hover { color: #fff; }

.marketing-nav.scrolled .marketing-nav-login {
  color: var(--text-muted);
}

.marketing-nav.scrolled .marketing-nav-login:hover {
  color: var(--ink);
}

.marketing-nav-cta {
  white-space: nowrap;
  font-size: 0.8125rem !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
}

.marketing-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.marketing-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
}

.marketing-nav.scrolled .marketing-nav-burger span {
  background: var(--ink);
}

/* ---- HERO SECTION — Asymmetric Editorial ---- */
.hero-section {
  background: var(--ink);
  padding: 160px 0 100px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(196, 117, 75, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(143, 174, 139, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: var(--font-editorial);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-highlight {
  color: var(--terracotta);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-trust-dot {
  color: rgba(255, 255, 255, 0.2);
}

/* Hero Visual / Flow */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-flow-step:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-flow-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.hero-flow-icon--photo { background: rgba(196, 117, 75, 0.25); }
.hero-flow-icon--ai { background: rgba(143, 174, 139, 0.25); }
.hero-flow-icon--route { background: rgba(28, 126, 214, 0.25); }
.hero-flow-icon--happy { background: rgba(255, 255, 255, 0.1); }

.hero-flow-step span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.hero-flow-step .hero-flow-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  margin-top: 2px;
}

.hero-flow-arrow {
  display: none;
}

/* ---- STATS BAR — Refined ---- */
.stats-bar-section {
  background: #fff;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

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

.stats-bar-item {
  text-align: center;
  padding: 8px 0;
}

.stats-bar-number {
  font-family: var(--font-editorial);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ---- MARKETING SECTIONS ---- */
.mkt-section {
  padding: 100px 0;
}

.mkt-section--light {
  background: #fff;
}

.mkt-section--ink {
  background: var(--ink);
  color: #fff;
}

.mkt-section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.mkt-section-header.mkt-section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mkt-section-header h2 {
  font-family: var(--font-editorial);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.mkt-section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Page Hero (inner pages) */
.mkt-page-hero {
  background: var(--ink);
  padding: 160px 32px 80px;
  position: relative;
  overflow: hidden;
}

.mkt-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(196, 117, 75, 0.06) 100%);
  pointer-events: none;
}

.mkt-page-hero .marketing-container {
  position: relative;
  z-index: 1;
}

.mkt-page-hero h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
}

.mkt-page-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
}

/* Fade-in Animation — staggered */
.mkt-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.mkt-fade-in:nth-child(2) { transition-delay: 0.08s; }
.mkt-fade-in:nth-child(3) { transition-delay: 0.16s; }
.mkt-fade-in:nth-child(4) { transition-delay: 0.24s; }
.mkt-fade-in:nth-child(5) { transition-delay: 0.32s; }
.mkt-fade-in:nth-child(6) { transition-delay: 0.40s; }

.mkt-fade-in.mkt-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HOW IT WORKS (Landing) — Asymmetric Editorial ---- */
.how-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
  counter-reset: step-counter;
}

.how-step-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: transparent;
  border-radius: 0;
  text-align: left;
  transition: none;
}

.how-step-card:hover {
  box-shadow: none;
  transform: none;
}

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

.how-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.how-step-icon {
  display: none;
}

.how-step-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.375rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ---- FEATURES GRID (Landing) — Bento/Mixed ---- */
.features-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card-landing {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s ease;
  position: relative;
}

.feature-card-landing:hover {
  border-color: var(--terracotta);
  box-shadow: none;
  transform: none;
}

/* Make first card span 2 columns for visual tension */
.feature-card-landing:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-landing:first-child .feature-card-icon {
  margin-bottom: 0;
}

.feature-card-landing h3 {
  font-family: var(--font-editorial);
  font-size: 1.125rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card-landing p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- TESTIMONIALS — Editorial Quote Style ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Make first testimonial span full width for editorial emphasis */
.testimonial-card:first-child {
  grid-column: span 2;
  border-left: 3px solid var(--terracotta);
}

.testimonial-quote {
  font-family: var(--font-editorial);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--heading);
  font-style: italic;
  flex: 1;
}

.testimonial-card:first-child .testimonial-quote {
  font-size: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--heading);
}

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

.platform-logos {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- PRICING PREVIEW (Landing) ---- */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-preview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: border-color 0.3s ease;
}

.pricing-preview-card:hover {
  border-color: var(--text-muted);
}

.pricing-preview-card--featured {
  border-color: var(--terracotta);
  background: var(--ink);
  color: #fff;
}

.pricing-preview-card--featured:hover {
  border-color: var(--terracotta);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 4px;
}

.pricing-preview-card h3 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pricing-preview-card--featured h3 {
  color: #fff;
}

.pricing-preview-price {
  font-family: var(--font-editorial);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-preview-card--featured .pricing-preview-price {
  color: var(--terracotta);
}

.pricing-preview-price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.pricing-preview-card--featured .pricing-preview-price span {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-preview-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-preview-card--featured p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- CTA BANNER — Bold editorial ---- */
.cta-banner-section {
  background: var(--ink);
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 117, 75, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.cta-banner-content h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-banner-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-banner-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cta-banner-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ---- FOOTER — Clean editorial ---- */
.marketing-footer {
  background: #111122;
  color: rgba(255, 255, 255, 0.5);
  padding: 80px 0 40px;
}

.marketing-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.marketing-footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 300px;
}

.marketing-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.marketing-footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--terracotta);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-editorial);
}

.marketing-footer-col h4 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.marketing-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9375rem;
  padding: 5px 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

.marketing-footer-col a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.marketing-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

/* ============================================
   FEATURES PAGE
   ============================================ */

.feature-detail-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
  padding: 32px 0;
}

.feature-detail-row--reverse {
  grid-template-columns: 0.85fr 1.15fr;
  direction: rtl;
}

.feature-detail-row--reverse > * {
  direction: ltr;
}

.feature-detail-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.feature-detail-content h2 {
  font-family: var(--font-editorial);
  font-size: 1.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-detail-content > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-detail-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.feature-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Feature Visuals */
.feature-detail-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
}

/* Grade Demo */
.feature-grade-demo {
  width: 100%;
  max-width: 360px;
}

.feature-grade-card {
  background: #faf9f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.feature-grade-header {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.feature-grade-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.feature-grade-result {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-grade-big {
  text-align: center;
}

.feature-grade-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.feature-grade-confidence .progress-bar {
  flex: 1;
}

/* Dashboard Preview */
.feature-dashboard-preview {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.1);
}

.feature-dash-topbar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #faf9f7;
  border-bottom: 1px solid var(--border);
}

.feature-dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.feature-dash-body {
  display: flex;
  height: 200px;
}

.feature-dash-sidebar {
  width: 50px;
  background: var(--ink);
}

.feature-dash-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.feature-dash-stat-card {
  height: 28px;
  background: #faf9f7;
  border-radius: 4px;
}

.feature-dash-chart {
  flex: 1;
  background: #faf9f7;
  border-radius: 4px;
}

/* Widget Preview */
.feature-widget-preview {
  display: flex;
  justify-content: center;
}

.feature-widget-phone {
  width: 240px;
  border-radius: 28px;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.15);
}

.feature-widget-screen {
  padding: 16px;
}

.feature-widget-header-bar {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  margin: -16px -16px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.feature-widget-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.fwsi-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.fwsi-dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.fwsi-line {
  width: 24px;
  height: 2px;
  background: var(--border);
}

.fwsi-line.done {
  background: var(--terracotta);
}

.feature-widget-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.feature-widget-btn {
  background: var(--terracotta);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Routing Preview */
.feature-routing-preview {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-routing-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.feature-routing-rule:hover {
  border-color: var(--text-muted);
}

.feature-routing-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #faf9f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.feature-routing-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-routing-info strong {
  font-size: 0.9375rem;
}

.feature-routing-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Exchange Preview */
.feature-exchange-preview {
  display: flex;
  justify-content: center;
}

.feature-exchange-card {
  background: rgba(143, 174, 139, 0.06);
  border: 1px solid rgba(143, 174, 139, 0.2);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 340px;
}

.feature-exchange-header {
  font-weight: 600;
  color: var(--sage-hover);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.feature-exchange-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-exchange-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: var(--radius);
}

.feature-exchange-item--new {
  border: 1px solid var(--sage);
}

.feature-exchange-item-icon {
  font-size: 1.25rem;
}

.feature-exchange-item strong {
  display: block;
  font-size: 0.9375rem;
}

.feature-exchange-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.feature-exchange-arrow {
  text-align: center;
  font-size: 1.25rem;
  color: var(--sage);
}

.feature-exchange-bonus {
  background: var(--sage);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 12px;
}

/* Integration Preview */
.feature-integrations-preview {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-integration-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.feature-integration-card:hover {
  border-color: var(--text-muted);
}

.feature-integration-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.feature-integration-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.feature-integration-info strong {
  font-size: 0.9375rem;
}

/* Analytics Preview */
.feature-analytics-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}

.feature-analytics-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.feature-analytics-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.feature-analytics-value {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.feature-analytics-trend {
  font-size: 0.75rem;
}

/* ============================================
   PRICING PAGE
   ============================================ */

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-toggle-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.pricing-toggle-label.active {
  color: var(--heading);
  font-weight: 600;
}

.pricing-save-badge {
  background: rgba(143, 174, 139, 0.15);
  color: var(--sage-hover);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-toggle {
  cursor: pointer;
}

.pricing-toggle-track {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background var(--transition);
}

.pricing-toggle-track.active {
  background: var(--terracotta);
}

.pricing-toggle-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pricing-toggle-track.active .pricing-toggle-thumb {
  transform: translateX(22px);
}

/* Pricing Cards Full */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}

.pricing-card-full {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 24px;
  position: relative;
  text-align: left;
  transition: border-color 0.3s ease;
}

.pricing-card-full:hover {
  border-color: var(--text-muted);
}

.pricing-card-full--featured {
  border-color: var(--terracotta);
  border-width: 2px;
  background: var(--ink);
  color: #fff;
}

.pricing-card-full--featured:hover {
  border-color: var(--terracotta);
}

.pricing-card-full h3 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pricing-card-full--featured h3 {
  color: #fff;
}

.pricing-card-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: var(--font-editorial);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.pricing-card-full--featured .pricing-amount {
  color: var(--terracotta);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card-full--featured .pricing-period {
  color: rgba(255, 255, 255, 0.5);
}

.pricing-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-card-full--featured .pricing-card-desc {
  color: rgba(255, 255, 255, 0.55);
}

.pricing-card-features {
  list-style: none;
  text-align: left;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pricing-card-full--featured .pricing-card-features {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pricing-card-features li {
  font-size: 0.875rem;
  padding: 5px 0;
  color: var(--text);
}

.pricing-card-full--featured .pricing-card-features li {
  color: rgba(255, 255, 255, 0.7);
}

/* Pricing Comparison Table */
.pricing-comparison {
  margin-bottom: 80px;
}

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

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.pricing-table th {
  font-family: var(--font-editorial);
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.pricing-table-highlight {
  background: rgba(196, 117, 75, 0.04);
}

.pricing-check {
  color: var(--sage);
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing-dash {
  color: var(--border);
}

/* FAQ */
.pricing-faq {
  margin-bottom: 40px;
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.faq-item h4 {
  font-family: var(--font-editorial);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS PAGE
   ============================================ */

.hiw-journey-badge {
  display: inline-block;
  background: rgba(196, 117, 75, 0.08);
  color: var(--terracotta);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hiw-journey-badge--customer {
  background: rgba(143, 174, 139, 0.1);
  color: var(--sage-hover);
}

.hiw-timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 56px;
}

.hiw-timeline-line {
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--border);
}

.hiw-timeline-line--customer {
  background: var(--border);
}

.hiw-step {
  position: relative;
  padding-bottom: 48px;
}

.hiw-step:last-child {
  padding-bottom: 0;
}

.hiw-step-number {
  position: absolute;
  left: -56px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 1rem;
  z-index: 1;
}

.hiw-step-number--customer {
  border-color: var(--sage);
  color: var(--sage-hover);
}

.hiw-step-content h3 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hiw-step-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hiw-step-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hiw-step-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: #faf9f7;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hiw-step-visual {
  margin-top: 8px;
}

.hiw-grade-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hiw-routing-visual {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hiw-route-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hiw-route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================
   DEMO PAGE
   ============================================ */

.demo-video-placeholder {
  max-width: 800px;
  margin: 0 auto 64px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
  overflow: hidden;
}

.demo-video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196, 117, 75, 0.1) 0%, transparent 60%);
}

.demo-video-placeholder:hover {
  opacity: 0.92;
}

.demo-video-inner {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.demo-play-btn {
  margin-bottom: 12px;
}

.demo-video-inner p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Screenshot Cards */
.demo-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.demo-screenshot-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s ease;
}

.demo-screenshot-card:hover {
  border-color: var(--text-muted);
}

.demo-screenshot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #faf9f7;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-screenshot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.demo-screenshot-header span {
  margin-left: 6px;
}

.demo-screenshot-body {
  padding: 20px;
}

/* Dashboard Screenshot */
.demo-ss-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.demo-ss-stat {
  text-align: center;
  padding: 8px;
  background: #faf9f7;
  border-radius: 6px;
}

.demo-ss-stat-val {
  font-family: var(--font-editorial);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.demo-ss-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-ss-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.demo-ss-bar {
  flex: 1;
  background: var(--terracotta);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
}

/* Grading Screenshot */
.demo-ss-grading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.demo-ss-grade-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(116, 184, 22, 0.1);
  color: var(--grade-b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 700;
}

.demo-ss-grade-info strong {
  display: block;
  font-size: 1rem;
}

.demo-ss-grade-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-ss-defects {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-ss-defect {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-ss-defect-severity {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
}

.demo-ss-defect-severity.minor {
  background: var(--warning-light);
  color: var(--warning);
}

.demo-ss-reasoning {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px;
  background: #faf9f7;
  border-radius: 6px;
  border-left: 2px solid var(--terracotta);
}

/* Rules Screenshot */
.demo-ss-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-ss-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #faf9f7;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.demo-ss-rule-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.demo-ss-rule span:nth-child(2) {
  flex: 1;
  font-weight: 500;
}

/* Analytics Screenshot */
.demo-ss-analytics {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-ss-analytics-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}

.demo-ss-analytics-row span:first-child {
  width: 100px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.demo-ss-analytics-bar {
  flex: 1;
  height: 6px;
  background: #faf9f7;
  border-radius: 3px;
  overflow: hidden;
}

.demo-ss-analytics-bar div {
  height: 100%;
  border-radius: 3px;
}

.demo-ss-analytics-row span:last-child {
  width: 48px;
  text-align: right;
  font-weight: 700;
  color: var(--heading);
  font-family: var(--font-editorial);
}

/* Try Demo Section */
.demo-try-section {
  max-width: 560px;
  margin: 0 auto 64px;
}

.demo-try-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}

.demo-try-card h2 {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.demo-try-card > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.demo-try-credentials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.demo-try-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.demo-try-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.demo-try-field code {
  font-family: 'Fira Code', monospace;
  background: #faf9f7;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--heading);
}

/* Schedule Demo */
.demo-schedule-section {
  text-align: left;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.demo-schedule-section h3 {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.demo-schedule-section p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

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

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .features-grid-landing .feature-card-landing:first-child {
    grid-column: span 2;
  }

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

  .testimonial-card:first-child {
    grid-column: span 1;
  }

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

  .feature-detail-row,
  .feature-detail-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .marketing-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-schedule-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .marketing-container {
    padding: 0 20px;
  }

  .marketing-nav-inner {
    padding: 0 20px;
  }

  .marketing-nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .marketing-nav-links.mobile-open {
    display: flex;
  }

  .marketing-nav-links a {
    color: var(--text) !important;
    font-size: 0.9375rem;
    padding: 10px 0;
  }

  .marketing-nav-links a::after {
    display: none;
  }

  .marketing-nav-actions {
    display: none;
  }

  .marketing-nav-burger {
    display: flex;
    margin-left: auto;
  }

  .marketing-nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .marketing-nav-burger.active span:nth-child(2) {
    opacity: 0;
  }

  .marketing-nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-section {
    padding: 130px 0 80px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 12px;
  }

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

  .stats-bar-number {
    font-size: 2rem;
  }

  .features-grid-landing {
    grid-template-columns: 1fr;
  }

  .features-grid-landing .feature-card-landing:first-child {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .pricing-preview-grid,
  .how-steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .demo-screenshots-grid {
    grid-template-columns: 1fr;
  }

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

  .marketing-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .marketing-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .mkt-page-hero {
    padding: 130px 20px 60px;
  }

  .mkt-page-hero h1 {
    font-size: 2rem;
  }

  .mkt-section {
    padding: 64px 0;
  }

  .mkt-section-header h2 {
    font-size: 1.5rem;
  }

  .hiw-timeline {
    padding-left: 48px;
  }

  .hiw-step-number {
    left: -48px;
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }

  .hiw-timeline-line {
    left: 16px;
  }

  .pricing-table {
    font-size: 0.8125rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 8px;
  }

  .cta-banner-section {
    padding: 64px 20px;
  }

  .cta-banner-content h2 {
    font-size: 1.75rem;
  }

  .how-step-card {
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .how-step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 120px 0 64px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .hero-trust-dot {
    display: none;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hiw-grade-pills {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-try-card {
    padding: 32px 20px;
  }

  .demo-schedule-section {
    padding: 32px 20px;
  }
}
