/*
Theme Name:   TPWSim
Theme URI:    https://tpwsim.org/
Description:  Custom theme for TPWSim. Child of Twenty Twenty-Five. Faithfully renders the React design.
Author:       TPWSim
Template:     twentytwentyfive
Version:      1.2.2
Text Domain:  tpwsim
*/

/* ========== Base ========== */
:root {
  --bg:        #0b0b12;
  --bg-2:      #10101a;
  --card:      #15151f;
  --card-2:    #1a1a26;
  --border:    #25252f;
  --border-2:  #2f2f3c;
  --text:      #e8e8f0;
  --text-2:    #b0b0c0;
  --muted:     #7a7a8c;
  --accent:    #7c7cf0;
  --accent-soft: #7c7cf033;
  --magenta:   #c084fc;
  --aqua:      #6cb6ff;
  --warn:      #f472b6;
  --max:       1280px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow-1:  0 1px 0 #ffffff08 inset, 0 0 0 1px var(--border);
  --shadow-2:  0 20px 50px -20px #000000aa, 0 1px 0 #ffffff08 inset, 0 0 0 1px var(--border);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}
html[data-density="compact"] { font-size: 15px; }

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a1a4d40 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 5%, #1a1a4d33 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.15;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header.header--translucent {
  background: #0b0b12cc;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.header--bordered {
  background: var(--bg);
  border-bottom: 1px solid var(--border-2);
}
.site-header.header--bordered::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
}
.nav-link:hover { color: var(--text); background: #ffffff05; }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-link--btn svg path { stroke: currentColor; }

.nav-dropdown { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 60px -20px #000000cc;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.is-open .nav-menu { display: flex; }
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
}
.nav-menu-item:hover { background: var(--accent-soft); color: var(--text); }
.nav-menu-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghost-btn {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
}
.ghost-btn:hover { color: var(--text); background: #ffffff05; }

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 10px 14px 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px -8px var(--accent-soft), 0 0 0 1px #ffffff15 inset;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.buy-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: #00000033;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 500;
}

/* ========== Hero ========== */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto auto;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.hero-title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.hero--split .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero--split .hero-title { max-width: 16ch; }
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 10px 30px -10px var(--accent), 0 0 0 1px #ffffff15 inset;
  transition: filter .12s, transform .12s;
}
.primary-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary-btn--full { width: 100%; justify-content: center; }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  background: var(--card);
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.secondary-btn:hover { border-color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
}
.hero-stats span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero--magazine { padding-bottom: 0; }
.hero--magazine .hero-title { max-width: 22ch; margin-bottom: 16px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 40px;
}
.hero-meta a { color: var(--accent); }

.hero--minimal { padding: 90px 0 50px; }
.hero--minimal .hero-title { font-size: clamp(38px, 4.5vw, 68px); }

