/* ==========================================================================
   PrimusAI — the right AI for the right job
   Visual language derived from the app icon: chrome mech plating, violet /
   indigo field, cyan circuit glow. Metrics tuned for vertical density —
   every category resolves to a single row of five on the desktop grid.
   ========================================================================== */

/* ---- DARK (default) ----
   Values sampled from assets/primusai.png at 120px:
     peak glow  #fa672e (hue 17)  ember
     gold       #fdc537 (hue 43)  forge highlight
     mid amber  #f49a31 (hue 32)
     dominant hue mass 20-30deg, background darkest decile #1e1212
     lightest 5% #efddbf -> warm parchment text                        */
:root{
  --bg:#150d0c; --bg-2:#1e1212;
  --surface:#241713; --surface-2:#2d1e18; --surface-hover:#38251d;
  --text:#f7ece0; --text-soft:#d8c3ae; --text-faint:#a08876;
  --hairline:rgba(250,150,80,.20); --hairline-soft:rgba(250,150,80,.11);

  --accent:#fa672e;         /* sampled peak ember */
  --accent-2:#ff8340;       /* sampled mid */
  --accent-3:#fdc537;       /* sampled forge gold */
  --accent-tint:rgba(250,103,46,.15);
  --glow:rgba(253,197,55,.12);

  --field:linear-gradient(150deg,#d35a28 0%,#fa672e 45%,#fdc537 100%);

  --chip:rgba(250,150,80,.10);
  --shadow:0 2px 10px rgba(0,0,0,.52);
  --shadow-hover:0 10px 28px rgba(0,0,0,.64),0 0 0 1px var(--glow);
  --btn-text:#fff;
  --navbar:rgba(21,13,12,.85);

  /* caution stays cool so it reads as advisory, not brand heat */
  --pos:#5fd9a4; --warn:#7cb8ff;
  --radius:14px; --radius-sm:10px;
  color-scheme:dark;
}

/* ---- LIGHT ---- */
:root[data-theme="light"]{
  --bg:#faf5ef; --bg-2:#f3e9dd;
  --surface:#fff; --surface-2:#fcf7f1; --surface-hover:#f6ede3;
  --text:#2a1710; --text-soft:#5c4234; --text-faint:#8a6d59;
  --hairline:rgba(150,80,30,.18); --hairline-soft:rgba(150,80,30,.10);
  --accent:#c4471a; --accent-2:#e35d22; --accent-3:#a8770c;
  --accent-tint:rgba(196,71,26,.09);
  --glow:rgba(196,71,26,.22);
  --chip:rgba(150,80,30,.06);
  --shadow:0 2px 10px rgba(90,50,20,.10);
  --shadow-hover:0 10px 26px rgba(90,50,20,.16),0 0 0 1px var(--glow);
  --navbar:rgba(250,245,239,.86);
  --pos:#0f8a56; --warn:#1f6fd0;
  color-scheme:light;
}

/* ---- MACHINE = follow system. Light overrides only; dark is the base. ---- */
@media (prefers-color-scheme: light){
  :root[data-theme="machine"]{
    --bg:#faf5ef; --bg-2:#f3e9dd;
    --surface:#fff; --surface-2:#fcf7f1; --surface-hover:#f6ede3;
    --text:#2a1710; --text-soft:#5c4234; --text-faint:#8a6d59;
    --hairline:rgba(150,80,30,.18); --hairline-soft:rgba(150,80,30,.10);
    --accent:#c4471a; --accent-2:#e35d22; --accent-3:#a8770c;
    --accent-tint:rgba(196,71,26,.09);
    --glow:rgba(196,71,26,.22);
    --chip:rgba(150,80,30,.06);
    --shadow:0 2px 10px rgba(90,50,20,.10);
    --shadow-hover:0 10px 26px rgba(90,50,20,.16),0 0 0 1px var(--glow);
    --navbar:rgba(250,245,239,.86);
    --pos:#0f8a56; --warn:#1f6fd0;
    color-scheme:light;
  }
}

/* ---- VIOLET (previous identity) — set data-accent="violet" on <html> ---- */
:root[data-accent="violet"]{
  --bg:#0a0a12; --bg-2:#0f1020;
  --surface:#15162a; --surface-2:#1b1d33; --surface-hover:#22243d;
  --text:#eef0fa; --text-soft:#b9bdd6; --text-faint:#7f85a3;
  --hairline:rgba(140,150,220,.20); --hairline-soft:rgba(140,150,220,.11);
  --accent:#7c5cff; --accent-2:#9b7cff; --accent-3:#22d3ee;
  --accent-tint:rgba(124,92,255,.16);
  --glow:rgba(34,211,238,.30);
  --field:linear-gradient(150deg,#5b3df0 0%,#7c5cff 45%,#a855f7 100%);
  --chip:rgba(140,150,220,.10);
  --navbar:rgba(12,13,26,.82);
  --pos:#34e2a0; --warn:#ffb340;
  color-scheme:dark;
}

*{box-sizing:border-box;}
html,body{margin:0; padding:0;}
body{
  background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
  font-size:15px; line-height:1.45;
  -webkit-font-smoothing:antialiased;
  transition:background .3s ease,color .3s ease;
}
/* circuit substrate removed — was too sci-fi */
body::before{display:none;}
a{color:var(--accent-2); text-decoration:none;}
button{font:inherit; color:inherit; cursor:pointer;}
.material-symbols-rounded{
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
  line-height:1; user-select:none;
}
/* keep glyph ligature names from flashing as words pre-font-load */
.material-symbols-rounded:not(.ready){visibility:hidden;}
.fonts-ready .material-symbols-rounded{visibility:visible;}

.wrap{max-width:1340px; margin:0 auto; padding:0 clamp(14px,3vw,32px);}

/* ========================= TOP BAR ========================= */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:12px;
  padding:7px clamp(14px,3vw,32px);
  background:var(--navbar);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid var(--hairline-soft);
}
.brand{display:flex; align-items:center; gap:9px; min-width:0;}
.brand-mark{
  width:28px; height:28px; flex:none;
  display:grid; place-items:center;
  border-radius:9px; background:var(--field);
  box-shadow:0 1px 3px rgba(0,0,0,.28),
             0 0 0 1px rgba(255,255,255,.14) inset;
  position:relative; overflow:hidden;
}
/* forge sheen — a soft highlight across the top-left face */
.brand-mark::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(145deg,rgba(255,255,255,.34),transparent 58%);
  pointer-events:none;
}
.brand-mark .material-symbols-rounded{
  font-size:18px; color:#fff; position:relative; z-index:1;
  font-variation-settings:'FILL' 1,'wght' 500,'GRAD' 0,'opsz' 24;
}
.brand-text h1{
  margin:0; font-size:16px; font-weight:650; letter-spacing:-.02em;
  white-space:nowrap;
}
.brand-text .sub{
  margin:0; font-size:10.5px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-faint); white-space:nowrap;
}
.topbar-spacer{flex:1;}

