/* ==========================================================================
   BLAKE SCHOLLMEYER / v4 - linear.app-inspired build
   Dark base, ambient red glows, Inter throughout, clean cards
   ========================================================================== */

/* ==========================================================================
   THEME / PALETTE
   Active: Dark + Red (linear.app vibe with Apple typography)
   Saved (commented below): iOS Dark, iOS Light.
   To swap, comment the active :root and uncomment one of the others.
   ========================================================================== */

/* ---------- DARK + RED (active) ---------- */
:root {
  --bg: #08080a;
  --bg-soft: #101013;
  --bg-elev: #16161c;
  --bg-card: rgba(20, 20, 26, 0.6);
  --border: #232328;
  --border-hi: #34343c;
  --ink: #f7f8f8;
  --ink-soft: #a0a0a8;
  --ink-mid: #6a6a72;
  --ink-faint: #3a3a42;
  --accent: #d4263a;
  --accent-hi: #ff3d52;
  --accent-soft: rgba(212, 38, 58, 0.4);
  --accent-faint: rgba(212, 38, 58, 0.1);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}

/* ---------- iOS DARK (saved for revert) ---------- */
/*
:root {
  --bg: #000000;
  --bg-soft: #1c1c1e;
  --bg-elev: #2c2c2e;
  --bg-card: rgba(28, 28, 30, 0.6);
  --border: #38383a;
  --border-hi: #48484a;
  --ink: #ffffff;
  --ink-soft: #98989d;
  --ink-mid: #636366;
  --ink-faint: #48484a;
  --accent: #0a84ff;
  --accent-hi: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.35);
  --accent-faint: rgba(10, 132, 255, 0.10);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}
*/

/* ---------- iOS LIGHT (saved for revert) ---------- */
/*
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border: #e5e5ea;
  --border-hi: #d1d1d6;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-mid: #86868b;
  --ink-faint: #c7c7cc;
  --accent: #0071e3;
  --accent-hi: #2997ff;
  --accent-soft: rgba(0, 113, 227, 0.32);
  --accent-faint: rgba(0, 113, 227, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #ffffff; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.accent { color: var(--accent); }

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

/* ==========================================================================
   AMBIENT (linear.app-style drifting red glows + faint grid)
   ========================================================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform, opacity;
}
.glow-1 {
  top: -20%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(212, 38, 58, 0.45) 0%, transparent 70%);
  animation: drift1 32s ease-in-out infinite alternate;
}
.glow-2 {
  bottom: -25%; right: -15%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(180, 30, 50, 0.35) 0%, transparent 65%);
  animation: drift2 38s ease-in-out infinite alternate;
}
.glow-3 {
  top: 35%; left: 50%;
  width: 50vw; height: 50vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 60, 80, 0.20) 0%, transparent 60%);
  animation: drift3 28s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(15%, 12%) scale(1.15); opacity: 1; }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-12%, -10%) scale(1.2); opacity: 0.9; }
}
@keyframes drift3 {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-40%, -65%) scale(1.1); opacity: 0.8; }
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

/* ==========================================================================
   LOADER (kept from earlier rounds)
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  min-width: min(70vw, 520px);
}
.loader-mark {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
}
.loader-bar {
  flex: 1; height: 1px;
  background: var(--border);
  position: relative; overflow: hidden;
}
.loader-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}
.loader-glyph {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.loader-glyph::first-letter { color: var(--accent); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 14px var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--easing), background 0.3s var(--easing);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.82);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
  animation: pulse 2.4s var(--easing) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}
.nav-links {
  display: flex; align-items: center;
  gap: 0;
  position: relative;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--easing);
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.is-hover { color: var(--ink); }

/* Sliding pill that follows the hovered nav item */
.nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  width: 0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transform: translate3d(0, -50%, 0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}
.nav-links.has-active .nav-pill { opacity: 1; }
.nav-actions {
  display: flex; align-items: center; gap: 14px;
}
.nav-link-ghost {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--easing);
  padding: 8px 4px;
}
.nav-link-ghost:hover { color: var(--ink); }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-link-ghost { display: none; }
}

/* ==========================================================================
   NAV DROPDOWN PANEL (linear.app-style hover panel)
   - Single container that morphs height between content sets
   - Pill indicator slides between nav items
   - Hover bridge between nav and panel prevents close
   ========================================================================== */
.nav-panel-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 32px));
  /* hover bridge: padding-top is part of nav header so mouseleave doesn't fire when crossing the gap */
  padding-top: 10px;
  z-index: 1;
  pointer-events: none;
}
.nav-panel-wrap.is-open { pointer-events: auto; }

.nav-panel {
  background: rgba(28, 28, 30, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-panel[data-open="1"] {
  opacity: 1;
  transform: translateY(0);
}

.np-content {
  padding: 28px;
  display: none;
}
.np-content.is-active {
  display: block;
}

.np-grid {
  display: grid;
  gap: 24px 28px;
}
.np-grid-4 { grid-template-columns: repeat(4, 1fr); }
.np-grid-3 { grid-template-columns: repeat(3, 1fr); }
.np-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .np-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .np-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .np-grid-2 { grid-template-columns: 1fr; }
}

.np-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s var(--easing);
}
.np-item:hover { transform: translateX(2px); }
.np-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  transition: color 0.2s var(--easing);
}
.np-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.np-sub {
  font-size: 12.5px;
  color: var(--ink-mid);
  margin-top: 2px;
  line-height: 1.45;
}
.np-item:hover .np-eyebrow { color: var(--accent); }

.np-item-media .np-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color 0.25s var(--easing);
}
.np-item-media .np-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.5s var(--easing), filter 0.3s var(--easing);
}
.np-item-media:hover .np-media {
  border-color: var(--border-hi);
}
.np-item-media:hover .np-media img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Panel footer CTA - "Open showcase" link at the bottom of the Work dropdown */
.np-work-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px -28px -28px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--easing), background 0.25s var(--easing);
}
.np-work-all svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--easing);
}
.np-work-all:hover {
  color: var(--accent);
  background: var(--accent-faint);
}
.np-work-all:hover svg { transform: translateX(3px); }

@media (max-width: 880px) {
  .nav-panel-wrap { display: none; }
}

/* ==========================================================================
   BUTTONS (the cool text buttons - kept)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  transition: all 0.25s var(--easing);
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--easing); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 6px 28px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.btn-lg {
  font-size: 15px;
  padding: 13px 22px;
}

/* ==========================================================================
   MAIN / SECTIONS
   ========================================================================== */
main {
  position: relative;
  z-index: 2;
}
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--ink);
}
.section-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   EYEBROW PILL
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
  letter-spacing: -0.005em;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: clamp(110px, 14vw, 160px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  position: relative;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center;
}
.hero-h1 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin: 20px 0 20px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* JS-only initial state for hero intro - prevents FOUC.
   Without JS, the html.js class is absent, so hero stays visible. */
.js .hero .eyebrow,
.js .hero-h1,
.js .hero-sub,
.js .hero-ctas,
.js .hero-meta {
  opacity: 0;
  filter: blur(24px);
  transform: translateY(12px);
}
.hero-h1-accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--ink);
}
.hero-meta-item .mono { color: var(--ink-mid); }