/* ========== Sim Preview (hero art) ========== */
.sim-preview {
  background: linear-gradient(180deg, #0d0d18, #08080f);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px #000000cc, 0 0 0 1px #ffffff05 inset;
}
.sim-preview.is-wide { margin-top: 8px; }
.sim-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #0a0a14;
}
.sim-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.sim-dot:nth-child(1) { background: #ff5f57; opacity: .7; }
.sim-dot:nth-child(2) { background: #ffbd2e; opacity: .7; }
.sim-dot:nth-child(3) { background: #28c940; opacity: .7; }
.sim-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-2);
  font-family: "JetBrains Mono", monospace;
}
.sim-stage {
  aspect-ratio: 16/10;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, #0d0d18 0%, #050509 100%);
}
.is-wide .sim-stage { aspect-ratio: 21/9; }

.sim-globe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #6cb6ff 0%, #2b6fa0 22%, #1a3550 45%, #0a1626 70%, #04080f 100%);
  box-shadow:
    0 0 60px var(--accent-soft),
    inset -30px -40px 80px #00000080;
  overflow: hidden;
}
.sim-globe::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 60% 40%, #a3d56b55 0%, transparent 35%),
    radial-gradient(ellipse at 30% 70%, #d9844455 0%, transparent 28%),
    radial-gradient(ellipse at 75% 65%, #6cb6ff55 0%, transparent 30%);
  mix-blend-mode: screen;
}
.sim-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 14%, #ffffff08 14% 14.5%),
    repeating-linear-gradient(90deg, transparent 0 14%, #ffffff08 14% 14.5%);
  border-radius: 50%;
  pointer-events: none;
}
.sim-pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffffaa;
  box-shadow: 0 0 12px currentColor;
}
.sim-pin--old { color: #ffe14a; background: #ffd028; top: 14%; left: 58%; }
.sim-pin--new { color: var(--accent); background: var(--accent); top: 47%; left: 62%; }
.sim-label {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.sim-label--old { top: 12%; left: 63%; }
.sim-label--new { top: 49%; left: 66%; }

.sim-scrubber {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sim-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  color: white;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-progress {
  flex: 1;
  height: 4px;
  background: #ffffff10;
  border-radius: 2px;
  overflow: hidden;
}
.sim-progress-fill {
  width: 36%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.sim-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-2);
}

/* ========== Main grid ========== */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 80px;
}
.main-grid[data-with-sidebar="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 600;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  transition: color .12s, border-color .12s, background .12s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

/* ========== Thumb ========== */
.thumb {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a14;
  border: 1px solid var(--border);
  isolation: isolate;
}
.thumb-globe {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -10px -16px 30px #00000088, 0 0 30px #00000044;
}
.thumb-ring {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}
.thumb-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 12%, #ffffff05 12% 12.4%),
    repeating-linear-gradient(90deg, transparent 0 12%, #ffffff05 12% 12.4%);
  pointer-events: none;
}
.thumb-coords {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #ffffff80;
  letter-spacing: 0.04em;
}

/* ========== Featured ========== */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 300px at 100% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.featured-media {
  position: relative;
}
.featured-stamp {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 2;
}
.featured-body {
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.featured-title {
  font-size: 28px;
  margin: 12px 0 14px;
  text-wrap: balance;
}
.featured-excerpt {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin-top: 18px;
  align-self: flex-start;
}

.post-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  flex-wrap: wrap;
}
.post-author { color: var(--text-2); font-weight: 500; }
.post-sep { color: var(--border-2); }
.avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6cb6ff);
  margin-right: 4px;
}

/* ========== Post cards ========== */
.post-roll {
  display: grid;
  gap: 28px;
}
.post-roll--grid {
  grid-template-columns: repeat(2, 1fr);
}
.main-grid[data-with-sidebar="false"] .post-roll--grid {
  grid-template-columns: repeat(3, 1fr);
}
.post-roll--list { grid-template-columns: 1fr; }
.post-roll--mag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s;
}
.post:hover { transform: translateY(-2px); }
.post:hover .post-title { color: var(--accent); }
.post-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 4px 0 0;
  font-weight: 600;
  transition: color .12s;
  text-wrap: balance;
}
.post-excerpt {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post--grid .post-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post--list {
  flex-direction: row;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.post--list:first-child { border-top: 0; padding-top: 0; }
.post--list .thumb { width: 240px; flex-shrink: 0; }
.post--list .post-body { display: flex; flex-direction: column; gap: 10px; }
.post--list .post-title { font-size: 22px; }

/* ========== Pagination ========== */
.pagination {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-nums {
  display: flex;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.page-nums a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-2);
}
.page-nums a.is-active { background: var(--accent-soft); color: var(--text); }
.page-nums span { padding: 6px 4px; color: var(--muted); }

/* ========== Sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.widget-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.widget h4 {
  font-size: 18px;
  margin: 0 0 8px;
  text-wrap: balance;
}
.widget p {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 0 16px;
}

.widget--buy {
  background:
    radial-gradient(400px 200px at 0% 0%, var(--accent-soft), transparent 70%),
    var(--card);
  border-color: var(--border-2);
  position: relative;
}
.widget--buy::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--magenta), var(--accent));
  border-radius: 14px 14px 0 0;
}
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.check {
  display: inline-block;
  width: 18px; height: 18px;
  text-align: center;
  line-height: 18px;
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.widget-fine {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: background .12s, color .12s;
}
.cat-list a:hover { background: var(--accent-soft); color: var(--text); }
.cat-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.popular-list { list-style: none; padding: 0; margin: 0; counter-reset: pop; display: flex; flex-direction: column; gap: 14px; }
.popular-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.popular-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  padding-top: 2px;
}
.popular-list a {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}
.popular-list a:hover { color: var(--text); }

.widget--newsletter {
  background:
    linear-gradient(135deg, #1a1a2e 0%, var(--card) 50%),
    var(--card);
  border: 1px solid var(--border-2);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
}
.newsletter-form button:hover { filter: brightness(1.08); }

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.footer-brand small { color: var(--muted); font-size: 12px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0;
}
.footer-cols a:hover { color: var(--accent); }
.footer-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border-2); }
.breadcrumb span:not(:last-child) { color: var(--border-2); }
.breadcrumb > span:last-child { color: var(--text); }

/* ========== Article (Blog Detail) ========== */
.article-hero {
  padding: 56px 0 36px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0 50% auto auto;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  transform: translate(20%, -30%);
}
.article-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.article-title {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: 22px;
}
.article-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 64ch;
  text-wrap: pretty;
  margin: 0 0 36px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6cb6ff);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}
