/* Workbench journey layout, icon sidebar + scroll traversal */

.landing-body {
  overflow-x: hidden;
  scroll-behavior: auto;
}

.wb-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgb(var(--border));
  background: rgb(var(--background));
}

@media (min-width: 768px) {
  .wb-topbar {
    height: 4rem;
    padding: 0 1.25rem;
  }
}

.wb-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.wb-topbar-meta {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgb(var(--text-secondary));
}

@media (min-width: 900px) {
  .wb-topbar-meta { display: flex; }
}

.wb-topbar-hint {
  font-weight: 600;
  color: rgb(var(--primary));
}

.wb-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wb-topbar .btn-primary {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

.landing-app {
  display: flex;
  min-height: calc(100vh - 3.5rem);
}

@media (min-width: 768px) {
  .landing-app { min-height: calc(100vh - 4rem); }
}

/* Icon sidebar, matches workbench w-16 */
.journey-sidebar {
  display: none;
  width: 4rem;
  flex-shrink: 0;
  border-right: 1px solid rgb(var(--border));
  background: rgb(var(--background-secondary));
  flex-direction: column;
  align-items: center;
  padding: 1rem 0 0.75rem;
  position: sticky;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  z-index: 40;
}

@media (min-width: 900px) {
  .journey-sidebar {
    display: flex;
  }
}

@media (min-width: 768px) {
  .journey-sidebar {
    top: 4rem;
    height: calc(100vh - 4rem);
  }
}

.journey-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  width: 100%;
  position: relative;
  padding: 0 0.5rem;
}

.journey-trail {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0;
  height: 3rem;
  background: rgb(var(--primary));
  border-radius: var(--radius);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1), height 0.35s ease;
  z-index: 0;
  opacity: 0.12;
}

.journey-nav-btn {
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: rgb(var(--text-secondary));
  cursor: pointer;
  transition: color 0.2s, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s;
}

.journey-nav-btn:hover {
  background: rgba(var(--primary), 0.08);
  color: rgb(var(--text-primary));
}

.journey-nav-btn.active {
  background: rgb(var(--primary));
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(var(--primary), 0.35);
}

.journey-nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-nav-btn .journey-nav-label {
  position: absolute;
  left: calc(100% + 0.65rem);
  padding: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius);
  background: rgb(var(--text-primary));
  color: rgb(var(--background));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.journey-nav-btn.active .journey-nav-label,
.journey-nav-btn:hover .journey-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.wb-tour-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(var(--primary), 0.1);
  color: rgb(var(--primary));
}

.wb-topbar-step {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgb(var(--text-tertiary));
  padding-left: 0.5rem;
  border-left: 1px solid rgb(var(--border));
}

/* Main scroll canvas, workbench grey field */
.journey-main {
  flex: 1;
  min-width: 0;
  background: rgb(var(--background-tertiary));
}

.journey-panel,
.wb-view {
  min-height: 100vh;
  scroll-margin-top: 3.75rem;
  padding: 5rem 1rem 5.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .journey-panel,
  .wb-view {
    scroll-margin-top: 4.25rem;
    padding: 5.5rem 1.5rem 6rem;
  }
}

.wb-view-inner {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.wb-crumb {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: rgb(var(--text-secondary));
}

.wb-crumb span {
  margin: 0 0.35rem;
  opacity: 0.45;
}

/* Workbench window chrome */
.wb-window {
  background: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wb-window--wide {
  max-width: 72rem;
}

.wb-tabstrip {
  display: flex;
  align-items: stretch;
  height: 2.5rem;
  border-bottom: 1px solid rgb(var(--border));
  background: rgb(var(--background));
  overflow-x: auto;
}

.wb-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  border-right: 1px solid rgb(var(--border));
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background));
  font-family: inherit;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    opacity 0.28s ease,
    border-color 0.28s ease;
  outline: none;
}

.wb-tab:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(var(--primary), 0.35);
  z-index: 1;
}

.wb-tabstrip--scroll {
  overflow-x: auto;
}

.wb-tab--active,
.wb-tab[data-state='active'] {
  background: rgb(var(--background-tertiary));
  color: rgb(var(--text-primary));
  border-bottom: 2px solid rgb(var(--primary));
  margin-bottom: -1px;
  font-weight: 600;
  opacity: 1;
}

