/* ============================================================
   SYNE ONE — MARKETPLACE ROLE PAGES SHARED CSS
   Used by: marketplace-buyers.html, marketplace-suppliers.html,
            marketplace-traders.html
   Extends syne-shared.css — do not duplicate tokens from there
   ============================================================ */

/* ── PAGE HERO ─────────────────────────────────────────────── */
.mp-page-hero {
  padding: calc(var(--nav-h) + 72px) 0 0;
  position: relative;
  overflow: hidden;
}
.mp-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(
      var(--hero-grid-color, rgba(22, 192, 239, 0.08)) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      var(--hero-grid-color, rgba(22, 192, 239, 0.08)) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
}
.mp-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.mp-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}
.mp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.mp-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: mp-pulse 2s ease-in-out infinite;
}
@keyframes mp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.mp-hero-inner h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.mp-hero-inner h1 em {
  font-style: italic;
}
.mp-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}
.mp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.mp-hero-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
}
.mp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── STAT STRIP (always light) ──────────────────────────────── */
.mp-stat-strip {
  background: var(--bg-snow);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.mp-stat-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.mp-stat-item {
  text-align: center;
  padding: 8px 44px;
}
.mp-stat-val {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.mp-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.mp-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── DEMO PANEL ─────────────────────────────────────────────── */
.mp-demo-panel {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(15, 23, 42, 0.1);
  position: relative;
}
.mp-demo-bar {
  height: 4px;
}
.mp-demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-snow);
}
.mp-demo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mp-demo-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.mp-demo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.mp-demo-live {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-pale);
  padding: 3px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mp-demo-live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--emerald);
  border-radius: 50%;
  animation: mp-pulse 2.4s ease-in-out infinite;
}
.mp-demo-body {
  padding: 16px 18px;
}

/* Panel internals */
.mp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}
.mp-kpi {
  background: var(--bg-frost);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  text-align: center;
}
.mp-kpi-val {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.mp-kpi-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.mp-panel-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.mp-panel-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.mp-panel-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: var(--bg-frost);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.79rem;
  transition: background 0.15s;
}
.mp-panel-row:hover {
  background: var(--bg-white);
}
.mp-row-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  flex-shrink: 0;
}
.mp-row-name {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
}
.mp-row-sub {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.mp-row-info {
  flex: 1;
}
.mp-row-badge {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mp-row-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}

.mp-track {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}
.mp-fill {
  height: 100%;
  border-radius: 999px;
  width: var(--w, 50%);
}

.mp-panel-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  margin-top: 10px;
  background: var(--bg-snow);
}
.mp-panel-chip > span {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Floating chips on hero */
.mp-float-chip {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.09);
  animation: mp-float 3.2s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}
@keyframes mp-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.mfc1 {
  top: -16px;
  right: 24px;
  animation-delay: 0s;
}
.mfc2 {
  bottom: 16px;
  right: -20px;
  animation-delay: 1.1s;
}
.mfc3 {
  bottom: -16px;
  left: 24px;
  animation-delay: 0.58s;
}

/* ── ROLE SWITCHER NAV ──────────────────────────────────────── */
.mp-role-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 89;
}
.mp-role-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mp-role-nav-inner::-webkit-scrollbar {
  display: none;
}
.mp-role-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.mp-role-tab:hover {
  color: var(--ink);
}
.mp-role-tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent-deep);
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.mp-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin: 48px 0 0;
}
.mp-steps-row::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(
    --steps-line,
    linear-gradient(90deg, var(--cyan-pale), var(--cyan))
  );
  z-index: 0;
}
.mp-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.mp-step-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin: 0 auto 16px;
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--border);
  position: relative;
  z-index: 1;
  transition: transform 0.18s;
}
.mp-step:hover .mp-step-node {
  transform: scale(1.1);
}
.mp-step h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.mp-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FEATURE CARD ───────────────────────────────────────────── */
.mp-feat-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.mp-feat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--cyan));
}
.mp-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mp-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.mp-feat-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.mp-feat-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.mp-feat-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 8px;
  margin-top: 4px;
}
.mp-feat-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
}
.mp-feat-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── COMPARISON TABLE ───────────────────────────────────────── */
.mp-compare-wrap {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.mp-compare-head {
  display: grid;
  background: var(--bg-snow);
  border-bottom: 2px solid var(--border);
}
.mp-compare-head-cell {
  padding: 16px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mp-compare-head-cell.hl {
  color: var(--accent-deep);
  background: var(--accent-xpale);
  text-align: center;
}
.mp-compare-row {
  display: grid;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mp-compare-row:last-child {
  border-bottom: none;
}
.mp-compare-row:hover {
  background: var(--bg-frost);
}
.mp-compare-cell {
  padding: 13px 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-compare-cell.feature {
  font-weight: 600;
  color: var(--ink);
}
.mp-compare-cell.hl {
  background: var(--accent-xpale);
  justify-content: center;
}
.mp-ct-yes {
  color: var(--emerald-dark);
  font-weight: 800;
  font-size: 1rem;
}
.mp-ct-no {
  color: var(--border);
  font-weight: 700;
  font-size: 1rem;
}
.mp-ct-part {
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.mp-test-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.mp-test-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* .mp-test-card.featured {
  border-color: var(--accent);
} */
.mp-stars {
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.mp-quote {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}
.mp-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mp-author-av {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.mp-author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.mp-author-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.mp-author-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 3px;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.mp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── PAGE CTA (light bg) ────────────────────────────────────── */
.mp-cta-sec {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.mp-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}
.mp-cta-inner h2 {
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.mp-cta-inner h2 em {
  font-style: italic;
}
.mp-cta-inner p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.975rem;
  margin-bottom: 32px;
}
.mp-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mp-cta-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.mp-cta-trust span::before {
  content: "✓ ";
  color: var(--emerald);
}

/* ── DUAL LAYOUT ────────────────────────────────────────────── */
.mp-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mp-dual.reverse {
  direction: rtl;
}
.mp-dual.reverse > * {
  direction: ltr;
}
.mp-dual-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 14px 0;
}
.mp-dual-copy h2 em {
  font-style: italic;
}
.mp-dual-copy p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.975rem;
  margin-bottom: 22px;
}
.mp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.mp-fl-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.mp-fl-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.mp-fl-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.mp-fl-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── TRACEABILITY TIMELINE ──────────────────────────────────── */
.mp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mp-tl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  position: relative;
}
.mp-tl-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.mp-tl-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 1;
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--border);
}
.mp-tl-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.mp-tl-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.mp-tl-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 5px;
  display: inline-block;
}

/* ── CATEGORY CARDS ─────────────────────────────────────────── */
.mp-cat-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.mp-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.mp-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mp-cat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.mp-cat-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.mp-cat-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.mp-cat-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.mp-cat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .mp-hero-inner {
    grid-template-columns: 1fr;
  }
  .mp-dual {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mp-dual.reverse {
    direction: ltr;
  }
  .mp-steps-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .mp-steps-row::before {
    display: none;
  }
  .mp-faq-grid {
    grid-template-columns: 1fr;
  }
  .mp-stat-sep {
    display: none;
  }
  .mp-stat-item {
    padding: 8px 20px;
  }
}
@media (max-width: 480px) {
  .mp-steps-row {
    grid-template-columns: 1fr;
  }
  .mp-hero-inner h1 {
    font-size: 2.1rem;
  }
}
