/* ========================================
   EverLead — Pre-need Marketing Platform
   Warm ivory/charcoal/bronze design system
   ======================================== */

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

:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-sidebar: #1A1814;
  --bg-sidebar-hover: #2A2720;
  --bg-sidebar-active: #342F28;
  --text: #1C1917;
  --text-muted: #78716C;
  --text-light: #A8A29E;
  --text-sidebar: #D6D3D1;
  --accent: #B45309;
  --accent-dark: #92400E;
  --accent-light: #FDE68A;
  --border: #E7E5E4;
  --border-input: #D6D3D1;
  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --info: #2563EB;
  --info-bg: #EFF6FF;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow: 0 2px 8px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 4px 24px rgba(28, 25, 23, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== App Shell ========== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ========== Sidebar ========== */
.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.5rem 1.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-ever {
  color: #E7E5E4;
  font-family: var(--font-heading);
  font-weight: 400;
}

.brand-lead {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 400;
}

.sidebar-nav {
  padding: 0.75rem 0.75rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: #fff;
}

.nav-item.active svg { opacity: 1; }
.nav-item svg { opacity: 0.6; flex-shrink: 0; }
.nav-item:hover svg { opacity: 1; }

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem;
  margin-bottom: 0.25rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info { overflow: hidden; }

.user-home {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E7E5E4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-link { color: var(--text-light) !important; }
.logout-link:hover { color: #fff !important; }

/* ========== Main Content ========== */
.main-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

/* ========== Page Header ========== */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.page-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ========== Metrics Grid ========== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.metric-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-leads { background: #FDE68A30; color: var(--accent); }
.metric-icon-campaigns { background: #DBEAFE30; color: var(--info); }
.metric-icon-spend { background: #D1FAE530; color: var(--success); }
.metric-icon-cpl { background: #FEE2E230; color: var(--danger); }

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-family: var(--font-heading);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ========== Section Cards ========== */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ========== Pipeline ========== */
.pipeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.pipeline-stage { text-align: center; flex: 1; }

.pipeline-count {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pipeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pipeline-arrow {
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.stage-new { color: var(--info); }
.stage-contacted { color: var(--warning); }
.stage-appointment { color: var(--accent); }
.stage-sold { color: var(--success); }

/* ========== Capture CTA ========== */
.capture-cta { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border-color: #FDE68A; }

.capture-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.capture-link-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.capture-link-box code {
  flex: 1;
  font-size: 0.85rem;
  color: var(--accent-dark);
  word-break: break-all;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ========== Data Table ========== */
.table-wrap { overflow-x: auto; }

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

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #F5F5F4;
  color: var(--text);
}

.data-table tbody tr:hover { background: #FAF9F7; }
.data-table a { color: var(--accent-dark); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

.td-name { font-weight: 600; white-space: nowrap; }
.td-date { color: var(--text-muted); white-space: nowrap; font-size: 0.8rem; }

/* ========== Status Badges ========== */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-new { background: var(--info-bg); color: var(--info); }
.status-contacted { background: var(--warning-bg); color: var(--warning); }
.status-appointment { background: #FDE68A40; color: var(--accent-dark); }
.status-sold { background: var(--success-bg); color: var(--success); }
.status-draft { background: #F5F5F4; color: var(--text-muted); }
.status-active { background: var(--success-bg); color: var(--success); }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-sent { background: var(--success-bg); color: var(--success); }

/* ========== Status Select ========== */
.status-select {
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-family: inherit;
  appearance: auto;
}

.status-select.status-new { border-color: var(--info); color: var(--info); }
.status-select.status-contacted { border-color: var(--warning); color: var(--warning); }
.status-select.status-appointment { border-color: var(--accent); color: var(--accent-dark); }
.status-select.status-sold { border-color: var(--success); color: var(--success); }

/* ========== Filter Pills ========== */
.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.filter-pill:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-pill.active { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }

.pill-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ========== Template Cards ========== */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.15s;
}

.template-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.template-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.template-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.tag-educational { background: #DBEAFE; color: #1D4ED8; }
.tag-emotional { background: #FCE7F3; color: #BE185D; }
.tag-financial { background: #D1FAE5; color: #065F46; }

.template-preview {
  background: #FAF9F7;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.template-copy {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.template-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

/* ========== Keywords ========== */
.keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.keyword-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.keyword-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.keyword-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #FDE68A30;
  border: 1px solid #FDE68A;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
}

/* ========== Nurture Timeline ========== */
.nurture-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.nurture-timeline {
  position: relative;
  padding-left: 2rem;
}

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

.nurture-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.nurture-step:last-child { margin-bottom: 0; }

.step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content { flex: 1; }
.step-day { font-size: 0.75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.step-content h4 { font-size: 0.95rem; margin: 0.15rem 0 0.25rem; }
.step-content p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== Enroll Row ========== */
.enroll-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.form-select {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #FAFAF9;
  color: var(--text);
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent-dark);
  color: white;
}
.btn-primary:hover { background: #78350F; }

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: #FDE68A20; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: #FEE2E2; }

/* ========== Forms ========== */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #FAFAF9;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
  background: white;
}

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

.settings-form { max-width: 600px; }

/* ========== Alerts ========== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECACA; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #A7F3D0; }

/* ========== Auth Pages ========== */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FAF8F5 0%, #F0EDE8 50%, #E7E5E4 100%);
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-form { margin-top: 1.5rem; }
.auth-form .btn { margin-top: 0.5rem; }

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-switch a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-state svg { margin-bottom: 0.75rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-sidebar);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== Loading States ========== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.spinner-dark {
  border-color: rgba(28, 25, 23, 0.2);
  border-top-color: var(--accent-dark);
}

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

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -8px;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, #F5F5F4 25%, #E7E5E4 50%, #F5F5F4 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ========== Mobile Hamburger ========== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--bg-sidebar);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.mobile-menu-btn svg { color: white; }

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.25s;
}

.mobile-overlay.show {
  display: block;
  opacity: 1;
}

/* ========== Enhanced Empty States ========== */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state svg {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.empty-state .btn {
  margin-top: 0.5rem;
}

/* ========== Smooth Transitions ========== */
.metric-card, .template-card, .section-card {
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.filter-pill, .btn, .nav-item {
  transition: all 0.15s ease;
}

input, select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.15s ease;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-inner { padding: 4.5rem 1.25rem 1.25rem; } /* Extra top padding for hamburger */
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-row { flex-wrap: wrap; gap: 0.75rem; }
  .pipeline-arrow { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .keywords-grid { grid-template-columns: 1fr; }
  .filter-row { gap: 0.35rem; }

  /* Better touch targets on mobile */
  .btn { min-height: 44px; }
  .filter-pill { min-height: 36px; }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px; /* Prevent iOS zoom */
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .page-inner { padding: 4rem 1rem 1rem; }
}
