/* ==========================================================================
   ZeroSubStack — Human-Crafted Editorial Design System
   Palette: Deep Obsidian + Warm Alabaster + Signal Emerald + Copper Amber
   ========================================================================== */

:root {
  --obsidian: #0b0f14;
  --obsidian-2: #111720;
  --graphite: #151c27;
  --graphite-hover: #1a2331;
  --border-dark: rgba(255, 255, 255, 0.09);
  --border-dark-strong: rgba(255, 255, 255, 0.17);
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #9aa7b8;

  --alabaster: #f8f7f4;
  --paper: #f1efe9;
  --white: #ffffff;
  --border-light: #e4e0d8;
  --border-light-strong: #cfc9be;
  --ink: #111827;
  --ink-muted: #4b5563;

  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.14);
  --amber: #d97706;
  --amber-bright: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card-light: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -12px rgba(17, 24, 39, 0.08);
  --shadow-card-light-hover: 0 2px 6px rgba(17, 24, 39, 0.06), 0 18px 36px -14px rgba(17, 24, 39, 0.14);
  --shadow-card-dark: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--obsidian);
  overflow-x: clip;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.article-container {
  width: min(860px, calc(100% - 40px));
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-emerald {
  color: var(--emerald-bright);
}
.text-amber {
  color: var(--amber-bright);
}

.ico {
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-spring), color 0.2s ease;
}

/* ==========================================================================
   HEADER & BRAND LOGO ANIMATIONS
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 15, 20, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.16);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}

.brand-mark .mark-layer-top,
.brand-mark .mark-layer-mid,
.brand-mark .mark-layer-bot,
.brand-mark .mark-slash {
  transition: transform 0.35s var(--ease-spring);
}

.brand-link:hover .brand-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}
.brand-link:hover .mark-layer-top {
  transform: translateY(-1.8px);
}
.brand-link:hover .mark-layer-bot {
  transform: translateY(1.4px);
}
.brand-link:hover .mark-slash {
  transform: translate(0.6px, -0.6px);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-saved-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-saved-btn:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover .nav-ico,
.nav-saved-btn:hover .nav-ico {
  transform: translateY(-1.5px);
  color: var(--emerald-bright);
}

.nav-link.is-active {
  color: var(--text-on-dark);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.saved-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s var(--ease-spring);
}

.saved-count-pill.has-items {
  background: var(--emerald);
  color: #fff;
}

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

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark);
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--border-dark);
  background: var(--obsidian-2);
  padding: 14px 0 20px;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  font-weight: 500;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}
.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.mobile-nav-cta {
  margin-top: 8px;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.24s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1.5px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn:hover .cta-arrow {
  transform: translateX(3.5px);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
  border-radius: 12px;
}
.btn-sm {
  padding: 9px 15px;
  font-size: 0.86rem;
}
.btn-xs {
  padding: 6px 11px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(5, 150, 105, 0.55);
}
.btn-emerald:hover {
  background: #047857;
  box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.55);
}

.btn-light-solid {
  background: #ffffff;
  color: #0b0f14;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.35);
}
.btn-light-solid:hover {
  background: #f1f5f9;
}

.btn-dark-solid {
  background: #111827;
  color: #ffffff;
}
.btn-dark-solid:hover {
  background: #1f2937;
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-on-dark);
  border-color: var(--border-dark-strong);
}
.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-light-strong);
}
.btn-outline-light:hover {
  background: var(--paper);
  border-color: #9ca3af;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark-muted);
}
.btn-ghost-dark:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   HERO BAND + FLOATING PREVIEW CARDS
   ========================================================================== */

.hero-band {
  position: relative;
  background:
    radial-gradient(ellipse 65% 55% at 72% 28%, rgba(16, 185, 129, 0.13), transparent 68%),
    radial-gradient(ellipse 50% 45% at 15% 85%, rgba(245, 158, 11, 0.07), transparent 65%),
    var(--obsidian);
  color: var(--text-on-dark);
  padding: 76px 0 46px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 35%, #000 35%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 54px;
  align-items: center;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRing 2.6s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.85rem, 5.4vw, 4.55rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--emerald-bright);
}