.byline-info { display: flex; flex-direction: column; line-height: 1.2; }
.byline-info strong { font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; }
.byline-info small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.byline-meta {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-cover-wrap {
  padding-top: 36px;
}
.article-cover-wrap .thumb { border-radius: 18px; }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.article-body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}
.article-body .lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.article-body h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
}
.article-body p { margin: 0 0 18px; text-wrap: pretty; }
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .12s;
}
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--magenta);
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout--code { background: var(--card-2); }
.callout-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.callout small {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.callout--info {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.callout--info strong { color: var(--text); }

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.param-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.param-table tr:last-child td { border-bottom: 0; }
.param-table td:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  width: 200px;
}
.param-table td:nth-child(2) {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text);
}

.code-block {
  background: #08080f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
}
.code-block code { background: none; border: 0; padding: 0; color: inherit; }
.code-block--sm { font-size: 12px; padding: 14px 16px; }

.article-figure {
  margin: 36px 0;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.article-figure figcaption strong {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-right: 6px;
}

.article-quote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-radius: 0 12px 12px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  font-style: italic;
  font-weight: 500;
  text-wrap: balance;
}
.article-quote cite {
  display: block;
  margin-top: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  color: var(--text-2);
  font-style: normal;
  font-weight: 400;
}

.article-rule {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.author-card {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6cb6ff);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}
.author-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.author-body strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.author-body p {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text-2);
}
.author-links {
  display: flex;
  gap: 16px;
}
.author-links a {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* Article sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
.widget--toc {
  background: transparent;
  border: 0;
  padding: 0;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-left: 1px solid var(--border);
}
.toc-list li {
  position: relative;
  counter-increment: toc;
}
.toc-list a {
  display: block;
  padding: 8px 0 8px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4;
  transition: color .12s;
}
.toc-list li.is-active a { color: var(--accent); }
.toc-list li.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--accent);
}
.toc-list a:hover { color: var(--text); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.share-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.share-btn:hover { border-color: var(--accent); color: var(--text); }

/* Related strip */
.related-strip {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-2);
}
.related-strip .post-roll--grid.post-roll--three {
  grid-template-columns: repeat(3, 1fr);
}

/* ========== Wiki ========== */
.wiki-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.wiki-nav {
  position: sticky;
  top: 96px;
  align-self: flex-start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-right: 8px;
}
.wiki-nav-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.wiki-nav-head .widget-eyebrow { margin-bottom: 12px; }
.wiki-search {
  position: relative;
  display: flex;
  align-items: center;
}
.wiki-search svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.wiki-search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 38px 8px 34px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.wiki-search input::placeholder { color: var(--muted); }
.wiki-search input:focus { border-color: var(--accent); }
.kbd {
  position: absolute;
  right: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: 4px;
}

.wiki-nav-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.wiki-nav-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

.wiki-nav-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wiki-nav-section { display: flex; flex-direction: column; }
.wiki-nav-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 0 6px;
  font-weight: 500;
}
.wiki-nav-section-head .chev {
  color: var(--muted);
  transition: transform .12s;
}
.wiki-nav-section-head .chev.is-open { transform: rotate(90deg); }
.wiki-nav-items {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
}
.wiki-nav-items a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4;
  margin-left: 12px;
}
.wiki-nav-items a:hover { background: #ffffff05; color: var(--text); }
.wiki-nav-items a.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}

