/* ByPlan — design system */

:root {
  /* Ink scale (dark text + dark surfaces) */
  --ink: #0a0a0c;
  --ink-2: #16161a;
  --ink-3: #25252b;
  --ink-4: #3b3b43;

  /* Paper scale (white + warm whites) */
  --paper: #ffffff;
  --paper-2: #fbfbf9;
  --paper-3: #f5f4f0;
  --paper-4: #ecebe5;

  /* Lines + muted text */
  --line: #e9e7e0;
  --line-2: #d8d5cc;
  --mute: #6c6c72;
  --mute-2: #9a9a9f;
  --mute-3: #b8b8bd;

  /* Accent — byplan teal palette */
  --orange: #14a085;
  --orange-2: #2eba9b;
  --orange-3: #7fd0bd;
  --orange-soft: #e3f3ec;
  --orange-ink: #0c6a58;

  /* Sage — secondary (the wordmark color) */
  --sage: #6fb3b0;
  --sage-2: #87c2c0;
  --sage-soft: #e2eeed;
  --sage-deep: #4f9491;
  --shadow-square: #dce8e3;

  /* Semantic colors */
  --green: #1f8a5b;
  --green-soft: #e6f4ed;
  --blue: #2a6fdb;
  --blue-soft: #e8effb;
  --violet: #6b5dd3;
  --red: #d54848;

  /* Type */
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", monospace;

  /* Radius */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15, 15, 20, 0.04), 0 1px 1px rgba(15, 15, 20, 0.03);
  --shadow-2: 0 4px 12px -2px rgba(15, 15, 20, 0.06), 0 2px 4px -2px rgba(15, 15, 20, 0.04);
  --shadow-3: 0 16px 40px -12px rgba(15, 15, 20, 0.12), 0 8px 16px -8px rgba(15, 15, 20, 0.06);
  --shadow-4: 0 32px 80px -20px rgba(15, 15, 20, 0.22), 0 16px 32px -16px rgba(15, 15, 20, 0.1);
  --shadow-orange: 0 24px 60px -16px rgba(20, 160, 133, 0.35);

  /* Page chrome */
  --nav-h: 80px;
  --container-w: 1240px;
  --gutter: 28px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11", "cv09";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--orange);
  color: var(--paper);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.h-display {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.h-1 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.h-2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.h-3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.h-4 {
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-weight: 500;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--mute);
  text-wrap: pretty;
  max-width: 56ch;
}

.body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  text-wrap: pretty;
}

.small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.accent {
  color: var(--orange);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }

.btn-accent {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-orange);
}
.btn-accent:hover { background: #1bb398; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--paper-3); border-color: var(--ink); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }

.btn .play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  margin-left: -4px;
}
.btn-ghost .play { background: var(--orange); color: white; }

/* ---------- Pills + chips ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}

.pill .pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  max-width: 760px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Grid backgrounds ---------- */

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,15,20,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,15,20,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

.dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,15,20,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}
.glow-orange { background: radial-gradient(circle, rgba(20,160,133,0.4), transparent 60%); }
.glow-white  { background: radial-gradient(circle, rgba(255,255,255,0.7), transparent 60%); }

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}

.card-soft {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}

.card-ink {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-3);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 15, 20, 0.06);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--sage-deep);
}
.brand .brand-word {
  letter-spacing: -0.015em;
}

/* Raster logo (top nav). Aspect ratio is preserved; sized off height. */
.brand-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 240px;
  /* Slight optical lift so the logo sits on the nav baseline */
  transform: translateY(0);
}
@media (max-width: 600px) {
  .brand-img { height: 52px; max-width: 200px; }
}

.brand-mark {
  width: 26px;
  height: 26px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.brand-mark::before {
  /* Pale offset square — sits behind, toward bottom-left */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: var(--shadow-square);
}
.brand-mark::after {
  /* Emerald square + sage circle (the bowl of b) */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background:
    radial-gradient(circle at 68% 58%, var(--sage-deep) 0 4.8px, transparent 5.2px),
    var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-3);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-3); }
.nav-link.active { color: var(--ink); background: var(--paper-3); }

/* ---------- Dropdown ---------- */

.nav-dd {
  position: relative;
}
.nav-link-dd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-link-dd .dd-caret {
  color: var(--mute);
  transition: transform 0.2s, color 0.2s;
}
.nav-dd.open .nav-link-dd { color: var(--ink); background: var(--paper-3); }
.nav-dd.open .nav-link-dd .dd-caret {
  transform: rotate(180deg);
  color: var(--ink);
}

.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 360px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15,15,20,0.04),
    0 24px 60px -16px rgba(15,15,20,0.18),
    0 8px 20px -8px rgba(15,15,20,0.06);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dd-panel .dd-group + .dd-group { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.nav-dd:hover .dd-panel,
.nav-dd.open .dd-panel,
.nav-dd:focus-within .dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Hover-bridge so the panel doesn't close in the gap */
.nav-dd::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 12px;
}

.dd-group { display: flex; flex-direction: column; }
.dd-group-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute-2);
  padding: 6px 10px 10px;
}
.dd-items { display: flex; flex-direction: column; gap: 2px; }
.dd-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.dd-item:hover { background: var(--paper-3); }
.dd-item.current { background: var(--orange-soft); }
.dd-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dd-item.current .dd-title { color: var(--orange-ink); }
.dd-desc {
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.35;
}
.dd-item.current .dd-desc { color: var(--orange-ink); opacity: 0.8; }

