/* ─── Design tokens ────────────────────────────────────────
   Matches mondaydigital.com: Urbanist font, light theme,
   spacing scale: 0.44 / 0.67 / 1 / 1.5 / 2.25 / 3.38 / 5.06 rem
   ────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #ffffff;
  --bg-soft:      #f5f7fa;
  --bg-dark:      #0b1827;
  --text:         #0c0c0c;
  --text-inv:     #ffffff;
  --muted:        #5a6473;
  --muted-inv:    #a8bac9;
  --accent:       #0c0c0c;
  --accent-hover: #32373c;
  --teal:         #0d7490;
  --teal-deep:    #0b5170;
  --lime:         #c8f135;
  --line:         rgba(0, 0, 0, 0.1);
  --line-inv:     rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.09);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.11);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);

  /* Radius */
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Spacing (mondaydigital.com scale) */
  --sp-1: 0.44rem;
  --sp-2: 0.67rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.38rem;
  --sp-7: 5.06rem;

  /* Layout */
  --container: 1320px;
}

/* ─── Reset & base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

main[id],
section[id] {
  scroll-margin-top: 110px;
}

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

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

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ─── Layout ───────────────────────────────────────────── */
.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 12px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 400;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-inv);
  font-weight: 700;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 var(--sp-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ─── Site header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header.dark {
  background: rgba(11, 24, 39, 0.94);
  border-bottom-color: var(--line-inv);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 80px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 150ms ease, opacity 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a.is-current {
  color: var(--text);
}

.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(11, 24, 39, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(11, 24, 39, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  position: relative;
  z-index: 140;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(11, 81, 112, 0.22);
  box-shadow: 0 14px 30px rgba(11, 24, 39, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #10233a;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease, background 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  background: #10233a;
  border-color: #10233a;
  box-shadow: 0 14px 30px rgba(16, 35, 58, 0.22);
}

.nav-toggle[aria-expanded="true"] span {
  background: #ffffff;
}

body.nav-open {
  overflow: hidden;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 33, 0.54);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 100;
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ─── Buttons ──────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-family: "Urbanist", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(13, 116, 144, 0.28);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
  color: var(--text-inv);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
}

.button-secondary:hover {
  border-color: var(--text);
}

.button-sm {
  height: 40px;
  padding: 0 1.2rem;
  font-size: 0.88rem;
}

.text-link {
  font-weight: 700;
  color: var(--teal);
  transition: opacity 150ms ease;
}

.text-link:hover {
  opacity: 0.75;
}

/* ─── Pills / tags ─────────────────────────────────────── */
.pill-row,
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 20px
}

.pill-row span,
.card-pills span,
.version-pill {
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.version-pill {
  padding: 0.25rem 0.6rem;
}

.cs-pill {
  display: inline-flex;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Sections ─────────────────────────────────────────── */
.content-section {
  padding: var(--sp-7) 0;
}

.content-section.alt {
  background: var(--bg-soft);
}

.section-heading {
  margin-bottom: var(--sp-5);
}

.section-heading.compact {
  margin-bottom: var(--sp-4);
}

.section-heading h2 {
  margin-top: var(--sp-2);
}

/* ─── Hero (plugin detail page) ────────────────────────── */
.hero {
  padding: var(--sp-7) 0 var(--sp-6);
  background: var(--bg-dark);
  color: var(--text-inv);
}

.hero .eyebrow {
  color: var(--lime);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: var(--sp-5);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.15), transparent 70%);
  pointer-events: none;
}

.hero-copy h1 {
  color: var(--text-inv);
  max-width: 14ch;
  margin: var(--sp-2) 0 var(--sp-4);
}

.hero-lead {
  color: var(--muted-inv);
  line-height: 1.72;
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: var(--sp-4);
}

.hero-copy .pill-row span {
  /* background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1); */
  color: var(--text-inv);
}

.hero-copy .button-secondary {
  color: var(--text-inv);
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-copy .button-primary {
  background: var(--lime);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(200, 241, 53, 0.2);
}

.hero-copy .button-primary:hover {
  background: #d7f86a;
  box-shadow: 0 16px 34px rgba(200, 241, 53, 0.26);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.requirements-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.requirements-strip div {
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.requirements-strip span {
  display: block;
  color: var(--muted-inv);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements-strip strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.hero-metrics div {
  min-width: 150px;
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics dt {
  color: var(--muted-inv);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-metrics dd {
  margin: 0;
  font-weight: 700;
  color: var(--text-inv);
}

/* Hero card (aside) */
.hero-card {
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.plugin-badge {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--lime);
  color: #0c1a0a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.plugin-preview {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.plugin-icon {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(200, 241, 53, 0.2), rgba(13, 116, 144, 0.18));
  border: 1px solid rgba(200, 241, 53, 0.2);
}

.plugin-icon span,
.plugin-icon span::before,
.plugin-icon span::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.plugin-icon span {
  width: 24px;
  height: 24px;
  border: 2px solid var(--lime);
}

.plugin-icon span::before {
  width: 38px;
  height: 12px;
  border: 2px solid rgba(200, 241, 53, 0.6);
}

.plugin-icon span::after {
  width: 12px;
  height: 38px;
  border: 2px solid rgba(200, 241, 53, 0.6);
}

.plugin-preview-label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-inv);
}

.plugin-preview-meta {
  margin: 0.25rem 0 0;
  color: var(--muted-inv);
  font-size: 0.88rem;
}

.plugin-preview-copy {
  color: var(--muted-inv);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.signal-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted-inv);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ─── Lab hero (landing page) ──────────────────────────── */
.lab-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) 0 var(--sp-6);
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 241, 53, 0.18), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(13, 116, 144, 0.22), transparent 24%),
    linear-gradient(135deg, #081320 0%, #0b1827 42%, #10314a 100%);
  color: var(--text-inv);
}

.lab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
  pointer-events: none;
}

.lab-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: -150px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(200, 241, 53, 0.16), rgba(13, 116, 144, 0.08));
  transform: rotate(18deg);
  filter: blur(6px);
  pointer-events: none;
}

