/* ============================================================
   LOGO STRIP LAYOUT VARIANTS
   tabs · marquee · columns · banded · badged
   ============================================================ */

/* Segment accent colors — used for badges, bands, marquee labels */
:root {
  --seg-ecom: 218 64% 45%;   /* blue */
  --seg-saas: 142 50% 38%;   /* green */
  --seg-lead: 28 70% 50%;    /* warm amber */
}

/* ===== Filter tabs ===== */
.logo-tabs {
  display: inline-flex;
  margin: 0 auto 48px;
  padding: 4px;
  background: hsl(var(--muted) / .8);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  gap: 2px;
  align-self: center;
}
.logo-strip .logo-tabs {
  display: flex;
  justify-content: center;
  max-width: fit-content;
  margin-left: auto; margin-right: auto;
}
.logo-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 14px; font-weight: 500;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.logo-tab:hover { color: hsl(var(--foreground)); }
.logo-tab.is-active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: var(--shadow-sm);
}
.logo-tab-count {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}
.logo-tab.is-active .logo-tab-count {
  background: hsl(var(--primary) / .12);
  color: hsl(var(--primary));
}

/* ===== Marquee ===== */
.logo-strip-marquee .container-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.logo-marquee-list {
  display: flex; flex-direction: column;
  gap: 20px;
  margin-top: 56px;
}
.logo-marquee-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid hsl(var(--border) / .5);
}
.logo-marquee-row:last-child { border-bottom: 1px solid hsl(var(--border) / .5); }
@media (max-width: 720px) {
  .logo-marquee-row { grid-template-columns: 1fr; gap: 12px; }
}
.logo-marquee-label {
  padding-left: 8px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid hsl(var(--seg-ecom));
  padding-left: 14px;
}
.logo-marquee-row.seg-ecom .logo-marquee-label { border-left-color: hsl(var(--seg-ecom)); }
.logo-marquee-row.seg-saas .logo-marquee-label { border-left-color: hsl(var(--seg-saas)); }
.logo-marquee-row.seg-lead .logo-marquee-label { border-left-color: hsl(var(--seg-lead)); }
.logo-marquee-seg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -.012em;
  color: hsl(var(--foreground));
}
.logo-marquee-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: hsl(var(--seg-ecom));
  flex-shrink: 0;
}
.logo-marquee-row.seg-ecom .logo-marquee-dot { background: hsl(var(--seg-ecom)); }
.logo-marquee-row.seg-saas .logo-marquee-dot { background: hsl(var(--seg-saas)); }
.logo-marquee-row.seg-lead .logo-marquee-dot { background: hsl(var(--seg-lead)); }
.logo-marquee-count {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo-marquee-tag {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  line-height: 1.35;
}
.logo-marquee-viewport {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: logo-marquee-scroll 30s linear infinite;
}
@keyframes logo-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-cell-marquee {
  width: 180px !important;
  height: 80px !important;
  padding: 14px 24px !important;
  flex-shrink: 0;
}

/* ===== Three vertical columns ===== */
.logo-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .logo-columns { grid-template-columns: 1fr; }
}
.logo-column {
  display: flex; flex-direction: column;
  border-right: 1px solid hsl(var(--border));
}
.logo-column:last-child { border-right: none; }
@media (max-width: 880px) {
  .logo-column { border-right: none; border-bottom: 1px solid hsl(var(--border)); }
  .logo-column:last-child { border-bottom: none; }
}
.logo-column-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .35);
}
.logo-column-name {
  font-size: 17px; font-weight: 700; letter-spacing: -.008em;
}
.logo-column-meta {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
}
.logo-column-stack {
  display: flex; flex-direction: column;
  padding: 12px 16px;
}
.logo-column-stack .logo-cell {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid hsl(var(--border) / .4);
}
.logo-column-stack .logo-cell:last-child { border-bottom: none; }