/* hero showcase device mockup */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.showcase-frame {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: perspective(2000px) rotateX(8deg);
  transform-origin: top center;
  transition: transform 0.6s var(--easing);
}
.hero-showcase:hover .showcase-frame {
  transform: perspective(2000px) rotateX(2deg);
}
.showcase-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.showcase-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-hi);
}
.showcase-url {
  margin-left: 14px;
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0;
  text-transform: none;
}
.showcase-frame img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.95);
}
.showcase-shadow {
  position: absolute;
  left: 10%; right: 10%;
  bottom: -40px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(212, 38, 58, 0.45) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ==========================================================================
   FEATURES GRID (services)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--easing), transform 0.3s var(--easing);
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}
.feature:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-faint);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.feature-list {
  list-style: none;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.feature-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  padding-left: 14px;
  position: relative;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   WINDOW SWITCHER (alt-tab style stack of browser windows)
   ========================================================================== */
.window-switcher {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Stage holds the stack. Compact aspect so the whole switcher fits in viewport. */
.ws-stage {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  perspective: 1600px;
  perspective-origin: 50% 30%;
  margin: 0 auto;
  /* room on the right + bottom for back cards to peek out */
  padding: 0 56px 32px 0;
}

.ws-window {
  position: absolute;
  top: 0; left: 0;
  width: calc(100% - 56px);
  height: calc(100% - 32px);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s var(--easing),
    filter 0.5s var(--easing);
  transform-origin: 50% 50%;
  cursor: pointer;
}
/* Active window in front */
.ws-window[data-offset="0"] {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 5;
  filter: brightness(1);
  cursor: default;
}
/* Stack receding back-and-right */
.ws-window[data-offset="1"] {
  transform: translate3d(26px, 14px, -90px) scale(0.94);
  opacity: 0.7;
  z-index: 4;
  filter: brightness(0.78) saturate(0.9);
}
.ws-window[data-offset="2"] {
  transform: translate3d(42px, 22px, -180px) scale(0.88);
  opacity: 0.42;
  z-index: 3;
  filter: brightness(0.62) saturate(0.8);
}
.ws-window[data-offset="3"] {
  transform: translate3d(56px, 30px, -270px) scale(0.82);
  opacity: 0.22;
  z-index: 2;
  filter: brightness(0.5) saturate(0.7);
}
.ws-window[data-offset="4"] {
  transform: translate3d(68px, 36px, -360px) scale(0.78);
  opacity: 0.10;
  z-index: 1;
  filter: brightness(0.4) saturate(0.6);
}
/* Hover any back window to add a subtle nudge forward */
.ws-window:not([data-offset="0"]):hover {
  filter: brightness(0.95);
  opacity: 0.92;
}

/* Browser frame styling */
.ws-frame {
  width: 100%;
  height: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.ws-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ws-traffic {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-hi);
}
.ws-traffic:nth-child(1) { background: #ff5f57; }
.ws-traffic:nth-child(2) { background: #febc2e; }
.ws-traffic:nth-child(3) { background: #28c840; }
.ws-url {
  margin-left: 14px;
  font-size: 11px;
  color: var(--ink-mid);
  text-transform: none;
  letter-spacing: 0;
}
.ws-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  flex: 1;
  min-height: 0;
}

/* macOS Cmd+Tab style strip of mini window previews */
.ws-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}
.ws-thumb {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--easing);
  position: relative;
}
.ws-thumb-frame {
  display: block;
  width: 132px;
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--easing), filter 0.3s var(--easing);
}
.ws-thumb-bar {
  display: flex; gap: 3px;
  padding: 5px 6px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.ws-thumb-bar i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-hi);
}
.ws-thumb-bar i:nth-child(1) { background: #ff5f57; }
.ws-thumb-bar i:nth-child(2) { background: #febc2e; }
.ws-thumb-bar i:nth-child(3) { background: #28c840; }
.ws-thumb-frame img {
  display: block;
  width: 100%;
  height: calc(100% - 16px);
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  transition: filter 0.3s var(--easing);
}
.ws-thumb-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-mid);
  text-transform: none;
  text-align: center;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.25s var(--easing);
}
.ws-thumb:hover .ws-thumb-frame {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.ws-thumb:hover .ws-thumb-frame img { filter: brightness(0.9) saturate(1); }
.ws-thumb:hover .ws-thumb-label { color: var(--ink); }
.ws-thumb.is-active {
  border-color: var(--accent);
  background: var(--accent-faint);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-soft);
}
.ws-thumb.is-active .ws-thumb-frame {
  border-color: var(--accent);
}
.ws-thumb.is-active .ws-thumb-frame img { filter: brightness(1) saturate(1); }
.ws-thumb.is-active .ws-thumb-label { color: var(--accent); font-weight: 500; }

.ws-hint {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-mid);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ws-hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  min-width: 22px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 720px) {
  .ws-thumb-frame { width: 100px; }
  .ws-thumb-label { max-width: 110px; font-size: 9px; }
  .ws-hint { display: none; }
}

/* Info block - updates on active change */
.ws-info {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 10px;
  align-items: center;
}
.ws-num {
  color: var(--accent);
}
.ws-num span { color: var(--ink); }
.ws-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ws-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.ws-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.ws-tags {
  color: var(--ink-mid);
}
.ws-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: gap 0.2s var(--easing);
}
.ws-link svg { width: 13px; height: 13px; transition: transform 0.25s var(--easing); }
.ws-link:hover svg { transform: translate(2px, -2px); }

/* Smooth fade for info text when content swaps */
.ws-info.is-swapping .ws-title,
.ws-info.is-swapping .ws-desc,
.ws-info.is-swapping .ws-meta { opacity: 0; transform: translateY(4px); }
.ws-info .ws-title,
.ws-info .ws-desc,
.ws-info .ws-meta {
  transition: opacity 0.25s var(--easing), transform 0.25s var(--easing);
}

/* Responsive */
@media (max-width: 720px) {
  .ws-stage { padding: 0 50px 30px 0; }
  .ws-window {
    width: calc(100% - 50px);
    height: calc(100% - 30px);
  }
}

/* ==========================================================================
   QUILL - interactive fake app workspace (proof of app dev capability)
   ========================================================================== */
.quill {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Hide scrollbars inside the workspace (keeps scroll working) */
.quill-side,
.quill-items,
.quill-detail {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old IE/Edge */
}
.quill-side::-webkit-scrollbar,
.quill-items::-webkit-scrollbar,
.quill-detail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                /* Chrome / Safari / new Edge */
}

/* Window chrome */
.quill-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #131316;
  border-bottom: 1px solid var(--border);
}
.quill-url {
  margin-left: 12px;
  font-size: 11px;
  color: var(--ink-mid);
  text-transform: none;
  letter-spacing: 0;
}
.quill-keys {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.quill-keys kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink-soft);
}

/* Body: 3 columns */
.quill-body {
  display: grid;
  grid-template-columns: 220px 320px 1fr;
  min-height: 520px;
  height: 520px;
}
@media (max-width: 960px) {
  .quill-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 0;
  }
  .quill-side { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .quill-list { border-right: 0 !important; border-bottom: 1px solid var(--border); max-height: 360px; overflow-y: auto; }
}

/* ---- SIDEBAR ---- */
.quill-side {
  background: #0c0c0f;
  border-right: 1px solid var(--border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.quill-workspace {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--easing);
}
.quill-workspace:hover { background: rgba(255, 255, 255, 0.04); }
.quill-workspace svg { width: 12px; height: 12px; margin-left: auto; color: var(--ink-mid); }
.quill-logo {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  border-radius: 5px;
  box-shadow: 0 0 8px var(--accent-soft);
  flex-shrink: 0;
}
.quill-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  margin: 4px 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink-mid);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.quill-search svg { width: 13px; height: 13px; }
.quill-search:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink-soft); }
.quill-kbd {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-faint);
}
.quill-section-label {
  font-size: 10px;
  color: var(--ink-mid);
  padding: 10px 8px 6px;
  letter-spacing: 0.08em;
}

.quill-nav {
  display: flex; flex-direction: column;
  gap: 1px;
}
.quill-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.18s var(--easing), color 0.18s var(--easing);
}
.quill-nav-icon {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
  color: var(--ink-mid);
}
.quill-nav-icon svg { width: 14px; height: 14px; }
.quill-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.quill-nav-item.is-active {
  background: var(--accent-faint);
  color: var(--ink);
}
.quill-nav-item.is-active .quill-nav-icon { color: var(--accent); }
.quill-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--ink-soft);
}
.quill-nav-item.is-active .quill-badge {
  background: var(--accent);
  color: #fff;
}
.quill-nav-item-mini { padding: 5px 8px; font-size: 12.5px; }
.quill-fav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- LIST (middle) ---- */
.quill-list {
  background: #0a0a0c;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.quill-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.quill-list-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.quill-list-actions {
  display: flex; gap: 4px;
}
.quill-icon-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.18s var(--easing);
}
.quill-icon-btn svg { width: 14px; height: 14px; }
.quill-icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

.quill-items {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 4px 8px;
}
.quill-item {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s var(--easing);
  position: relative;
}
.quill-item:hover { background: rgba(255, 255, 255, 0.03); }
.quill-item.is-active {
  background: var(--accent-faint);
}
.quill-item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.quill-item-id {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-transform: none;
}
.quill-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quill-item-meta {
  display: flex; align-items: center; gap: 8px;
}
.quill-item-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  margin-left: auto;
}

/* Empty state shown when the active sidebar tab has no matching items */
.quill-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 10px;
  color: var(--ink-mid);
}
.quill-empty[hidden] { display: none; }
.quill-empty-glyph {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mid);
}
.quill-empty-glyph svg { width: 22px; height: 22px; }
.quill-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quill-empty-sub {
  font-size: 12px;
  line-height: 1.5;
  max-width: 32ch;
}

