/* ==========================================================================
   TruDealers /verify - Marketplace Layout (Mobile-First)
   --------------------------------------------------------------------------
   Base styles target a narrow viewport; 768px and 1024px only enhance.
   Structure only - colours, type and radii all come from subpages.css tokens
   so the page keeps the existing Dark Titanium / Electric Cyan identity.

   Layout model (2026-10-23 redesign): ONE scroll page of anchored product
   cards - Vehicles (with Car / Moto / Truck / Heavy family tiles), Identity &
   KYC, Bank accounts and Inspection links - reachable from a sticky in-page
   nav, with the cart in a sticky rail on desktop and a bottom bar on mobile.
   The dark-glass skin is unchanged; only the structure moved.

   Sections 1 and 2 below (.vf-entry / .vf-tabs) are the retired tab "wizard"
   and are kept only so any stale cached HTML still renders sanely. Nothing in
   verify.html/verify-app.js emits them any more.
   ========================================================================== */

.vf-shell { display: grid; gap: 18px; }

/* --- 1. Entry: three starting points ------------------------------------ */
.vf-entry { display: grid; gap: 12px; }

.vf-entry-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  color: var(--td-text);
  background: var(--td-surface-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-md);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.vf-entry-tile:hover { border-color: var(--td-border-highlight); background: var(--td-surface-hover); }
.vf-entry-tile:focus-visible { outline: none; border-color: var(--td-cyan); box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.25); }
.vf-entry-tile[aria-pressed="true"] {
  border-color: var(--td-cyan);
  background: linear-gradient(160deg, rgba(86, 225, 233, 0.12), rgba(9, 15, 25, 0.9));
  box-shadow: 0 0 0 1px rgba(86, 225, 233, 0.3), 0 10px 28px -14px rgba(86, 225, 233, 0.5);
}
.vf-entry-glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(86, 225, 233, 0.1);
  border: 1px solid rgba(86, 225, 233, 0.24);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--td-cyan);
}
.vf-entry-copy { display: grid; gap: 2px; min-width: 0; }
.vf-entry-title { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.vf-entry-sub { font-size: 0.84rem; color: var(--td-text-muted); line-height: 1.45; }

/* --- 2. Flow tabs ------------------------------------------------------- */
.vf-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--td-border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vf-tabs::-webkit-scrollbar { display: none; }
.vf-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  transition: color 180ms ease, background-color 180ms ease;
  position: relative;
  top: 1px;
}
.vf-tab:hover { color: var(--td-text); }
.vf-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.25); }
.vf-tab[aria-selected="true"] {
  color: var(--td-cyan);
  background: var(--td-surface-card);
  border-color: var(--td-border);
  border-bottom: 1px solid var(--td-surface);
}
.vf-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--td-cyan);
  color: #030508;
  font-size: 0.68rem;
  font-weight: 700;
}

/* --- 3. Subject bar (one input per card), no longer sticky -------------- */
.vf-subject {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(3, 5, 8, 0.94);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-md);
}
.vf-subject-row { display: grid; gap: 10px; }
.vf-scan-btn { min-height: 48px; width: 100%; }

/* --- 4. Check cards ---------------------------------------------------- */
.vf-checks { display: grid; gap: 10px; }
.vf-group-title {
  margin: 6px 0 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-cyan);
}

.vf-check {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--td-surface-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-md);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.vf-check.is-checked {
  border-color: rgba(86, 225, 233, 0.45);
  background: linear-gradient(165deg, rgba(86, 225, 233, 0.07), rgba(9, 15, 25, 0.9));
}
.vf-check-head { display: flex; align-items: flex-start; gap: 12px; }
.vf-check-head .td-choice { flex: 1; min-width: 0; padding: 0; }
.vf-check-main { display: grid; gap: 4px; min-width: 0; }
.vf-check-name { font-family: 'Sora', sans-serif; font-size: 0.96rem; font-weight: 700; color: var(--td-text); line-height: 1.35; }
.vf-check-desc { font-size: 0.84rem; color: var(--td-text-dim); line-height: 1.5; }
.vf-check-price {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--td-cyan);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vf-check-price small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--td-text-muted); letter-spacing: 0.04em; }

/* Fields revealed only once a check is ticked. Photos always render last. */
.vf-check-fields { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--td-border); }
.vf-check-fields[hidden] { display: none; }
.vf-fields-2col { display: grid; gap: 12px; }
.vf-satisfied {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-text-muted);
}
.vf-satisfied::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--td-cyan); }

/* --- 5. Bundles (packages sold through the cart) ----------------------- */
/* Package cards are rendered by verify-app.js renderAreaBundles and styled in
   store.css (.vf-pkg). The host stays hidden when it has no cards (and when
   BUNDLE_CHECKOUT_ENABLED is false). Neutral/cyan skin, no purple. */