.hero-subhead {
  margin: 0 0 30px;
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
}

.hero-subhead strong {
  color: #f8fafc;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: #cbd5e1;
  font-size: 0.81rem;
  font-weight: 500;
}
.proof-pill .ico {
  color: var(--emerald-bright);
}

/* Hero Transparent 3D Artwork Stage + Interactive SaaS Replacement Deck */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
}

.hero-art-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 10px;
}

.hero-art-aura {
  position: absolute;
  inset: 14% 8% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.24) 0%, rgba(16, 185, 129, 0.08) 42%, transparent 72%),
    radial-gradient(circle at 72% 62%, rgba(245, 158, 11, 0.14) 0%, transparent 56%);
  filter: blur(22px);
  pointer-events: none;
}

.hero-art-ring {
  position: absolute;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.05);
  pointer-events: none;
  animation: slowSpin 42s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-art-picture {
  position: relative;
  z-index: 2;
  display: block;
}

.hero-art-img {
  width: 262px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 24px rgba(16, 185, 129, 0.12));
  animation: heroArtFloat 6.8s ease-in-out infinite;
  transition: transform 0.45s var(--ease-spring), filter 0.45s ease;
  will-change: transform;
}

.hero-art-stage:hover .hero-art-img {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 32px rgba(16, 185, 129, 0.22));
}

@keyframes heroArtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-swap-deck {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 472px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(22, 30, 42, 0.9), rgba(13, 19, 27, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.72);
  transition: transform 0.3s var(--ease-spring), border-color 0.22s ease, box-shadow 0.3s ease, background 0.22s ease;
}

.float-card-1 {
  transform: translateX(8px);
}
.float-card-2 {
  transform: translateX(-8px);
}
.float-card-3 {
  transform: translateX(4px);
}

.float-card:hover {
  transform: translateY(-3px) translateX(0) scale(1.015) !important;
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  background: linear-gradient(155deg, rgba(26, 36, 50, 0.96), rgba(16, 23, 33, 0.96));
  box-shadow: 0 20px 36px -14px rgba(0, 0, 0, 0.8);
}

.float-card:hover .float-card-arrow .ico {
  transform: translate(2.5px, -2.5px);
  color: var(--card-accent);
}

.float-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
  color: var(--card-accent);
  transition: transform 0.28s var(--ease-spring);
}

.float-card:hover .float-card-ico {
  transform: scale(1.07);
}

.float-card-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.float-card-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.float-card-top strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.float-card-vs {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.float-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.float-card-burn {
  font-size: 0.8rem;
  color: var(--amber-bright);
  text-decoration: line-through;
  text-decoration-color: rgba(245, 158, 11, 0.72);
}

.float-card-arrow-inline {
  font-size: 0.78rem;
  color: #64748b;
}

.float-card-free {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.float-card-arrow {
  margin-left: auto;
  color: var(--text-on-dark-muted);
  flex-shrink: 0;
}

.hero-scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-size: 0.78rem;
  color: #7b8899;
  transition: color 0.2s ease;
}
.hero-scroll-cue:hover {
  color: #cbd5e1;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-mouse span {
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--emerald-bright);
  animation: scrollBob 1.9s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(7px); opacity: 0.25; }
}

/* ==========================================================================
   ALTERNATING EDITORIAL BANDS
   ========================================================================== */

.section-dark {
  background: var(--obsidian-2);
  color: var(--text-on-dark);
  padding: 84px 0;
  border-bottom: 1px solid var(--border-dark);
}