/* count read-out — mech HUD */
.hud{
  display:flex; align-items:baseline; gap:5px;
  padding:4px 10px; border-radius:999px;
  border:1px solid var(--hairline-soft); background:var(--chip);
  font-size:11px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--text-faint); white-space:nowrap;
}
.hud b{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px; font-weight:700; color:var(--text-soft); letter-spacing:0;
}

.theme-switch{
  position:relative; display:flex; gap:2px; padding:3px; flex:none;
  background:var(--chip); border-radius:999px;
  border:1px solid var(--hairline-soft);
}
.theme-switch button{
  position:relative; z-index:2; border:0; background:transparent;
  width:29px; height:25px; border-radius:999px;
  display:grid; place-items:center; color:var(--text-faint);
  transition:color .2s ease;
}
.theme-switch button[aria-pressed="true"]{color:var(--text);}
.switch-glider{
  position:absolute; z-index:1; top:3px; left:3px;
  width:29px; height:25px; border-radius:999px;
  background:var(--surface-hover);
  box-shadow:0 1px 4px rgba(0,0,0,.28),0 0 0 1px var(--hairline-soft);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
}

/* ========================= HERO — compact single band ========================= */
.hero{
  display:flex; align-items:center; gap:18px;
  padding:20px 0 16px;
}
.hero-badge{
  width:75px; height:75px; flex:none; border-radius:19px; overflow:hidden;
  background:var(--bg-2);
  box-shadow:0 0 0 1px var(--hairline),0 6px 20px var(--accent-tint);
}
.hero-badge img{width:100%; height:100%; display:block; object-fit:cover;}
.hero-copy{min-width:0;}
.hero h2{
  margin:0; font-size:clamp(20px,2.9vw,29px);
  font-weight:650; letter-spacing:-.025em; line-height:1.14;
}
.hero h2 em{
  font-style:normal;
  background:linear-gradient(100deg,var(--accent-2),var(--accent-3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{
  margin:4px 0 0; font-size:13.5px; color:var(--text-faint); max-width:62ch;
}

/* ========================= QUICK PICKS — chip rail ========================= */
.quick{
  display:flex; flex-wrap:wrap; gap:7px;
  padding:0 0 14px;
}
.quick-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px 6px 9px;
  border:1px solid var(--hairline-soft); border-radius:999px;
  background:var(--surface); color:var(--text-soft);
  font-size:12.5px; font-weight:500; letter-spacing:-.01em;
  white-space:nowrap;
  transition:transform .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.quick-btn:hover{
  transform:translateY(-1px); color:var(--text);
  border-color:var(--accent); box-shadow:0 0 0 1px var(--accent-tint);
}
.quick-btn .material-symbols-rounded{font-size:17px; color:var(--text-soft); flex:none;}

/* ========================= CATEGORY NAV ========================= */
.catnav-wrap{
  position:sticky; top:45px; z-index:40;
  background:var(--navbar);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid var(--hairline-soft);
}
.catnav{
  max-width:1340px; margin:0 auto;
  padding:7px clamp(14px,3vw,32px);
  display:flex; gap:6px; overflow-x:auto;
  scrollbar-width:none;
}
.catnav::-webkit-scrollbar{display:none;}
.catnav button{
  flex:none; display:flex; align-items:center; gap:5px;
  padding:5px 11px; border:1px solid var(--hairline-soft);
  border-radius:999px; background:var(--surface); color:var(--text-soft);
  font-size:12.5px; font-weight:500; white-space:nowrap;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.catnav button .material-symbols-rounded{font-size:16px;}
.catnav button:hover{background:var(--surface-hover); color:var(--text);}
.catnav button[aria-pressed="true"]{
  background:var(--accent); border-color:transparent; color:#fff;
  box-shadow:0 0 12px var(--accent-tint);
}

/* ========================= SECTIONS ========================= */
main{max-width:1340px; margin:0 auto; padding:0 clamp(14px,3vw,32px) 44px;}
.cat{padding-top:22px; scroll-margin-top:92px;}
.cat-head{
  display:flex; align-items:center; gap:11px; margin-bottom:11px;
  padding-bottom:9px; border-bottom:1px solid var(--hairline-soft);
}
.cat-icon{
  width:34px; height:34px; flex:none; border-radius:9px;
  display:grid; place-items:center; color:#fff;
  background:var(--accent);
  box-shadow:0 0 0 1px var(--hairline),0 3px 10px var(--accent-tint);
}
.cat-icon .material-symbols-rounded{font-size:19px;}
.cat-head h3{
  margin:0; font-size:17px; font-weight:650; letter-spacing:-.02em;
  white-space:nowrap;
}
.cat-head .blurb{
  margin:0; font-size:12.5px; color:var(--text-faint);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.cat-head .plain{
  margin:0; flex:none; font-size:11px; font-weight:600;
  letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-soft); white-space:nowrap;
}
.cat-head .meta{display:flex; align-items:baseline; gap:10px; min-width:0; flex:1;}

/* ========================= CARDS — 5 across, one row per category ========================= */
.grid{
  display:grid; gap:9px;
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.card{
  position:relative; display:flex; flex-direction:column;
  padding:11px 12px 10px;
  border:1px solid var(--hairline-soft); border-radius:var(--radius);
  background:var(--surface); box-shadow:var(--shadow);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.card::before{ /* chrome edge highlight */
  content:''; position:absolute; inset:0 0 auto; height:1px;
  border-radius:var(--radius) var(--radius) 0 0;
  background:linear-gradient(90deg,transparent,var(--hairline),transparent);
}
.card:hover{
  transform:translateY(-2px); box-shadow:var(--shadow-hover);
  border-color:var(--accent);
}
.card.top{
  border-color:var(--accent);
  background:linear-gradient(180deg,var(--accent-tint),transparent 64px),var(--surface);
}

.card-top{display:flex; align-items:center; gap:9px; margin-bottom:8px; padding-right:20px;}
.logo{
  width:32px; height:32px; flex:none; border-radius:9px;
  display:grid; place-items:center; overflow:hidden;
  background:var(--surface-2); border:1px solid var(--hairline-soft);
}
.logo img{width:20px; height:20px; object-fit:contain;}
.logo .fallback{font-size:14px; font-weight:700; color:var(--text-faint);}
.card-id{min-width:0; flex:1;}
.card-id h4{
  margin:0; font-size:14px; font-weight:650; letter-spacing:-.02em;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.card-id .vendor{
  font-size:11px; color:var(--text-faint);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.rank{
  position:absolute; top:10px; right:10px;
  width:19px; height:19px; border-radius:6px;
  display:grid; place-items:center;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10.5px; font-weight:700;
  background:var(--chip); color:var(--text-faint);
  border:1px solid var(--hairline-soft);
}
.card.top .rank{background:var(--accent); color:#fff; border-color:transparent;}

.badge{
  display:inline-flex; align-items:center; gap:3px;
  align-self:flex-start; margin-bottom:7px;
  padding:2px 7px; border-radius:6px;
  font-size:10px; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  background:var(--chip); color:var(--text-soft);
  border:1px solid var(--hairline);
}
.badge .material-symbols-rounded{font-size:12px; color:var(--text-soft);}

.why{
  margin:0 0 8px; font-size:12.5px; color:var(--text-soft); line-height:1.42;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden;
}
.facts{display:grid; gap:5px; margin-bottom:9px;}
.fact{display:flex; gap:6px; font-size:11.5px; line-height:1.38; color:var(--text-soft);}
.fact > span:last-child{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}
.fact .material-symbols-rounded{font-size:14px; flex:none; margin-top:1px;}
.fact.good .material-symbols-rounded{color:var(--pos);}
.fact.watch .material-symbols-rounded{color:var(--warn);}
.fact span.t{color:var(--text-faint);}

.card-foot{
  margin-top:auto; display:flex; align-items:center;
  justify-content:space-between; gap:7px;
  padding-top:9px; border-top:1px solid var(--hairline-soft);
}
.price{font-size:11px; font-weight:500; color:var(--text-faint); min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.open{
  display:inline-flex; align-items:center; gap:3px; flex:none;
  padding:4px 10px; border-radius:999px;
  background:transparent; color:var(--accent);
  border:1px solid var(--accent);
  font-size:11.5px; font-weight:600; white-space:nowrap;
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.open:hover{background:var(--accent); color:#fff; transform:scale(1.04); box-shadow:0 0 12px var(--accent-tint);}
.open .material-symbols-rounded{font-size:13px;}

/* ========================= LOOKUP TRIGGER ========================= */
.lk-trigger{
  display:flex; align-items:center; gap:7px; flex:none;
  padding:5px 8px 5px 10px; border-radius:999px;
  border:1px solid var(--hairline-soft); background:var(--chip);
  color:var(--text-faint); font-size:12.5px;
  transition:border-color .18s ease,color .18s ease;
}
.lk-trigger:hover{border-color:var(--accent); color:var(--text);}
.lk-trigger .material-symbols-rounded{font-size:17px; color:var(--text-soft);}
.lk-trigger kbd{
  font:inherit; font-size:10.5px;
  padding:1px 5px; border-radius:4px;
  border:1px solid var(--hairline-soft); background:var(--surface);
  color:var(--text-faint);
}

/* ========================= LOOKUP PANEL ========================= */
.lk-panel{
  position:fixed; inset:0; z-index:90;
  display:flex; align-items:flex-start; justify-content:center;
  padding:clamp(12px,7vh,80px) 16px calc(52px + env(safe-area-inset-bottom));
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.lk-panel[hidden]{display:none;}
body.lk-on{overflow:hidden;}
.lk-sheet{
  width:100%; max-width:540px;
  border:1px solid var(--hairline); border-radius:var(--radius);
  background:var(--surface); box-shadow:0 24px 60px rgba(0,0,0,.5);
  overflow:hidden;
}
.lk-bar{
  display:flex; align-items:center; gap:9px;
  padding:11px 12px; border-bottom:1px solid var(--hairline-soft);
  background:var(--surface-2);
}
.lk-bar .material-symbols-rounded{font-size:19px; color:var(--text-soft); flex:none;}
#lk-input{
  flex:1; min-width:0; border:0; background:transparent; outline:none;
  font:inherit; font-size:15px; color:var(--text);
}
#lk-input::placeholder{color:var(--text-faint);}
#lk-input::-webkit-search-cancel-button{display:none;}
#lk-close{
  flex:none; border:0; background:transparent; color:var(--text-faint);
  display:grid; place-items:center; padding:3px; border-radius:6px;
}
#lk-close:hover{color:var(--text); background:var(--chip);}

.lk-out{padding:14px; max-height:min(62vh,520px); overflow-y:auto;}
.lk-hint,.lk-note{margin:0 0 10px; font-size:12.5px; color:var(--text-faint);}
.lk-note strong{color:var(--text);}
.lk-scope{
  margin:0; padding:9px 14px;
  border-top:1px solid var(--hairline-soft); background:var(--surface-2);
  font-size:11px; color:var(--text-faint);
}
.lk-scope b{color:var(--text-soft); font-family:ui-monospace,SFMono-Regular,Menlo,monospace;}

/* single tool verdict */
.lk-head{display:flex; align-items:center; gap:11px; margin-bottom:11px;}
.lk-id{min-width:0;}
.lk-id h4{margin:0; font-size:17px; font-weight:650; letter-spacing:-.02em;}
.lk-id .vendor{font-size:12px; color:var(--text-faint);}
.lk-verdict{
  margin:0 0 9px; padding:8px 11px; border-radius:var(--radius-sm);
  background:var(--accent-tint); border:1px solid var(--hairline-soft);
  font-size:13.5px; color:var(--text);
}
.lk-verdict strong{color:var(--accent-2);}
.lk-tool .why{font-size:13px; -webkit-line-clamp:none;}
.lk-tool .facts{margin-bottom:12px;}
.lk-tool .fact > span:last-child{-webkit-line-clamp:none;}
.lk-places{
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  padding-top:11px; margin-bottom:12px;
  border-top:1px solid var(--hairline-soft);
}
.lk-lbl{font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint);}
.place{
  display:inline-flex; align-items:center; gap:5px; cursor:pointer;
  padding:3px 9px; border-radius:999px;
  border:1px solid var(--hairline-soft); background:var(--surface-2);
  font-size:12px; color:var(--text-soft);
}
.place:hover{border-color:var(--accent); color:var(--text);}
.pl-rank{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px; font-weight:700; color:var(--text-soft);
}

/* disambiguation / vendor list */
.lk-list{display:grid; gap:6px;}
.lk-mini{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:8px 10px; border-radius:var(--radius-sm);
  border:1px solid var(--hairline-soft); background:var(--surface-2);
  transition:border-color .18s ease;
}
.lk-mini:hover{border-color:var(--accent);}
.lk-mini .logo{width:28px; height:28px; border-radius:8px;}
.lk-mini .logo img{width:17px; height:17px;}
.mini-id{display:flex; flex-direction:column; min-width:0;}
.mini-name{font-size:13.5px; font-weight:600; letter-spacing:-.01em;}
.mini-cat{font-size:11.5px; color:var(--text-faint);}

/* honest miss */
.lk-swap{margin:0 0 12px; font-size:13.5px; color:var(--text);}
.lk-jump{
  display:inline-flex; align-items:center; gap:5px;
  padding:7px 13px; border-radius:999px; border:0;
  background:var(--accent); color:#fff; font-size:13px; font-weight:600;
}
.lk-jump .material-symbols-rounded{font-size:16px;}
.lk-cats{display:flex; flex-wrap:wrap; gap:6px;}
.lk-cats button{
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 11px; border-radius:999px;
  border:1px solid var(--hairline-soft); background:var(--surface-2);
  font-size:12.5px; color:var(--text-soft);
}
.lk-cats button:hover{border-color:var(--accent); color:var(--text);}
.lk-cats .material-symbols-rounded{font-size:15px; color:var(--text-soft);}

/* ========================= FOOTER ========================= */
footer{
  border-top:1px solid var(--hairline-soft);
  padding:16px clamp(14px,3vw,32px) 18px;
  text-align:center; font-size:11.5px; color:var(--text-faint);
}
footer p{margin:3px 0;}

/* ── thin always-visible footer bar (pattern ported from LeaseNinja) ── */
.sitebar{
  position:fixed; bottom:0; left:0; width:100%; z-index:60;
  height:calc(40px + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  background:var(--navbar); border-top:1px solid var(--hairline-soft);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  display:flex; align-items:center;
}
.sbwrap{
  max-width:1340px; margin:0 auto; width:100%;
  padding:0 max(clamp(14px,3vw,32px), env(safe-area-inset-left))
          0 max(clamp(14px,3vw,32px), env(safe-area-inset-right));
  display:grid; grid-template-columns:1fr auto 1fr;
  align-items:center; gap:1rem; font-size:12px;
}
.sbleft{justify-self:start; display:flex; align-items:center; gap:.5rem; white-space:nowrap; min-width:0;}
.sbbrand{font-weight:800; letter-spacing:-.02em; color:var(--text);}
.sbbrand .accent{color:var(--accent-2);}
.sbcopy{color:var(--text-faint); font-weight:400; overflow:hidden; text-overflow:ellipsis;}
.sbpill{
  justify-self:center; display:inline-flex; align-items:center; gap:.4rem;
  padding:.28rem .8rem; border-radius:980px; white-space:nowrap;
  font-size:11.5px; font-weight:700; letter-spacing:.02em; color:#fff;
  background:var(--accent);
  box-shadow:0 2px 10px -2px var(--accent-tint);
}
.sbright{justify-self:end; display:flex; align-items:center; white-space:nowrap;}
.sbmav{
  font-size:12px; font-weight:600; letter-spacing:.02em; text-decoration:none;
  color:var(--accent); transition:opacity .16s;
}
.sbmav b{color:var(--text); font-weight:800; letter-spacing:-.01em;}
.sbmav:hover{opacity:.72;}

/* clear the fixed bar so the last card row is never trapped behind it */
body{padding-bottom:calc(40px + env(safe-area-inset-bottom));}

/* tap targets: 44px minimum on touch, per Apple HIG */
@media (hover:none) and (pointer:coarse){
  .sbmav{padding-top:.5rem; padding-bottom:.5rem;}
}

/* ========================= RESPONSIVE ========================= */
@media (max-width:1240px){ .grid{grid-template-columns:repeat(4,minmax(0,1fr));} }
@media (max-width:1000px){ .grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:760px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cat-head .blurb{display:none;}
  .hud{display:none;}
  .lk-trigger .lkt-text,.lk-trigger kbd{display:none;}
  .lk-trigger{padding:5px; }
}
@media (max-width:600px){
  .brand-text .sub{display:none;}
  .catnav-wrap{top:44px;}
  .hero{gap:13px; padding:16px 0 12px;}
  .hero-badge{width:60px; height:60px; border-radius:15px;}
  .hero p{display:none;}
  .cat-head .plain{display:none;}
}
@media (max-width:430px){ .grid{grid-template-columns:1fr;} }

/* smallest phones: drop the pill rather than crush the bar (LeaseNinja rule) */
@media (max-width:480px){
  .sbwrap{font-size:11px; gap:.6rem;}
  .sbpill{font-size:10.5px; padding:.24rem .65rem;}
  .sbmav{font-size:11px;}
}
@media (max-width:420px){
  .sbpill{display:none;}
  .sbwrap{grid-template-columns:1fr auto;}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important; animation:none !important;}
}
