/* Rental Engine demo — mobile-first, themed via CSS variables set from config.js */

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

:root {
  --primary: #7c2d4a;
  --primary-dark: #5e2138;
  /* Modes may override --accent for their CTA colour; most inherit the primary. */
  --accent: var(--primary);
  --surface: #fdf9f7;
  --card: #ffffff;
  --text: #2b2024;
  --muted: #8a7580;
  --border: #eadfe3;
  --success: #2e7d52;
  --danger: #b3383e;
  --warning: #a06a12;
  --heading-font: Georgia, 'Times New Roman', serif;
  --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --heading-weight: 600;
  --heading-tracking: 0;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
}

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.2;
}

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

svg.ic { display: block; flex: 0 0 auto; }

/* Keyboard focus must be visible everywhere, not just implied by colour. */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .chip:focus-visible, .admin-tab:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container { max-width: 640px; margin: 0 auto; padding: 0 16px 96px; }
@media (min-width: 900px) { .container { max-width: 960px; } }

/* --- top bar --- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
}
.topbar .brand {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--heading-font); font-size: 18px; font-weight: 700;
}
.brand-logo {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.topbar .spacer { flex: 1; }
.topbar-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.topbar-link.active, .topbar-link:hover { color: var(--primary); background: var(--surface); }

/* --- hero --- */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 30px; color: var(--primary-dark); }
.hero p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 46ch; }

/* --- category chips --- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --- listing grid --- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07); }
.card:active { transform: scale(0.98); }

.thumb {
  aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
}
.thumb.tall { aspect-ratio: 4 / 3; font-size: 72px; border-radius: var(--r-lg); border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  background: var(--success);
}
.badge.busy { background: var(--warning); }
.badge.off { background: var(--muted); }

.card-body { padding: 10px 12px 12px; }
.card-body .cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card-body .name { font-size: 14px; font-weight: 700; margin-top: 2px; }
.card-body .price { font-size: 13px; margin-top: 4px; color: var(--primary-dark); }
.card-body .price b { font-size: 15px; }

/* --- listing detail --- */
.back-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 0 6px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--primary); }