.wb-tab--ghost,
.wb-tab[data-state='inactive'] {
  opacity: 0.55;
}

.wb-tab--ghost:hover,
.wb-tab[data-state='inactive']:hover {
  opacity: 0.85;
  background: rgb(var(--background-secondary));
}

.wb-tab-panel-radix[data-state='active'] {
  animation: wb-tab-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wb-tab-panel-radix[hidden],
.wb-tab-panel-radix[data-state='inactive'] {
  display: none !important;
}

.wb-tab-panel-radix[data-state='active'] {
  display: block;
}

.wb-radix-tabs {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wb-window-body {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
}

.wb-tab-panel {
  display: none;
}

.wb-window-body > .wb-tab-panel.wb-tab-panel--active {
  display: block;
  animation: wb-tab-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wb-tab-panel--radix,
.wb-tab-panel-host > .wb-tab-panel {
  display: block;
}

@keyframes wb-tab-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-window-body > .wb-tab-panel.wb-tab-panel--active {
    animation: none;
  }
}

.wb-offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wb-offer-item {
  padding: 1rem 1.1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

.wb-offer-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(var(--primary));
}

.wb-offer-item p {
  margin: 0;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  line-height: 1.55;
}

.wb-offer-item a {
  color: rgb(var(--primary));
  font-weight: 600;
}

.wb-split-cards {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .wb-split-cards { grid-template-columns: 1fr 1fr; }
}

.wb-mini-card {
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

.wb-mini-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}

.wb-mini-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgb(var(--text-secondary));
}

.wb-copy-block {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(var(--text-secondary));
}

.wb-steps--compact .wb-step {
  padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
  .wb-window-body { padding: 2rem 2rem 2.25rem; }
}

.wb-window-body--hero {
  position: relative;
}

.wb-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--primary));
}

.wb-panel-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgb(var(--text-primary));
}

.wb-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(var(--text-secondary));
}

.wb-bullet-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(var(--text-secondary));
}

.wb-bullet-list li + li {
  margin-top: 0.65rem;
}

.wb-bullet-list strong {
  color: rgb(var(--text-primary));
}

.wb-aside {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: rgb(var(--text-tertiary));
}

.wb-aside a {
  color: rgb(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.wb-aside a:hover { text-decoration: underline; }

.wb-sticky-note {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  max-width: 11rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  border-radius: var(--radius);
  background: #fff9c4;
  color: #5c4a00;
  border: 1px solid #f0e68c;
  transform: rotate(3deg);
  box-shadow: 0 6px 16px rgba(35, 40, 48, 0.12);
  z-index: 2;
}

.dark .wb-sticky-note {
  background: #422006;
  color: #fde68a;
  border-color: #854d0e;
}

.wb-sticky-note strong { display: block; margin-bottom: 0.2rem; }

.wb-hero-grid {
  display: grid;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .wb-hero-grid {
    grid-template-columns: 1fr min(22rem, 42%);
    gap: 2rem;
    align-items: start;
  }
}

.wb-hero-copy .hero-headline {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.wb-install-panel {
  margin: 0;
  width: 100%;
}

.wb-view .hero-install-card.wb-install-panel--overview {
  text-align: left;
}

/* Steps, workbench list */
.wb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wb-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1), border-color 0.2s;
}

.journey-panel--active .wb-step {
  animation: panel-in 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.journey-panel--active .wb-step:nth-child(2) { animation-delay: 0.06s; }
.journey-panel--active .wb-step:nth-child(3) { animation-delay: 0.12s; }

.wb-step:hover {
  border-color: rgba(var(--primary), 0.35);
  transform: translateX(4px);
}

.wb-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
  background: rgb(var(--primary));
  color: #fff;
}

.wb-step h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.wb-step p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgb(var(--text-secondary));
}

/* Blocks explorer */
.block-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.block-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  background: rgb(var(--background));
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--text-secondary));
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.block-chip-icon {
  font-size: 0.9rem;
  opacity: 0.85;
}

.block-chip:hover {
  border-color: rgb(var(--primary));
  color: rgb(var(--primary));
}

