/* ==========================================================================
   Intestate / GhanaARMS — app.css
   Carbon-structured component library, "Civic Ledger" aesthetic.
   Editorial display serif + warm paper canvas + a signature hairline motif.
   Consumes tokens from custom.css. Class names are stable across all pages.
   ========================================================================== */

*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the paper canvas carries a whisper of a ledger rule */
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: repeating-linear-gradient(
    0deg, transparent 0 31px, rgba(20,32,31,.022) 31px 32px);
}

a { color: var(--primary); text-decoration: none; transition: color .12s var(--ease); }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }

h1,h2,h3 {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.18; margin: 0 0 .5rem;
  color: var(--ink); letter-spacing: -.012em;
}
h4 { font-weight: 600; line-height: 1.3; margin: 0 0 .5rem; color: var(--ink); }
h1 { font-size: 2.15rem; } h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }  h4 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
.muted { color: var(--text-muted); }
.mono  { font-family: var(--font-mono); }

::selection { background: var(--primary); color:#fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px; border-radius: 2px;
}

/* ---- Top bar ---------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.25rem; color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 20px -12px rgba(0,0,0,.6);
  border-bottom: 1px solid var(--primary-dark);
}
.topbar__menu {
  display: none; background: transparent; border: 0; color: #fff;
  cursor: pointer; padding: .35rem; border-radius: var(--radius-sm);
}
.brand { display: flex; align-items: center; gap: .6rem; color:#fff; }
.brand:hover { text-decoration: none; }
/* the brand mark sits inside a struck "seal" ring */
.brand__mark {
  display:flex; align-items:center; justify-content:center;
  width: 34px; height: 34px; border-radius: 999px;
  color: var(--primary-hover);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; letter-spacing:-.01em;
}
.brand__tag {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .19em;
  color: var(--primary-hover); font-weight: 600;
  border-left: 1px solid rgba(255,255,255,.22); padding-left: .55rem;
  align-self: stretch; display:flex; align-items:center;
}
.topbar__spacer { flex: 1; }
.topbar__icon {
  position: relative; color: #fff; display:flex; padding: .45rem;
  border-radius: var(--radius-sm); transition: background .12s var(--ease);
}
.topbar__icon:hover { background: rgba(255,255,255,.14); text-decoration:none; }
.topbar__dot {
  position:absolute; top:1px; right:1px; background: var(--warning);
  color:#3a2400; font-size:.6rem; font-weight:700; min-width:16px; height:16px;
  border-radius: 999px; display:flex; align-items:center; justify-content:center;
  padding: 0 3px; border: 1.5px solid var(--primary-dark);
}
.topbar__user { display:flex; align-items:center; gap:.5rem; padding: 0 .25rem; }
.topbar__user-name { font-size:.88rem; font-weight:500; }
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--primary-hover); color: var(--primary-dark);
  display:flex; align-items:center; justify-content:center;
  font-weight: 700; font-size: .85rem;
  border: 1px solid rgba(255,255,255,.3);
}

/* ---- Layout ----------------------------------------------------------- */
.layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
}
.main { flex: 1; min-width: 0; display:flex; flex-direction:column; }
.main-inner { padding: 36px 40px; max-width: var(--container); width: 100%; flex:1; }

/* ---- Sidebar nav ------------------------------------------------------ */
.nav { padding: 1.1rem .85rem; overflow-y: auto; }
/* section labels read as ledger headings: mono, tracked, with a tick rule */
.nav__section {
  font-family: var(--font-mono);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-muted); font-weight: 500;
  margin: 1.5rem .85rem .5rem; display:flex; align-items:center; gap:.5rem;
}
.nav__section::before {
  content:""; width: 14px; height: 2px; background: var(--primary);
  flex: none; border-radius: 2px;
}
.nav__section:first-child { margin-top: .35rem; }
.nav__link {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .75rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 500; font-size: .92rem;
  margin-bottom: 2px; position: relative;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nav__link:hover { background: var(--gray-100); color: var(--ink); text-decoration:none; }
.nav__link.is-active {
  background: var(--primary-soft); color: var(--primary-dark);
  font-weight: 600;
}
/* active item carries a teal "spine" */
.nav__link.is-active::before {
  content:""; position:absolute; left:-.85rem; top:6px; bottom:6px;
  width: 3px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.nav__icon { display:flex; color: inherit; }
.sidebar__trust {
  padding: 1.1rem 1.25rem; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--gray-100));
}
.trust-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  background: var(--primary-soft); color: var(--primary-dark);
  font-size: .73rem; font-weight: 600; padding: .35rem .65rem;
  border-radius: var(--radius-sm); border: 1px solid #c7e2e0;
}
.sidebar__note { font-size: .72rem; color: var(--text-muted); margin: .65rem 0 0; line-height:1.5; }