.lab-hero .eyebrow {
  color: var(--lime);
}

.lab-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(4px);
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: var(--sp-5);
  align-items: center;
}

.lab-hero-inner h1 {
  color: var(--text-inv);
  max-width: none;
  margin: var(--sp-2) 0 var(--sp-4);
}

.lab-hero-inner .hero-lead {
  max-width: 100%;
}

.lab-hero-inner .pill-row {
  margin-top: var(--sp-4);
}

.lab-hero-inner .pill-row span {
  background: transparent;
  border: none;
  color: var(--text-inv);
  /* padding: 0.3rem 0.8rem; */
  font-weight: 500;
}

.lab-hero-inner .hero-actions {
  margin-top: var(--sp-5);
}

.lab-hero-visual {
  display: grid;
  gap: var(--sp-4);
}

.visual-orbit {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(200, 241, 53, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.visual-orbit-core,
.visual-orbit-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.visual-orbit-core {
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, var(--lime), rgba(200, 241, 53, 0.25));
  box-shadow: 0 0 40px rgba(200, 241, 53, 0.28);
}

.visual-orbit-ring {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.visual-orbit-ring-a {
  width: 190px;
  height: 190px;
}

.visual-orbit-ring-b {
  width: 290px;
  height: 290px;
}

.visual-stat-stack {
  display: grid;
  gap: var(--sp-3);
}

.visual-stat-card {
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-stat-card strong,
.visual-stat-card span {
  display: block;
}

.visual-stat-card strong {
  color: var(--text-inv);
  font-size: 1.1rem;
}

.visual-stat-card span {
  color: var(--muted-inv);
  margin-top: 0.25rem;
}

.stats-strip {
  margin-top: -1px;
  padding: var(--sp-4) 0;
  background: #0d2236;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.stats-grid article {
  padding: var(--sp-4);
  background: rgba(255, 255, 255, 0.02);
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--text-inv);
  font-size: 1.2rem;
  font-weight: 800;
}

.stats-grid span {
  color: var(--muted-inv);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.lab-hero-inner .button-secondary {
  color: var(--text-inv);
  border-color: rgba(255, 255, 255, 0.25);
}

.lab-hero-inner .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.lab-hero-inner .button-primary {
  background: var(--lime);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(200, 241, 53, 0.2);
}

.lab-hero-inner .button-primary:hover {
  background: #d7f86a;
  box-shadow: 0 16px 34px rgba(200, 241, 53, 0.26);
}

/* ─── Plugins listing page hero ────────────────────────── */
.plugins-hero {
  padding: var(--sp-6) 0 var(--sp-5);
  background: var(--bg-dark);
  color: var(--text-inv);
}

.plugins-hero .eyebrow {
  color: var(--lime);
}

.plugins-hero h1 {
  color: var(--text-inv);
  margin: var(--sp-2) 0 var(--sp-4);
}

.plugins-hero .hero-lead {
  max-width: 66ch;
}

.plugins-hero-inner {
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.listing-toolbar {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.plugins-hero .pill-row span {
  background: transparent;
  border: none;
  color: var(--text-inv);
  /* padding: 0.3rem 0.8rem; */
  font-weight: 500;
}

.listing-note {
  color: var(--muted-inv);
  max-width: 70ch;
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.directory-control {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 240px);
}

.directory-control span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.directory-control select {
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.directory-control input {
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.directory-control-wide {
  flex: 1 1 320px;
}

.directory-summary {
  margin-bottom: var(--sp-4);
  color: var(--muted);
}

.directory-extra {
  margin-top: var(--sp-4);
}

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-inv);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(200, 241, 53, 0.8);
  transition: color 150ms ease;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

/* ─── Two-column layout ────────────────────────────────── */
.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  align-items: start;
}

/* ─── Highlight panel ──────────────────────────────────── */
.highlight-panel {
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.highlight-panel h3 {
  margin-bottom: var(--sp-3);
}

.check-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.resource-list a {
  color: var(--teal-deep);
  font-weight: 700;
}

/* ─── Feature grid ─────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.feature-grid article {
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.feature-grid article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon-grid article,
.related-card {
  position: relative;
  padding-top: 4.25rem;
}

.icon-grid article::before,
.related-card::before {
  content: "";
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(200, 241, 53, 0.75), rgba(200, 241, 53, 0) 55%),
    linear-gradient(145deg, rgba(13, 116, 144, 0.18), rgba(11, 24, 39, 0.08));
  border: 1px solid rgba(13, 116, 144, 0.18);
}

.feature-grid article strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.feature-grid p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ─── Data grid ────────────────────────────────────────── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-grid span {
  padding: var(--sp-4) var(--sp-4);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Spec table ───────────────────────────────────────── */
.spec-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 36%;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-soft);
}

.spec-table td {
  font-weight: 500;
}

/* ─── Pricing panel ────────────────────────────────────── */
.pricing-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.pricing-panel h2 {
  margin-top: var(--sp-2);
}

.pricing-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(200, 241, 53, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f7fafc);
  box-shadow: var(--shadow-sm);
}

.cta-panel h2 {
  margin: var(--sp-2) 0 var(--sp-3);
}

.cta-panel p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ─── Screenshots grid ─────────────────────────────────── */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.shot-card {
  padding: var(--sp-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.shot-image-wrap {
  margin-bottom: var(--sp-3);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9eff4;
}

.shot-image {
  width: 100%;
  height: auto;
}

.shot-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -10% auto;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 116, 144, 0.06), rgba(200, 241, 53, 0.05));
  transform: rotate(18deg);
}

.shot-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-inv);
  font-weight: 800;
  font-size: 0.88rem;
}

