/* ========== Design Tokens ========== */
:root {
  /* Brand / Structural Greens */
  --mint-950: #052e16;
  --mint-800: #166534;
  --mint-700: #15803d;
  --mint-600: #16a34a;
  --mint-100: #dcfce7;
  --mint-50: #f0fdf4;

  /* Surfaces */
  --surface-base: #ffffff;
  --surface-page: #f8faf9;
  --surface-raised: #ffffff;

  /* Semantic */
  --positive: #16a34a;
  --negative: #dc2626;

  /* Font families */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-data: 'JetBrains Mono', ui-monospace, monospace;

  /* Type scale */
  --text-display: clamp(28px, 4vw, 48px);
  --text-heading: 24px;
  --text-subhead: 18px;
  --text-body: 15px;
  --text-caption: 13px;
  --text-data: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Border radii */
  --radius-card: 16px;
  --radius-button: 10px;
  --radius-badge: 6px;
  --radius-pill: 999px;

  /* Spacing (8px multiples + 4 and 12) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --content-max: 1080px;
  --page-padding: 24px;
  --navbar-height: 57px;

  /* Effects */
  --focus-ring: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--mint-950);
  background: var(--surface-page);
}

/* ========== Layout ========== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--page-padding);
}

.center-content {
  text-align: center;
  margin-top: var(--space-8);
}

.center-content img {
  margin-bottom: var(--space-4);
}

/* ========== Base Elements ========== */
h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

h2 {
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--mint-800);
}

/* ========== Glass Nav ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.1) blur(6px);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid #e5e7eb;
  color: var(--mint-950);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar a,
.navbar .btn-link {
  color: var(--mint-950);
  text-decoration: none;
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--text-subhead);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar-logo {
  height: 28px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.navbar-links a {
  padding-bottom: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.navbar-links a:hover {
  color: var(--mint-700);
}

.navbar-links a.active {
  color: var(--mint-800);
  border-bottom-color: var(--mint-800);
  text-decoration: none;
}

.inline {
  display: inline;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--mint-800);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  font-size: var(--text-body);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--mint-700);
}

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

.btn-link {
  background: none;
  border: none;
  color: var(--mint-800);
  cursor: pointer;
  font-size: inherit;
  font-family: var(--font-body);
  text-decoration: underline;
}

.btn-secondary {
  background: var(--mint-600);
}

.btn-secondary:hover {
  background: var(--mint-700);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-caption);
}

.btn-danger {
  background: var(--negative);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-danger:disabled {
  background: var(--negative);
}

/* ========== Inputs ========== */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--text-body);
  border: 1px solid #ddd;
  border-radius: var(--radius-button);
  padding: var(--space-2) var(--space-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mint-600);
  box-shadow: var(--focus-ring);
}

/* ========== Cards & Surfaces ========== */

/* Summary cards */
.summary-bar {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.summary-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--surface-base);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.summary-label {
  font-size: var(--text-caption);
  font-weight: 500;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summary-amount {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin: var(--space-1) 0;
}

.summary-count {
  font-size: var(--text-caption);
  font-weight: 500;
  color: #999;
}

/* Category sections */
.category-section {
  border: none;
  border-radius: var(--radius-card);
  margin-bottom: var(--space-2);
  background: var(--surface-base);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.category-section-header {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  user-select: none;
  gap: var(--space-3);
}

.category-section-header:hover {
  background: var(--mint-50);
}

.category-section-toggle {
  font-size: 0.7rem;
  transition: transform 0.15s;
  color: #777;
}

.category-section.open .category-section-toggle {
  transform: rotate(90deg);
}

.category-section-name {
  flex: 1;
  font-size: var(--text-subhead);
  font-weight: 600;
}

.category-section-count {
  color: #777;
  font-size: var(--text-caption);
}

.category-section-total {
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.category-section-body {
  display: none;
  border-top: 1px solid #eee;
}

.category-section.open .category-section-body {
  display: block;
}

/* Category progress bar */
.category-progress {
  width: 100%;
  height: 6px;
  background: var(--mint-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: var(--space-2);
}

.category-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* Category dot */
.category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Settings card */
.settings-card {
  border: none;
  border-radius: var(--radius-card);
  padding: var(--space-5);
  background: var(--surface-base);
  box-shadow: var(--shadow-md);
}

/* Account groups */
.account-group {
  border: none;
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--surface-base);
  box-shadow: var(--shadow-md);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface-base);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h3 {
  margin-bottom: var(--space-3);
}

.modal input {
  width: 100%;
  margin-top: var(--space-2);
}

.modal input:focus {
  border-color: var(--negative);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ========== Setup Page ========== */
.setup-section {
  margin-top: var(--space-6);
}

.account-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.account-list {
  list-style: none;
  padding: 0;
}

.account-list li {
  padding: var(--space-1) 0;
  border-top: 1px solid #eee;
}

.muted {
  color: #777;
  font-size: var(--text-caption);
}

.error {
  color: var(--negative);
}

.setup-link-btn {
  margin-top: var(--space-4);
}

/* ========== Categories (Setup) ========== */
.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid #eee;
  background: var(--surface-base);
}

.category-row:first-child {
  border-top: 1px solid #ddd;
  border-radius: var(--radius-badge) var(--radius-badge) 0 0;
}

.category-row:last-child {
  border-bottom: 1px solid #ddd;
  border-radius: 0 0 var(--radius-badge) var(--radius-badge);
}

.category-row:only-child {
  border-radius: var(--radius-badge);
  border: 1px solid #ddd;
}

.category-name {
  flex: 1;
  min-width: 0;
}

.category-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.btn-link.danger {
  color: var(--negative);
}

.rename-input {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--mint-800);
  border-radius: var(--radius-badge);
  font-size: inherit;
}

.add-category-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.add-category-form input {
  flex: 1;
}

/* ========== Page Headers ========== */
.dashboard-header,
.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

/* ========== Account Filter ========== */
.account-filter {
  position: relative;
  display: inline-block;
}

.account-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-base);
  border: 1px solid #ddd;
  border-radius: var(--radius-button);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body);
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-filter-btn::after {
  content: '\25BC';
  font-size: 0.6em;
  color: #777;
}