.vf-bundles { display: grid; gap: 10px; }
.vf-bundles[hidden], .vf-bundles:empty { display: none; }
.vf-bundle {
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  background: #0B111A;
  border: 1px solid #1E2A36;
  border-radius: var(--td-radius-md);
  transition: border-color 200ms ease;
}
.vf-bundle:hover { border-color: var(--td-border-highlight); }
.vf-bundle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.3); }
.vf-bundle[aria-pressed="true"] { border-color: var(--td-cyan); }
.vf-bundle-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vf-bundle-name { font-family: 'Sora', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--td-text); }
.vf-bundle-price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.9rem; font-weight: 700; color: var(--td-cyan); font-variant-numeric: tabular-nums; }
.vf-bundle-contains { font-size: 0.8rem; color: var(--td-text-muted); line-height: 1.5; }
.vf-bundle-saving {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(86, 225, 233, 0.1);
  border: 1px solid rgba(86, 225, 233, 0.35);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--td-cyan);
}
/* Unpriced bundle: never invent a saving. Shows the parts total instead. */
.vf-bundle-saving.is-pending { background: rgba(255, 255, 255, 0.06); border-color: var(--td-border); color: var(--td-text-muted); }

/* --- 6. Cart + one-step checkout --------------------------------------- */
/* Mobile: the cart is a normal block at the end of the page; the one-row
   #vfMobileBar (store.css) is what stays on screen. Desktop: sticky rail. */
.vf-cart {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #0B111A;
  border: 1px solid #1E2A36;
  border-radius: var(--td-radius-md);
}
.vf-cart[hidden] { display: none; }
.vf-cart-lines { display: grid; gap: 6px; max-height: 34vh; overflow-y: auto; }
.vf-cart-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--td-text-dim); }
.vf-cart-line span:last-child { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; color: var(--td-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vf-cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--td-border);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--td-text);
}
.vf-cart-total strong { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.2rem; color: var(--td-cyan); font-variant-numeric: tabular-nums; }
.vf-cart-note { font-size: 0.76rem; color: var(--td-text-muted); line-height: 1.5; }

/* POPIA consent sits directly above Pay, shown only for person/bank checks. */
.vf-popia {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(86, 225, 233, 0.07);
  border: 1px solid rgba(86, 225, 233, 0.3);
  border-radius: var(--td-radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--td-text);
  cursor: pointer;
}
.vf-popia input[type="checkbox"] { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--td-cyan); cursor: pointer; }
.vf-popia:focus-within { box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.25); }
.vf-popia[hidden] { display: none; }

.vf-pay { width: 100%; min-height: 52px; font-size: 1rem; }
.vf-checkout { display: grid; gap: 14px; }
.vf-error {
  padding: 12px 14px;
  border-radius: var(--td-radius-sm);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FCA5A5;
  font-size: 0.86rem;
  line-height: 1.5;
}
.vf-error[hidden] { display: none; }