.wiki-content {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
.wiki-header { margin-bottom: 36px; }
.wiki-header h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.wiki-summary {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
  margin: 0 0 18px;
}
.wiki-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-2);
}
.pill--ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.pill--mono { font-family: "JetBrains Mono", monospace; text-transform: none; letter-spacing: 0.02em; }

.wiki-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 48px 0 14px;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}
.wiki-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.wiki-content p { margin: 0 0 16px; text-wrap: pretty; }
.wiki-content ul { padding-left: 22px; margin: 0 0 22px; }
.wiki-content li { margin-bottom: 6px; }
.wiki-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}
.wiki-content a:hover { border-bottom-color: var(--accent); }
.wiki-content code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--magenta);
}

.param-block {
  margin: 24px 0 28px;
}
.param-table--wiki { font-size: 13.5px; }
.param-table--wiki th {
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 16px 10px 0;
  border-bottom: 1px solid var(--border-2);
}
.param-table--wiki th:first-child { width: 30%; }
.param-table--wiki th:last-child { width: 40%; }
.param-table--wiki td {
  padding: 10px 16px 10px 0;
  vertical-align: top;
}
.param-table--wiki td:nth-child(2) { color: var(--text); width: 30%; }
.param-table--wiki td:nth-child(3) { color: var(--muted); width: 40%; font-family: inherit; font-size: 13.5px; }

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 28px;
}
.example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.example-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.example-card p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 12px;
}
.copy-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  padding: 4px 10px;
  border-radius: 6px;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

.see-also-list { list-style: none; padding: 0; margin: 0; }
.see-also-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.see-also-list li:last-child { border-bottom: 0; }

.wiki-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.wiki-foot-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wiki-foot-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .12s;
}
.wiki-foot-link:hover { border-color: var(--accent); }
.wiki-foot-link small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wiki-foot-link strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.wiki-foot-link--right { text-align: right; }

.wiki-toc {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
.wiki-toc .widget-eyebrow { margin-bottom: 10px; }
.wiki-toc-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.wiki-toc-foot small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.wiki-edit-link {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

/* ========== Buy page ========== */
.buy-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.buy-hero::before {
  content: "";
  position: absolute;
  inset: -30% 30% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.buy-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.buy-hero-copy .hero-title { max-width: 16ch; margin-top: 22px; }

.buy-hero-pricing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.price-tag {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.price-tag strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-tag small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 6px;
}

.primary-btn--xl {
  padding: 16px 26px;
  font-size: 16px;
  border-radius: 12px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.trust-row .check { color: var(--accent); margin-right: 2px; }
.trust-sep {
  width: 1px; height: 12px;
  background: var(--border-2);
  margin: 0 4px;
}

/* Logo strip */
.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.logo-strip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
}
.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 40px;
}
.logo-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 500;
  opacity: .75;
  transition: opacity .15s;
}
.logo-chip:hover { opacity: 1; }

/* Sections */
.features-section,
.pricing-section,
.testimonials-section,
.specs-section,
.faq-section,
.final-cta {
  padding: 88px 0;
  position: relative;
}
.pricing-section, .specs-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  margin: 8px 0 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color .12s, transform .12s;
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card--featured {
  background:
    radial-gradient(600px 200px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--card-2);
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px -20px #00000080;
}
.price-card-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.price-card-head h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin: 4px 0 0;
}
.price-amount {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.price-amount strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-amount small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.price-list .check {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}
.secondary-btn--full {
  width: 100%;
  justify-content: center;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin: 0;
}
.testimonial blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6cb6ff);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}
.testimonial figcaption strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}
.testimonial figcaption small {
  font-size: 12px;
  color: var(--muted);
}