.account-filter-btn:hover {
  border-color: #bbb;
}

.account-filter.open .account-filter-btn {
  border-color: var(--mint-600);
  box-shadow: var(--focus-ring);
}

.account-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface-base);
  border: 1px solid #ddd;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-md);
  z-index: 50;
  padding: var(--space-1) 0;
}

.account-filter.open .account-filter-dropdown {
  display: block;
}

.account-filter-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: var(--text-body);
  white-space: nowrap;
  transition: background-color 0.1s ease;
}

.account-filter-item:hover {
  background: var(--mint-50);
}

.account-filter-item input[type="checkbox"] {
  margin: 0;
  accent-color: var(--mint-700);
}

.transactions-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ========== Search Input ========== */
.search-input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid #ddd;
  border-radius: var(--radius-button);
  font-size: var(--text-body);
  font-family: var(--font-body);
  min-width: 200px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--mint-600);
  box-shadow: var(--focus-ring);
}

/* ========== Date Range Picker ========== */
.date-range-picker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.date-range-picker select {
  appearance: auto;
}

.custom-date-inputs {
  display: none;
  gap: var(--space-2);
}

.custom-date-inputs.visible {
  display: flex;
}

/* ========== Chart ========== */
.chart-heading {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

.charts-row {
  display: flex;
  gap: var(--space-7);
  justify-content: center;
  flex-wrap: wrap;
}

.chart-section {
  flex: 0 1 280px;
}

/* ========== Categories Header (Budget) ========== */
.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.categories-label {
  font-size: var(--text-heading);
  font-weight: 700;
}

.sort-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: var(--radius-button);
  overflow: hidden;
}

.sort-btn {
  padding: var(--space-1) var(--space-3);
  border: none;
  background: var(--surface-base);
  cursor: pointer;
  font-size: var(--text-caption);
  color: #555;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sort-btn + .sort-btn {
  border-left: 1px solid #ddd;
}

.sort-btn.active {
  background: var(--mint-800);
  color: #fff;
}

/* ========== Transaction Tables ========== */
.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-caption);
}

.txn-table thead {
  position: sticky;
  top: var(--navbar-height);
  background: var(--surface-base);
  z-index: 10;
}

.txn-table th,
.txn-table td {
  padding: var(--space-3) var(--space-3);
  text-align: left;
}

.txn-table th {
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #ddd;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.txn-table td {
  border-bottom: 1px solid #f0f0f0;
}

.txn-table tbody tr:nth-child(even) {
  background: var(--mint-50);
}

.txn-table tr:last-child td {
  border-bottom: none;
}

.col-date {
  min-width: 90px;
  white-space: nowrap;
}

.col-amount,
.amount {
  text-align: right;
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.col-account,
.col-account-cell {
  font-size: var(--text-caption);
  color: #777;
  max-width: 120px;
}

.col-category {
  min-width: 140px;
}

.category-select {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-badge);
  font-size: var(--text-caption);
  background: var(--surface-base);
}

.col-notes,
.col-notes-cell {
  min-width: 160px;
  max-width: 240px;
}

.notes-input {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 1px solid #ddd;
  border-radius: var(--radius-badge);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  background: var(--surface-base);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notes-input:hover {
  border-color: #bbb;
}

.notes-input:focus {
  outline: none;
  border-color: var(--mint-600);
  box-shadow: var(--focus-ring);
}

.notes-input:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Excluded transaction rows */
.txn-excluded {
  opacity: 0.45;
}

.col-exclude,
.col-exclude-cell {
  width: 32px;
  min-width: 32px;
  text-align: center;
  padding: 0 var(--space-1);
}

.exclude-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: var(--radius-badge);
  background: transparent;
  color: #bbb;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.exclude-btn:hover {
  color: var(--negative);
  background: rgba(220, 38, 38, 0.08);
}