@media (max-width: 1080px) {
  .dd-panel { display: none; }
}

/* ---------- Modules grid (shared: home / index / product) ---------- */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 1180px) { .modules-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 520px)  { .modules-grid { grid-template-columns: 1fr; } }

.mod-card {
  position: relative;
  background: white;
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition:
    transform 0.32s cubic-bezier(.2, .9, .3, 1.1),
    box-shadow 0.32s cubic-bezier(.2, .9, .3, 1),
    border-color 0.2s;
  border: 1px solid #ecebe5;
  box-shadow:
    0 1px 2px rgba(15, 15, 20, 0.04),
    0 4px 12px -4px rgba(15, 15, 20, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.mod-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--sage-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1);
}
.mod-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 20% 30%, rgba(20, 160, 133, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mod-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 2px rgba(15, 15, 20, 0.04),
    0 22px 44px -12px rgba(20, 160, 133, 0.14),
    0 8px 20px -8px rgba(15, 15, 20, 0.06);
  border-color: #d6e8e1;
}
.mod-card:hover::before { transform: scaleX(1); }
.mod-card:hover::after { opacity: 1; }
.mod-card:hover .icon-wrap { transform: translateY(-3px) rotate(-2deg); }
.mod-card:hover .mod-number { color: var(--orange); }

.icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.2);
}
.icon-wrap svg {
  width: 76px;
  height: 76px;
  filter:
    drop-shadow(0 6px 12px rgba(20, 160, 133, 0.18))
    drop-shadow(0 2px 4px rgba(15, 15, 20, 0.06));
}
.mod-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mod-number {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute-2);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.mod-card h3 {
  font-size: 15.5px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0;
}
.mod-card p {
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}
.mod-card .arrow {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-4px, 0);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, color 0.2s;
}
.mod-card:hover .arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--orange);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
}

/* Mobile nav drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 40;
  padding: 28px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mobile-menu.open { transform: translateY(0); overflow-y: auto; }
.mobile-menu .mlink {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu .mlink.active { color: var(--orange); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}

.footer-col h5 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 14.5px; }
.footer-col a:hover { color: var(--orange-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  transition: background 0.18s, color 0.18s;
}
.footer-bottom .socials a:hover { background: var(--orange); color: white; }

.footer-mega {
  font-size: clamp(80px, 14vw, 220px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: rgba(255,255,255,0.04);
  position: absolute;
  bottom: -28px;
  left: -10px;
  right: 0;
  pointer-events: none;
  font-family: var(--font-sans);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Misc utilities ---------- */

.row { display: flex; align-items: center; }
.row.gap-6 { gap: 6px; } .row.gap-8 { gap: 8px; } .row.gap-12 { gap: 12px; } .row.gap-16 { gap: 16px; } .row.gap-24 { gap: 24px; }

.stack { display: flex; flex-direction: column; }
.stack.gap-4 { gap: 4px; } .stack.gap-8 { gap: 8px; } .stack.gap-12 { gap: 12px; } .stack.gap-16 { gap: 16px; } .stack.gap-24 { gap: 24px; }

.divider { height: 1px; background: var(--line); }

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- Dashboard widgets (used across pages) ---------- */

.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px;
  box-shadow: var(--shadow-2);
  position: relative;
}

.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.widget-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.widget-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--mute-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.metric-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.metric-delta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
}
.metric-delta.neg { background: #fbe8e8; color: var(--red); }

/* Sparkline / bars */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}
.spark .bar {
  flex: 1;
  background: var(--paper-3);
  border-radius: 3px;
  transition: height 0.4s ease;
}
.spark .bar.hot { background: var(--orange); }

.pipeline {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pipeline .stage {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.pipeline .stage .n {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pipeline .stage .l {
  color: var(--mute);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.pipeline .stage.hot { background: var(--ink); color: white; }
.pipeline .stage.hot .n, .pipeline .stage.hot .l { color: white; }
.pipeline .stage.hot::before {
  content: "";
  display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  margin-bottom: 2px;
}

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c6e6dc, #14a085);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 2px solid white;
  font-family: var(--font-sans);
}
.avatar.b2 { background: linear-gradient(135deg, #c4d4ff, #2a6fdb); }
.avatar.b3 { background: linear-gradient(135deg, #ffd8d8, #d54848); }
.avatar.b4 { background: linear-gradient(135deg, #d6ffe1, #1f8a5b); }
.avatar.b5 { background: linear-gradient(135deg, #e0d3ff, #6b5dd3); }
.avatar.b6 { background: linear-gradient(135deg, #f4f4f4, #2a2a2a); }

.stack-avatars { display: inline-flex; }
.stack-avatars .avatar + .avatar { margin-left: -8px; }

/* Tag chips inside widgets */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  background: var(--paper-3);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.tag.orange { background: var(--orange-soft); color: var(--orange-ink); border-color: transparent; }
.tag.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Page intro bands ---------- */

.page-band {
  position: relative;
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-band .crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 18px;
}

/* ---------- Scroll lock ---------- */
body.menu-open { overflow: hidden; }