.shot-card h3 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.shot-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}

.related-card .text-link {
  display: inline-flex;
  margin-top: var(--sp-3);
}

/* ─── Changelog timeline ───────────────────────────────── */
.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.timeline-item {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.timeline-item ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  line-height: 1.65;
}

/* ─── Docs steps ───────────────────────────────────────── */
.steps {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  counter-reset: step;
}

.steps li {
  padding-left: 2.5rem;
  position: relative;
  counter-increment: step;
  line-height: 1.65;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inv);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: var(--sp-3);
}

.faq-item {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: "Urbanist", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
}

.faq-trigger::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
}

.faq-trigger[aria-expanded="true"]::after {
  content: "−";
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.faq-panel p {
  margin-top: var(--sp-3);
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Category sections (landing page) ─────────────────── */
.lab-category {
  padding: var(--sp-7) 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.category-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.category-title h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

/* ─── Plugin listing cards ─────────────────────────────── */
.plugin-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-4);
}

.plugin-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
  text-decoration: none;
  color: inherit;
}

.plugin-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(13, 116, 144, 0.35);
}

.plugin-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.plugin-card-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.plugin-card-ver {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.plugin-card-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  flex: 1;
}

.plugin-card-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

.plugin-card-summary div {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.plugin-card-summary dt,
.plugin-card-summary dd {
  margin: 0;
}

.plugin-card-summary dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plugin-card-summary dd {
  margin-top: 0.3rem;
  font-weight: 700;
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ─── Coming-soon cards ─────────────────────────────────── */
.cs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
  opacity: 0.35;
  pointer-events: none;
}

.cs-card {
  height: 160px;
  border-radius: var(--radius-xl);
  border: 1.5px dashed var(--line);
  background: var(--bg-soft);
}

/* ─── Directory strip (plugin detail header bar) ────────── */
.directory-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
}

.directory-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.directory-title-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #08131f 0%, #0b1827 100%);
  color: var(--text-inv);
  padding: var(--sp-7) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.footer-grid h2 {
  color: var(--text-inv);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 var(--sp-4);
  line-height: 1.12;
}

.footer-logo {
  width: auto;
  max-width: 200px;
  height: auto;
  margin-bottom: var(--sp-3);
}

.footer-logo-link {
  display: inline-flex;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: var(--sp-5);
}

.footer-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: flex-start;
}

.footer-actions .button-primary {
  background: var(--lime);
  color: var(--text);
  box-shadow: 0 12px 26px rgba(200, 241, 53, 0.18);
}