.detail-head { padding-top: 12px; }
.detail-head h1 { font-size: 24px; }
.detail-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.detail-head .price-line { margin-top: 6px; font-size: 15px; color: var(--primary-dark); }
.detail-head .price-line b { font-size: 20px; }
.detail-desc { font-size: 14px; color: var(--muted); margin-top: 10px; }
.deposit-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.section-title { font-size: 17px; margin: 22px 0 4px; }
.section-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* --- calendar --- */
.calendar { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .month { font-weight: 700; font-size: 14.5px; }
.cal-nav {
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cal-nav:not(:disabled):hover { background: var(--surface); border-color: var(--primary); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; min-height: 44px; border: none; background: transparent; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text); position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cal-day:not(:disabled):hover { background: var(--surface); }
.cal-day:disabled { color: #c9bcc2; cursor: default; }
.cal-day.booked { color: #c9bcc2; text-decoration: line-through; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,0.03) 4px, rgba(0,0,0,0.03) 8px); }
.cal-day.in-range { background: color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 0; }
.cal-day.sel { background: var(--primary); color: #fff; font-weight: 700; }
.cal-day.sel.start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cal-day.sel.end { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cal-day.sel.start.end { border-radius: var(--r-sm); }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
}
.cal-day.sel.today::after { background: #fff; }

.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.free { background: var(--card); border: 1px solid var(--border); }
.dot.taken { background: #e8dde2; }
.dot.picked { background: var(--primary); }

/* --- quote / summary --- */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 14px; }
.quote-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.quote-row.total { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.quote-row .muted { color: var(--muted); }

/* --- forms --- */
.field { margin-top: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--card); color: var(--text);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 0; border-color: var(--primary);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; accent-color: var(--primary); }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 14px; border-radius: var(--r-md); border: none;
  font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.btn:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:active { background: color-mix(in srgb, var(--accent) 78%, #000); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:not(:disabled):hover { background: var(--surface); border-color: var(--primary); }
.btn.small { width: auto; min-height: 44px; padding: 9px 16px; font-size: 13px; border-radius: var(--r-sm); }
.btn.approve { background: var(--success); }
.btn.approve:not(:disabled):hover { background: color-mix(in srgb, var(--success) 88%, #000); }
.btn.decline { background: var(--card); color: var(--danger); border: 1px solid var(--border); }
.btn.decline:not(:disabled):hover { background: var(--card); border-color: var(--danger); }

/* --- sticky bottom bar (mobile booking CTA) --- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.07);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-bar-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.sticky-bar .total-label { font-size: 11px; color: var(--muted); }
.sticky-bar .total-amt { font-size: 17px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.sticky-bar .btn { flex: 1; }

/* --- status page --- */
.status-wrap { padding-top: 34px; text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.status-icon.pending { background: #f6ecd9; color: var(--warning); }
.status-icon.approved { background: #ddefe4; color: var(--success); }
.status-icon.declined { background: #f6dcdd; color: var(--danger); }
.status-wrap h1 { font-size: 24px; }
.status-wrap .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ref-pill {
  display: inline-block; margin-top: 14px; padding: 8px 18px;
  background: var(--card); border: 1.5px dashed var(--primary);
  border-radius: 999px; font-weight: 800; letter-spacing: 0.08em; font-size: 16px; color: var(--primary-dark);
}
.status-details { text-align: left; margin-top: 22px; }

.status-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; }
.status-tag.pending { background: #f6ecd9; color: var(--warning); }
.status-tag.approved { background: #ddefe4; color: var(--success); }
.status-tag.declined { background: #f6dcdd; color: var(--danger); }

/* --- admin --- */
/* Four tabs plus a long per-mode label (e.g. "Applications") outruns 375px,
   so the strip scrolls rather than squeezing labels below a tappable size. */
.admin-tabs { display: flex; gap: 8px; padding: 16px 0 4px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 0 0 auto; min-height: 44px; padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card); font-size: 13px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-tab.active { background: var(--text); border-color: var(--text); color: #fff; }
.admin-tab .count { font-size: 11px; background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 5px; }

/* --- admin dashboard: KPI tiles + revenue chart --- */
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 14px; }
@media (min-width: 700px) { .kpi-row { grid-template-columns: repeat(4, 1fr); } }
.kpi {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 14px;
}
.kpi-icon { color: var(--muted); margin-bottom: 4px; }
.kpi.alert .kpi-icon { color: var(--danger); }
.kpi-value { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--primary-dark); }
.kpi-label { font-size: 11.5px; color: var(--muted); line-height: 1.35; }

.chart-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px; margin-top: 12px;
}
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chart-head h2 { font-size: 14.5px; }
.chart-total { font-size: 15px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.chart { display: block; overflow: visible; }
.chart .bar { fill: var(--primary); }
.chart .bar.zero { fill: var(--border); }
.chart-labels { display: flex; margin-top: 6px; }
.chart-labels span {
  flex: 1; text-align: center; font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.booking-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-top: 12px; }
.booking-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.booking-card .who { font-weight: 700; font-size: 15px; }
.booking-card .meta { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.booking-card .meta b { color: var(--text); }
.booking-actions { display: flex; gap: 8px; margin-top: 12px; }
.booking-actions .btn { flex: 1; padding: 11px; font-size: 14px; }

.listing-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; margin-top: 10px;
}
.listing-row .mini { width: 48px; height: 48px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.listing-row .info { flex: 1; min-width: 0; }
.listing-row .info .name { font-weight: 700; font-size: 14px; }
.listing-row .info .sub { font-size: 12px; color: var(--muted); }
.listing-row .off-tag { font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 34px 0; }

/* --- toasts --- */
#toast-root { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--text); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; max-width: 92vw;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  animation: toast-in 0.2s ease;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.footnote { text-align: center; font-size: 11.5px; color: var(--muted); padding: 28px 0 8px; }
.footnote a, .footnote button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px;
  background: none; border: none; color: var(--muted); font-size: 11.5px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.footnote a:hover, .footnote button:hover { color: var(--primary); }

/* --- slot picker (hourly engine) --- */
.slot-picker { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }

.day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-pill {
  flex: 0 0 auto; min-width: 52px; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--border); background: var(--card); border-radius: var(--r-md);
  color: var(--text); transition: background-color 0.15s ease, border-color 0.15s ease;
}
.day-pill .dow { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day-pill .dom { font-size: 16px; font-weight: 700; }
.day-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.day-pill.active .dow { color: rgba(255, 255, 255, 0.8); }

.whole-day-toggle {
  width: 100%; min-height: 46px; margin-bottom: 10px;
  border: 1px dashed var(--border); background: var(--surface); border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 700; color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.whole-day-toggle.active { background: var(--primary); border-color: var(--primary); border-style: solid; color: #fff; }
.whole-day-toggle:disabled { opacity: 0.4; cursor: default; }

.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(4, 1fr); } }
.slot-grid.muted { opacity: 0.4; pointer-events: none; }
.slot-chip {
  min-height: 44px; border: 1px solid var(--border); background: var(--card);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.slot-chip.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-chip.taken, .slot-chip:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.slot-chip.taken { text-decoration: line-through; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(0,0,0,0.04) 4px, rgba(0,0,0,0.04) 8px); }

.whole-day-only { border: 1px dashed var(--border); border-radius: var(--r-md); padding: 16px; text-align: center; }
.whole-day-only .wd-title { font-weight: 700; font-size: 14.5px; }
.whole-day-only .wd-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.whole-day-only.taken .wd-title { color: var(--danger); }

/* --- tenancy engine: application panel + dues ledger --- */
.unit-state { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; }
.unit-state.taken { border-style: dashed; text-align: center; padding: 20px 16px; }
.unit-state.taken .wd-title { font-weight: 700; font-size: 14.5px; color: var(--danger); }
.unit-state.taken .wd-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.unit-state input[type="date"] { min-height: 46px; }
.move-in-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.move-in-note b { color: var(--primary-dark); font-size: 14px; }

.quote-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.dues { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.due-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 12px; background: var(--card);
}
.due-row.paid { opacity: 0.62; }
.due-when { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.due-when b { font-size: 13.5px; }
.due-when span { font-size: 11.5px; color: var(--muted); }
.due-amt { font-size: 14px; font-weight: 700; white-space: nowrap; }
.due-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; }
.due-tag.paid { background: #ddefe4; color: var(--success); }
.due-tag.open { background: #f6ecd9; color: var(--warning); }

.tenant-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; margin-top: 12px; }
.tenant-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tenant-card .who { font-weight: 700; font-size: 15px; }
.tenant-card .meta { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
.tenant-card .meta b { color: var(--text); }
.tenant-card .dues .due-row { background: var(--surface); }

/* --- hub: Eclair's own brand, so client skins read as "yours, not ours" --- */
.hub {
  min-height: 100vh;
  background: #0D0D0D;
  color: #F5F5F5;
  padding-bottom: 40px;
}
.hub .container { padding-bottom: 40px; }
.hub-head { padding: 52px 0 28px; }
.hub-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #C4964A;
}
.hub-head h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 9vw, 48px); line-height: 1.1; margin-top: 14px;
}
.hub-head p { color: #9A9A9A; font-size: 14.5px; margin-top: 14px; max-width: 46ch; }

.hub-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.hub-card {
  display: flex; align-items: stretch; gap: 0;
  background: #141414; border: 1px solid #222222; border-radius: 18px; overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hub-card:hover { border-color: #C4964A; background: #181818; }
.hub-art {
  flex: 0 0 92px; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}
.hub-body { padding: 16px 16px 16px 14px; min-width: 0; }
.hub-title { font-size: 16px; font-weight: 700; }
.hub-blurb { font-size: 13px; color: #9A9A9A; margin-top: 5px; line-height: 1.55; }
.hub-demo {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #C4964A; margin-top: 10px;
}

.hub-foot {
  font-size: 12.5px; color: #7A7A7A; text-align: center;
  padding: 34px 0 0; max-width: 52ch; margin: 0 auto; line-height: 1.7;
}
.hub-foot b { color: #C4964A; }
.hub-mark {
  display: block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C4964A;
}
