/* ============================================================
   StackFlow — design system
   Modern fintech: warm neutrals, confident numerals, emerald accent.
   ============================================================ */

@import url('https://rsms.me/inter/inter.css');

:root {
  /* Surfaces */
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --surface-3: #f1ede7;
  --border: #e8e3db;
  --border-strong: #d6cfc2;

  /* Text */
  --text: #1a1714;
  --text-2: #57514a;
  --text-3: #8a8278;
  --text-inverse: #ffffff;

  /* Brand: deep emerald (money / growth / trust) */
  --brand: #0f6b4a;
  --brand-hover: #0a5239;
  --brand-soft: #e6f3ed;
  --brand-ink: #07382a;

  /* Semantic */
  --positive: #15803d;
  --positive-soft: #e9f6ec;
  --negative: #b3261e;
  --negative-soft: #fbeaea;
  --warning: #b45309;
  --warning-soft: #fdf3e3;
  --info: #1d4f8a;
  --info-soft: #e7eff8;

  /* Earth-tone palette for buckets / goals */
  --c-terracotta: #c0644a;
  --c-ochre:      #c08a3a;
  --c-sage:       #6f8c5e;
  --c-teal:       #3a8a85;
  --c-slate:      #4f6b85;
  --c-plum:       #7c5380;
  --c-rose:       #b06a7a;
  --c-moss:       #4a6b3a;

  /* Radii & shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 16, 10, 0.04);
  --shadow-md: 0 4px 14px -4px rgba(20, 16, 10, 0.08), 0 1px 2px rgba(20, 16, 10, 0.04);
  --shadow-lg: 0 20px 40px -16px rgba(20, 16, 10, 0.14);

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --content-max: 1240px;

  /* Type */
  --font-sans: 'Inter var', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Inter var', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== Typography utilities ===== */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.display-xl { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.display-lg { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.display-md { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.display-sm { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.title { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.body { font-size: 14px; color: var(--text-2); }
.body-sm { font-size: 13px; color: var(--text-2); }
.caption { font-size: 12px; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
.brand { color: var(--brand); }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.brand-glyph {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--brand);
  display: grid; place-items: center;
  color: white;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-section {
  margin-top: 14px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.nav a svg { flex-shrink: 0; opacity: 0.85; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.nav a.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px; bottom: 8px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.nav a.active .nav-badge {
  background: var(--brand);
  color: white;
}
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.user-card:hover { background: var(--surface-2); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal), var(--c-sage));
  display: grid; place-items: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
}
.user-meta { line-height: 1.2; flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; }
.user-plan { font-size: 11px; color: var(--text-3); }

/* ===== Top bar ===== */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.crumbs {
  font-size: 13px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.crumbs strong { color: var(--text); font-weight: 600; }
.topbar-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--text-2);
  position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--negative);
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  width: 320px;
  color: var(--text-3);
  font-size: 13px;
}
.search kbd {
  margin-left: auto;
  font-size: 10px;
  background: var(--surface-3);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-sans);
  color: var(--text-3);
}