/* --- 6b. Vehicle Catalogue & M&M Code Resolver (frontend-ui-engineering) --- */
.vf-cat-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(86, 225, 233, 0.09) 0%, transparent 70%), linear-gradient(165deg, rgba(14, 21, 34, 0.94) 0%, rgba(7, 11, 18, 0.98) 100%);
  border: 1px solid rgba(86, 225, 233, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--td-radius-md);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.vf-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.vf-cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-cyan);
}
.vf-cat-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--td-cyan);
  box-shadow: 0 0 8px var(--td-cyan);
}
.vf-cat-title {
  margin: 4px 0 2px;
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--td-text);
  letter-spacing: -0.015em;
}
.vf-cat-sub {
  margin: 0;
  font-size: 0.83rem;
  color: var(--td-text-muted);
  line-height: 1.48;
}
.vf-cat-grid {
  display: grid;
  gap: 12px;
}
.vf-cat-step-lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CBD5E1;
}
.vf-cat-step-num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(86, 225, 233, 0.14);
  border: 1px solid rgba(86, 225, 233, 0.38);
  color: var(--td-cyan);
  font-size: 0.64rem;
  font-weight: 700;
}
.vf-cat-step-num.is-done {
  background: var(--td-cyan);
  color: #030508;
  border-color: var(--td-cyan);
}
.vf-cat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.vf-cat-result {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(3, 5, 8, 0.9);
  border: 1px solid rgba(86, 225, 233, 0.38);
  border-radius: var(--td-radius-sm);
}
.vf-cat-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vf-cat-mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(86, 225, 233, 0.12);
  border: 1px solid rgba(86, 225, 233, 0.45);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-cyan);
  letter-spacing: 0.04em;
}
.vf-cat-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.vf-cat-spec {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2px;
}
.vf-cat-spec-k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
}
.vf-cat-spec-v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #F8FAFC;
}
.vf-cat-inline-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--td-radius-sm);
  background: rgba(86, 225, 233, 0.07);
  border: 1px solid rgba(86, 225, 233, 0.28);
  font-size: 0.83rem;
  color: #E2E8F0;
}
.vf-cat-inline-banner code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: var(--td-cyan);
}
@media (min-width: 768px) {
  .vf-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .vf-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- 7. Enhancements (tablet and up only) ------------------------------ */
@media (min-width: 768px) {
  .vf-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf-entry-tile { flex-direction: column; align-items: flex-start; min-height: 150px; gap: 12px; }
  .vf-subject-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .vf-scan-btn { width: auto; }
  .vf-fields-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf-bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf-check { padding: 18px; }
}

@media (min-width: 1024px) {
  /* Desktop: the cart rail is always shown (with its empty state when nothing
     has been added), so the layout is always two columns. .has-cart is kept as
     a state hook only. */
  .vf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .vf-cart {
    position: sticky;
    top: 140px;
    border-radius: var(--td-radius-md);
  }
  .vf-cart-lines { max-height: none; }
  .vf-bundles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .vf-entry-tile, .vf-bundle, .vf-check, .vf-tab, .td-input, .td-select { transition: none !important; }
}

/* ==========================================================================
   8. Single-scroll card layout (2026-10-23)
   Sticky in-page nav -> hero + unified entry bar -> one card per product
   area -> cart rail. Structure only; every colour is a token.
   ========================================================================== */

/* --- In-page sticky nav (tabs) -------------------------------------------
   Sits directly under the sticky site header (68px). Solid background, no
   backdrop blur: it is repainted on every scroll frame. */
.vf-nav {
  position: sticky;
  top: var(--vf-header-h, 68px);
  z-index: 40;
  background: #05080D;
  border-bottom: 1px solid #1E2A36;
}
.vf-nav__inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-top: 0;
  padding-bottom: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vf-nav__inner::-webkit-scrollbar { display: none; }
.vf-nav__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 12px 14px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--td-text-muted);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.vf-nav__link:hover { color: var(--td-text); border-bottom-color: #2A3A4A; }
.vf-nav__link:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(86, 225, 233, 0.45); }
.vf-nav__link.is-active {
  color: var(--td-text);
  border-bottom-color: var(--td-cyan);
  background: transparent;
}
.vf-nav__cart { margin-left: auto; }
.vf-nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--td-cyan);
  color: #030508;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vf-nav__count[hidden] { display: none; }

/* --- Hero + unified entry bar -------------------------------------------- */
/* Compact store hero: eyebrow, h1, one-line promise, entry bar, trust strip.
   Target at 390x844: h1 + promise + input + button above the fold, hero
   <= 520px tall. */
.vf-hero { padding-top: 40px; padding-bottom: 20px; }
.vf-hero__eyebrow { margin-bottom: 10px; }
.vf-h1 { margin: 0 0 10px; max-width: 22ch; }
.vf-h1-short { display: none; }
.vf-promise {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--td-text);
}
.vf-lead { max-width: 720px; margin: 0; }

.vf-trust {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--td-text-muted);
  white-space: nowrap;
}
.vf-trust::-webkit-scrollbar { display: none; }
.vf-trust li { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vf-trust li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #2A3A4A; margin-right: 12px; }
.vf-trust a { color: var(--td-text-dim); text-decoration: underline; text-underline-offset: 2px; }
.vf-trust a:hover { color: var(--td-cyan); }

.vf-omni {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-top: 18px;
  padding: 16px;
  background: #0B111A;
  border: 1px solid #1E2A36;
  border-radius: var(--td-radius-lg);
}
.vf-omni__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--td-text-muted);
}
.vf-omni__row { display: grid; gap: 10px; }
.vf-omni__input { width: 100%; }
.vf-omni__go { min-height: 48px; }
.vf-omni__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--td-text-muted);
}
.vf-omni__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-chip {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--td-border);
  background: transparent;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--td-text-dim);
  transition: color 180ms ease, border-color 180ms ease;
}
.vf-chip:hover { color: var(--td-cyan); border-color: var(--td-border-highlight); }
.vf-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.25); }


/* --- Product cards ------------------------------------------------------- */
.vf-market { padding-top: 8px; padding-bottom: 64px; }
.vf-cards { display: grid; gap: 24px; min-width: 0; }

