/* ============================================================
   For Retailers — extras on top of styles.css + brands.css
============================================================ */

/* sub-nav (matches Solutions family) */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--pad-x);
  overflow-x: auto;
}
.subnav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.subnav-inner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.hero-narrow .display { font-size: clamp(60px, 9.2vw, 124px); line-height: 0.94; }

/* ============================================================
   RETAIL HERO PEEK — multi-brand catalog dashboard
============================================================ */
.retail-peek .peek-frame { background: var(--bg-card); }
.retail-dash {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rd-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 760px){ .rd-kpis { grid-template-columns: repeat(2, 1fr); } }
.rd-kpi {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.rd-l {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.rd-v {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.rd-bar {
  height: 3px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.rd-bar > span {
  display: block; height: 100%;
  background: var(--ok);
}

.rd-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rd-actions { display: inline-flex; gap: 6px; text-transform: none; letter-spacing: 0; }
.chip.sm { height: 22px; padding: 0 8px; font-size: 11px; }

.rd-brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (max-width: 720px){ .rd-brands { grid-template-columns: 1fr; } }
.rdb {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  transition: background .2s ease, border-color .2s ease;
}
.rdb:hover { background: var(--bg-card); border-color: var(--line-2); }
.rdb.add { border-style: dashed; background: transparent; color: var(--muted); }
.rdb-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.rdb-mark.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 22px; }
.rdb-mark.mono { font-family: var(--f-mono); font-weight: 500; font-size: 12px; }
.rdb-mark.add { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); font-size: 18px; font-weight: 300; }
.rdb-meta { display: flex; flex-direction: column; line-height: 1.25; }
.rdb-meta b { font-weight: 600; font-size: 13.5px; letter-spacing: -0.015em; }
.rdb-meta span { font-size: 11.5px; color: var(--muted); }
.rdb-ch { display: inline-flex; gap: 4px; }

/* ============================================================
   PILLAR VISUALS
============================================================ */
.visual-onboard { padding: 32px; display: flex; align-items: center; justify-content: center; }
.onb-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 320px;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.onb-step.done { color: var(--ok); }
.onb-step.done .dt.ok { background: var(--ok); }
.onb-step.on {
  border-color: var(--warn);
  color: var(--warn);
  box-shadow: 0 0 0 3px rgba(180,122,18,0.12), var(--shadow-sm);
}
.onb-step.on .dt.warn { background: var(--warn); }
.onb-line {
  width: 1.5px;
  height: 14px;
  background: var(--ok);
  margin-left: 22px;
}
.onb-line.dim { background: rgba(var(--ink-rgb),0.16); }

/* enrich card */
.visual-enrich { padding: 26px; }
.enr-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.enr-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.enr-h b { font-size: 13px; font-weight: 600; letter-spacing: -0.015em; }
.enr-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
}
.enr-row:last-child { border-bottom: none; }
.enr-l { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.enr-row.supplier .enr-v { color: var(--ink); }
.enr-row.missing .enr-v { color: var(--err); font-family: var(--f-mono); }
.enr-row.ai-filled .enr-v { color: var(--ok); }
.enr-arrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  padding: 10px 0;
  margin: 6px 0;
  background: rgba(217,119,87,0.08);
  border-radius: 6px;
}

/* distrib map */
.visual-distrib { padding: 22px; display: flex; align-items: center; justify-content: center; }
.dst-map {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dst-svg { width: 100%; height: auto; }
.dst-pin { fill: var(--ink); }
.dst-pin.nl { fill: #C15F3C; }
.dst-pin.de { fill: var(--ink); }
.dst-pin.fr { fill: var(--ink); }
.dst-pin.uk { fill: var(--muted); }
.dst-pin.be { fill: var(--muted); }
.dst-lbl {
  font-family: var(--f-mono);
  font-size: 9.5px;
  fill: var(--ink-mid);
  letter-spacing: 0.04em;
}
.dst-lbl.right { text-anchor: end; }
.dst-chans {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dst-ch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-mid);
}

/* ============================================================
   SUPPLIER PORTAL CARD
============================================================ */
.sup-card {
  padding: 22px;
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.sup-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sup-h b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -0.015em; }
.sup-h .muted { font-size: 12px; }

.sup-items { display: flex; flex-direction: column; gap: 6px; }
.sup-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
}
.sup-item.warn { background: rgba(180,122,18,0.06); border-color: rgba(180,122,18,0.20); }
.sup-img {
  width: 38px; height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.sup-img .ai-fill { position: absolute; inset: 0; }
.sup-meta b { display: block; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; }
.sup-meta span { font-size: 10.5px; color: var(--muted); }

.ai-fill.ai-tent {
  background: linear-gradient(135deg, #6A4A2C, #8C6A3E);
  position: relative;
}
.ai-fill.ai-tent::before {
  content: ""; position: absolute;
  inset: 22% 14% 10% 14%;
  background: rgba(255,255,255,0.10);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.sup-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.sup-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.sup-bubble {
  padding: 9px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top-left-radius: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-mid);
}

.sup-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================
   DEDUP (dark)
============================================================ */
.dedup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  margin-top: 30px;
}
@media (max-width: 900px){
  .dedup { grid-template-columns: 1fr; }
  .dd-mid { transform: rotate(90deg); margin: 6px auto; }
}

.dd-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dd-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
}
.dd-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  align-items: baseline;
}
.dd-row:last-child { border-bottom: none; }
.dd-row .mono { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.dd-row.ok { color: #6ED27A; }
.dd-row.ok .mono { color: rgba(255,255,255,0.85); }
.dd-row.strike { color: rgba(255,255,255,0.45); text-decoration: line-through; }
.dd-row.strike .mono { color: rgba(255,255,255,0.40); }
.dd-row.strike .muted { color: rgba(255,255,255,0.40); }

.dd-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 160px;
}
.dd-arrow svg { width: 80px; height: 16px; }
.dd-arrow svg path {
  stroke-dashoffset: 0;
  animation: dashFlow 1.4s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
.dd-engine {
  background: rgba(110,210,122,0.08);
  border: 1px solid rgba(110,210,122,0.22);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dd-engine b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.dd-engine span {
  font-size: 11.5px;
  font-family: var(--f-mono);
  color: #6ED27A;
}

/* ============================================================
   EUROPE GRID
============================================================ */
.eu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .eu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .eu-grid { grid-template-columns: 1fr; } }
.eu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.eu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.eu-card.add { border-style: dashed; background: transparent; }
.eu-card.add .eu-flag { color: var(--muted); font-weight: 300; }
.eu-flag {
  font-size: 32px;
  line-height: 1;
}
.eu-card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 4px 0 4px;
}
.eu-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.eu-stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.eu-stats b { font-weight: 500; color: var(--ink); }

/* ============================================================
   PRICE COMPARISON TABLE
============================================================ */
.pricecmp {
  padding: 0;
  overflow: hidden;
}
.pc-row {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1.2fr 1.4fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pc-row:last-child { border-bottom: none; }
.pc-row.pc-head {
  background: var(--bg-card);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 24px;
}
.pc-row .hl {
  background: rgba(var(--ink-rgb),0.04);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
}
.pc-row .hl b { font-weight: 600; }
.pc-row.pc-head .hl {
  background: var(--ink);
  color: var(--bg);
  margin: -14px 0;
  padding: 14px 14px;
}
.pc-row b { font-weight: 600; }
.pc-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 720px;
  line-height: 1.55;
}
@media (max-width: 720px){
  .pc-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px; font-size: 12.5px; }
  .pc-row.pc-head { display: none; }
  .pc-row .hl { margin: 0; padding: 8px 10px; border-radius: 5px; grid-column: 1 / -1; }
}

/* ── White mode (html[data-theme="light"]) overrides ── */
/* Audited against the pre-dark original (5d41709~1): every dark-theme change
   in this file is token-based (var(--bg), var(--bg-soft)) and adapts
   automatically; remaining white/rgba literals belong to intentionally dark
   sections (var(--bg-dark) stays dark). No overrides needed. */
