/* ============================================================
   BrotherVader — styles for the 10 UI enhancements.
   Uses the existing tokens; fully responsive.
   ============================================================ */

/* ---------- StatStrip ---------- */
.statstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.statstrip-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.statstrip-cell { padding: 22px 14px; text-align: center; border-left: 1px solid var(--line); }
.statstrip-cell:first-child { border-left: none; }
.statstrip-num { font-size: clamp(24px, 3.2vw, 38px); color: var(--chalk); line-height: 1; }
.statstrip-lbl { margin-top: 6px; color: var(--steel); }
@media (max-width: 760px) {
  .statstrip-inner { grid-template-columns: repeat(2, 1fr); }
  .statstrip-cell:nth-child(2) { border-left: none; }
  .statstrip-cell:nth-child(odd) { border-left: none; }
  .statstrip-cell { border-top: 1px solid var(--line); }
  .statstrip-cell:nth-child(5) { grid-column: 1 / -1; }
}

/* ---------- Insights dashboard ---------- */
.insights-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 40px; }
.ins-total { padding: 24px; }
.ins-total-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.ins-total-num { font-size: clamp(40px, 6vw, 68px); color: var(--ox-bright); line-height: 1; }
.ins-unit { font-family: var(--font-head); font-size: 0.4em; color: var(--steel); }
.ins-meter { height: 14px; border-radius: 100px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; margin: 18px 0 6px; }
.ins-meter.sm { height: 10px; margin: 12px 0 0; }
.ins-meter-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--ox-deep), var(--ox-bright)); transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.ins-meter-scale { display: flex; justify-content: space-between; color: var(--steel-2); font-size: 11px; }
.ins-meter-scale .ins-goal { color: var(--ox-bright); }
.ins-ring-wrap { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.ins-ring-note { margin: 0; font-size: 14px; }

.ring { position: relative; flex: 0 0 auto; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-pct { font-size: 30px; color: var(--chalk); line-height: 1; }
.ring-sub { color: var(--steel); }

.ins-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ins-kpi { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.ins-kpi-num { font-size: clamp(28px, 4vw, 42px); color: var(--chalk); line-height: 1; }
.ins-kpi-lbl { margin-top: 8px; color: var(--steel); }

.ins-mile { padding: 22px; }
.ins-mile-row { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 4px; }
.ins-mile-cur { font-size: 38px; color: var(--steel); }
.ins-mile-arrow { color: var(--ox-bright); }
.ins-mile-next { font-size: 46px; color: var(--ox-bright); }

.ins-weekly { padding: 22px; }
.ins-bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.ins-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.ins-bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--ox-bright), var(--ox-deep)); border-radius: 4px 4px 0 0; transition: height 1s cubic-bezier(.16,1,.3,1); }
.ins-bar-lbl { font-size: 10px; color: var(--steel-2); }

.ins-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ins-badge { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-2); border: 1px solid var(--ox); border-radius: 100px; box-shadow: 0 0 30px -16px rgba(176,57,46,0.7); }
.ins-badge-ico { color: var(--ox-bright); display: flex; }
.ins-badge-main { font-size: 14px; letter-spacing: 0.06em; color: var(--chalk); text-transform: uppercase; }
.ins-badge-sub { font-size: 12px; }

@media (max-width: 820px) {
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ins-kpis { grid-template-columns: 1fr 1fr; }
  .ins-ring-wrap { flex-direction: column; text-align: center; }
  .ins-bars { gap: 5px; }
}

/* ---------- CreedMarquee ---------- */
.creed-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ox-deep); padding: 14px 0; }
.creed-track { display: inline-flex; white-space: nowrap; animation: creedScroll 28s linear infinite; }
.creed-word { color: var(--chalk); font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.06em; padding: 0 6px; display: inline-flex; align-items: center; opacity: 0.92; }
.creed-dot { color: rgba(244,241,234,0.45); margin: 0 18px; font-size: 0.5em; }
@keyframes creedScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .creed-track { animation: none; } }

/* ---------- BackToTop ---------- */
.backtotop {
  position: fixed; left: 22px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel-2); color: var(--chalk); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s, border-color .2s; box-shadow: var(--shadow);
}
.backtotop.on { opacity: 1; transform: none; pointer-events: auto; }
.backtotop:hover { background: var(--ox); border-color: var(--ox); }
@media (max-width: 560px) { .backtotop { left: 16px; bottom: 18px; width: 42px; height: 42px; } }

/* ---------- PlateDivider ---------- */
.plate-divider { display: flex; align-items: center; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.plate-line { flex: 1; height: 1px; background: var(--line); }
.plate-ico { display: inline-flex; gap: 4px; }
.plate-ico i { width: 5px; height: 22px; background: var(--ox); border-radius: 2px; opacity: 0.85; }
.plate-ico i:nth-child(2) { height: 30px; background: var(--ox-bright); }