/* Specs */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.specs-table {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.specs-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.specs-row:last-child { border-bottom: 0; }
.specs-row > div:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  align-self: center;
}
.specs-row > div:nth-child(2) { color: var(--text-2); }
.specs-row > div:nth-child(3) { color: var(--text); font-weight: 500; }
.specs-row--head {
  background: var(--card-2);
}
.specs-row--head > div {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted) !important;
  font-weight: 500 !important;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  padding: 22px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.faq-chev {
  color: var(--muted);
  transition: transform .15s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  padding: 0 36px 24px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* Final CTA */
.final-cta {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(800px 300px at 50% 100%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.final-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.final-cta-actions small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ========== Category / Tag archive ========== */
.cat-hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  --cat-accent: var(--accent);
  --cat-accent-mid: var(--magenta);
}
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  --cat-accent: var(--accent);
  --cat-accent-mid: var(--magenta);
}
.cat-hero::before {
  content: "";
  position: absolute;
  inset: -40% 50% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-accent) 22%, transparent), transparent 65%);
  pointer-events: none;
  transform: translate(15%, -10%);
}
.cat-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.cat-hero-copy { min-width: 0; }
.cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cat-accent);
  background: color-mix(in srgb, var(--cat-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 35%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 600;
}
.cat-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cat-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cat-accent);
}
.cat-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}
.cat-description {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 58ch;
  text-wrap: pretty;
  margin: 0 0 28px;
}
.cat-description code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--cat-accent);
}
.cat-stats {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.cat-stats div { display: flex; flex-direction: column; gap: 4px; }
.cat-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cat-stats span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 420px;
}
.cat-search svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.cat-search input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px 12px 38px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.cat-search input::placeholder { color: var(--muted); }
.cat-search input:focus { border-color: var(--cat-accent); }

.cat-hero-art {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-hero-glyph {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset -30px -40px 80px #00000080,
    0 0 80px color-mix(in srgb, var(--cat-accent) 30%, transparent),
    0 0 0 1px #ffffff10;
  position: relative;
}
.cat-hero-glyph::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 30%, transparent);
  transform: rotate(-18deg);
}
.cat-hero-glyph::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 14%, #ffffff10 14% 14.5%),
    repeating-linear-gradient(90deg, transparent 0 14%, #ffffff10 14% 14.5%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Tag variant: simpler, full-width copy */
.cat-hero--tag .cat-hero-art { display: none; }
.cat-hero--tag .cat-title::before {
  content: "#";
  color: var(--cat-accent);
  margin-right: 4px;
}

/* Sticky category filter strip just below the hero */
.cat-strip {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.cat-strip .container {
  padding-top: 14px;
  padding-bottom: 14px;
}
.cat-strip .filter-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.cat-strip .filter-row::-webkit-scrollbar { display: none; }
.cat-strip .chip { white-space: nowrap; }

/* Result count bar above the post list */
.cat-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.cat-result-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.cat-result-count strong {
  color: var(--text);
  font-weight: 500;
}
.cat-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cat-sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23999' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.cat-sort-select:focus { outline: none; border-color: var(--accent); }

/* Lead post in category — wider than grid card */
.cat-lead {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cat-lead .thumb { border-radius: 14px; }
.cat-lead-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.cat-lead-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 4px 0 0;
  text-wrap: balance;
}
.cat-lead-title a { color: inherit; transition: color .12s; }
.cat-lead-title a:hover { color: var(--accent); }
.cat-lead-excerpt {
  font-size: 15px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Make post titles inside post cards link styled */
.post-title a { color: inherit; transition: color .12s; }
.post-title a:hover,
.post:hover .post-title a { color: var(--accent); }
.thumb-link { display: block; }

/* Page button disabled state for pagination */
.page-btn.is-disabled {
  opacity: .4;
  pointer-events: none;
}

/* Empty state */
.cat-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--card);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
}
.cat-empty-glyph {
  color: var(--muted);
  margin-bottom: 18px;
}
.cat-empty h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin: 0 0 10px;
}
.cat-empty p {
  color: var(--text-2);
  font-size: 14px;
  max-width: 46ch;
  margin: 0 auto 22px;
  text-wrap: pretty;
}
.cat-empty code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--magenta);
}

/* ========== Blog index additions ========== */
.blog-hero .cat-hero-art {
  position: relative;
}
.blog-hero-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero-orbit::before,
.blog-hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  inset: 5%;
  transform: rotate(-15deg);
}
.blog-hero-orbit::after {
  inset: -8%;
  border-style: solid;
  border-color: color-mix(in srgb, var(--magenta) 20%, transparent);
  transform: rotate(20deg);
}

.cat-lead-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-stamp--inline {
  position: static;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 600;
}
.post-cat-link {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .12s;
}
.post-cat-link:hover { border-bottom-color: var(--accent); }

/* Dropdown additions: "All posts" emphasized, plus a separator */
.nav-menu-item--all {
  font-weight: 600;
  color: var(--text);
}
.nav-menu-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ========== Community page ========== */
.community-hero {
  padding-bottom: 48px;
}
.community-description {
  max-width: 64ch;
}
.community-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 64ch;
}
.community-disclaimer svg { color: var(--accent); flex-shrink: 0; }