.section-light {
  background: var(--alabaster);
  color: var(--ink);
  padding: 84px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.kicker-emerald {
  background: rgba(16, 185, 129, 0.13);
  color: #10b981;
}
.section-light .kicker-emerald,
.section-paper .kicker-emerald {
  background: #dcfce7;
  color: #047857;
}
.kicker-amber {
  background: #fef3c7;
  color: #b45309;
}
.sub-hero-dark .kicker-amber,
.section-dark .kicker-amber,
.companion-callout .kicker-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.kicker-slate {
  background: #e5e7eb;
  color: #374151;
}

.section-title-dark,
.section-title-light {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-title-dark { color: #ffffff; }
.section-title-light { color: var(--ink); }

.section-sub-dark {
  margin: 0;
  max-width: 620px;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
}
.section-sub-light {
  margin: 0;
  max-width: 640px;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ==========================================================================
   TOOL CARDS (DARK & LIGHT) + HOVER MICRO-INTERACTIONS
   ========================================================================== */

.tools-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 0.28s var(--ease-spring), border-color 0.22s ease, box-shadow 0.28s ease, background 0.22s ease;
}

.tool-card::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--emerald-bright), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.28s ease, transform 0.35s var(--ease-spring);
}

.tool-card:hover {
  transform: translateY(-4px);
}
.tool-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.tool-card-dark {
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-card-dark);
}
.tool-card-dark:hover {
  background: var(--graphite-hover);
  border-color: rgba(16, 185, 129, 0.34);
}

.tool-card-light {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--ink);
  box-shadow: var(--shadow-card-light);
}
.tool-card-light:hover {
  border-color: #b7d7ca;
  box-shadow: var(--shadow-card-light-hover);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cat-accent, #059669) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent, #059669) 28%, transparent);
  color: var(--cat-accent, #059669);
  flex-shrink: 0;
  transition: transform 0.32s var(--ease-spring), background 0.2s ease;
}

.tool-card:hover .tool-icon-box {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}

.tool-icon-lg {
  width: 58px;
  height: 58px;
  border-radius: 15px;
}

.tool-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tool-cat {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.tool-card-dark .tool-cat {
  color: var(--text-on-dark-muted);
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.22s var(--ease-spring);
}
.tool-card-dark .bookmark-btn {
  border-color: var(--border-dark);
  color: var(--text-on-dark-muted);
}

.bookmark-btn:hover {
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
  transform: scale(1.07);
}

.bookmark-btn.is-saved {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
  animation: bookmarkPop 0.35s var(--ease-spring);
}
.bookmark-btn.is-saved svg {
  fill: currentColor;
}

@keyframes bookmarkPop {
  0% { transform: scale(0.85); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.tool-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.tool-card-dark .tool-desc {
  color: #b0bccb;
}

.tool-replaces-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--alabaster);
  border: 1px solid var(--border-light);
  font-size: 0.81rem;
  margin-bottom: 12px;
}
.tool-card-dark .tool-replaces-row {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-dark);
}
.replaces-kicker {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  color: var(--amber);
}
.tool-card-dark .replaces-kicker {
  color: var(--amber-bright);
}
.replaces-val {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}
.tool-card-dark .tool-metrics-row {
  border-bottom-color: var(--border-dark);
}

.metric-savings {
  color: var(--emerald);
  font-weight: 700;
}
.tool-card-dark .metric-savings {
  color: #34d399;
}

.metric-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
}
.tool-card-dark .metric-time {
  color: var(--text-on-dark-muted);
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

.pill-emerald {
  background: #dcfce7;
  color: #047857;
}
.tool-card-dark .pill-emerald {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.pill-emerald-soft {
  background: #ecfdf5;
  color: #065f46;
}
.tool-card-dark .pill-emerald-soft {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.pill-sky {
  background: #e0f2fe;
  color: #0369a1;
}
.tool-card-dark .pill-sky {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.pill-slate,
.pill-muted {
  background: #f1f5f9;
  color: #334155;
}
.tool-card-dark .pill-slate,
.tool-card-dark .pill-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.pill-amber-soft,
.pill-trending {
  background: #fef3c7;
  color: #b45309;
}
.tool-card-dark .pill-amber-soft,
.tool-card-dark .pill-trending,
.saas-audit-panel .pill-amber-soft {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.pill-new {
  background: #e0f2fe;
  color: #0369a1;
}
.tool-card-dark .pill-new {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.tool-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.tool-main-cta {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.btn-icon-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-light-strong);
  color: var(--ink-muted);
  transition: all 0.22s var(--ease-spring);
}
.tool-card-dark .btn-icon-ext {
  border-color: var(--border-dark-strong);
  color: var(--text-on-dark-muted);
}
.btn-icon-ext:hover {
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
  transform: translateY(-1.5px);
}
.btn-icon-ext:hover .ico {
  transform: translate(1.5px, -1.5px);
}

/* ==========================================================================
   SAAS QUICK-SWITCH GRID
   ========================================================================== */

.saas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.saas-chip-card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.03);
  transition: transform 0.24s var(--ease-spring), border-color 0.2s ease, box-shadow 0.24s ease;
}

.saas-chip-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-card-light-hover);
}
.saas-chip-card:hover .cta-arrow {
  transform: translateX(4px);
  color: var(--emerald);
}

.saas-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.saas-chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--cat-accent, #059669) 12%, transparent);
  color: var(--cat-accent, #059669);
}

.saas-chip-burn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.saas-chip-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.saas-chip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   DIRECTORY SEARCH + VISUAL CATEGORY FILTER CONSOLE
   ========================================================================== */

.directory-section {
  background:
    radial-gradient(ellipse 65% 35% at 50% 0%, rgba(16, 185, 129, 0.09), transparent 70%),
    var(--obsidian);
}

.directory-header-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 38px;
}