.block-chip.active {
  background: rgb(var(--primary));
  border-color: rgb(var(--primary));
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

.block-detail {
  padding: 1.25rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  min-height: 7rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.block-detail--pop {
  transform: scale(0.98);
}

.block-detail-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.block-detail-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.9;
}

.block-detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.block-detail-desc {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  max-width: 36rem;
}

.block-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Why tab, before / after comparison */
.wb-compare {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 720px) {
  .wb-compare {
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
  }
}

.wb-compare-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--border));
  background: rgb(var(--background-secondary));
}

.wb-compare-card--before {
  border-style: dashed;
  border-color: rgba(var(--text-tertiary), 0.45);
  background: rgb(var(--background));
}

.wb-compare-card--after {
  border-color: rgba(var(--primary), 0.45);
  background: linear-gradient(
    165deg,
    rgba(var(--primary), 0.1) 0%,
    rgba(var(--primary), 0.02) 48%,
    rgb(var(--background)) 100%
  );
  box-shadow: var(--shadow-md);
  position: relative;
}

.wb-compare-card--after::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgb(var(--primary));
}

.wb-compare-card-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(var(--border));
}

.wb-compare-card--after .wb-compare-card-head {
  border-bottom-color: rgba(var(--primary), 0.2);
}

.wb-compare-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.wb-compare-label--muted {
  background: rgba(var(--text-tertiary), 0.12);
  color: rgb(var(--text-secondary));
}

.wb-compare-label--brand {
  background: rgba(var(--primary), 0.14);
  color: rgb(var(--primary));
}

.wb-compare-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgb(var(--text-primary));
}

.wb-compare-card--before .wb-compare-title {
  color: rgb(var(--text-secondary));
}

.wb-compare-card--after .wb-compare-title {
  color: rgb(var(--primary));
}

.wb-compare-sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--text-secondary));
}

.wb-compare-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.wb-compare-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(var(--text-secondary));
}

.wb-compare-card--before .wb-compare-item {
  background: rgba(var(--text-tertiary), 0.06);
  border: 1px solid rgba(var(--border), 0.8);
}

.wb-compare-card--after .wb-compare-item {
  background: rgb(var(--background));
  border: 1px solid rgba(var(--primary), 0.18);
  color: rgb(var(--text-primary));
}

.wb-compare-item code {
  font-size: 0.75em;
}

.wb-compare-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  margin-top: 0.05rem;
}

.wb-compare-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.wb-compare-icon--pain {
  background: rgba(201, 42, 42, 0.1);
  color: #c92a2a;
}

.wb-compare-icon--win {
  background: rgba(var(--primary), 0.12);
  color: rgb(var(--primary));
}

.wb-compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
}

@media (min-width: 720px) {
  .wb-compare-divider {
    padding: 0 0.65rem;
    align-self: center;
  }
}

.wb-compare-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--text-secondary));
  background: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.dark .wb-compare-card--before {
  border-color: rgba(var(--text-tertiary), 0.35);
}