.callouts-section {
  padding: 64px 0 24px;
}
.callouts-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.callouts-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* Each row alternates image-left / image-right */
.callout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.callout-row.is-reversed .callout-media { order: 2; }
.callout-row.is-reversed .callout-body  { order: 1; }

/* Image placeholder */
.callout-media {
  position: relative;
  min-width: 0;
}
.callout-index {
  position: absolute;
  top: -10px; left: -10px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-2);
  z-index: 2;
}
.callout-img {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  isolation: isolate;
  box-shadow: 0 30px 70px -30px #000000aa;
}
.callout-img-orb {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 65%; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset -20px -30px 60px #00000088, 0 0 60px #00000055;
}
.callout-img-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 10%, #ffffff05 10% 10.5%),
    repeating-linear-gradient(90deg, transparent 0 10%, #ffffff05 10% 10.5%);
  pointer-events: none;
}
.callout-img-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, #ffffff04 14px 15px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.callout-img-caption {
  position: absolute;
  bottom: 14px; left: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #ffffffb0;
  letter-spacing: 0.04em;
  background: #00000060;
  padding: 4px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}
.callout-img-corner {
  position: absolute;
  top: 14px; right: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #ffffff80;
  background: #00000060;
  padding: 4px 9px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* Body */
.callout-body {
  min-width: 0;
}
.callout-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 14px 0 12px;
  text-wrap: balance;
}
.callout-tagline {
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 18px;
  text-wrap: pretty;
  font-weight: 500;
}
.callout-body-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 26px;
  text-wrap: pretty;
  max-width: 56ch;
}

.callout-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.callout-website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border-2);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  transition: border-color .12s, background .12s, transform .12s;
}
.callout-website:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.callout-website svg:first-child { color: var(--accent); }
.callout-website .ext { color: var(--muted); margin-left: 4px; }

.callout-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.callout-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  transition: color .12s, border-color .12s, background .12s;
}
.callout-social:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.callout-social svg { opacity: .8; }
.callout-social:hover svg { opacity: 1; color: var(--accent); }

/* ----- "More to follow" bullet list ----- */
.more-section {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.more-intro {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.more-intro .section-title { text-align: left; }
.more-intro .hero-sub { font-size: 15px; max-width: 38ch; }

.more-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.more-list li {
  border-bottom: 1px solid var(--border);
}
.more-list li:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.more-list li:nth-last-child(-n+2) { border-bottom: 0; }
.more-list li:last-child:nth-child(odd) {
  /* Lone trailing item — restore its bottom border so the grid closes cleanly */
  grid-column: 1 / -1;
  border-right: 0;
}

.more-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: background .12s;
}
.more-link:hover {
  background: var(--accent-soft);
}
.more-link:hover .more-arrow { color: var(--accent); transform: translate(2px, -2px); }
.more-arrow {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
  transition: color .12s, transform .12s;
  margin-top: -2px;
}
.more-link-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.more-link-body strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.more-link-body small {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  text-wrap: pretty;
}

/* Header search button */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-2);
  transition: color .12s, background .12s;
}
.header-search-btn:hover {
  color: var(--text);
  background: #ffffff05;
}

/* ========== Search page ========== */
.search-hero { padding-bottom: 48px; }
.search-hero .cat-title { max-width: 24ch; }
.search-query {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 6px 6px 6px 44px;
  transition: border-color .12s;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-bar-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  color: var(--text);
  font-size: 16px;
  padding: 10px 6px;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar-clear {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 10px;
  cursor: pointer;
  transition: color .12s;
}
.search-bar-clear:hover { color: var(--text); }
.search-bar-submit {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: filter .12s;
}
.search-bar-submit:hover { filter: brightness(1.08); }

.search-active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.search-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.search-filter-x {
  color: var(--accent);
  font-weight: 600;
}

.search-main { padding-top: 32px; }

.search-prompt {
  text-align: center;
  padding: 60px 24px;
  background: var(--card);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
}
.search-prompt h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  margin: 0 0 10px;
}
.search-prompt p {
  color: var(--text-2);
  margin: 0 0 18px;
}
.search-pop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.search-pop-chips--stack {
  justify-content: flex-start;
}