.directory-header-center .section-sub-dark {
  margin: 8px auto 26px;
}

.dir-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--emerald-bright);
  margin-bottom: 14px;
}

.dir-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dir-search-ico {
  position: absolute;
  left: 18px;
  color: var(--text-on-dark-muted);
  pointer-events: none;
}

.dir-search-input {
  width: 100%;
  padding: 16px 46px 16px 48px;
  border-radius: 14px;
  border: 1px solid var(--border-dark-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dir-search-input::placeholder {
  color: #7c899b;
}

.dir-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.dir-search-clear {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.dir-quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.chips-label {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

.quick-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-chip:hover {
  border-color: var(--emerald-bright);
  color: #ffffff;
  background: rgba(16, 185, 129, 0.12);
}

.filter-console {
  background: var(--obsidian-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.filter-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.filter-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-title-wrap h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.filter-title-wrap p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}

.filter-ico-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
}

.filter-status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-counter {
  font-size: 0.86rem;
  color: #34d399;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 18px;
}
.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 10px;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 13px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}
.cat-tile:hover .cat-tile-ico .ico {
  transform: scale(1.12);
}

.cat-tile-ico {
  color: var(--cat-accent, var(--emerald-bright));
}

.cat-tile-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.cat-tile-count {
  font-size: 0.72rem;
  color: #7c899b;
}

.cat-tile-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #047857;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.22s var(--ease-spring);
}

.cat-tile.is-active {
  background: linear-gradient(145deg, #059669, #047857);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(16, 185, 129, 0.55);
}
.cat-tile.is-active .cat-tile-ico,
.cat-tile.is-active .cat-tile-count {
  color: rgba(255, 255, 255, 0.9);
}
.cat-tile.is-active .cat-tile-check {
  opacity: 1;
  transform: scale(1);
}

.filter-row-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 0.9fr;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.pill-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.filter-pill.is-active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald-bright);
  color: #a7f3d0;
  font-weight: 600;
}

.sort-saved-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dark-select {
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-dark-strong);
  background: var(--graphite);
  color: #ffffff;
  font-size: 0.82rem;
  cursor: pointer;
}