.footer-actions .button-primary:hover {
  background: #e1f76d;
}

.footer-actions .button-secondary {
  color: var(--text-inv);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Contact card */
.contact-card {
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-inv);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
  flex-direction: column;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list strong::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  vertical-align: middle;
}

.contact-list a,
.contact-list span {
  color: var(--text-inv);
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.contact-list a:hover {
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.footer-links a:hover {
  background: rgba(216, 244, 92, 0.16);
  color: var(--text-inv);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0 var(--sp-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  /* margin-top: var(--sp-5); */
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(11, 24, 39, 0.92);
  color: var(--text-inv);
  box-shadow: var(--shadow-md);
}

.trust-grid {
  background: transparent;
  border: 0;
  gap: var(--sp-3);
}

.trust-grid span {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-section,
  .lab-category,
  .site-footer {
    padding-top: var(--sp-6);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-copy,
  .lab-hero-inner,
  .plugin-card,
  .highlight-panel,
  .pricing-panel,
  .contact-card {
    padding: var(--sp-4);
  }

  .hero-copy h1,
  .lab-hero-inner h1,
  .plugins-hero h1 {
    max-width: none;
  }

  .lab-hero-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .requirements-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 380px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100dvh;
    padding: 5.5rem 1rem 1.25rem;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.16);
    z-index: 130;
    transform: translateX(104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
  }

  .site-header.dark .site-nav {
    background: linear-gradient(180deg, #10233a 0%, #0b1827 100%);
    border-left-color: var(--line-inv);
  }

  body.nav-open .site-nav,
  .site-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav::before {
    content: "Menu";
    display: block;
    margin-bottom: 0.65rem;
    padding: 0 0.85rem;
    color: var(--teal-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .site-nav a {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(11, 24, 39, 0.03);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(13, 116, 144, 0.08);
    color: var(--teal-deep);
  }

  .site-nav a.is-current::after {
    display: none;
  }

  /* Hide in-page section anchors (Overview, Features, Specs, FAQ) from the
     slide-out nav on mobile. They clutter the menu and are redundant on small
     screens where the page scrolls as one continuous flow.
     Contact (#contact) is kept because it links to the footer. */
  .site-nav a[href^="#"]:not([href="#contact"]) {
    display: none;
  }

  .site-header.dark .site-nav::before {
    color: var(--lime);
  }

  .site-header.dark .site-nav a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-inv);
  }

  .site-header.dark .site-nav a:hover,
  .site-header.dark .site-nav a:focus-visible {
    background: rgba(225, 255, 161, 0.1);
    color: var(--lime);
  }

  .two-column,
  .pricing-panel,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .category-header,
  .directory-card,
  .plugin-card-footer,
  .directory-controls {
    align-items: flex-start;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    padding-bottom: var(--sp-6);
  }

  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .plugin-card-summary {
    grid-template-columns: 1fr;
  }

  .directory-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .content-section,
  .lab-category {
    padding: var(--sp-6) 0;
  }

  .hero,
  .lab-hero,
  .plugins-hero {
    padding: var(--sp-6) 0;
  }

  .hero-grid {
    gap: var(--sp-4);
  }

  .hero-copy,
  .hero-card,
  .lab-hero-inner,
  .plugin-card,
  .highlight-panel,
  .pricing-panel,
  .contact-card {
    border-radius: 18px;
  }

  .plugin-listing-grid {
    grid-template-columns: 1fr;
  }

  .plugin-card-header {
    align-items: flex-start;
  }

  .breadcrumb {
    font-size: 0.82rem;
    gap: 0.4rem;
  }
}

@media (max-width: 640px) {
  :root {
    --sp-7: 3.5rem;
    --sp-6: 2.5rem;
  }

  /* .brand-copy {
    display: none;
  } */

  .nav-toggle {
    width: 50px;
    height: 50px;
  }

  .site-nav {
    width: min(92vw, 340px);
    padding: 5rem 0.85rem 1rem;
    border-radius: 20px 0 0 20px;
  }

  .site-nav::before {
    padding: 0 0.7rem;
  }

  .site-nav a {
    padding: 0.8rem 0.85rem;
    font-size: 0.96rem;
  }

  .hero-copy {
    padding: var(--sp-5);
  }

  .hero-actions,
  .footer-actions,
  .cta-actions {
    flex-direction: column;
  }

  .directory-control {
    min-width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-metrics div {
    width: 100%;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
  }

  .spec-table th {
    padding-bottom: var(--sp-1);
    border-bottom: none;
  }

  .spec-table td {
    padding-top: 0;
  }

  .plugin-listing-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .requirements-strip {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: var(--sp-4);
  }

  .plugin-card-footer .text-link {
    width: 100%;
  }

  .footer-bottom {
    text-align: center;
  }
}