/* ---- Page header ------------------------------------------------------ */
.page-head { margin-bottom: 1.75rem; }
.breadcrumb {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing:.04em;
  color: var(--text-muted); margin-bottom: .5rem; text-transform: uppercase;
}
.breadcrumb a { color: var(--text-muted); }
.page-head h1 { font-size: 1.95rem; margin-bottom: .2rem; }
.page-head__sub { color: var(--text-secondary); margin: 0; max-width: 64ch; }
.page-head__row { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; flex-wrap:wrap; }

/* ---- Hero greeting ---------------------------------------------------- */
.hero {
  color: #fff; border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem; margin-bottom: 1.75rem;
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 130% at 88% -30%, rgba(62,189,179,.4), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(255,255,255,.04) 27px 28px),
    linear-gradient(140deg, var(--primary-dark), var(--primary) 62%, #0a8c86);
  box-shadow: var(--shadow);
}
/* a faint registry "seal" watermark */
.hero::after {
  content:""; position:absolute; right:-50px; top:50%; transform:translateY(-50%);
  width: 260px; height: 260px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 16px rgba(255,255,255,.05), inset 0 0 0 22px rgba(255,255,255,.04);
}
.hero h1 {
  color:#fff; font-size: 1.95rem; margin-bottom:.3rem;
  position: relative; z-index: 1;
}
.hero p { color: rgba(255,255,255,.86); margin:0; position:relative; z-index:1; }
.hero__nin {
  display:inline-flex; align-items:center; gap:.45rem; margin-top:1rem;
  background: rgba(255,255,255,.12); padding:.34rem .75rem;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--font-mono); font-size:.78rem; position:relative; z-index:1;
}

/* ---- Cards ------------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; position: relative;
}
/* the signature ledger hairline along the card's top edge */
.card::before {
  content:""; position:absolute; left:0; right:0; top:0; height:2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover) 60%, transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card + .card { margin-top: 1rem; }
.card__title {
  font-size: 1.02rem; font-weight:600; margin-bottom:.25rem; color: var(--ink);
}
.card__head {
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 1.1rem; gap:.5rem;
  padding-bottom: .85rem; border-bottom: 1px solid var(--gray-200);
}
.card__head .card__title { margin-bottom: 0; }

