/* ==========================================================================
   SparrowiMailer · global.css · v7 · Mobile-first responsive foundation
   Tokens · Reset · Typography · Grid · Buttons · Forms · Cards · Modals ·
   Sheets · Navbar · Footer · Mobile-app shell · 7-tier breakpoints
   ========================================================================== */

/* ---------------- Design tokens ---------------- */
:root {
  /* Brand */
  --c-purple: #7c3aed;
  --c-purple-600: #6d28d9;
  --c-purple-700: #5b21b6;
  --c-purple-50: #f5f3ff;
  --c-purple-100: #ede9fe;
  --c-gold: #facc15;
  --c-gold-50: #fffbeb;

  /* Neutrals */
  --c-ink: #0b0716;
  --c-ink-2: #1f1b2e;
  --c-text: #1f2937;
  --c-text-muted: #6b7280;
  --c-text-subtle: #9ca3af;
  --c-line: #e5e7eb;
  --c-line-soft: #f1f3f5;
  --c-bg: #ffffff;
  --c-bg-alt: #faf9fb;
  --c-bg-soft: #f7f5fa;

  /* Status */
  --c-success: #10b981;
  --c-warn: #f59e0b;
  --c-danger: #ef4444;
  --c-info: #3b82f6;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,11,30,.06);
  --sh-md: 0 6px 16px rgba(15,11,30,.08);
  --sh-lg: 0 18px 40px rgba(15,11,30,.12);
  --sh-xl: 0 30px 70px rgba(15,11,30,.16);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;

  /* Type */
  --f-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --fs-base: 15px;
  --lh-base: 1.6;

  /* Motion */
  --t-fast: 120ms ease;
  --t: 200ms ease;
  --t-slow: 360ms cubic-bezier(.2,.7,.2,1);

  /* Layout */
  --nav-h: 64px;
  --bottom-tab-h: 64px;
  --container-max: 1240px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-purple); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-purple-700); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.6vw, 36px); }
h3 { font-size: clamp(20px, 2.6vw, 26px); }
h4 { font-size: clamp(17px, 2vw, 20px); }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin: 0 0 1em; }
small { font-size: 13px; color: var(--c-text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-purple);
  background: var(--c-purple-50);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.eyebrow .dot, .eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-purple); flex-shrink: 0;
}
.eyebrow .pulse { background: var(--c-success); animation: pulse 1.6s ease-out infinite; }
.eyebrow--gold { color: #92400e; background: var(--c-gold-50); }
.eyebrow--gold .dot { background: var(--c-gold); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.gold { color: #b45309; }
.text-muted { color: var(--c-text-muted) !important; }
.text-ink { color: var(--c-ink); }

/* ---------------- Container & Grid ---------------- */
.container, .container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--s-4);
}
.container { max-width: var(--container-max); }

@media (min-width: 481px) { .container, .container-fluid { padding-inline: var(--s-5); } }
@media (min-width: 769px) { .container, .container-fluid { padding-inline: var(--s-6); } }

.row-grid { display: grid; gap: var(--s-4); }
@media (min-width: 481px) { .row-grid { gap: var(--s-5); } }
@media (min-width: 769px) { .row-grid { gap: var(--s-6); } }

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 481px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Sections ---------------- */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section--alt { background: var(--c-bg-alt); }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------------- Buttons ---------------- */
.btn, .btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14.5px; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent; color: var(--c-ink);
  cursor: pointer; user-select: none; white-space: nowrap;
  text-decoration: none !important;
  min-height: 44px;
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
}
.btn:active, .btn-pill:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

.btn-pill--primary, .btn-purple {
  background: var(--c-ink); color: #fff; border-color: var(--c-ink);
}
.btn-pill--primary:hover, .btn-purple:hover {
  background: var(--c-purple); border-color: var(--c-purple); color: #fff;
}
.btn-pill--gold {
  background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold);
}
.btn-pill--gold:hover { background: #eab308; color: var(--c-ink); }
.btn-pill--ghost, .btn-ghost {
  background: transparent; color: var(--c-ink); border-color: var(--c-line);
}
.btn-pill--ghost:hover, .btn-ghost:hover { background: var(--c-bg-alt); border-color: var(--c-ink); }
.btn-pill--dark { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn-pill--dark:hover { background: var(--c-purple); border-color: var(--c-purple); }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-ink); }

.btn-danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-success { background: var(--c-success); color: #fff; border-color: var(--c-success); }

.btn-group { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: var(--s-4); }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--c-text); margin-bottom: 6px;
}
.form-control, .form-select {
  display: block; width: 100%;
  padding: 12px 14px;
  font-size: 15px; line-height: 1.4;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.form-control[readonly] { background: var(--c-bg-alt); }
.form-control::placeholder { color: var(--c-text-subtle); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
.form-hint { font-size: 12.5px; color: var(--c-text-muted); margin-top: 4px; }
.form-error { font-size: 12.5px; color: var(--c-danger); margin-top: 4px; }
.input-icon {
  position: relative;
}
.input-icon .form-control { padding-left: 42px; }
.input-icon > i, .input-icon > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); pointer-events: none;
}