.dark .wb-compare-icon--pain {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.journey-panel--active .panel-whimsy {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.journey-panel--active .wb-hero-copy > *,
.journey-panel--active .wb-panel-title,
.journey-panel--active .wb-lead {
  animation: panel-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.journey-panel--active .wb-window {
  animation: window-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes window-in {
  from {
    opacity: 0.92;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-whimsy {
  display: inline-block;
  margin-left: 0.35rem;
  opacity: 0.35;
  transform: translateY(4px) rotate(-8deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Mobile dock */
.journey-dock {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.35rem;
  justify-content: space-around;
  border-top: 1px solid rgb(var(--border));
  background: rgba(var(--background), 0.96);
  backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
  .journey-dock { display: none; }
}

.journey-dock .journey-nav-btn {
  width: 2.75rem;
  height: 2.75rem;
}

.journey-dock .journey-nav-btn .journey-nav-label {
  display: none;
}

body.landing-body {
  padding-bottom: 4.5rem;
}

@media (min-width: 900px) {
  body.landing-body { padding-bottom: 0; }
}

/* Hide legacy header / seams when journey mode */
.landing-body .header-glass,
.landing-body .section-seam {
  display: none !important;
}

.landing-body .section,
.landing-body .hero-section {
  padding: 0;
  border: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Primitive catalog, workbench-style browser */
.catalog-explorer {
  margin-top: 1rem;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 720px) {
  .catalog-toolbar {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .catalog-search-wrap {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 18rem;
  }
}

.catalog-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background));
  color: rgb(var(--text-primary));
}

.catalog-search:focus {
  outline: 2px solid rgba(var(--primary), 0.35);
  outline-offset: 1px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.catalog-filter {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--background-secondary));
  color: rgb(var(--text-secondary));
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.catalog-filter:hover {
  border-color: rgba(var(--primary), 0.35);
  color: rgb(var(--text-primary));
}

.catalog-filter--active {
  border-color: rgb(var(--primary));
  background: rgba(var(--primary), 0.12);
  color: rgb(var(--primary));
}

.catalog-count {
  font-size: 0.75rem;
  color: rgb(var(--text-secondary));
  margin: 0 0 0.75rem;
}

.catalog-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalog-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-card:hover {
  border-color: rgba(var(--primary), 0.4);
  box-shadow: var(--shadow-sm);
}

.catalog-card-mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  background: rgba(var(--primary), 0.12);
  color: rgb(var(--primary));
}

.catalog-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: rgb(var(--text-primary));
}

.catalog-card-desc {
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0 0 0.5rem;
  color: rgb(var(--text-secondary));
}

.catalog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.catalog-card-more {
  font-size: 0.6875rem;
  color: rgb(var(--text-secondary));
  align-self: center;
  padding-left: 0.15rem;
}

.catalog-empty {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  margin: 0;
  padding: 1rem;
  text-align: center;
  border: 1px dashed rgb(var(--border));
  border-radius: var(--radius);
}

/* Connect panel, last workbench card (matches other wb-window panels) */
#tour-end .wb-window .wb-tabstrip .wb-tab:only-child {
  border-right: none;
  cursor: default;
}

#tour-end .wb-lead {
  margin-bottom: 1.25rem;
}

.wb-footer-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

@media (min-width: 640px) {
  .wb-footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .wb-footer-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }
}

.wb-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.wb-footer-brand-link .brand-name {
  color: rgb(var(--primary));
}

.wb-footer-tagline {
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 22rem;
}

.wb-footer-social {
  display: flex;
  gap: 0.65rem;
}

.wb-footer-social a {
  color: rgb(var(--text-secondary));
  transition: color 0.15s;
}

.wb-footer-social a:hover {
  color: rgb(var(--primary));
}

.wb-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.wb-footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: rgb(var(--text-secondary));
}

.wb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wb-footer-links li + li {
  margin-top: 0.4rem;
}

.wb-footer-link {
  font-size: 0.8125rem;
  color: rgb(var(--text-secondary));
  text-decoration: none;
}

.wb-footer-link:hover {
  color: rgb(var(--primary));
}

.wb-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  font-size: 0.75rem;
  color: rgb(var(--text-secondary));
}

.wb-footer-bar p {
  margin: 0;
}

.wb-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wb-footer-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(34, 197, 94);
}

.landing-body .site-footer {
  display: none !important;
}

/* Legal / company popups (#about, #contact, …) */
.legal-modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.legal-modal-root--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.55);
  border: none;
  cursor: pointer;
}

.legal-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  outline: none;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(var(--border));
  flex-shrink: 0;
}

.legal-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

.legal-modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  color: rgb(var(--text-secondary));
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.legal-modal-close:hover {
  color: rgb(var(--text-primary));
  border-color: rgb(var(--primary));
}

.legal-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem 1.5rem;
}

.legal-modal-panel {
  display: none;
}

.legal-modal-panel--active {
  display: block;
}

.legal-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(var(--primary));
}

.legal-prose h3:first-child {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgb(var(--text-secondary));
}

.legal-prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(var(--text-secondary));
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose li strong {
  color: rgb(var(--text-primary));
}

.legal-prose a {
  color: rgb(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.legal-contact-card {
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

.legal-contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

.legal-contact-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(var(--text-secondary));
}

body.legal-modal-open {
  overflow: hidden;
}

.wb-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wb-accordion-item {
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
  overflow: hidden;
}

.wb-accordion-item[open] {
  border-color: rgba(var(--primary), 0.35);
}

.wb-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.wb-icon-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(var(--text-secondary));
}

.wb-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: rgba(var(--primary), 0.1);
  color: rgb(var(--primary));
  flex-shrink: 0;
}

.wb-icon-badge svg {
  width: 1.15rem;
  height: 1.15rem;
}

.wb-icon-badge--sm {
  width: 1.85rem;
  height: 1.85rem;
}