/* ---- Grids ------------------------------------------------------------ */
.grid { display:grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
.grid--kpi { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
.grid--assets { grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); }

/* ---- Stat / KPI card -------------------------------------------------- */
.stat {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: border-color .14s var(--ease), box-shadow .14s var(--ease);
}
.stat:hover { border-color: var(--primary-hover); box-shadow: var(--shadow); }
.stat__label {
  font-family: var(--font-mono);
  font-size:.68rem; color:var(--text-muted); font-weight:500;
  text-transform:uppercase; letter-spacing:.1em;
}
.stat__value {
  font-family: var(--font-display);
  font-size:1.95rem; font-weight:600; margin:.3rem 0 0;
  letter-spacing:-.02em; color: var(--primary-ink); line-height:1.1;
}
.stat__meta { font-size:.78rem; color:var(--text-secondary); margin-top:.25rem; }
.stat__icon {
  width:40px; height:40px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background: var(--primary-soft); color: var(--primary); margin-bottom:.7rem;
  border: 1px solid #c7e2e0;
}

/* ---- Asset card ------------------------------------------------------- */
.asset {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem; display:flex; flex-direction:column; gap:.5rem;
  position: relative; overflow: hidden;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), border-color .14s var(--ease);
}
/* the asset "spine" — a confident teal edge */
.asset::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
}
.asset:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg); border-color: var(--primary-hover);
}
.asset__top { display:flex; justify-content:space-between; align-items:flex-start; }
.asset__icon {
  width:44px; height:44px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow: 0 4px 10px -4px rgba(20,32,31,.4);
}
.asset__inst {
  font-family: var(--font-mono); font-size:.74rem; color:var(--text-muted);
  letter-spacing:.02em;
}
.asset__cat  { font-weight:600; font-size:1.02rem; color: var(--ink); }
.asset__value {
  font-family: var(--font-display);
  font-size:1.65rem; font-weight:600; letter-spacing:-.02em;
  color: var(--primary-ink);
}
.asset__foot {
  display:flex; justify-content:space-between; align-items:center;
  margin-top:.4rem; padding-top:.8rem; border-top:1px solid var(--gray-200);
}