/* ===== Layout ===== */
.main {
  padding: 24px 32px 48px;
  max-width: var(--content-max);
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.page-sub { color: var(--text-2); margin-top: 4px; font-size: 14px; }

.grid {
  display: grid;
  gap: 16px;
}
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2-1 { grid-template-columns: 2fr 1fr; }
.grid.cols-1-2 { grid-template-columns: 1fr 2fr; }
.section { margin-bottom: 32px; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card.padded { padding: 24px; }
.card.flush { padding: 0; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header.no-border { border-bottom: 0; padding-bottom: 0; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.card-link { color: var(--brand); font-size: 13px; font-weight: 500; }
.card-link:hover { text-decoration: underline; }
.card-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-section:last-child { border-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger {
  background: var(--negative-soft);
  color: var(--negative);
  border-color: var(--negative-soft);
}
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

/* ===== Chips / pills ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid transparent;
}
.chip.pos { background: var(--positive-soft); color: var(--positive); }
.chip.neg { background: var(--negative-soft); color: var(--negative); }
.chip.warn { background: var(--warning-soft); color: var(--warning); }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.outline { background: transparent; border-color: var(--border); }
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--text);
}

/* ===== Stat block ===== */
.stat {
  padding: 4px 0;
}
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-delta { font-size: 12px; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.stat-delta.pos { color: var(--positive); }
.stat-delta.neg { color: var(--negative); }

/* ===== Progress ===== */
.progress {
  height: 8px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.progress > .bar {
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}
.progress.thin { height: 4px; }
.progress.thick { height: 12px; }
.progress > .bar.terracotta { background: var(--c-terracotta); }
.progress > .bar.ochre { background: var(--c-ochre); }
.progress > .bar.sage { background: var(--c-sage); }
.progress > .bar.teal { background: var(--c-teal); }
.progress > .bar.slate { background: var(--c-slate); }
.progress > .bar.plum { background: var(--c-plum); }
.progress > .bar.rose { background: var(--c-rose); }
.progress > .bar.moss { background: var(--c-moss); }

/* ===== Table ===== */
.t-table { width: 100%; border-collapse: collapse; }
.t-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.t-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.t-table tr:last-child td { border-bottom: 0; }
.t-table tbody tr:hover { background: var(--surface-2); }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.divider.tall { margin: 24px 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.kpi-grid .kpi {
  padding: 20px;
  border-right: 1px solid var(--border);
}
.kpi-grid .kpi:last-child { border-right: 0; }
.tab-row {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab-row .tab {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-row .tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tab-row .tab:hover:not(.active) { color: var(--text-2); }

/* ===== Inputs ===== */
.input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.helper { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ===== Account / institution mark ===== */
.bank-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.bank-mark.chase { background: #117ACA; }
.bank-mark.ally { background: #6C2DC7; }
.bank-mark.amex { background: #006FCF; }
.bank-mark.cap1 { background: #d03027; }
.bank-mark.discover { background: #ff6600; }
.bank-mark.bofa { background: #012169; }
.bank-mark.wf { background: #b31b1b; }
.bank-mark.schwab { background: #00a0df; }

/* ===== Bucket icon ===== */
.bucket-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bucket-icon.terracotta { background: rgba(192, 100, 74, 0.12); color: var(--c-terracotta); }
.bucket-icon.ochre { background: rgba(192, 138, 58, 0.12); color: var(--c-ochre); }
.bucket-icon.sage { background: rgba(111, 140, 94, 0.14); color: var(--c-sage); }
.bucket-icon.teal { background: rgba(58, 138, 133, 0.12); color: var(--c-teal); }
.bucket-icon.slate { background: rgba(79, 107, 133, 0.12); color: var(--c-slate); }
.bucket-icon.plum { background: rgba(124, 83, 128, 0.12); color: var(--c-plum); }
.bucket-icon.rose { background: rgba(176, 106, 122, 0.12); color: var(--c-rose); }
.bucket-icon.moss { background: rgba(74, 107, 58, 0.14); color: var(--c-moss); }

/* ===== Specific patterns ===== */

/* Money flow */
.flow-card {
  background: linear-gradient(135deg, #0f6b4a 0%, #0a5239 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.flow-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.flow-card .eyebrow { color: rgba(255,255,255,0.7); }
.flow-card .stat-value { color: white; }
.flow-card .ghost-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

/* Timeline event */
.event-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: 0; }
.event-date {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.event-date .d {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.event-date .m {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); margin-top: 2px;
}
.event-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.event-meta { flex: 1; min-width: 0; }
.event-title { font-weight: 600; font-size: 14px; }
.event-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.event-amount { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bucket card */
.bucket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.15s;
}
.bucket-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.bucket-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.bucket-stripe.terracotta { background: var(--c-terracotta); }
.bucket-stripe.ochre { background: var(--c-ochre); }
.bucket-stripe.sage { background: var(--c-sage); }
.bucket-stripe.teal { background: var(--c-teal); }
.bucket-stripe.slate { background: var(--c-slate); }
.bucket-stripe.plum { background: var(--c-plum); }
.bucket-stripe.rose { background: var(--c-rose); }
.bucket-stripe.moss { background: var(--c-moss); }

/* Sparkline */
.sparkline { display: block; }

/* Toggle */
.toggle {
  width: 38px; height: 22px;
  background: var(--border-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: left 0.15s;
}
.toggle.on { background: var(--brand); }
.toggle.on::after { left: 18px; }

/* Savings activity heatmap (used on dashboard + profile) */
.heatmap-svg { display: block; width: 100%; height: auto; }
.month-label {
  font-size: 10px;
  fill: var(--text-3);
  font-family: var(--font-sans);
}
.dow-label {
  font-size: 10px;
  fill: var(--text-3);
  font-family: var(--font-sans);
  text-anchor: end;
}
.legend-sq {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* Money flow diagram */
.flow-diagram {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: center;
  gap: 0;
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.flow-connector {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  position: relative;
}
.flow-connector::after {
  content: '';
  position: absolute;
  right: 8px; top: -3px;
  width: 0; height: 0;
  border: 4px solid transparent;
  border-left-color: var(--border-strong);
}

/* Help text in cards */
.help {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--brand-soft);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--brand-ink);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}
.empty-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface-3);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--text-3);
}

/* Splash for index of mocks */
.mock-index { max-width: 980px; margin: 64px auto; padding: 0 24px; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mock-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all 0.15s;
  display: block;
  color: inherit;
}
.mock-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mock-tile .num { color: var(--text-3); font-size: 12px; font-weight: 600; }
.mock-tile h3 { margin: 6px 0 4px; font-size: 16px; }
.mock-tile p { margin: 0; color: var(--text-2); font-size: 13px; }

/* Marketing landing */
.landing-nav {
  display: flex; align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.hero {
  padding: 96px 48px;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.hero p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Misc small bits */
.dot-sep { color: var(--text-3); margin: 0 6px; }
.kbd-like { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--text-2); }

@media (max-width: 1080px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-2-1, .grid.cols-1-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app { grid-template-columns: 1fr; }
}