.empty-state-dark {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-dark-strong);
  background: rgba(255, 255, 255, 0.02);
}
.empty-state-dark h3 {
  margin: 0 0 8px;
  color: #fff;
}
.empty-state-dark p {
  margin: 0 0 18px;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   PLAYBOOKS & COMPANION CALLOUT
   ========================================================================== */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card-light);
  transition: transform 0.26s var(--ease-spring), border-color 0.2s ease, box-shadow 0.26s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-card-light-hover);
}
.guide-card:hover .cta-arrow {
  transform: translateX(4px);
}

.guide-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.guide-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.guide-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: var(--alabaster);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.guide-metrics span {
  display: flex;
  flex-direction: column;
}
.guide-metrics small {
  font-size: 0.68rem;
  color: var(--ink-muted);
}
.guide-metrics strong {
  font-size: 0.84rem;
  color: var(--ink);
}

.guide-read-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald);
}

.companion-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b0f14, #142228);
  color: var(--text-on-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
  flex-wrap: wrap;
}
.companion-copy {
  max-width: 640px;
}
.companion-copy h3 {
  margin: 4px 0 10px;
  font-size: 1.45rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.companion-copy p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.94rem;
}
.companion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   SUB-HEROES, DETAIL PAGES, TABLES & FAQS
   ========================================================================== */

.sub-hero-dark {
  position: relative;
  background:
    radial-gradient(ellipse 60% 60% at 85% 20%, rgba(16, 185, 129, 0.12), transparent 65%),
    var(--obsidian);
  color: var(--text-on-dark);
  padding: 44px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.sub-hero-dark .container {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  margin-bottom: 20px;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}
.breadcrumbs a:hover {
  color: #ffffff;
}
.bc-sep {
  opacity: 0.45;
  margin-left: 8px;
}

.sub-hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
}

.sub-hero-lead {
  margin: 0 0 24px;
  max-width: 680px;
  font-size: 1.04rem;
  color: var(--text-on-dark-muted);
}

.sub-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 36px;
  align-items: center;
}

.sub-hero-copy .sub-hero-lead {
  margin-bottom: 0;
}

.sub-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 224px;
  padding: 6px 0;
}

.sub-hero-art-ring {
  position: absolute;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.22);
  box-shadow: inset 0 0 36px rgba(16, 185, 129, 0.05);
  pointer-events: none;
  animation: slowSpin 42s linear infinite;
}

.sub-hero-art-img {
  width: 232px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.74)) drop-shadow(0 0 22px rgba(16, 185, 129, 0.14));
  animation: heroArtFloat 6.8s ease-in-out infinite;
  transition: transform 0.45s var(--ease-spring), filter 0.45s ease;
  will-change: transform;
}

.sub-hero-art-img-wide {
  width: 256px;
}

.sub-hero-art:hover .sub-hero-art-img {
  animation-play-state: paused;
  transform: translateY(-7px) scale(1.035);
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 30px rgba(16, 185, 129, 0.22));
}

.replace-hero-grid,
.tool-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: start;
}

.saas-audit-panel,
.tool-meta-card {
  background: var(--graphite);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.audit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.audit-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-dark);
  margin-bottom: 14px;
}
.audit-kpi-grid small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
}
.audit-kpi-grid strong {
  font-size: 1.45rem;
}

.audit-panel-note {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-on-dark-muted);
}

.audit-pain-list {
  font-size: 0.85rem;
}
.audit-pain-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
}
.audit-pain-list li {
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: var(--shadow-card-light);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.compare-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--alabaster);
  border-bottom: 1px solid var(--border-light);
}
.compare-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: middle;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: #faf9f6;
}
.table-tool-link {
  display: flex;
  flex-direction: column;
}
.table-tool-link span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.tool-detail-id,
.cat-hero-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.9rem;
}
.meta-row:last-child {
  border-bottom: none;
}
.meta-row span {
  color: var(--text-on-dark-muted);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: start;
}