/* ===== Banded grid — column-tinted background bands ===== */
.logo-grid-banded {
  position: relative;
  gap: 12px 0;
  padding: 24px 0 48px;
}
.logo-band {
  position: absolute;
  top: 0; bottom: 0;
  width: calc(100% / 3);
  border-radius: 12px;
  z-index: 0;
}
.logo-band-ecom { left: 0; background: hsl(var(--seg-ecom) / .04); }
.logo-band-saas { left: calc(100% / 3); background: hsl(var(--seg-saas) / .04); }
.logo-band-lead { left: calc(2 * 100% / 3); background: hsl(var(--seg-lead) / .04); }
.logo-band-label {
  position: absolute;
  bottom: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-mono);
  z-index: 1;
  pointer-events: none;
  width: calc(100% / 3);
  text-align: center;
}
.logo-band-label-ecom { left: 0; color: hsl(var(--seg-ecom)); }
.logo-band-label-saas { left: calc(100% / 3); color: hsl(var(--seg-saas)); }
.logo-band-label-lead { left: calc(2 * 100% / 3); color: hsl(var(--seg-lead)); }
.logo-grid-banded .logo-cell { position: relative; z-index: 1; }

/* ===== Badged grid — segment dots in corners ===== */
.logo-badge-legend {
  display: inline-flex;
  gap: 20px;
  margin: 0 auto 32px;
  padding: 0;
  align-self: center;
  justify-content: center;
}
.logo-strip .logo-badge-legend {
  display: flex;
  justify-content: center;
}
.logo-badge-key {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: hsl(var(--muted-foreground));
  font-weight: 500;
  letter-spacing: .02em;
}
.logo-badge-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  display: inline-block;
}
.seg-ecom .logo-badge-dot,
.logo-badge-key.seg-ecom .logo-badge-dot { background: hsl(var(--seg-ecom)); }
.seg-saas .logo-badge-dot,
.logo-badge-key.seg-saas .logo-badge-dot { background: hsl(var(--seg-saas)); }
.seg-lead .logo-badge-dot,
.logo-badge-key.seg-lead .logo-badge-dot { background: hsl(var(--seg-lead)); }
.logo-cell-badged { position: relative; }
.logo-badge-dot-corner {
  position: absolute;
  top: 12px; right: 12px;
}

/* ============================================================
   Dark style overrides (Remix / Contrast)
   ============================================================ */
body.style-remix .logo-tabs,
body.style-contrast .logo-tabs {
  background: hsl(28 8% 12%);
  border-color: hsl(28 6% 22%);
}
body.style-remix .logo-tab.is-active,
body.style-contrast .logo-tab.is-active {
  background: hsl(28 8% 18%);
  color: #fff;
}
body.style-remix .logo-tab-count,
body.style-contrast .logo-tab-count {
  background: hsl(28 8% 18%);
  color: hsl(220 9% 70%);
}
body.style-remix .logo-marquee-row,
body.style-contrast .logo-marquee-row { border-top-color: hsl(28 6% 20%); }
body.style-remix .logo-marquee-row:last-child,
body.style-contrast .logo-marquee-row:last-child { border-bottom-color: hsl(28 6% 20%); }
body.style-remix .logo-marquee-seg,
body.style-contrast .logo-marquee-seg { color: #fff; }
body.style-remix .logo-marquee-count,
body.style-contrast .logo-marquee-count { color: hsl(220 9% 60%); }

body.style-remix .logo-columns,
body.style-contrast .logo-columns {
  border-color: hsl(28 6% 20%);
}
body.style-remix .logo-column,
body.style-contrast .logo-column { border-right-color: hsl(28 6% 20%); }
body.style-remix .logo-column-head,
body.style-contrast .logo-column-head {
  background: hsl(28 8% 8%);
  border-bottom-color: hsl(28 6% 20%);
}
body.style-remix .logo-column-name,
body.style-contrast .logo-column-name { color: #fff; }
body.style-remix .logo-column-meta,
body.style-contrast .logo-column-meta { color: hsl(220 9% 60%); }
body.style-remix .logo-column-stack .logo-cell,
body.style-contrast .logo-column-stack .logo-cell { border-bottom-color: hsl(28 6% 18%); }

body.style-remix .logo-band,
body.style-contrast .logo-band { background: hsl(28 8% 10%); }
body.style-remix .logo-band-ecom { background: hsl(var(--seg-ecom) / .08); }
body.style-remix .logo-band-saas { background: hsl(var(--seg-saas) / .08); }
body.style-remix .logo-band-lead { background: hsl(var(--seg-lead) / .08); }
