/* ===========================================================================
   duogit-design-system.css — what DuoGit's design system page does differently
   from the other one: its own :root of brand colours, its state swatches,
   its zoning bars, its before/after cards. The 50 rules the two pages
   draw the same way are in design-system.css.
   =========================================================================== */

:root {
  --muted: rgba(242,239,232,.78);
  --faint: rgba(242,239,232,.6);
  --accent-soft: rgba(155,143,212,.12);
  --accent-green: #4ADE80;
}
.pill.accent { border-color: rgba(155,143,212,.3); color: var(--accent-text); background: var(--accent-soft); }
@media (max-width: 768px) { .states-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .states-grid { grid-template-columns: 1fr; } }
.state-img {
  width: 80px; height: 80px; object-fit: contain;
  background: var(--bg-elevated); border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
@media (max-width: 700px) { .zone-diagram { grid-template-columns: 1fr; } }
.zone-data-bar {
  flex: 60; background: rgba(155,143,212,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--accent);
}
.zone-emotional-bar {
  flex: 40; background: rgba(74,222,128,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--accent-green); border-radius: 0 6px 6px 0;
}

/* League system */
.league-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-12); margin-top: var(--s-28); }
@media (max-width: 640px) { .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.league-card {
  padding: var(--s-20) var(--s-16); text-align: center;
  background: var(--bg-card); border: 1px solid var(--stroke-light);
  border-radius: var(--r);
}
.league-num { font-size: 22px; font-weight: 700; color: var(--faint); margin-bottom: var(--s-8); }
.league-name { font-size: 13px; font-weight: 600; }
.league-min { font-size: 11px; color: var(--muted); margin-top: 2px; }
.league-screen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-20); align-items: center; margin-top: var(--s-24); }
.league-screen img { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; }
@media (max-width: 700px) { .ref-sheet-grid { grid-template-columns: 1fr; } }

.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-16); align-items: stretch; margin-top: var(--s-32); }
@media (max-width: 640px) { .ba-grid { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); } }
.ba-card { border-radius: var(--r); border: 1px solid var(--stroke-light); overflow: hidden; display: flex; flex-direction: column; }
.ba-card-body { padding: var(--s-20); min-height: 180px; height: 340px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; }
.ba-card-body img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); display: block; }

.cmp-slider { overflow: hidden; position: relative; }
.cmp-slider::before, .cmp-slider::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
}
.cmp-slider::before { left: 0; background: linear-gradient(90deg, #0a0a0d, transparent); }
.cmp-slider::after { right: 0; background: linear-gradient(270deg, #0a0a0d, transparent); }
.cmp-track {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  height: 100%;
  padding: var(--s-20) var(--s-24);
  width: max-content;
  animation: cmp-scroll 22s linear infinite;
}
.cmp-slider:hover .cmp-track { animation-play-state: paused; }
.cmp-img {
  max-height: 100%;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.4));
}
@keyframes cmp-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-track { animation: none; }
}

/* Annotations */
.annotated-placeholder { width: 100%; min-height: 400px; background: var(--bg-card); border-radius: var(--r); border: 2px dashed var(--stroke-light); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-12); color: var(--faint); font-size: 14px; margin-top: var(--s-32); }
@media (max-width: 600px) { .component-grid { grid-template-columns: 1fr; } }

.progress-demo { margin: var(--s-12) 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progress-fill { height: 100%; border-radius: 999px; }

.streak-counter { display: flex; align-items: center; gap: var(--s-16); padding: var(--s-16) var(--s-20); background: #161E2C; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.08); margin: var(--s-16) 0; }
.streak-num { font-size: 36px; font-weight: 700; color: var(--accent-green); letter-spacing: -.02em; }
.streak-label { font-size: 13px; color: var(--muted); }
.streak-sub { font-size: 11px; color: var(--accent-green); }

/* Product samples, in the product's own colours (Duo Git tokens). */
.rank-demo, .risk-demo, .metric-demo > div {
  background: #161E2C; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: var(--s-16);
}
.rank-demo, .risk-demo { margin: var(--s-16) 0; }
.rank-demo-name { font-size: 15px; font-weight: 700; color: #60A5FA; }
.rank-demo-name span { margin-left: var(--s-8); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.rank-demo-min { font-size: 11px; color: #94A3B8; margin: var(--s-4) 0 var(--s-12); }
.risk-demo-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; }
.risk-demo-time { font-family: 'Fira Mono', monospace; font-size: 28px; font-weight: 700; color: #F97316; margin-top: var(--s-4); }
.risk-demo-note { font-size: 12px; color: #CBD5E1; margin-top: var(--s-4); }
.metric-demo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); margin: var(--s-16) 0; }
.metric-demo-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.metric-demo-value { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: #FFFFFF; }
.metric-demo-value small { font-size: 11px; font-weight: 400; color: #94A3B8; }
.metric-demo-value span { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; color: #4ADE80; }


  
/* --- SHARED CARD LANGUAGE ---------------------------------------- */
/* Cards that stand on their own carry the card language. The three that
   used to be in this list — .swatch-info, .zone-header, .ba-card-body —
   sit INSIDE a card that already clips with overflow: hidden, so their
   own 18px radius fought the parent's 14px clip and drew a second,
   mismatched corner. A child on its parent's corner takes the parent's
   radius minus its inset; at an inset of 1px that is simply the
   parent's own clip, so they carry none. */
.state-card, .ref-sheet-card, .annotation-item, .component-card, .league-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.32);
}
  