.editorial-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card-light);
}
.editorial-box h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.editorial-box p {
  margin: 0;
  color: var(--ink-muted);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.audit-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card-light);
}
.audit-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.04rem;
}
.audit-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.audit-card li {
  margin-bottom: 8px;
}
.audit-card-pros {
  border-top: 3px solid var(--emerald);
}
.audit-card-pros h3 .ico {
  color: var(--emerald);
}
.audit-card-cons {
  border-top: 3px solid var(--amber);
}
.audit-card-cons h3 .ico {
  color: var(--amber);
}

.quickstart-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-muted);
}
.quickstart-steps li {
  margin-bottom: 10px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card-light);
}
.sidebar-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}
.sidebar-sub {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-saas-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--alabaster);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sidebar-saas-link:hover {
  border-color: var(--emerald);
  transform: translateX(3px);
}
.sidebar-saas-link strong {
  color: var(--emerald);
  font-size: 0.82rem;
}

.sidebar-card-dark {
  background: var(--obsidian-2);
  border-color: var(--border-dark-strong);
  color: var(--text-on-dark);
}
.sidebar-card-dark p {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  margin: 8px 0 16px;
}

.faq-section {
  margin-top: 52px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.related-strip {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.related-strip h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}
.related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-light-strong);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.related-pill:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateY(-1.5px);
}
.related-pill span {
  color: var(--amber);
  font-size: 0.78rem;
}

/* ==========================================================================
   INTERACTIVE SAAS BURN CALCULATOR
   ========================================================================== */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card-light);
}

.calc-seats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.seat-readout {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.98rem;
}

.seat-slider {
  width: 100%;
  margin: 18px 0 14px;
  accent-color: var(--emerald);
  cursor: pointer;
}

.seat-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light-strong);
  background: var(--alabaster);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.preset-btn.is-active,
.preset-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.calc-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--alabaster);
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-item:hover {
  border-color: #9ca3af;
}
.calc-item.is-checked {
  background: #ecfdf5;
  border-color: var(--emerald);
}

.calc-item-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.calc-item.is-checked .calc-item-check {
  background: var(--emerald);
  border-color: var(--emerald);
}

.calc-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.calc-item-info strong {
  font-size: 0.9rem;
  line-height: 1.2;
}
.calc-item-info small {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.calc-item-cost {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.calc-summary-sticky {
  position: sticky;
  top: 88px;
  background: var(--obsidian-2);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card-dark);
}

.summary-kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.kpi-block {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
}
.kpi-block small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}
.kpi-big {
  font-size: 1.55rem;
  font-weight: 700;
}
.kpi-mid {
  font-size: 1.2rem;
  font-weight: 700;
}
.kpi-hero {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
}
.kpi-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}
.kpi-block-highlight {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(16, 185, 129, 0.34);
}

.calc-stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calc-stack-head h3 {
  margin: 0;
  font-size: 0.96rem;
}
.calc-stack-head span {
  font-size: 0.78rem;
  color: #34d399;
}

.calc-swap-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-swap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.83rem;
}
.calc-swap-list a {
  color: #34d399;
  font-weight: 700;
}
.calc-swap-list a:hover {
  text-decoration: underline;
}

.calc-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   INTERACTIVE STACK FINDER WIZARD
   ========================================================================== */

.wizard-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card-light);
}