.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.form-check-input {
  width: 18px; height: 18px;
  accent-color: var(--c-purple);
  cursor: pointer;
}

/* ---------------- Cards ---------------- */
.card-soft {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.card-soft__head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-family: var(--f-display);
  font-size: 17px; color: var(--c-ink);
  margin-bottom: var(--s-4);
}
.card-soft__head i { color: var(--c-purple); font-size: 18px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-sm);
}
.stat-card__label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}
.stat-card__value {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 700;
  color: var(--c-ink); line-height: 1.1;
}
.stat-card__sub { font-size: 12.5px; color: var(--c-text-muted); margin-top: 4px; }

/* ---------------- Badges & chips ---------------- */
.badge-soft {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--c-purple-50); color: var(--c-purple-700);
  white-space: nowrap;
}
.badge-soft--success { background: #d1fae5; color: #065f46; }
.badge-soft--warn    { background: #fef3c7; color: #92400e; }
.badge-soft--danger  { background: #fee2e2; color: #991b1b; }
.badge-soft--info    { background: #dbeafe; color: #1e40af; }
.badge-soft--neutral { background: var(--c-bg-alt); color: var(--c-text-muted); }

/* ---------------- Tables ---------------- */
.t-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.t-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.t-table th, .t-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: middle;
}
.t-table th {
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  white-space: nowrap;
}
.t-table tr:last-child td { border-bottom: none; }
.t-table tbody tr:hover { background: var(--c-bg-alt); }

/* Stack into cards on mobile */
@media (max-width: 768px) {
  .t-wrap--responsive .t-table thead { display: none; }
  .t-wrap--responsive .t-table, .t-wrap--responsive tbody, .t-wrap--responsive tr, .t-wrap--responsive td { display: block; width: 100%; }
  .t-wrap--responsive tr {
    padding: var(--s-4);
    border-bottom: 1px solid var(--c-line-soft);
  }
  .t-wrap--responsive tr:last-child { border-bottom: none; }
  .t-wrap--responsive td {
    padding: 6px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .t-wrap--responsive td::before {
    content: attr(data-label);
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--c-text-muted);
    flex-shrink: 0;
  }
}

/* ---------------- Alerts ---------------- */
.alert-soft {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  border: 1px solid transparent;
  margin-bottom: var(--s-4);
}
.alert-soft--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-soft--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-soft--warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-soft--danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------------- Modals & sheets ---------------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(15,11,30,.5);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
  backdrop-filter: blur(4px);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: #fff;
  border-radius: var(--r-xl);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--sh-xl);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.modal-card.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

/* Bottom-sheet: phones only */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  z-index: 100;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: var(--sh-xl);
  padding-bottom: var(--safe-bottom);
}
.sheet.is-open { transform: translateY(0); }
.sheet__handle {
  width: 40px; height: 4px;
  background: var(--c-line);
  border-radius: var(--r-pill);
  margin: 10px auto;
}
.sheet__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--c-line-soft);
}
.sheet__title { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--c-ink); margin: 0; }
.sheet__close {
  background: var(--c-bg-alt); border: none;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
}
.sheet__body { padding: var(--s-4) var(--s-5) var(--s-6); }

/* On tablet+ a sheet becomes a side-panel from right.
   v18: anchor top below the sticky navbar so the panel doesn't bleed under it. */
@media (min-width: 769px) {
  .sheet {
    left: auto; right: 0; top: var(--nav-h); bottom: 0;
    width: min(440px, 90vw);
    max-height: calc(100vh - var(--nav-h));
    border-radius: var(--r-xl) 0 0 var(--r-xl);
    transform: translateX(100%);
    z-index: 40; /* below navbar (z-50) so navbar stays interactive */
    box-shadow: -12px 0 36px rgba(15,11,30,.18);
  }
  .sheet.is-open { transform: translateX(0); }
  /* Hide the mobile drag handle on desktop — it looks out of place. */
  .sheet .sheet__handle { display: none; }
  /* Scrim must also start below the navbar so the navbar remains clickable for closing. */
  .scrim { top: var(--nav-h); z-index: 35; }
}