/* Status pills */
.quill-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0;
  border: 0;
  font-family: var(--sans);
  cursor: default;
}
.quill-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}
.quill-pill-status { cursor: pointer; transition: filter 0.2s var(--easing); }
.quill-pill-status:hover { filter: brightness(1.15); }
.quill-pill-draft       { background: rgba(168, 168, 184, 0.15); color: #c4c4d0; }
.quill-pill-draft::before { background: #98989d; }
.quill-pill-review      { background: rgba(251, 188, 36, 0.15); color: #fbbc24; }
.quill-pill-review::before { background: #fbbc24; }
.quill-pill-scheduled   { background: rgba(94, 92, 230, 0.18); color: #8b88f5; }
.quill-pill-scheduled::before { background: #8b88f5; }
.quill-pill-published   { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.quill-pill-published::before { background: #34d399; }
.quill-pill-priority {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
}
.quill-pill-priority::before { background: var(--ink-mid); }

/* ---- DETAIL (right) ---- */
.quill-detail {
  background: #0c0c0f;
  padding: 24px 28px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 16px;
}
.quill-detail-head {
  display: flex; align-items: center; justify-content: space-between;
}
.quill-detail-id {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-transform: none;
}
.quill-detail-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.quill-detail-summary {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.quill-meta {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quill-meta-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px;
}
.quill-meta-label {
  width: 76px;
  flex-shrink: 0;
  color: var(--ink-mid);
  font-size: 10.5px;
  text-transform: uppercase;
}
.quill-meta-row .quill-pill { font-size: 11px; padding: 3px 9px; }
.quill-avatar-row { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.quill-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7a8a);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.quill-avatar-2 { background: linear-gradient(135deg, #5e60ce, #8b88f5); }

.quill-activity {
  display: flex; flex-direction: column;
  gap: 10px;
}
.quill-activity-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 0;
}
.quill-activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px;
}
.quill-activity-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mid);
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.quill-activity-text { color: var(--ink-soft); line-height: 1.5; }
.quill-activity-text strong { color: var(--ink); font-weight: 500; }
.quill-activity-at {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
}

/* New activity entry committed by Scribe - flashes in to draw attention */
.quill-activity-item.is-fresh {
  animation: freshActivity 0.55s var(--easing);
}
.quill-activity-item.is-fresh .quill-activity-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-soft);
  animation: freshDot 1.8s var(--easing);
}
@keyframes freshActivity {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes freshDot {
  0%   { transform: scale(1.4); }
  20%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ---- AI ASSISTANT pop-out ---- */
.quill-ai {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 280px;
  background: rgba(20, 20, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--accent-soft);
  backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 5;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}
.quill-ai.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.quill-ai-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.quill-ai-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  box-shadow: 0 0 10px var(--accent-soft);
  flex-shrink: 0;
  position: relative;
}
.quill-ai-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.6); }
}
.quill-ai-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.quill-ai-close {
  margin-left: auto;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ink-mid);
  cursor: pointer;
}
.quill-ai-close svg { width: 12px; height: 12px; }
.quill-ai-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.quill-ai-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.quill-ai-body p {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.quill-ai-meta {
  font-size: 11px !important;
  color: var(--ink-mid) !important;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  font-family: var(--mono);
}
.quill-ai-meta strong { color: var(--accent); font-weight: 600; }
.quill-ai-actions { display: flex; gap: 6px; }
.quill-ai-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.22s var(--easing);
}
.quill-ai-btn:hover:not(:disabled) { background: var(--accent-hi); }
.quill-ai-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.quill-ai-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.quill-ai-btn:disabled { cursor: not-allowed; }
.quill-ai-btn.is-faded { opacity: 0.32; }
.quill-ai-btn.is-working {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-soft);
}
.quill-ai-btn.is-done {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3);
}
.quill-ai-spinner {
  width: 10px; height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aiSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.quill-ai-check {
  display: inline-block;
  font-weight: 700;
}
.quill-ai-thinking {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 0 0;
  color: var(--ink-mid);
  font-size: 11px;
}
.quill-ai-thinking.is-on { display: flex; }
.quill-ai-thinking span {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: aiDot 1.2s ease-in-out infinite;
}
.quill-ai-thinking span:nth-child(2) { animation-delay: 0.15s; }
.quill-ai-thinking span:nth-child(3) { animation-delay: 0.30s; }
.quill-ai-thinking em { font-style: normal; }
@keyframes aiDot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 760px) {
  .quill-ai { display: none; }
}

/* ==========================================================================
   TOOLS GALLERY - tabbed mini-mocks of AI workflows
   ========================================================================== */
.tg {
  display: flex; flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
}

/* Tab bar */
.tg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}
.tg-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.22s var(--easing);
}
.tg-tab:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.tg-tab.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px var(--accent-soft);
}
.tg-tab-num {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}
.tg-tab.is-active .tg-tab-num { color: rgba(255, 255, 255, 0.65); }
.tg-tab-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* Shared workspace shell */
.tg-shell {
  width: 100%;
  max-width: 1100px;
}
/* Live activity ticker - one event at a time, rotates every ~5s */
.tg-feed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  background: rgba(52, 211, 153, 0.04);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tg-feed-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #34d399;
  flex-shrink: 0;
}
.tg-feed-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: pulse 1.6s var(--easing) infinite;
}
.tg-feed-time {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding: 0 6px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.tg-feed-text {
  flex: 1;
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}
.tg-feed-text.is-exiting {
  animation: feedOut 0.32s var(--easing) forwards;
}
.tg-feed-text.is-entering {
  animation: feedIn 0.42s var(--easing) forwards;
}
@keyframes feedOut {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-110%); opacity: 0; }
}
@keyframes feedIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.tg-feed-icon {
  color: var(--ink-mid);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.tg-feed-icon svg { width: 14px; height: 14px; }

.tg-body {
  height: 620px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.tg-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--easing);
  overflow-y: auto;
  /* Visible thin scrollbar so users know they can scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}
.tg-pane::-webkit-scrollbar {
  width: 8px;
  display: block;
}
.tg-pane::-webkit-scrollbar-track {
  background: transparent;
}
.tg-pane::-webkit-scrollbar-thumb {
  background: var(--border-hi);
  border-radius: 4px;
  border: 2px solid var(--bg);
}
.tg-pane::-webkit-scrollbar-thumb:hover {
  background: var(--ink-mid);
}
.tg-pane.is-active {
  opacity: 1;
  visibility: visible;
}
/* Bottom fade-out hint that more content is below when scrolled-to-top */
.tg-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 8px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--bg) 80%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 900px) {
  .tg-body { height: 580px; }
}

/* ==========================================================================
   TOOL 01: PROPOSAL BUILDER (document split)
   ========================================================================== */