.search-hits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.search-hit {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.search-hit-thumb { display: block; }
.search-hit-thumb .thumb { border-radius: 10px; }
.search-hit-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.search-hit-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-hit-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .12s;
}
.search-hit-cat:hover { border-bottom-color: var(--accent); }
.search-hit-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.search-hit-title a { color: var(--text); transition: color .12s; }
.search-hit-title a:hover { color: var(--accent); }
.search-hit-excerpt {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.search-hit-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-top: 2px;
}
.search-hit-href {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  opacity: .65;
}

mark {
  background: var(--accent-soft);
  color: var(--text);
  padding: 1px 3px;
  border-radius: 3px;
  border-bottom: 1px solid var(--accent);
}

.search-facets .facet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.search-facets .facet-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: background .12s, color .12s;
}
.search-facets .facet-list a:hover {
  background: #ffffff05;
  color: var(--text);
}
.search-facets .facet-list a.is-active {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}
.search-facets .facet-list a.is-active .cat-count { color: var(--accent); }

.search-empty {
  text-align: center;
  padding: 64px 28px;
  background: var(--card);
  border: 1px dashed var(--border-2);
  border-radius: 16px;
}
.search-empty-glyph {
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.search-empty h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.search-empty p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 48ch;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.search-empty code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--magenta);
}
.search-empty a { color: var(--accent); }
.search-empty-suggest {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.search-empty-suggest .widget-eyebrow { margin-bottom: 12px; }

/* ========== Responsive ========== */
@media (max-width: 1240px) {
  .wiki-shell {
    grid-template-columns: 240px minmax(0, 1fr) 220px;
    gap: 32px;
  }
}
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar .widget { flex: 1 1 240px; }
  .article-grid { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-sidebar > * { flex: 1 1 240px; }
  .wiki-shell { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .wiki-toc { display: none; }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card--featured { transform: none; }
  .related-strip .post-roll--grid.post-roll--three { grid-template-columns: repeat(2, 1fr); }
  .cat-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cat-hero-art { max-width: 320px; margin: 0 auto; }
  .cat-lead { grid-template-columns: 1fr; gap: 20px; }
  .callout-row { grid-template-columns: 1fr; gap: 28px; }
  .callout-row.is-reversed .callout-media,
  .callout-row.is-reversed .callout-body { order: initial; }
  .more-grid { grid-template-columns: 1fr; gap: 32px; }
  .more-intro { position: static; }
  .callouts-list { gap: 64px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 16px; height: 64px; }
  .primary-nav { display: none; }
  .header-cta .ghost-btn { display: none; }
  .hero--split .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured { grid-template-columns: 1fr; }
  .post-roll--grid,
  .main-grid[data-with-sidebar="false"] .post-roll--grid { grid-template-columns: 1fr; }
  .post--list { flex-direction: column; }
  .post--list .thumb { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .article-title { font-size: 32px; }
  .byline-meta { margin-left: 0; width: 100%; }
  .article-quote { font-size: 18px; padding: 22px 24px; }
  .author-card { flex-direction: column; }

  .wiki-shell { grid-template-columns: 1fr; padding: 24px 20px 60px; }
  .wiki-nav { position: static; max-height: none; padding-right: 0; }
  .example-grid { grid-template-columns: 1fr; }
  .wiki-foot-nav { grid-template-columns: 1fr; }

  .buy-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .final-cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .features-section, .pricing-section, .testimonials-section,
  .specs-section, .faq-section, .final-cta { padding: 56px 0; }
  .related-strip .post-roll--grid.post-roll--three { grid-template-columns: 1fr; }
  .cat-strip { top: 64px; }
  .cat-result-bar { flex-direction: column; align-items: flex-start; }
  .callouts-section { padding: 40px 0 0; }
  .callouts-list { gap: 48px; }
  .more-section { padding: 56px 0; }
  .more-list { grid-template-columns: 1fr; }
  .more-list li:nth-child(odd) { border-right: 0; }
  .search-hit { grid-template-columns: 1fr; gap: 14px; }
  .search-hit-thumb { max-width: 220px; }
  .search-bar { padding: 4px 4px 4px 40px; }
  .search-bar input { font-size: 15px; }
  .search-hit-href { display: none; }
}