.wb-icon-badge--sm svg {
  width: 1rem;
  height: 1rem;
}

.wb-accordion-leading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.wb-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
}

.wb-accordion-summary::-webkit-details-marker { display: none; }

.wb-accordion-summary::after {
  content: '+';
  font-size: 1.125rem;
  font-weight: 400;
  color: rgb(var(--text-secondary));
  flex-shrink: 0;
}

.wb-accordion-item[open] > .wb-accordion-summary::after {
  content: '−';
}

.wb-accordion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.wb-action-link {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(var(--primary), 0.1);
  color: rgb(var(--primary));
  text-decoration: none;
  white-space: nowrap;
}

.wb-action-link:hover {
  background: rgb(var(--primary));
  color: #fff;
}

.wb-accordion-body {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  line-height: 1.55;
}

.wb-accordion-body p { margin: 0; }

/* Screenshots & diagrams, stacked full-width cards (no side-by-side rows) */
.wb-media-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  width: 100%;
}

.wb-media-stack > .wb-screenshot,
.wb-media-stack > .wb-diagram {
  margin: 0;
  width: 100%;
  max-width: none;
}

.wb-diagram {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

.wb-diagram img {
  display: block;
  width: 100%;
  height: auto;
}

/* Why Ductape, redesigned tabs */
.wb-window-body--why .wb-tab-panel {
  padding-bottom: 2rem;
}

.why-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.75rem 0 1.25rem;
}

.why-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--primary), 0.1);
  color: rgb(var(--primary));
}

.why-compare {
  margin-bottom: 1rem;
}

.wb-diagram--flow {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.wb-diagram--flow img {
  margin: 0 auto;
}

.wb-diagram--compact {
  margin: 0;
}

.wb-diagram-caption {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(var(--text-secondary));
  text-align: center;
}


.why-callouts {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .why-callouts {
    grid-template-columns: 1fr 1fr;
  }

  .why-callouts--two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .why-callouts--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wb-subheading {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

.why-callout h3 {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

.why-callout--lead {
  margin-top: 1.25rem;
}

.why-callout-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(var(--text-secondary));
}

.why-tab-cta {
  margin: 1rem 0 0;
}

.why-tagline {
  margin-top: 1.25rem;
  text-align: center;
}

.why-tab-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(var(--border));
}

.why-tab-footer-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.wb-bullet-list--compact {
  margin: 0;
  padding-left: 1.15rem;
}

.wb-bullet-list--compact li {
  margin-bottom: 0.35rem;
}

.why-callout {
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background: rgb(var(--background-secondary));
}

.why-callout h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(var(--primary));
}

.why-callout p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(var(--text-secondary));
}

@media (max-width: 640px) {
  .wb-accordion-summary {
    flex-wrap: wrap;
  }
  .wb-accordion-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 0.35rem;
  }
}

.landing-body .compare-cta {
  display: none;
}

.landing-body .wb-view .showcase-layout {
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .wb-sticky-note { display: none; }
}

/* Workbench screenshots, replace SVG mocks with PNG/WebP in public/screenshots/ */
.wb-screenshot {
  margin: 1.25rem 0;
  width: 100%;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(var(--background));
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

.wb-media-stack .wb-screenshot {
  margin: 0;
}

.wb-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.5rem;
  box-sizing: border-box;
  background: rgb(var(--background-secondary));
}

/* Light/dark workbench PNGs (html.light / html.dark from theme toggle) */
.wb-screenshot--themed .wb-screenshot-theme {
  padding: 0;
  background: rgb(var(--background-secondary));
}

.wb-screenshot--themed .wb-screenshot-theme--dark {
  display: none;
}

html.dark .wb-screenshot--themed .wb-screenshot-theme--light {
  display: none;
}

html.dark .wb-screenshot--themed .wb-screenshot-theme--dark {
  display: block;
}

.wb-screenshot--diagram img {
  padding: 0.65rem;
}

.wb-screenshot-caption {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(var(--text-secondary));
  border-top: 1px solid rgb(var(--border));
  background: rgb(var(--background));
}

/* B&W language logos */
.lang-tab-icon {
  filter: grayscale(1) brightness(0);
  opacity: 0.5;
}

.dark .lang-tab:not(.active) .lang-tab-icon {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.55;
}

.lang-tab.active .lang-tab-icon {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 1;
}