.doc-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  height: 100%;
}
@media (max-width: 860px) {
  .doc-split { grid-template-columns: 1fr; }
}
.doc-input {
  padding: 22px;
  background: #0c0c0f;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.doc-input::-webkit-scrollbar { display: none; }
.doc-input-head {
  display: flex; justify-content: space-between; align-items: center;
}
.doc-from {
  display: flex; align-items: center; gap: 10px;
}
.doc-from-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.doc-from-co { color: var(--ink-mid); font-weight: 400; }
.doc-message {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-style: italic;
}
.doc-extracted {
  background: var(--accent-faint);
  border: 1px solid rgba(212, 38, 58, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
}
.doc-extracted-label {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}
.doc-extracted ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 4px;
}
.doc-extracted li {
  display: flex; gap: 14px;
  font-size: 12px;
  color: var(--ink);
}
.doc-extracted li .mono {
  width: 64px;
  color: var(--ink-mid);
}

.doc-proposal {
  padding: 26px 30px;
  background: var(--bg);
  display: flex; flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.doc-proposal::-webkit-scrollbar { display: none; }
.doc-proposal-head {
  display: flex; justify-content: space-between; align-items: center;
}
.doc-proposal-id { color: var(--ink-mid); }
.doc-proposal-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.doc-proposal-summary {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc-table tr { border-bottom: 1px solid var(--border); }
.doc-table tr:last-child { border-bottom: 0; }
.doc-table td {
  padding: 9px 0;
  color: var(--ink);
}
.doc-table td:nth-child(2) {
  width: 80px;
  color: var(--ink-mid);
  font-size: 11px;
}
.doc-table td:nth-child(3) {
  width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.doc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px;
  border-top: 1.5px solid var(--accent);
}
.doc-total strong {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.doc-terms {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink);
}
.doc-terms .mono {
  display: inline-block;
  width: 72px;
  color: var(--ink-mid);
}
.doc-actions {
  display: flex; gap: 6px;
  padding-top: 4px;
}

/* ==========================================================================
   TOOL 02: PIPELINE KANBAN
   ========================================================================== */
.kan-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  height: 100%;
}
@media (max-width: 800px) {
  .kan-cols { grid-template-columns: repeat(2, 1fr); }
}
.kan-col {
  background: #0c0c0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.kan-col-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.kan-card {
  display: flex; flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: grab;
  transition: transform 0.2s var(--easing), border-color 0.2s var(--easing);
}
.kan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
}
.kan-card-co {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.kan-card-amt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.kan-card-pct {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.kan-pct-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.kan-pct-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.kan-card-next {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}
.kan-card-won {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.2);
}
.kan-card-won .kan-card-amt { color: #34d399; }

/* ==========================================================================
   TOOL 03: DASHBOARD
   ========================================================================== */
.dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "stats stats"
    "chart ai"
    "priority priority";
  gap: 14px;
  padding: 18px;
  height: 100%;
}
@media (max-width: 800px) {
  .dash {
    grid-template-columns: 1fr;
    grid-template-areas: "stats" "chart" "ai" "priority";
  }
}
.dash-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 800px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-stat .mono { font-size: 9.5px; color: var(--ink-mid); }
.dash-stat strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.dash-delta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
}
.dash-delta-up { color: #34d399; }

.dash-chart {
  grid-area: chart;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.dash-chart-label { color: var(--ink-mid); font-size: 10px; }
.dash-spark { width: 100%; height: 80px; display: block; }

.dash-ai {
  grid-area: ai;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.dash-ai-head { display: flex; align-items: center; gap: 8px; }
.dash-ai-title { font-size: 11px; font-weight: 600; color: var(--ink); }
.dash-ai-meta { margin-left: auto; font-size: 9px; color: var(--ink-mid); letter-spacing: 0.06em; }
.dash-ai p {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.dash-ai strong { color: var(--ink); font-weight: 600; }

.dash-priority {
  grid-area: priority;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.dash-priority-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.dash-priority-head .mono { color: var(--ink-mid); font-weight: 400; font-size: 9.5px; }
.dash-priority ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dash-priority li {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
}
.dash-priority-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-priority .mono {
  color: var(--accent);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.dash-pct {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mid);
  width: 36px;
  text-align: right;
}

/* ==========================================================================
   TOOL 04: LEAD CONCIERGE - tangible lead workflow
   ========================================================================== */
.lc {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.lc-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}
.lc-head-left {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
  min-width: 220px;
}
.lc-head-meta { display: flex; flex-direction: column; }
.lc-head-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.lc-head-sub {
  font-size: 10.5px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.lc-head-score {
  display: flex; flex-direction: column;
  align-items: flex-end;
  padding: 0 14px;
  border-left: 1px solid var(--border);
}
.lc-score-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.lc-score-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.lc-score-num span {
  font-size: 12px;
  color: var(--ink-mid);
  font-weight: 400;
}
.lc-rerun {
  font-size: 11.5px !important;
}
.lc-rerun svg {
  transition: transform 0.3s var(--easing);
}
.lc-rerun.is-working svg {
  animation: aiSpin 0.7s linear infinite;
}

/* Two-column card grid */
.lc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 880px) {
  .lc-grid { grid-template-columns: 1fr; }
}
.lc-col {
  display: flex; flex-direction: column;
  gap: 14px;
}

/* Generic card style */
.lc-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.lc-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.lc-step-pip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lc-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.lc-card-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}

/* Card 01: Capture data */
.lc-capture {
  display: flex; flex-direction: column;
  gap: 5px;
  font-size: 12px;
}
.lc-cap-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 3px 0;
}
.lc-cap-label {
  color: var(--ink-mid);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.lc-cap-row > span:not(.mono) { color: var(--ink); }

.lc-formdata {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.lc-form-label {
  display: block;
  color: var(--ink-mid);
  margin-bottom: 8px;
}
.lc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.lc-form-grid > div {
  display: flex; flex-direction: column;
  font-size: 12px;
}
.lc-form-grid .mono { color: var(--ink-mid); font-size: 9px; }
.lc-form-grid span:not(.mono) { color: var(--ink); }
.lc-form-msg {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
  font-style: italic;
}

/* Card 02: Person enrichment */
.lc-person {
  display: flex; flex-direction: column;
  gap: 4px;
}
.lc-person-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  font-size: 12px;
}
.lc-person-row > span:not(.mono),
.lc-person-row > a { color: var(--ink); }
.lc-person-row a {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.lc-person-row a svg { width: 11px; height: 11px; }
.lc-life {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(94, 92, 230, 0.18);
  color: #8b88f5;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
}

/* Card 03: Intent signals */
.lc-signals {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 6px;
}
.lc-signals li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.lc-signals strong { color: var(--ink); font-weight: 600; }
.lc-sig-icon {
  color: #34d399;
  font-size: 10px;
  display: flex; align-items: center;
  padding-top: 3px;
}
.lc-signals .lc-sig-warn .lc-sig-icon { color: #fbbc24; }

/* Card 04: Score breakdown */
.lc-score-rows {
  display: flex; flex-direction: column;
  gap: 6px;
}
.lc-sr {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
}
.lc-sr .mono { color: var(--ink-soft); font-size: 10px; }
.lc-sr-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.lc-sr-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.lc-sr-warn i { background: #fbbc24; }
.lc-sr-val {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 11px;
}
.lc-score-explain {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 8px 10px;
  background: rgba(251, 188, 36, 0.06);
  border-left: 2px solid #fbbc24;
  border-radius: 4px;
  margin-top: 4px;
}
.lc-score-explain strong { color: #fbbc24; font-weight: 600; }

/* Card 05: Sales playbook */
.lc-plays {
  list-style: none;
  counter-reset: play;
  display: flex; flex-direction: column;
  gap: 10px;
}
.lc-plays li {
  counter-increment: play;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-auto-rows: auto;
  gap: 2px 10px;
}
.lc-plays li::before {
  content: counter(play);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  width: 20px; height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  /* counter occupies column 1 across both rows so the title + description stack in column 2 */
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}
.lc-play-h {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.lc-play-d {
  grid-column: 2;
  grid-row: 2;
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Card 06: Drafted email */
.lc-email {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.lc-email-meta {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  font-size: 11.5px;
  padding-bottom: 4px;
}
.lc-email-meta .mono { color: var(--ink-mid); font-size: 9.5px; }
.lc-email-meta:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 4px; }
.lc-email p {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.lc-email-list {
  font-size: 11.5px !important;
  color: var(--ink-soft) !important;
  padding-left: 4px;
  line-height: 1.7 !important;
}
.lc-email-list strong { color: var(--ink); }
.lc-email-actions {
  display: flex; gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Card 07: Similar wins */
.lc-wins {
  display: flex; flex-direction: column;
  gap: 8px;
}
.lc-win {
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 8px;
}
.lc-win-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink);
}
.lc-win-when { color: var(--ink-mid); font-size: 10px; }
.lc-win-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.lc-win-tag {
  font-size: 9.5px;
  color: #34d399;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* "Re-run" reveal animation - cards fade in one by one when triggered */
.lc-card.is-fresh,
.lc-source.is-fresh,
.lc-outcome.is-fresh {
  animation: lcCardFresh 0.5s var(--easing);
}
@keyframes lcCardFresh {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LEAD CONCIERGE - Source card (top) - shows the campaign funnel
   ========================================================================== */
.lc-source {
  background:
    linear-gradient(180deg, rgba(94, 92, 230, 0.06), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(94, 92, 230, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
}
.lc-source-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.lc-source-label {
  font-size: 10px;
  color: #8b88f5;
  letter-spacing: 0.08em;
}
.lc-source-cpl {
  font-size: 11px;
  color: var(--ink-soft);
}
.lc-source-cpl strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}
.lc-funnel {
  display: grid;
  grid-template-columns: 1fr 14px 1fr 14px 1fr;
  gap: 10px;
  align-items: center;
}
@media (max-width: 880px) {
  .lc-funnel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lc-funnel-arrow { display: none; }
}
.lc-funnel-stage {
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(94, 92, 230, 0.05);
  border: 1px solid rgba(94, 92, 230, 0.18);
  border-radius: 8px;
  min-height: 88px;
}
.lc-funnel-num {
  color: #8b88f5;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.lc-funnel-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.lc-funnel-detail {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.lc-funnel-stat {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(94, 92, 230, 0.2);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.lc-funnel-arrow {
  font-size: 16px;
  color: #8b88f5;
  text-align: center;
}

/* ==========================================================================
   LEAD CONCIERGE - Outcome / ROI card (bottom) - closes the loop on revenue
   ========================================================================== */
.lc-outcome {
  margin-top: 14px;
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.06), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
}
.lc-outcome-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.lc-outcome-label {
  font-size: 10px;
  color: #34d399;
  letter-spacing: 0.08em;
}
.lc-outcome-conf {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.lc-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 880px) {
  .lc-outcome-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .lc-outcome-grid { grid-template-columns: 1fr; }
}
.lc-outcome-cell {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 8px;
}
.lc-outcome-cell-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.lc-outcome-cell-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lc-outcome-cell-num span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
}
.lc-outcome-cell-meta {
  font-size: 10.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 2px;
}
.lc-outcome-roi {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}
.lc-outcome-roi .lc-outcome-cell-num {
  color: #34d399;
}

/* ==========================================================================
   LEGACY: original lead-* classes (replaced by lc-*, kept just in case)
   ========================================================================== */
.lead-flow-legacy {}

/* ==========================================================================
   AI PHONE RECEPTIONIST - end-to-end call sample with transcript + outcomes
   ========================================================================== */
.phn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Call header bar */
.phn-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: rgba(212, 38, 58, 0.06);
  border-bottom: 1px solid rgba(212, 38, 58, 0.2);
  gap: 14px;
  flex-wrap: wrap;
}
.phn-head-left {
  display: flex; align-items: center; gap: 14px;
}
.phn-avatar {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-soft);
}
.phn-avatar svg { width: 20px; height: 20px; }
.phn-avatar-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: phnPulse 1.8s ease-out infinite;
}
@keyframes phnPulse {
  0%   { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}
.phn-head-meta { display: flex; flex-direction: column; gap: 2px; }
.phn-head-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.phn-head-title strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.phn-head-sub {
  font-size: 10.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}
.phn-head-right {
  display: flex; align-items: center; gap: 12px;
}
.phn-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.14em;
}
.phn-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: pulse 1.6s var(--easing) infinite;
}
.phn-duration {
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Audio waveform strip */
.phn-waveform {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.phn-wave {
  flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 28px;
}
.phn-wave span {
  flex: 1;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.6;
  height: 4px;
  animation: phnWave 1.4s ease-in-out infinite;
}
.phn-wave span:nth-child(3n)   { animation-delay: -0.2s; }
.phn-wave span:nth-child(3n+1) { animation-delay: -0.5s; }
.phn-wave span:nth-child(5n)   { animation-delay: -0.9s; }
.phn-wave span:nth-child(7n)   { animation-delay: -0.3s; }
.phn-wave span:nth-child(11n)  { animation-delay: -0.7s; }
@keyframes phnWave {
  0%, 100% { height: 4px; opacity: 0.4; }
  50% { height: 22px; opacity: 0.9; }
}
.phn-wave-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

/* Conversation transcript */
.phn-transcript {
  padding: 20px 22px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.phn-turn {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  max-width: 86%;
}
.phn-turn-ai {
  align-self: flex-start;
}
.phn-turn-caller {
  align-self: flex-end;
  grid-template-columns: 1fr 32px;
}
.phn-turn-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.phn-avatar-caller {
  background: linear-gradient(135deg, #5e60ce, #8b88f5);
  font-family: var(--sans);
}
.phn-turn-caller .phn-turn-avatar { order: 2; }
.phn-turn-caller .phn-turn-body  { order: 1; text-align: right; }
.phn-turn-body { min-width: 0; }
.phn-turn-meta {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
  font-size: 10.5px;
}
.phn-turn-caller .phn-turn-meta { justify-content: flex-end; }
.phn-turn-who {
  font-weight: 600;
  color: var(--ink);
}
.phn-turn-ai .phn-turn-who { color: var(--accent); }
.phn-turn-time {
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}
.phn-turn-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin: 0;
}
.phn-turn-ai .phn-turn-text {
  background: var(--accent-faint);
  border-color: rgba(212, 38, 58, 0.22);
  border-bottom-left-radius: 4px;
}
.phn-turn-caller .phn-turn-text {
  background: rgba(94, 92, 230, 0.10);
  border-color: rgba(94, 92, 230, 0.22);
  border-bottom-right-radius: 4px;
}

/* AI thinking annotation panels */
.phn-thinking {
  margin: -2px 0 0 42px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border);
  border-radius: 8px;
  max-width: 80%;
}
.phn-thinking header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.phn-thinking-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.1em;
}
.phn-thinking ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
.phn-thinking strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}

/* Call ended marker */
.phn-end {
  text-align: center;
  padding: 12px 0 0;
  margin-top: 6px;
  border-top: 1px dashed var(--border);
}
.phn-end .mono {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.14em;
}

/* After-call outcomes panel */
.phn-outcomes {
  background: rgba(52, 211, 153, 0.04);
  border-top: 1px solid var(--border);
  padding: 22px;
}
.phn-outcomes-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.18);
  flex-wrap: wrap;
  gap: 8px;
}
.phn-outcomes-label {
  font-size: 10px;
  color: #34d399;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.phn-outcomes-time {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.phn-outcomes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
@media (max-width: 720px) { .phn-outcomes-list { grid-template-columns: 1fr; } }
.phn-outcomes-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.phn-check {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}
.phn-outcome-body { display: flex; flex-direction: column; gap: 2px; }
.phn-outcome-h {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.phn-outcome-d {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Bottom stat strip */
.phn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .phn-stats { grid-template-columns: repeat(2, 1fr); } }
.phn-stat {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.phn-stat:last-child { border-right: 0; }
.phn-stat strong {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.phn-stat .mono {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.1em;
}
.phn-stat-hi strong { color: var(--accent); }

/* ==========================================================================
   BEFORE / AFTER - manual vs AI handling of a lead (client-focused outcome view)
   ========================================================================== */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}
@media (max-width: 880px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ba-divider {
    transform: rotate(90deg);
    margin: 0 auto;
    width: 40px;
    height: 40px;
  }
}

/* Center divider with arrow */
.ba-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}
.ba-divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
}
.ba-divider-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 18px var(--accent-soft);
}
.ba-divider-arrow svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .ba-divider-line { display: none; }
}

/* Each card */
.ba-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
}
.ba-card-manual {
  opacity: 0.92;
}
.ba-card-ai {
  border-color: rgba(212, 38, 58, 0.4);
  box-shadow: 0 0 24px var(--accent-soft);
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.04), transparent),
    var(--bg-card);
}

/* Header */
.ba-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.ba-card-manual .ba-head {
  background: rgba(255, 255, 255, 0.02);
}
.ba-card-ai .ba-head {
  background: rgba(212, 38, 58, 0.06);
  border-bottom-color: rgba(212, 38, 58, 0.2);
}
.ba-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.ba-mark-x {
  background: rgba(168, 168, 184, 0.16);
  color: var(--ink-mid);
}
.ba-mark-check {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-soft);
}
.ba-head-meta { display: flex; flex-direction: column; gap: 2px; }
.ba-tag {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
}
.ba-tag-ai { color: var(--accent); }
.ba-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

/* Steps */
.ba-steps {
  list-style: none;
  padding: 12px 22px 18px;
  display: flex; flex-direction: column;
}
.ba-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ba-step:last-child { border-bottom: 0; }
.ba-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--ink-mid);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
  flex-shrink: 0;
}
.ba-card-ai .ba-step-num {
  background: var(--accent-faint);
  border-color: var(--accent-soft);
  color: var(--accent);
}
.ba-step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ba-step-h {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.ba-step-d {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.ba-time {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(168, 168, 184, 0.12);
  color: var(--ink-soft);
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}
.ba-time-ai {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
}

/* Footer with total + bullets */
.ba-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.ba-card-ai .ba-foot {
  border-top-color: rgba(212, 38, 58, 0.18);
  background: rgba(212, 38, 58, 0.05);
}
.ba-foot-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.ba-foot-row .mono {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.ba-foot-num {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ba-card-ai .ba-foot-num { color: var(--accent); }

.ba-flaws, .ba-wins {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 5px;
}
.ba-flaws li, .ba-wins li {
  font-size: 11.5px;
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.ba-flaws li {
  color: var(--ink-mid);
}
.ba-flaws li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--ink-mid);
  font-size: 10px;
}
.ba-wins li {
  color: var(--ink);
}
.ba-wins li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}

/* Bottom savings stats */
.ba-savings {
  margin-top: 28px;
  padding: 28px 32px;
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.08), rgba(212, 38, 58, 0.02)),
    var(--bg-card);
  border: 1px solid rgba(212, 38, 58, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px var(--accent-soft);
  text-align: center;
}
.ba-savings-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .ba-savings-row { grid-template-columns: repeat(2, 1fr); } }
.ba-savings-cell {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 8px 4px;
}
.ba-savings-cell strong {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
}
.ba-savings-cell strong span {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0;
}
.ba-savings-cell .mono {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.1em;
}
.ba-savings-hi strong { color: var(--accent); }
.ba-savings-caption {
  font-size: 9.5px;
  color: var(--ink-mid);
  margin-top: 18px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   AI WORKFLOW DIAGRAM - system view of how the Lead Concierge plumbs together
   ========================================================================== */
.wfd {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .wfd {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wfd-flow { display: none; }
}

.wfd-col {
  display: flex; flex-direction: column;
  gap: 8px;
  position: relative;
}
.wfd-col-ai {
  justify-content: center;
  align-items: stretch;
}

.wfd-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.wfd-box {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s var(--easing);
  backdrop-filter: blur(6px);
}
.wfd-box:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-faint);
}
.wfd-box-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-faint);
  color: var(--accent);
  flex-shrink: 0;
}
.wfd-box-icon svg { width: 16px; height: 16px; }
.wfd-box-content {
  display: flex; flex-direction: column;
  flex: 1;
  min-width: 0;
}
.wfd-box-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.wfd-box-meta {
  font-size: 10.5px;
  color: var(--ink-mid);
}