/* ---- Badges ----------------------------------------------------------- */
.badge {
  display:inline-flex; align-items:center; gap:.32rem;
  font-size:.68rem; font-weight:600; padding:.26rem .6rem;
  border-radius: var(--radius-sm); line-height:1.4; white-space:nowrap;
  text-transform: uppercase; letter-spacing:.05em;
  border: 1px solid transparent;
}
.badge--pending   { background: var(--warning-soft); color:#8a5200; border-color:#f3d9af; }
.badge--review    { background: var(--accent-soft);  color: var(--accent); border-color:#cdc7ff; }
.badge--approved  { background: var(--success-soft); color:#06715a; border-color:#bce4d8; }
.badge--rejected  { background: var(--danger-soft);  color:#9a1f2a; border-color:#f1c4c8; }
.badge--disbursed { background: var(--primary-soft); color: var(--primary-dark); border-color:#c0dddb; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  font-family: var(--font); font-size:.88rem; font-weight:600;
  padding:.62rem 1.15rem; border-radius: var(--radius-sm);
  border:1px solid transparent; cursor:pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease),
              transform .1s var(--ease), box-shadow .12s var(--ease);
  text-decoration:none; white-space:nowrap; letter-spacing:.005em;
}
.btn:hover { text-decoration:none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary  {
  background: var(--primary); color:#fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn--secondary{
  background: var(--surface); color: var(--primary);
  border-color: var(--primary);
}
.btn--secondary:hover { background: var(--primary-soft); }
.btn--danger   { background: var(--danger);  color:#fff; }
.btn--danger:hover { background:#c42f3c; box-shadow: var(--shadow); }
.btn--success  { background: var(--success); color:#fff; }
.btn--success:hover { background:#04826a; box-shadow: var(--shadow); }
.btn--ghost    {
  background: transparent; color: var(--text-secondary);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--gray-100); color: var(--ink); }
.btn--block { width:100%; }
.btn--lg { padding:.88rem 1.6rem; font-size:.98rem; }
.btn--sm { padding:.4rem .72rem; font-size:.78rem; }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-row { display:flex; gap:.6rem; flex-wrap:wrap; }

/* ---- Forms ------------------------------------------------------------ */
.field { margin-bottom: 1.15rem; }
.field label, .label {
  display:block; font-size:.82rem; font-weight:600;
  margin-bottom:.4rem; color: var(--ink);
}
.field .hint { font-size:.77rem; color: var(--text-muted); margin-top:.35rem; }
.input, .select, textarea.input {
  width:100%; font-family:var(--font); font-size:.92rem;
  padding:.65rem .8rem; border:1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text-primary);
  box-shadow: inset 0 -1px 0 var(--rule);
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.input:focus, .select:focus, textarea.input:focus {
  outline:none; border-color: var(--primary);
  box-shadow: inset 0 -1px 0 var(--primary), 0 0 0 3px var(--primary-soft);
}
textarea.input { resize: vertical; min-height: 96px; }
.input--lg { padding:.88rem 1rem; font-size:1.05rem; }
.input.mono, .mono.input { letter-spacing:.04em; }

/* ---- Dropzone --------------------------------------------------------- */
.dropzone {
  border: 1.5px dashed var(--rule); border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(20,32,31,.02) 13px 14px),
    var(--gray-100);
  padding: 1.9rem; text-align:center;
  color: var(--text-secondary); cursor:pointer;
  transition: border-color .12s var(--ease), background .12s var(--ease), color .12s var(--ease);
}
.dropzone:hover, .dropzone.is-drag {
  border-color: var(--primary); background: var(--primary-soft);
  color: var(--primary-dark);
}
.dropzone__icon { color: var(--primary); margin-bottom:.5rem; }

/* ---- Tables ----------------------------------------------------------- */
.table-wrap { overflow-x:auto; border:1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table { width:100%; border-collapse: collapse; font-size:.88rem; }
.table th {
  text-align:left; font-family: var(--font-mono);
  font-size:.68rem; text-transform:uppercase;
  letter-spacing:.08em; color: var(--text-muted); font-weight:500;
  padding:.75rem 1rem; background: var(--gray-100);
  border-bottom:1px solid var(--border);
}
.table td { padding:.8rem 1rem; border-bottom:1px solid var(--gray-200); }
.table tr:last-child td { border-bottom:0; }
.table tbody tr { transition: background .1s var(--ease); }
.table tbody tr:hover { background: var(--primary-soft); }
.table .num { font-family: var(--font-mono); }

/* ---- Filter tabs / chips --------------------------------------------- */
.tabs { display:flex; gap:.1rem; flex-wrap:wrap; margin-bottom:1.2rem;
  border-bottom:1px solid var(--border); }
.tabs a {
  padding:.6rem .95rem; font-size:.87rem; font-weight:500;
  color: var(--text-secondary); border-bottom:2px solid transparent;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}
.tabs a:hover { color: var(--primary); text-decoration:none; }
.tabs a.is-active { color: var(--primary-dark); border-bottom-color: var(--primary);
  font-weight:600; }
.chip {
  display:inline-flex; align-items:center; gap:.3rem; font-size:.76rem;
  padding:.3rem .68rem; border-radius:var(--radius-sm); background:var(--gray-200);
  color: var(--text-secondary); font-weight:500;
}

/* ---- Wizard / progress indicator ------------------------------------- */
.steps { display:flex; gap:.5rem; margin-bottom:1.9rem; }
.step { flex:1; text-align:center; position:relative; }
.step__dot {
  width:34px; height:34px; border-radius:999px; margin:0 auto .5rem;
  display:flex; align-items:center; justify-content:center;
  background: var(--surface); color: var(--text-muted);
  font-weight:700; font-size:.85rem; border:1.5px solid var(--rule);
  position:relative; z-index:1; transition: all .15s var(--ease);
}
.step__label {
  font-size:.76rem; color: var(--text-muted); font-weight:500;
  font-family: var(--font-mono); letter-spacing:.02em;
}
.step::before {
  content:""; position:absolute; top:17px; left:-50%; width:100%; height:2px;
  background: var(--rule); z-index:0;
}
.step:first-child::before { display:none; }
.step.is-done .step__dot { background: var(--primary); border-color:var(--primary); color:#fff; }
.step.is-done::before { background: var(--primary); }
.step.is-active .step__dot {
  background:#fff; border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step.is-active .step__label { color: var(--accent); font-weight:600; }

/* ---- Timeline --------------------------------------------------------- */
.timeline { position:relative; padding-left: 1.9rem; }
.timeline::before {
  content:""; position:absolute; left:10px; top:6px; bottom:6px;
  width:2px; background: var(--rule);
}
.tl-item { position:relative; padding-bottom: 1.5rem; }
.tl-item:last-child { padding-bottom:0; }
.tl-item__dot {
  position:absolute; left:-1.9rem; top:1px;
  width:22px; height:22px; border-radius:999px;
  background:var(--surface); border:1.5px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
}
.tl-item.is-done .tl-item__dot { background: var(--primary); border-color:var(--primary); color:#fff; }
.tl-item.is-current .tl-item__dot {
  border-color: var(--accent); color: var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.tl-item__title { font-weight:600; font-size:.94rem; color: var(--ink); }
.tl-item.is-pending .tl-item__title { color: var(--text-muted); font-weight:500; }
.tl-item__meta {
  font-size:.75rem; color:var(--text-muted);
  font-family: var(--font-mono); letter-spacing:.02em;
}

/* ---- Notifications ---------------------------------------------------- */
.notification {
  display:flex; align-items:flex-start; gap:.6rem;
  padding:.85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom:1rem; font-size:.9rem; border:1px solid; border-left-width:4px;
}
.notification--success { background: var(--success-soft); border-color: var(--success); color:#04634F; }
.notification--error   { background: var(--danger-soft);  border-color: var(--danger);  color:#9A1F2A; }
.notification--info    { background: var(--accent-soft);  border-color: var(--accent);  color:#2A1F99; }
.notification__text { flex:1; }
.notification__close { background:transparent; border:0; cursor:pointer; color:inherit; opacity:.55; }
.notification__close:hover { opacity:1; }

/* ---- Misc helpers ----------------------------------------------------- */
.empty {
  text-align:center; padding:3.25rem 1rem; color: var(--text-muted);
}
.empty__icon { color: var(--rule); margin-bottom:.6rem; }
.divider { height:1px; background: var(--border); margin:1.3rem 0; }
.kv { display:flex; justify-content:space-between; gap:1rem; padding:.5rem 0;
  border-bottom:1px solid var(--gray-200); font-size:.9rem; }
.kv:last-child { border-bottom:0; }
.kv__k {
  color: var(--text-muted); font-family: var(--font-mono);
  font-size:.78rem; letter-spacing:.02em; padding-top:1px;
}
.kv__v { font-weight:600; text-align:right; color: var(--ink); }
.flex { display:flex; }
.between { justify-content:space-between; }
.center { align-items:center; }
.gap { gap:.6rem; }
.mt { margin-top:1rem; } .mb { margin-bottom:1rem; }
.text-right { text-align:right; }

/* ---- App footer ------------------------------------------------------- */
.appfooter {
  border-top:1px solid var(--border); padding: 1.1rem 40px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem;
  font-size:.78rem; color: var(--text-muted); background: var(--surface);
}
.appfooter__meta { font-family: var(--font-mono); letter-spacing:.02em; }

/* ---- Sidebar scrim (mobile) ------------------------------------------ */
.sidebar-scrim {
  display:none; position:fixed; inset: var(--header-h) 0 0 0;
  background: rgba(20,32,31,.45); z-index: 39;
  backdrop-filter: blur(1px);
}

/* ---- Page-load entrance (one orchestrated reveal) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: none; }
  }
  .main-inner > * { animation: rise .5s var(--ease) both; }
  .main-inner > *:nth-child(1) { animation-delay: .02s; }
  .main-inner > *:nth-child(2) { animation-delay: .08s; }
  .main-inner > *:nth-child(3) { animation-delay: .14s; }
  .main-inner > *:nth-child(4) { animation-delay: .20s; }
  .main-inner > *:nth-child(5) { animation-delay: .26s; }
  .main-inner > *:nth-child(n+6) { animation-delay: .30s; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2,1fr); }
  .topbar__menu { display:flex; }
  .topbar__user-name { display:none; }
  .main-inner { padding: 24px 20px; }
  .sidebar {
    position:fixed; top: var(--header-h); left:0; z-index:40;
    transform: translateX(-100%); transition: transform .22s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar.is-open + .sidebar-scrim { display:block; }
  .appfooter { padding: 1rem 20px; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  h1 { font-size: 1.55rem; }
  .hero { padding: 1.75rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .steps { overflow-x:auto; padding-bottom:.25rem; }
  .step__label { font-size:.66rem; }
  .card, .stat, .asset { padding: 20px; }
}