/* ---------------- Top Navbar ---------------- */
.navbar-sparrow {
  position: sticky; top: 0; z-index: 60; /* v18: above any side sheet (z-40) and scrim (z-35) */
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  padding-top: var(--safe-top);
}
.navbar-sparrow > .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  height: var(--nav-h);
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-ink) !important;
  letter-spacing: -.02em;
}
.brand-mark__bird {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--c-purple);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links {
  display: none;
  gap: var(--s-5);
}
.nav-links a {
  font-size: 14.5px; font-weight: 500;
  color: var(--c-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a.active, .nav-links a:hover { color: var(--c-ink); border-bottom-color: var(--c-purple); }
@media (min-width: 1025px) {
  .nav-links--desktop { display: inline-flex; }
}
.nav-actions { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav-toggle {
  background: transparent; border: 1px solid var(--c-line);
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink);
}
@media (min-width: 1025px) { .nav-toggle { display: none; } }
.nav-toggle__icon { position: relative; width: 16px; height: 12px; }
.nav-toggle__icon span,
.nav-toggle__icon span::before,
.nav-toggle__icon span::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 2px; background: var(--c-ink); border-radius: 2px;
}
.nav-toggle__icon span { top: 50%; transform: translateY(-50%); }
.nav-toggle__icon span::before { top: -5px; }
.nav-toggle__icon span::after  { top: 5px; }

/* ---------------- Mobile Drawer ---------------- */
.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(15,11,30,.5);
  z-index: 80;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(330px, 86vw);
  background: #fff;
  z-index: 90;
  transform: translateX(-100%);
  transition: transform var(--t-slow);
  box-shadow: var(--sh-xl);
  display: flex; flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}
.nav-drawer.is-open { transform: translateX(0); }
/* Hide drawer + scrim entirely on desktop — prevents accidental flash */
@media (min-width: 1025px) {
  .nav-drawer, .nav-scrim { display: none !important; }
}
.nav-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
}
.nav-drawer__close {
  background: var(--c-bg-alt); border: none;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink);
}
.nav-drawer__group { padding: var(--s-3) var(--s-4); }
.nav-drawer__group-label {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-text-muted);
  padding: 6px 12px;
}
.nav-drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px;
  color: var(--c-text) !important;
  font-weight: 500; font-size: 15px;
  border-radius: var(--r-md);
  transition: background var(--t);
  min-height: 48px;
}
.nav-drawer__link:hover, .nav-drawer__link.active {
  background: var(--c-purple-50);
  color: var(--c-purple-700) !important;
}
.nav-drawer__link .icon { color: var(--c-purple); margin-right: 10px; font-size: 18px; }
.nav-drawer__link .arrow { color: var(--c-text-subtle); font-size: 13px; }
.nav-drawer__footer {
  margin-top: auto;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--c-line);
  display: grid; gap: var(--s-2);
}

/* ---------------- Mobile bottom-tab bar (dashboard only) ---------------- */
.bottom-tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
  z-index: 60;
  display: flex;
  padding: 6px 6px calc(6px + var(--safe-bottom));
  gap: 2px;
}
.bottom-tabs__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px;
  font-size: 10.5px; font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: none;
  border-radius: var(--r-md);
  min-height: 52px;
  gap: 2px;
}
.bottom-tabs__item i { font-size: 19px; line-height: 1; }
.bottom-tabs__item.active { color: var(--c-purple); background: var(--c-purple-50); }
.bottom-tabs__item:hover { color: var(--c-ink); }

/* Show only on phones, dashboard pages */
@media (min-width: 769px) {
  .bottom-tabs { display: none; }
}
body.has-bottom-tabs { padding-bottom: calc(var(--bottom-tab-h) + var(--safe-bottom)); }
@media (min-width: 769px) {
  body.has-bottom-tabs { padding-bottom: 0; }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--c-ink);
  color: #d8d4e4;
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}
.site-footer a { color: #d8d4e4; }
.site-footer a:hover { color: #fff; }
.site-footer h6 {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-gold);
  margin-bottom: var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
@media (min-width: 481px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-social {
  display: inline-flex; gap: 8px; margin-top: var(--s-4);
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid #2a2440;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.footer-social a:hover { background: var(--c-purple); border-color: var(--c-purple); }
.footer-meta {
  border-top: 1px solid #2a2440;
  margin-top: var(--s-7); padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  font-size: 13px; color: #9c95b3;
}

/* ---------------- Utilities ---------------- */
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.d-inline-flex { display: inline-flex !important; }
@media (min-width: 481px) { .d-sm-flex { display: flex !important; } .d-sm-none { display: none !important; } }
@media (min-width: 769px) { .d-md-flex { display: flex !important; } .d-md-none { display: none !important; } .d-md-block { display: block !important; } }
@media (min-width: 1025px) { .d-lg-flex { display: flex !important; } .d-lg-none { display: none !important; } .d-lg-inline-flex { display: inline-flex !important; } .d-lg-block { display: block !important; } }
.text-center { text-align: center; }
.text-end { text-align: right; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.py-4 { padding-block: var(--s-5); } .py-5 { padding-block: var(--s-7); }
.py-md-5 { padding-block: var(--s-7); }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.w-100 { width: 100%; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible, .reveal { opacity: 1; transform: none; } /* progressive: show by default if no JS */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- Print ---------------- */
@media print {
  .navbar-sparrow, .nav-drawer, .nav-scrim, .bottom-tabs, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}