.exclude-btn.active {
  color: var(--negative);
}

.exclude-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Semantic amount colors */
.amount-positive {
  color: var(--mint-950);
}

.amount-negative {
  color: var(--positive);
}

/* Sortable headers */
.txn-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.txn-table th.sortable:hover,
.txn-table th.sortable a:hover {
  color: var(--mint-800);
}

.txn-table th a {
  color: inherit;
  text-decoration: none;
}

.sort-indicator {
  margin-left: var(--space-1);
  font-size: 0.7rem;
}

/* ========== Pagination ========== */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.pagination-info {
  color: #777;
  font-size: var(--text-caption);
}

.pagination-nav-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination-nav button.pagination-active {
  background: var(--mint-800);
  color: #fff;
  border-color: var(--mint-800);
}

.pagination-ellipsis {
  padding: 0 var(--space-2);
  color: #777;
}

.per-page-select {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-badge);
  font-size: var(--text-caption);
  background: var(--surface-base);
}

/* ========== Toast Notifications ========== */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 400px;
}

.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-button);
  font-size: var(--text-caption);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toast-success {
  background: var(--mint-100);
  color: var(--mint-950);
  border: 1px solid #bbf7d0;
}

.toast-error {
  background: #fef2f2;
  color: var(--negative);
  border: 1px solid #fecaca;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(1rem); }
}

/* ========== Loading Spinner ========== */
.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* ========== Empty States ========== */
.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: #777;
}

.empty-state p {
  margin-bottom: var(--space-2);
}

.empty-state .empty-state-hint {
  font-size: var(--text-caption);
  color: #999;
}

/* ========== Settings Page ========== */
.settings-section {
  margin-top: var(--space-6);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-row p {
  margin-bottom: 0;
}

/* ========== Marketing Page ========== */
.marketing-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.marketing-hero {
  padding: var(--space-9) 0 var(--space-8);
  background: linear-gradient(170deg, var(--mint-50) 0%, var(--surface-page) 60%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint-700);
  margin-bottom: var(--space-3);
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-text h1 em {
  font-style: italic;
}

.hero-subtitle {
  font-size: var(--text-subhead);
  color: #555;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-5);
}

.hero-hint {
  font-size: var(--text-caption);
  color: #999;
  margin-top: var(--space-2);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-subhead);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--surface-base);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  width: 340px;
}

.hero-card-label {
  font-size: var(--text-caption);
  font-weight: 500;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-card-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: var(--space-2) 0 var(--space-4);
}

.hero-card-bar-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-card-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-card-bar-name {
  font-size: var(--text-caption);
  color: #555;
  width: 72px;
  flex-shrink: 0;
}

.hero-card-bar {
  flex: 1;
  height: 6px;
  background: var(--mint-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.hero-card-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* Marketing sections */
.marketing-section {
  padding: var(--space-9) 0;
}

.marketing-section-alt {
  background: var(--mint-50);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-subhead);
  color: #555;
  max-width: 560px;
  margin: calc(-1 * var(--space-6)) auto var(--space-7);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--surface-base);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  font-size: var(--text-subhead);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: #555;
  line-height: 1.7;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.step-card {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint-800);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-subhead);
  margin-bottom: var(--space-3);
}

.step-card h3 {
  font-size: var(--text-subhead);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-card p {
  color: #555;
  line-height: 1.7;
  font-size: var(--text-body);
}

/* Use case cards */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.usecase-card {
  background: var(--surface-base);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.usecase-card h3 {
  font-size: var(--text-subhead);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--mint-800);
}

.usecase-card p {
  color: #555;
  line-height: 1.7;
}

/* Bottom CTA */
.marketing-cta {
  padding: var(--space-9) 0;
  background: var(--mint-800);
  color: #fff;
  text-align: center;
}

.marketing-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-2);
}

.marketing-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-subhead);
  margin-bottom: var(--space-5);
}

.btn-cta-inverted {
  background: #fff;
  color: var(--mint-800);
}

.btn-cta-inverted:hover {
  background: var(--mint-50);
  color: var(--mint-800);
}

/* Footer */
.marketing-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid #e5e7eb;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  font-size: var(--text-subhead);
  color: var(--mint-950);
}

.footer-copy {
  color: #999;
  font-size: var(--text-caption);
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .container {
    padding: var(--space-5) var(--space-4);
  }

  .dashboard-header,
  .transactions-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .txn-table {
    font-size: var(--text-caption);
  }

  .txn-table th,
  .txn-table td {
    padding: var(--space-2) var(--space-2);
  }

  .chart-section {
    max-width: 100%;
  }

  .summary-bar {
    flex-direction: column;
  }

  .date-range-picker {
    flex-wrap: wrap;
  }

  .pagination-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

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