/* AI processing core - center of the diagram */
.wfd-ai {
  position: relative;
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.10), rgba(212, 38, 58, 0.02)),
    var(--bg-card);
  border: 1px solid rgba(212, 38, 58, 0.42);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 0 32px var(--accent-soft), inset 0 0 0 1px rgba(212, 38, 58, 0.12);
}
.wfd-ai::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(212, 38, 58, 0.4), transparent);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.55;
}
.wfd-ai-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 38, 58, 0.2);
  margin-bottom: 12px;
}
.wfd-ai-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.wfd-ai-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}

.wfd-ai-steps {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 9px;
}
.wfd-ai-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}
.wfd-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.wfd-step-body {
  display: flex; flex-direction: column;
  gap: 2px;
}
.wfd-step-h {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.wfd-step-d {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Flow indicators on either side of the AI core - animated dashes flowing left to right */
.wfd-flow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 100%;
  background-image: linear-gradient(to right, var(--accent) 50%, transparent 50%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  opacity: 0.55;
  animation: wfdFlow 1.2s linear infinite;
}
.wfd-flow-in {
  left: -100%;
  width: 100%;
}
.wfd-flow-out {
  right: -100%;
  width: 100%;
  animation-direction: normal;
}
@keyframes wfdFlow {
  to { background-position: 10px 0; }
}
/* Arrow head at the end of each flow */
.wfd-flow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 6px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.wfd-flow-in::after {
  right: -6px;
}
.wfd-flow-out::after {
  right: -6px;
}

/* Per-lead stats footer below the diagram */
.wfd-stats {
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.wfd-stats-label {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.14em;
}
.wfd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .wfd-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.wfd-stat {
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 6px 0;
}
.wfd-stat strong {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.wfd-stat span {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   AI WORKFLOW LIBRARY - filterable grid of workflows I can build
   ========================================================================== */
.wf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(10px);
}
.wf-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  white-space: nowrap;
}
.wf-filter:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}
.wf-filter.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 2px 8px var(--accent-soft);
}
.wf-filter-count {
  font-size: 9.5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.wf-filter.is-active .wf-filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .wf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wf-grid { grid-template-columns: 1fr; } }

.wf-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--easing);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 240px;
}
.wf-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-soft);
}
.wf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}
.wf-card:hover::before { opacity: 1; }

.wf-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-faint);
  color: var(--accent);
  flex-shrink: 0;
}
.wf-icon svg { width: 20px; height: 20px; }

