/* ── CareVault Design System ────────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --success:        #10b981;
  --success-light:  #ecfdf5;
  --warning:        #f59e0b;
  --warning-light:  #fffbeb;
  --danger:         #ef4444;
  --danger-light:   #fef2f2;
  --purple:         #8b5cf6;
  --purple-light:   #f5f3ff;
  --orange:         #f97316;
  --orange-light:   #fff7ed;

  --bg:             #f0f4f8;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --border:         #e2e8f0;

  --text:           #0f172a;
  --text-2:         #475569;
  --text-3:         #94a3b8;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.08);

  --nav-w: 256px;
  --hdr-h: 60px;
  --t: .18s ease;
}

[data-theme="dark"] {
  --bg:         #0f172a;
  --surface:    #1e293b;
  --surface-2:  #0f1a2e;
  --border:     #334155;
  --text:       #f1f5f9;
  --text-2:     #94a3b8;
  --text-3:     #475569;
  --primary-light:  #172554;
  --success-light:  #052e16;
  --warning-light:  #431407;
  --danger-light:   #450a0a;
  --purple-light:   #2e1065;
  --orange-light:   #431407;
  --shadow:    0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Layout ── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--nav-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--t);
}

.main-area {
  margin-left: var(--nav-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  height: var(--hdr-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.page-content {
  padding: 1.75rem 1.75rem 5rem;
  flex: 1;
}

/* ── Brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.1rem 1rem 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 20px; height: 20px; stroke: #fff; }
.brand-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.brand-tag  { font-size: .65rem; color: var(--text-3); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

/* ── Nav ── */
.nav-section { padding: .75rem .75rem 0; }
.nav-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: .5rem .75rem .25rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  margin-bottom: 2px;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-link.active svg { stroke: var(--primary); }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.nav-footer {
  margin-top: auto;
  padding: .75rem;
  border-top: 1px solid var(--border);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .65rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t);
}
.nav-user:hover { background: var(--surface-2); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; }
.avatar.xl { width: 80px; height: 80px; font-size: 1.8rem; }
.user-name  { font-size: .85rem; font-weight: 600; color: var(--text); }
.user-role  { font-size: .72rem; color: var(--text-3); }

/* ── Top bar controls ── */
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  color: var(--text-2);
}
.icon-btn:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 16px; height: 16px; }