.vf-pillar {
  display: grid;
  gap: 18px;
  padding: 22px;
  scroll-margin-top: calc(var(--vf-header-h, 68px) + 60px);
  background: var(--td-surface-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-lg);
  box-shadow: var(--td-shadow-card);
}
.vf-pillar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.vf-pillar__heading { display: grid; gap: 6px; min-width: 0; }
.vf-pillar__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--td-text-muted);
}
.vf-pillar__title { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.vf-pillar__cta { flex-shrink: 0; padding: 9px 14px; font-size: 0.8rem; min-height: 40px; }
.vf-pillar__lead {
  margin: 0;
  max-width: 74ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--td-text-dim);
}

/* --- Family tiles (Car / Moto / Truck / Heavy / All) --------------------- */
.vf-subgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vf-subcard {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  background: rgba(3, 5, 8, 0.55);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-md);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.vf-subcard:hover { border-color: var(--td-border-highlight); background: var(--td-surface-hover); }
.vf-subcard:focus-visible { outline: none; border-color: var(--td-cyan); box-shadow: 0 0 0 3px rgba(86, 225, 233, 0.25); }
.vf-subcard.is-active {
  border-color: var(--td-cyan);
  background: linear-gradient(160deg, rgba(86, 225, 233, 0.12), rgba(9, 15, 25, 0.9));
}
.vf-subcard__tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--td-cyan);
}
.vf-subcard__title { font-family: 'Sora', sans-serif; font-size: 0.96rem; font-weight: 700; line-height: 1.3; color: var(--td-text); }
.vf-subcard__blurb { font-size: 0.8rem; line-height: 1.45; color: var(--td-text-muted); }

/* --- Cart rail ----------------------------------------------------------- */
.vf-rail { display: grid; gap: 24px; min-width: 0; align-content: start; }

/* The rail is always visible now (empty state included); the old rule that hid
   it while the cart was empty is gone. */

/* --- Catalogue / check additions ---------------------------------------- */
.vf-cat-actions-hint { font-size: 0.78rem; color: var(--td-text-muted); }
.vf-cat-resolved-name { font-size: 0.84rem; font-weight: 600; color: #F8FAFC; }
.vf-cat-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--td-radius-sm);
  background: rgba(56, 139, 253, 0.08);
  border: 1px solid rgba(56, 139, 253, 0.32);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--td-text-dim);
}
.vf-cat-resolve { padding: 9px 16px; font-size: 0.82rem; min-height: 40px; }
.vf-cat-resolve[disabled] { opacity: 1; cursor: not-allowed; }
.vf-disc-review-title {
  color: var(--td-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vf-subject-note { margin: 0; font-size: 0.78rem; color: var(--td-text-muted); line-height: 1.5; }
.vf-check.is-blocked { opacity: 1; border-style: dashed; }
.vf-check-blocked-note {
  padding-top: 12px;
  border-top: 1px solid var(--td-border);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--td-text-muted);
}

/* A check the cart added because another check is addressed with the M&M code.
   It is ticked and locked, and says so in place instead of only appearing in the
   cart rail. */
.vf-check-needed {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(79, 227, 220, 0.28);
  background: rgba(79, 227, 220, 0.07);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--td-text-dim);
}
.vf-check-needed strong { color: var(--td-text); font-weight: 700; }

.vf-cart-req {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--td-text-muted);
}


/* --- 9. Card layout enhancements (tablet and up only) ------------------- */
@media (min-width: 768px) {
  .vf-omni__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .vf-omni__go { width: auto; padding-left: 22px; padding-right: 22px; }
  .vf-subgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf-pillar { padding: 26px; }
  .vf-pillar__title { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .vf-subgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* Grid + card width come from the desktop .vf-layout rules above; this only
     pins the rail so the cart follows the page. */
  .vf-rail { position: sticky; top: calc(var(--vf-header-h, 68px) + 60px); }
  .vf-rail .vf-cart { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-nav__link, .vf-subcard, .vf-chip { transition: none !important; }
  .vf-cat-resolve { transition: none !important; }
}


/* --- 10. Compact store hero on phones (<= 560px) ------------------------- */
@media (max-width: 560px) {
  .vf-hero { padding-top: 20px; padding-bottom: 12px; }
  .vf-hero__eyebrow { margin-bottom: 8px; }
  .vf-h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.15; margin-bottom: 8px; }
  .vf-h1-long { display: none; }
  .vf-h1-short { display: inline; }
  .vf-promise { font-size: 0.95rem; margin-bottom: 0; }
  .vf-lead { display: none; }
  .vf-omni { margin-top: 14px; padding: 12px; gap: 8px; }
  .vf-omni__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .vf-omni__hint { display: none; }
  .vf-omni__go { width: 100%; }
  .vf-trust { margin-top: 12px; font-size: 0.76rem; }
  .vf-pillar { padding: 16px; }
}