.wf-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.wf-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.wf-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: auto;
  padding-top: 10px;
}
.wf-tags li {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.wf-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.wf-time {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}
.wf-price {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Filter transitions - cards fade out when filtered, fade back in */
.wf-card[hidden] { display: none; }
.wf-card.is-fading {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
.wf-card.is-fading-in {
  animation: wfFadeIn 0.4s var(--easing) forwards;
}
@keyframes wfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TOOL 02: TRAFFIC ANALYTICS - Google Analytics + Search Console pull
   ========================================================================== */
.ta {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

/* Connection header */
.ta-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 12px;
}
.ta-head-left { display: flex; align-items: center; gap: 12px; }
.ta-google {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}
.ta-google-g {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(45deg, #4285f4 0%, #4285f4 25%, #ea4335 25%, #ea4335 50%, #fbbc04 50%, #fbbc04 75%, #34a853 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ta-head-meta { display: flex; flex-direction: column; gap: 2px; }
.ta-head-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ta-head-sub {
  font-size: 10.5px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.ta-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px;
  color: #34d399;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
}
.ta-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: pulse 2s var(--easing) infinite;
}

/* Top stats row */
.ta-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 760px) { .ta-stats { grid-template-columns: repeat(2, 1fr); } }
.ta-stat {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.ta-stat-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.ta-stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ta-stat .dash-delta { font-size: 10.5px; }

/* Growth chart */
.ta-chart {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ta-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 10px;
}
.ta-chart-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.ta-chart-legend {
  display: flex; gap: 14px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.ta-chart-legend span {
  display: inline-flex; align-items: center; gap: 5px;
}
.ta-chart-legend i {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.ta-spark {
  width: 100%; height: 140px;
  display: block;
}

/* Card grid (two-up) */
.ta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px) { .ta-grid { grid-template-columns: 1fr; } }

.ta-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ta-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.ta-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.ta-card-source {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}

/* Tables (queries + pages) */
.ta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.ta-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.ta-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.ta-table tbody tr:last-child { border-bottom: 0; }
.ta-table tbody td {
  padding: 7px 0;
  color: var(--ink);
}
.ta-table thead th:nth-child(2),
.ta-table thead th:nth-child(3),
.ta-table thead th:nth-child(4),
.ta-table tbody td:nth-child(2),
.ta-table tbody td:nth-child(3),
.ta-table tbody td:nth-child(4) {
  text-align: right;
  width: 60px;
  white-space: nowrap;
}
.ta-table tbody td:first-child { width: auto; }
.ta-query, .ta-page {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  color: var(--ink);
}
.ta-query { color: var(--ink); }
.ta-page {
  font-family: var(--mono);
  font-size: 10.5px;
}

.ta-pos {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.ta-pos-good { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.ta-pos-ok   { background: rgba(251, 188, 36, 0.14); color: #fbbc24; }

/* Bar lists (sources, geography) */
.ta-bars {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 8px;
}
.ta-bars li {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
}
@media (max-width: 540px) {
  .ta-bars li { grid-template-columns: 1fr 90px; }
  .ta-bars li .ta-bar { grid-column: 1 / -1; }
}
.ta-bar-label { color: var(--ink); }
.ta-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.ta-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.ta-bar-val {
  text-align: right;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.ta-device {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.ta-device-label { color: var(--ink-mid); font-size: 9.5px; margin-right: 4px; }
.ta-device-pill {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.ta-device-mobile {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: var(--accent-faint);
}

/* AI insight card at the bottom */
.ta-ai-summary {
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
}
.ta-ai-summary p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.ta-ai-summary strong { color: var(--ink); font-weight: 600; }
.ta-ai-summary .quill-ai-avatar {
  width: 18px; height: 18px;
}

/* ==========================================================================
   TOOL 05: SUPPORT TRIAGE
   ========================================================================== */
.sup {
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  height: 100%;
}
.sup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 700px) { .sup-stats { grid-template-columns: repeat(2, 1fr); } }
.sup-stat {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column;
}
.sup-stat strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sup-stat .mono { font-size: 9.5px; color: var(--ink-mid); }
.sup-stat-critical strong { color: #f43f5e; }

.sup-tickets {
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.sup-tickets::-webkit-scrollbar { display: none; }
.sup-ticket {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.sup-ticket.sup-critical {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.04);
}
.sup-sev {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.18);
  color: #f43f5e;
  letter-spacing: 0.08em;
}
.sup-sev-high { background: rgba(251, 188, 36, 0.18); color: #fbbc24; }
.sup-sev-med  { background: rgba(94, 92, 230, 0.18); color: #8b88f5; }
.sup-sev-low  { background: rgba(168, 168, 184, 0.12); color: #98989d; }
.sup-ticket-body { display: flex; flex-direction: column; gap: 4px; }
.sup-subject {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.sup-meta { font-size: 10px; color: var(--ink-mid); letter-spacing: 0.04em; }
.sup-ai {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}
.sup-ai .quill-ai-avatar { flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   TOOL 06: ONBOARDING AUTOMATION
   ========================================================================== */
.onb {
  padding: 20px 22px;
  height: 100%;
  display: flex; flex-direction: column;
  gap: 16px;
}
.onb-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.onb-client { flex: 1; display: flex; flex-direction: column; }
.onb-client-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.onb-client-meta { font-size: 11px; color: var(--ink-mid); }
.onb-progress {
  display: flex; align-items: center; gap: 10px;
  min-width: 120px;
}
.onb-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.onb-progress-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.onb-progress-pct { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }

.onb-timeline {
  display: flex; flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.onb-timeline::-webkit-scrollbar { display: none; }
.onb-day {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.onb-day:last-child { border-bottom: 0; }
.onb-day-num {
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.onb-day.is-done .onb-day-num { color: var(--accent); }
.onb-day.is-working .onb-day-num { color: var(--ink); }
.onb-tasks {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 5px;
}
.onb-tasks li {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.onb-tasks li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--ink-faint);
}
.onb-tasks li.is-done::before {
  background: var(--accent);
  border-color: var(--accent);
}
.onb-tasks li.is-done::after {
  content: '';
  position: absolute;
  left: 3px; top: 8px;
  width: 6px; height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.onb-tasks li.is-done { color: var(--ink-soft); }
.onb-tasks li.is-working::before {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: aiSpin 0.8s linear infinite;
}
.onb-tasks li.is-working { color: var(--ink); }

/* ==========================================================================
   BLOOM - AI Review/Reputation manager (kept for reference, no longer used)
   ========================================================================== */
.tg-bloom-legacy {}

/* ==========================================================================
   BLOOM - AI Review/Reputation manager, inherits .quill base
   The tri-* / bg-* classes below are reused for stats, draft composer, action buttons
   ========================================================================== */

.bl-logo {
  background: linear-gradient(135deg, #34d399, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.bl-stat-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  margin-right: 6px;
  animation: pulse 2s var(--easing) infinite;
}
.bl-badge-warn {
  background: rgba(244, 63, 94, 0.18) !important;
  color: #f43f5e !important;
}

/* Source badges (Google G, Yelp y, FB f) - tiny square pills */
.bl-src-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.bl-src-google   { background: #4285f4; }
.bl-src-yelp     { background: #d32323; }
.bl-src-facebook { background: #1877f2; }

/* Star rating display - CSS only, set via data-rating attribute */
.bl-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.bl-stars::before {
  content: '\2605\2605\2605\2605\2605';
  letter-spacing: 1px;
  background: linear-gradient(
    to right,
    #fbbc24 calc(var(--filled, 0) * 1%),
    var(--ink-faint) calc(var(--filled, 0) * 1%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bl-stars[data-rating="1"] { --filled: 20; }
.bl-stars[data-rating="2"] { --filled: 40; }
.bl-stars[data-rating="3"] { --filled: 60; }
.bl-stars[data-rating="4"] { --filled: 80; }
.bl-stars[data-rating="5"] { --filled: 100; }
.bl-stars-lg { font-size: 18px; margin-left: auto; }

/* Avatar palette for reviewers */
.bl-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.bl-avatar-1 { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.bl-avatar-2 { background: linear-gradient(135deg, #5e60ce, #8b88f5); }
.bl-avatar-3 { background: linear-gradient(135deg, #f59e0b, #fbbc24); }
.bl-avatar-4 { background: linear-gradient(135deg, #34d399, #06b6d4); }
.bl-avatar-5 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bl-avatar-lg { width: 32px; height: 32px; font-size: 12px; }

/* Review items in the feed */
.bl-item { padding: 12px 10px; gap: 7px; }
.bl-row-1 {
  display: flex; align-items: center; gap: 8px;
}
.bl-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.bl-row-1 .quill-item-time { margin-left: auto; }
.bl-row-2 {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.bl-snippet {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sentiment / priority pills */
.bl-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border: 0;
  align-self: flex-start;
}
.bl-pill::before { display: none; }
.bl-pill-positive { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.bl-pill-mixed    { background: rgba(251, 188, 36, 0.14); color: #fbbc24; }
.bl-pill-negative { background: rgba(244, 63, 94, 0.14); color: #f43f5e; }
.bl-pill-urgent   { background: rgba(244, 63, 94, 0.22); color: #f43f5e; }

/* Right detail panel */
.bl-detail { padding: 20px 22px; gap: 14px; }
.bl-detail-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.bl-detail-meta {
  display: flex; flex-direction: column;
  flex: 1;
  min-width: 0;
}
.bl-detail-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.bl-detail-source {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink-mid);
}
.bl-detail-source .bl-src-badge {
  width: 14px; height: 14px;
  font-size: 8.5px;
}
.bl-message {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-style: italic;
}

/* AI analysis card */
.bl-ai-card {
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 9px;
}
.bl-ai-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.bl-ai-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.bl-ai-card-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
}
.bl-ai-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px;
}
.bl-ai-label {
  width: 80px;
  flex-shrink: 0;
  color: var(--ink-mid);
  font-size: 10px;
  text-transform: uppercase;
}
.bl-ai-value { color: var(--ink); }
.bl-priority-urgent { color: #f43f5e; font-weight: 500; }

/* ==========================================================================
   BRIGADE - multi-agent operations feed (kept for reference, no longer used)
   ========================================================================== */

/* Logo + live-stat */
.bg-logo {
  background: linear-gradient(135deg, #5e60ce, #06b6d4);
  box-shadow: 0 0 10px rgba(94, 96, 206, 0.5);
}
.bg-stat-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  margin-right: 6px;
  animation: pulse 2s var(--easing) infinite;
}

/* Sidebar agent roster */
.bg-agents {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 0 6px;
}
.bg-agent {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.18s var(--easing);
}
.bg-agent:hover { background: rgba(255, 255, 255, 0.04); }
.bg-agent-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.bg-a-scribe { background: linear-gradient(135deg, var(--accent), #ff7a8a); }
.bg-a-pulse  { background: linear-gradient(135deg, #5e60ce, #8b88f5); }
.bg-a-vault  { background: linear-gradient(135deg, #f59e0b, #fbbc24); }
.bg-a-atlas  { background: linear-gradient(135deg, #34d399, #06b6d4); }
.bg-a-drift  { background: linear-gradient(135deg, #ec4899, #f472b6); }

.bg-agent-meta {
  display: flex; flex-direction: column;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.bg-agent-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.bg-agent-role {
  font-size: 10.5px;
  color: var(--ink-mid);
}
.bg-agent-state {
  width: 12px; height: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bg-agent-state span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-mid);
}
.bg-agent-state.is-working span {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: pulse 1.6s var(--easing) infinite;
}
.bg-agent-state.is-idle span {
  background: var(--ink-mid);
}

/* List = feed of completed/queued work */
.bg-feed {}
.bg-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  color: #34d399;
  letter-spacing: 0.1em;
}
.bg-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: pulse 2s var(--easing) infinite;
}

.bg-item { padding: 12px 10px; }
.bg-item-row {
  display: flex; align-items: flex-start; gap: 10px;
}
.bg-item-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.bg-item-meta {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bg-item-headline {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.bg-item-sub {
  font-size: 11px;
  color: var(--ink-mid);
}
.bg-item-agent {
  color: var(--ink-soft);
  font-weight: 500;
}

/* Status pills (reuse quill-pill base with new modifiers) */
.bg-pill {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border: 0;
  align-self: flex-start;
  flex-shrink: 0;
}
.bg-pill::before { display: none; }
.bg-pill-review { background: rgba(251, 188, 36, 0.14); color: #fbbc24; }
.bg-pill-flag   { background: rgba(244, 63, 94, 0.14); color: #f43f5e; }
.bg-pill-done   { background: rgba(52, 211, 153, 0.14); color: #34d399; }

/* Right detail panel */
.bg-detail {
  padding: 20px 22px;
  gap: 14px;
}
.bg-detail-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.bg-detail-head .bg-item-avatar {
  width: 32px; height: 32px;
  font-size: 13px;
  margin-top: 0;
}
.bg-detail-meta {
  flex: 1;
  display: flex; flex-direction: column;
}
.bg-detail-agent {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.bg-detail-when {
  font-size: 11.5px;
  color: var(--ink-mid);
}

.bg-headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.bg-context {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Reasoning trace - the agent's "thinking" steps */
.bg-trace {
  background: rgba(94, 96, 206, 0.05);
  border: 1px solid rgba(94, 96, 206, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
}
.bg-trace-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(94, 96, 206, 0.18);
  margin-bottom: 10px;
}
.bg-trace-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.bg-trace-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
}
.bg-trace-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  counter-reset: trace;
}
.bg-trace-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  position: relative;
  padding-left: 0;
  counter-increment: trace;
}
.bg-trace-list li::before {
  content: counter(trace, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9.5px;
  color: #8b88f5;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.05em;
}
.bg-trace-list li.is-revealing {
  opacity: 0;
  animation: traceReveal 0.4s var(--easing) forwards;
}
@keyframes traceReveal {
  to { opacity: 1; }
}

/* Artifact preview - the actual output the agent produced */
.bg-artifact {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.bg-artifact-head {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.bg-artifact-label {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.bg-artifact-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.bg-artifact-body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* Action buttons row */
.bg-actions {
  display: flex; gap: 6px;
  padding-top: 6px;
}
.bg-actions .tri-action-primary { flex: 1; }

/* ==========================================================================
   TRIAGE / shared classes - kept so tri-stats and tri-action* still apply
   ========================================================================== */

/* Logo variation - use different gradient so the two demos read as distinct products */
.tri-logo {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

/* Titlebar live-stat pulse */
.tri-stat-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  margin-right: 6px;
  animation: pulse 2s var(--easing) infinite;
}

/* Sidebar stats block */
.tri-stats {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 4px 8px 12px;
}
.tri-stat {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--ink);
}
.tri-stat .mono { color: var(--ink-mid); font-size: 10px; }
.tri-stat strong { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Inquiry list items (override .quill-item internals) */
.tri-item { padding: 12px 10px; gap: 7px; }
.tri-row-1 {
  display: flex; align-items: center; gap: 7px;
}
.tri-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.tri-company {
  font-size: 11.5px;
  color: var(--ink-mid);
}
.tri-row-1 .quill-item-time { margin-left: auto; }
.tri-subject {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tri-row-3 {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap;
}

/* AI score badge - filled circle indicator + number */
.tri-score {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.tri-score span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-mid);
}
.tri-score.is-hot { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.tri-score.is-hot span { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.7); }
.tri-score.is-warm { background: rgba(251, 188, 36, 0.14); color: #fbbc24; }
.tri-score.is-warm span { background: #fbbc24; }
.tri-score.is-cool { background: rgba(168, 168, 184, 0.12); color: #98989d; }
.tri-score.is-cool span { background: #98989d; }
.tri-score-lg {
  font-size: 12px;
  padding: 4px 11px;
}

/* Intent / tag pills (reuse quill-pill + add modifiers) */
.tri-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  font-size: 10px;
  padding: 2px 7px;
  font-weight: 500;
}
.tri-tag::before { display: none; }
.tri-tag-hot {
  background: var(--accent-faint);
  border-color: rgba(212, 38, 58, 0.25);
  color: var(--accent);
}
.tri-tag-info {
  background: rgba(94, 92, 230, 0.14);
  border-color: rgba(94, 92, 230, 0.25);
  color: #8b88f5;
}
.tri-tag-low {
  background: rgba(168, 168, 184, 0.10);
  color: #98989d;
}

/* Avatars - varied gradients to keep the inbox visually rich */
.tri-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7a8a);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.tri-avatar-2 { background: linear-gradient(135deg, #5e60ce, #8b88f5); }
.tri-avatar-3 { background: linear-gradient(135deg, #f59e0b, #fbbc24); }
.tri-avatar-4 { background: linear-gradient(135deg, #6b7280, #98989d); }
.tri-avatar-5 { background: linear-gradient(135deg, #34d399, #06b6d4); }
.tri-avatar-lg { width: 30px; height: 30px; font-size: 12px; }

/* Detail panel */
.tri-detail { padding: 20px 24px; }
.tri-from {
  display: flex; align-items: center; gap: 10px;
}
.tri-from-inner { display: flex; flex-direction: column; }
.tri-from-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.tri-from-co {
  font-size: 11px;
  color: var(--ink-mid);
}
.tri-subject-h {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.tri-message {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* AI analysis card */
.tri-ai-card {
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.05), transparent),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 9px;
}
.tri-ai-card-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.tri-ai-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.tri-ai-card-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
}
.tri-ai-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px;
}
.tri-ai-label {
  width: 70px;
  flex-shrink: 0;
  color: var(--ink-mid);
  font-size: 10px;
  text-transform: uppercase;
}
.tri-ai-value {
  color: var(--ink);
}

/* Drafted response composer */
.tri-draft-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.tri-draft-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.tri-draft-label {
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
}
.tri-regen {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.22s var(--easing);
}
.tri-regen svg { width: 12px; height: 12px; }
.tri-regen:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tri-regen.is-working svg { animation: aiSpin 0.7s linear infinite; }
.tri-regen.is-working { color: var(--accent); border-color: var(--accent); }
.tri-draft {
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 80px;
  outline: 0;
  white-space: pre-wrap;
}
.tri-draft:focus { background: rgba(255, 255, 255, 0.02); }

.tri-draft-actions {
  display: flex; gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
}
.tri-action {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.22s var(--easing);
}
.tri-action svg { width: 13px; height: 13px; }
.tri-action-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 4px 14px var(--accent-soft);
}
.tri-action-primary:hover:not(:disabled) { background: var(--accent-hi); }
.tri-action-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.tri-action-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.tri-action-warn { margin-left: auto; color: #fbbc24; }
.tri-action-warn:hover { color: #fbbc24; border-color: #fbbc24; background: rgba(251, 188, 36, 0.08); }
.tri-action:disabled { cursor: not-allowed; }
.tri-action.is-working {
  background: var(--accent);
}
.tri-action.is-done {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }
.phase {
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s var(--easing), transform 0.3s var(--easing);
  backdrop-filter: blur(10px);
}
.phase:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.phase-num {
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.phase h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--ink);
}
.phase p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   BIG CTA CARD
   ========================================================================== */
.cta-section {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.cta-card {
  position: relative;
  padding: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(20, 20, 26, 0.7), rgba(20, 20, 26, 0.4)),
    radial-gradient(circle at 70% 0%, var(--accent-faint), transparent 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.cta-card .eyebrow { margin-bottom: 20px; }
.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 200%;
  background: radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 50%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-h {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 16px;
  color: var(--ink);
}
.cta-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.cta-actions {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 22px;
}
.cta-alts {
  display: inline-flex; gap: 14px; align-items: center;
  font-size: 13.5px;
  color: var(--ink-mid);
}
.cta-alts a {
  color: var(--ink-soft);
  transition: color 0.2s var(--easing);
}
.cta-alts a:hover { color: var(--accent); }
.cta-divider { color: var(--ink-faint); }

/* ==========================================================================
   CONFIGURATOR (scope + quote)
   ========================================================================== */
.cfg-section { padding-bottom: clamp(80px, 12vw, 160px); }

.configurator {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(28, 28, 30, 0.7), rgba(20, 20, 22, 0.6));
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.cfg-glow {
  position: absolute;
  top: -30%;
  left: 70%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.cfg-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
}
@media (max-width: 960px) {
  .cfg-grid { grid-template-columns: 1fr; }
}

/* LEFT: inputs */
.cfg-inputs {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column;
  gap: 32px;
  border-right: 1px solid var(--border);
}
@media (max-width: 960px) {
  .cfg-inputs { border-right: 0; border-bottom: 1px solid var(--border); }
}

.cfg-block { display: flex; flex-direction: column; gap: 12px; }
.cfg-label { color: var(--ink); display: block; }
.cfg-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.cfg-value { color: var(--accent); }

/* radio buttons (project type + timeline) */
.cfg-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 540px) {
  .cfg-radios { grid-template-columns: 1fr; }
}
.cfg-radio {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--easing);
  text-align: left;
}
.cfg-radio svg {
  width: 18px; height: 18px;
  color: var(--ink-soft);
  transition: color 0.2s var(--easing);
}
.cfg-radio:hover {
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
.cfg-radio.active {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px var(--accent-faint);
}
.cfg-radio.active svg { color: var(--accent); }
.cfg-radio-title {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}
.cfg-radio-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}
.cfg-radio.active .cfg-radio-sub { color: var(--accent); }

/* slider */
.cfg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
}
.cfg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-soft);
  transition: transform 0.15s var(--easing);
}
.cfg-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cfg-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-soft);
}
.cfg-slider-ticks {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* pills (toggleable features) */
.cfg-pills {
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.cfg-pill {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--easing);
}
.cfg-pill:hover {
  border-color: var(--border-hi);
  color: var(--ink);
}
.cfg-pill.active {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--accent);
}

.cfg-app-only {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.4s var(--easing), opacity 0.3s var(--easing), transform 0.3s var(--easing);
  gap: 0 !important;
}
.cfg-app-only.is-open {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  gap: 12px !important;
}

/* RIGHT: output */
.cfg-output {
  position: relative;
  background:
    linear-gradient(180deg, rgba(212, 38, 58, 0.06), transparent),
    rgba(20, 20, 22, 0.4);
}
.cfg-output-inner {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}
.cfg-output-label {
  color: var(--ink-soft);
}

.cfg-price {
  display: flex; align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
  /* digit widths stay constant during count-up so the layout cannot shift */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.cfg-price-currency {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-soft);
  font-weight: 500;
  margin-right: 2px;
}
.cfg-price-low, .cfg-price-high {
  font-size: clamp(26px, 3.6vw, 42px);
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.25s var(--easing);
}
.cfg-price-low.flash, .cfg-price-high.flash {
  animation: priceFlash 0.5s var(--easing);
}
@keyframes priceFlash {
  0% { opacity: 0.3; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cfg-price-dash {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink-mid);
  margin: 0 8px;
}
/* On narrower viewports where even the reduced price can't fit one row,
   stack low/high intentionally instead of letting flex wrap mid-animation */
@media (max-width: 1180px) and (min-width: 961px) {
  .cfg-price { flex-direction: column; align-items: flex-start; }
  .cfg-price-dash { display: none; }
}

.cfg-meta {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cfg-meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  font-size: 13.5px;
}
.cfg-meta-row .mono { color: var(--ink-soft); }
.cfg-meta-value {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.cfg-send {
  width: 100%;
  justify-content: center;
}

.cfg-disclaimer {
  color: var(--ink-mid);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

.cfg-alts {
  display: flex; justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-mid);
}
.cfg-alts a {
  color: var(--ink-soft);
  transition: color 0.2s var(--easing);
}
.cfg-alts a:hover { color: var(--accent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: clamp(56px, 7vw, 96px) 0 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 36ch;
}
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col > .mono { color: var(--ink); margin-bottom: 8px; }
.footer-col a, .footer-col span:not(.mono) {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s var(--easing);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .mono { color: var(--ink-mid); }

/* ==========================================================================
   BI DASHBOARD - Power BI / Tableau style operational report
   ========================================================================== */
.bi { overflow: hidden; }
.bi-body {
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 16px;
}
@media (max-width: 640px) { .bi-body { padding: 14px; gap: 12px; } }

/* Filter bar */
.bi-filterbar {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.bi-filter-group {
  display: flex; align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bi-filter-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 2px;
}
.bi-pill {
  appearance: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--easing), color 160ms var(--easing), border-color 160ms var(--easing);
}
.bi-pill:hover { color: var(--ink); border-color: var(--ink-mid); }
.bi-pill.is-active {
  background: var(--accent-faint);
  color: var(--accent-hi);
  border-color: rgba(212, 38, 58, 0.4);
}
.bi-filter-actions { margin-left: auto; }
.bi-refresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
}
.bi-refresh-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2.4s var(--easing) infinite;
}

/* KPI tiles */
.bi-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 760px) { .bi-kpis { grid-template-columns: repeat(2, 1fr); } }
.bi-kpi {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.bi-kpi-label {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bi-kpi-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bi-kpi .dash-delta { font-size: 10.5px; }

/* Generic card */
.bi-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.bi-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.bi-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.bi-card-source {
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bi-card-legend {
  display: flex; gap: 12px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
.bi-card-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bi-card-legend i {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* Card grid 2-up */
.bi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px) { .bi-grid { grid-template-columns: 1fr; } }

/* Revenue bar chart */
.bi-bars {
  height: 200px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  padding-top: 8px;
}
.bi-bar-col {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
}
.bi-bar-stack {
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 2px;
}
.bi-bar-closed,
.bi-bar-pending {
  width: 100%;
  border-radius: 3px 3px 0 0;
  transition: opacity 200ms var(--easing);
}
.bi-bar-closed { background: var(--accent); }
.bi-bar-pending {
  background: #34d399;
  opacity: 0.65;
  border-radius: 3px;
}
.bi-bar-col:hover .bi-bar-closed { opacity: 0.85; }
.bi-bar-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mid);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.bi-bar-col.is-current .bi-bar-closed {
  background: var(--accent-hi);
  box-shadow: 0 0 12px rgba(255, 61, 82, 0.4);
}

.bi-bars-takeaway {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.bi-bars-takeaway strong { color: var(--ink); font-weight: 600; }
.bi-takeaway-tag {
  display: inline-block;
  margin-right: 8px;
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Beeswarm */
.bi-swarm {
  height: 260px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}
.bi-swarm-col {
  position: relative;
  border-left: 1px dashed var(--border);
}
.bi-swarm-col:first-child { border-left: none; }
.bi-swarm-col-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bi-swarm-dot-svg {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.82;
}
.bi-swarm-median {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 0;
}
.bi-swarm-median::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  border-top: 1px dashed currentColor;
  opacity: 0.55;
}
.bi-swarm-median-label {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(8, 8, 10, 0.55);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  color: currentColor;
  white-space: nowrap;
}
.bi-swarm-axis {
  position: absolute;
  left: 0;
  top: 0; bottom: 8px;
  width: 32px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mid);
  padding-right: 8px;
}
.bi-swarm-axis span { line-height: 1; }
.bi-swarm-wrap {
  position: relative;
  padding: 8px 8px 12px 40px;
}

.bi-swarm-legend {
  display: flex; flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 10.5px;
  color: var(--ink-soft);
  padding-top: 6px;
}
.bi-swarm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bi-swarm-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* Heatmap */
.bi-heat {
  display: grid;
  grid-template-columns: 36px repeat(12, 1fr);
  grid-template-rows: auto repeat(7, 18px);
  gap: 3px;
}
.bi-heat-head, .bi-heat-row-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  display: flex; align-items: center;
  justify-content: center;
}
.bi-heat-row-label { justify-content: flex-end; padding-right: 6px; }
.bi-heat-cell {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 120ms var(--easing);
}
.bi-heat-cell:hover { transform: scale(1.15); z-index: 2; }
.bi-heat-scale {
  display: flex; align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.bi-heat-grad {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(212, 38, 58, 0.35), var(--accent));
}

/* Pipeline funnel */
.bi-funnel {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 8px;
}
.bi-funnel li {
  display: grid;
  grid-template-columns: 140px 1fr 110px;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
}
@media (max-width: 540px) {
  .bi-funnel li { grid-template-columns: 1fr 90px; }
  .bi-funnel li .bi-funnel-bar { grid-column: 1 / -1; }
}
.bi-funnel-label { color: var(--ink); }
.bi-funnel-bar {
  height: 14px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bi-funnel-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 4px;
}
.bi-funnel-val {
  text-align: right;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* Campaign table */
.bi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.bi-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.bi-table tbody tr { border-bottom: 1px solid var(--border); }
.bi-table tbody tr:last-child { border-bottom: 0; }
.bi-table tbody td {
  padding: 9px 0;
  color: var(--ink);
  vertical-align: middle;
}
.bi-table thead th:nth-child(2),
.bi-table thead th:nth-child(3),
.bi-table thead th:nth-child(4),
.bi-table tbody td:nth-child(2),
.bi-table tbody td:nth-child(3),
.bi-table tbody td:nth-child(4) {
  text-align: right;
  width: 70px;
  white-space: nowrap;
}
.bi-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.bi-tag-good { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.bi-tag-bad  { background: rgba(244, 63, 94, 0.14); color: #f43f5e; }

/* AI insight readout */
.bi-insight {
  background: linear-gradient(180deg, rgba(212, 38, 58, 0.04), rgba(212, 38, 58, 0.01));
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.bi-insight-head {
  display: flex; align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.bi-insight-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.bi-insight-meta {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--ink-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bi-insight p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}
.bi-insight p strong { color: var(--ink); font-weight: 600; }
.bi-insight-actions {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}
.bi-insight-actions li {
  display: flex; align-items: center;
  gap: 9px;
}
.bi-insight-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: #34d399;
  display: inline-flex;
}
.bi-insight-icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