.hamburger { display: none; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow); }
.card-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .35rem;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--primary));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-light, var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .2rem;
}
.stat-icon svg { width: 18px; height: 18px; stroke: var(--accent, var(--primary)); }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-3); font-weight: 500; }
.stat-change { font-size: .72rem; font-weight: 600; display: flex; align-items: center; gap: .2rem; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gap-1  { gap: 1rem; }

/* ── Page header ── */
.page-header {
  margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.page-header h1 { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.page-header p  { font-size: .87rem; color: var(--text-3); margin-top: .2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity var(--t), transform .1s, box-shadow var(--t);
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }

.btn-primary   { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.btn-success   { background: var(--success); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.btn-danger    { background: var(--danger);  color: #fff; }
.btn-ghost     { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.4rem; font-size: 1rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .75rem; color: var(--text-3); margin-top: .3rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  background: var(--surface-2);
  padding: .65rem 1rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-blue    { background: var(--primary-light); color: var(--primary); }
.badge-green   { background: var(--success-light); color: var(--success); }
.badge-yellow  { background: var(--warning-light); color: var(--warning); }
.badge-red     { background: var(--danger-light);  color: var(--danger); }
.badge-purple  { background: var(--purple-light);  color: var(--purple); }
.badge-orange  { background: var(--orange-light);  color: var(--orange); }

/* ── Pills (medication times) ── */
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  padding: .2rem .65rem;
  border-radius: 99px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
}

/* ── Item list ── */
.item-list { display: flex; flex-direction: column; gap: .6rem; }
.item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: box-shadow var(--t), transform var(--t);
  cursor: default;
}
.item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.item-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.item-icon svg { width: 20px; height: 20px; }
.item-body { flex: 1; min-width: 0; }
.item-title { font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub   { font-size: .78rem; color: var(--text-3); margin-top: .1rem; }
.item-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }

/* ── Modal ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-md);
  transform: translateY(16px) scale(.97);
  transition: transform var(--t);
}
.overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-title  { font-size: 1.1rem; font-weight: 700; }
.modal-close  { background: none; border: none; cursor: pointer; color: var(--text-3); padding: .25rem; border-radius: var(--r-sm); }
.modal-close:hover { color: var(--danger); background: var(--danger-light); }
.modal-footer { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  z-index: 999; display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--surface);
  padding: .75rem 1.1rem;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem;
  pointer-events: all;
  animation: slide-in .25s ease;
  max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slide-out{ to   { transform: translateX(120%); opacity: 0; } }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
}
.empty-state .empty-icon {
  width: 64px; height: 64px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.empty-state .empty-icon svg { width: 28px; height: 28px; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-2); margin-bottom: .4rem; }
.empty-state p  { font-size: .85rem; }

/* ── Chart wrapper ── */
.chart-wrap { position: relative; height: 220px; }

/* ── Vitals grid ── */
.vitals-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.vital-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem .85rem;
  text-align: center;
}
.vital-val  { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.vital-unit { font-size: .7rem; font-weight: 600; color: var(--text-3); }
.vital-lbl  { font-size: .72rem; color: var(--text-3); margin-top: .2rem; }
.vital-time { font-size: .68rem; color: var(--text-3); margin-top: .15rem; }

/* ── Emergency page ── */
.emergency-shell {
  background: linear-gradient(160deg, #dc2626 0%, #991b1b 100%);
  min-height: 100vh; padding: 1.5rem;
}
.emg-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.emg-header {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff; padding: 1.5rem;
  text-align: center;
}
.emg-header h1 { font-size: 1.3rem; font-weight: 900; letter-spacing: .05em; }
.emg-body { padding: 1.25rem; }
.emg-section { margin-bottom: 1.1rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 1.1rem; }
.emg-section:last-child { border: none; margin: 0; }
.emg-label { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .4rem; }
.blood-type { font-size: 4rem; font-weight: 900; color: #dc2626; line-height: 1; }
.emg-tag {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 99px;
  margin: .2rem;
  font-size: .8rem; font-weight: 700;
}
.tag-allergy  { background: #fef2f2; color: #dc2626; border: 1.5px solid #fecaca; }
.tag-med      { background: #eff6ff; color: #2563eb; border: 1.5px solid #bfdbfe; }
.emg-contact { background: #f0fdf4; border-radius: var(--r-sm); padding: .75rem; margin-top: .4rem; }
.emg-contact .name { font-weight: 700; color: #0f172a; }
.emg-contact .phone { color: #059669; font-size: 1.1rem; font-weight: 700; }

/* ── Landing page ── */
.landing { max-width: 1100px; margin: 0 auto; }
.hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem 1rem;
  border: 1.5px solid var(--primary);
  border-radius: 99px;
  font-size: .78rem; font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; padding: 0 1rem 5rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: box-shadow var(--t), transform var(--t);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .87rem; color: var(--text-2); line-height: 1.6; }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.landing-nav .brand { border: none; padding: 0; }

/* ── Setup wizard ── */
.setup-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}
.setup-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.setup-step { display: none; }
.setup-step.active { display: block; }
.setup-progress {
  display: flex; gap: .4rem; margin-bottom: 2rem;
}
.progress-dot {
  height: 4px; flex: 1; border-radius: 99px;
  background: var(--border);
  transition: background .3s;
}
.progress-dot.done { background: var(--primary); }

/* ── Mobile ── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: .4rem 0 .5rem;
}
.mobile-nav-grid { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .4rem .5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text-3);
  font-size: .62rem; font-weight: 600;
  min-width: 56px;
  transition: color var(--t);
}
.mobile-nav-item svg { width: 20px; height: 20px; }
.mobile-nav-item.active { color: var(--primary); }

/* ── Utilities ── */
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.mt-1   { margin-top: .5rem; }
.mt-2   { margin-top: 1rem; }
.mt-3   { margin-top: 1.5rem; }
.mb-1   { margin-bottom: .5rem; }
.mb-2   { margin-bottom: 1rem; }
.w-full { width: 100%; }
.text-sm{ font-size: .85rem; }
.text-xs{ font-size: .75rem; }
.bold   { font-weight: 700; }
.muted  { color: var(--text-3); }
.danger { color: var(--danger); }
.success{ color: var(--success); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border); margin: 1rem 0; }
.section-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .page-content { padding: 1rem 1rem 6rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-title { display: none; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
@media print {
  .sidebar, .top-bar, .mobile-nav { display: none !important; }
  .main-area { margin: 0; }
  body { background: #fff; }
}