.wizard-progress {
  margin-bottom: 26px;
}
.wizard-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--paper);
  overflow: hidden;
  margin-bottom: 8px;
}
.wizard-progress-bar span {
  display: block;
  height: 100%;
  background: var(--emerald);
  transition: width 0.35s var(--ease-spring);
}
.wizard-steps-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.wizard-pane h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.wizard-hint {
  margin: 0 0 22px;
  color: var(--ink-muted);
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wizard-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  background: var(--alabaster);
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
}
.wizard-opt:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}
.wizard-opt.is-selected {
  background: #ecfdf5;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}
.wizard-opt-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--emerald);
}
.wizard-opt strong {
  font-size: 0.96rem;
  color: var(--ink);
}
.wizard-opt span {
  font-size: 0.83rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.wizard-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.wizard-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.wizard-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.wizard-rec-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--alabaster);
}
.wizard-rec-card h3 {
  margin: 6px 0;
  font-size: 1.05rem;
}
.wizard-rec-card p {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   PROSE PLAYBOOKS
   ========================================================================== */

.article-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 26px;
}
.article-metric-strip div {
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
}
.article-metric-strip small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-on-dark-muted);
}
.article-metric-strip strong {
  font-size: 1.15rem;
  color: #34d399;
}

.prose-article {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card-light);
}
.prose-block {
  margin-bottom: 28px;
}
.prose-block:last-child {
  margin-bottom: 0;
}
.prose-article h2 {
  margin: 0 0 12px;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}
.prose-article p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 1rem;
  line-height: 1.72;
}
.prose-article a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: underline;
}
.prose-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #374151;
}
.prose-list li {
  margin-bottom: 10px;
  line-height: 1.65;
}

/* ==========================================================================
   FOOTER & SAVED DRAWER & TOAST
   ========================================================================== */

.site-footer {
  background: var(--obsidian);
  color: var(--text-on-dark);
  padding: 68px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-lead {
  margin: 14px 0 18px;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  max-width: 340px;
}

.footer-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #a7f3d0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--emerald-bright);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #7b8899;
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom-links a:hover {
  color: #fff;
}

/* Saved Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
}

.saved-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--obsidian-2);
  color: var(--text-on-dark);
  border-left: 1px solid var(--border-dark-strong);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.55);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border-dark);
}
.drawer-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.drawer-sub {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-dark-strong);
  background: transparent;
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-savings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(16, 185, 129, 0.1);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}
.drawer-savings-label {
  display: block;
  font-size: 0.74rem;
  color: #a7f3d0;
}
.drawer-savings-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #34d399;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--graphite);
  border: 1px solid var(--border-dark);
}
.drawer-item a {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.drawer-item strong {
  font-size: 0.92rem;
  color: #fff;
}
.drawer-item small {
  font-size: 0.77rem;
  color: var(--text-on-dark-muted);
}

.drawer-remove {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.drawer-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.drawer-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-pill {
  padding: 10px 16px;
  border-radius: 11px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  animation: toastIn 0.25s var(--ease-spring);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-inner,
  .sub-hero-split,
  .replace-hero-grid,
  .tool-detail-header,
  .detail-body-grid,
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .sub-hero-art {
    min-height: 180px;
    padding: 8px 0 0;
  }
  .sub-hero-art-img {
    width: 196px;
  }
  .sub-hero-art-img-wide {
    width: 214px;
  }
  .sub-hero-art-ring {
    width: 204px;
    height: 204px;
  }
  .float-card-1,
  .float-card-2,
  .float-card-3 {
    transform: none;
    animation: none;
  }
  .tools-grid-3,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .saas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .filter-row-bottom {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .saas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wizard-options,
  .pros-cons-grid,
  .calc-checklist,
  .wizard-rec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }
  .hero-band {
    padding: 46px 0 32px;
  }
  .hero-art-img {
    width: 212px;
  }
  .hero-art-ring {
    width: 232px;
    height: 232px;
  }
  .section-dark,
  .section-light,
  .section-paper {
    padding: 54px 0;
  }
  .tools-grid-3,
  .guides-grid,
  .saas-grid,
  .footer-top,
  .article-metric-strip {
    grid-template-columns: 1fr;
  }
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-console,
  .prose-article,
  .wizard-shell {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
