/* Variable Visualizer website styles — zero framework, high performance */
/* Typography scale inspired by modern brutalism: bold display, generous whitespace */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --accent: #ff6a3d;
  --accent-2: #6a5cff;
  --surface: #ffffff;
  --grid: rgba(10, 10, 10, 0.06);
  /* Neutral section wash for airy slabs (distinct from CTA accent washes) */
  --promo-bg-3: color-mix(in oklab, var(--accent) 8%, var(--bg));
  /* Section tints — restrained washes for expansive sections */
  --promo-bg: color-mix(in oklab, var(--accent-2) 8%, var(--bg));
  --promo-bg-2: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --bg: #0b0c0e;
  --fg: #f6f7fb;
  --muted: #b6b8c0;
  --accent: #ff7a59;
  --accent-2: #8b84ff;
  --surface: #0b0c0e;
  --grid: rgba(246, 247, 251, 0.08);
  --promo-bg-3: color-mix(in oklab, var(--bg) 96%, var(--fg) 4%);
  --promo-bg: color-mix(in oklab, var(--bg) 92%, var(--accent-2) 8%);
  /* CTA background — neutral, airy wash without warm tint (Bauhaus minimal brutalism) */
  --promo-bg-2: color-mix(in oklab, var(--bg) 94%, var(--fg) 6%);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle spacious grid background (tech feel). Visible in both themes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0/64px 64px,
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px) 0 0/64px 64px;
  mask-image: radial-gradient(ellipse at 50% -10%, rgba(0, 0, 0, 0.2), transparent 60%);
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: saturate(180%) blur(8px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--grid) 50%, transparent);
}

.site-header .container {
  width: min(1400px, 98vw);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 6px;
}

.brand {
  justify-self: start;
}

.nav {
  justify-self: center;
}

.actions {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}

.logo {
  inline-size: 240px 20px;
  block-size: 20px;
}

.brand-name {
  font-size: 16px;
}

.nav {
  display: none;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #0a0a0a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 840px) {
  .nav {
    display: flex;
  }
}

.actions {
  display: flex;
  gap: 10px;
}

.button {
  appearance: none;
  border: none;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  position: relative;
  gap: 8px;
}

.button#theme-toggle {
  background: transparent;
  color: var(--fg);
  padding: 6px;
}

.button#theme-toggle .theme-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* CTA-only arrow reveal */
.button.cta-btn {
  --arrow-space: 6px;
  --base-pad: 22px;
  --arrow-left: 12px;
  padding-left: var(--base-pad);
  padding-right: var(--base-pad);
  transition: padding .2s ease;
  overflow: hidden;
}

.button.button-lg.cta-btn {
  --base-pad: 26px;
  --arrow-left: 14px;
}

.button.cta-btn::before {
  content: "\2192";
  /* → */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  font-weight: 700;
  color: currentColor;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-110%, -50%);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease, left .2s ease;
}

.button.cta-btn:hover::before {
  left: var(--arrow-left);
  transform: translate(0, -50%);
  opacity: 1;
}

.button.cta-btn:hover {
  padding-left: calc(var(--base-pad) + var(--arrow-space));
  padding-right: calc(var(--base-pad) - var(--arrow-space));
}

/* Do not adjust padding for ghost/secondary on hover */
.button.button-ghost.cta-btn {
  transition: none;
}

.button.button-ghost.cta-btn:hover {
  padding-left: var(--base-pad);
  padding-right: var(--base-pad);
}

/* Never shrink any button on hover (safety) */
.button-ghost {
  background: transparent;
  color: var(--fg);
  border: none;
}

.button-lg {
  padding: 14px 18px;
  font-size: 16px;
}

.hero {
  padding: clamp(40px, 6vw, 96px) 0;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  display: grid;
  gap: 6px;
}

.hero-title {
  text-wrap: balance;
}

.hero-title .hero-line {
  display: block;
}

/* Force the glitch swap block to center horizontally regardless of intrinsic width */
.hero-title .glitch.swap {
  display: block;
  margin: 2px auto 0;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.cta-group {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}

.tag {
  background: transparent;
  color: var(--fg);
  border: none;
  box-shadow: 0 0 0 1.5px var(--fg) inset;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.tag strong {
  font-weight: 900;
}

.hero-shot {
  margin-top: 28px;
}

.shot-placeholder {
  height: clamp(360px, 58vw, 700px);
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 25%, transparent), color-mix(in oklab, var(--accent-2) 25%, transparent));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15) inset, 0 10px 40px rgba(0, 0, 0, .08);
}

/* Demo canvas container */
#vv-demo {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  justify-items: stretch;
  border-radius: 20px;
}

#vv-demo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

[data-theme="light"] #vv-demo-canvas {
  background: #ffffff;
}

[data-theme="dark"] #vv-demo-canvas {
  background: #0b0c0e;
}

#vv-demo-cursor {
  position: absolute;
  width: 33px;
  height: 33px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 5;
}

.vv-demo-label {
  position: absolute;
  pointer-events: none;
  background: #9747FF;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transform: translate(12px, 16px);
  opacity: 0;
  z-index: 5;
}

/* Floating demo card — fixed to viewport, single native border (no squircles) */
.vv-float-card {
  position: absolute;
  z-index: 1000;
  left: 16px;
  /* safe defaults so it's visible before JS positions it */
  top: 16px;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--fg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  user-select: none;
  cursor: grab;
}

.vv-float-card:active {
  cursor: grabbing;
}

.vv-float-card-head {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}

.vv-float-card-body {
  font-size: 16px;
}

.vv-float-note {
  margin-bottom: 12px;
  opacity: 0.95;
}

.vv-float-button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  background: #7c4dff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* Removed colored feature tiles per new design */

.code-snippet {
  background: #0b0c0e;
  color: #f6f7fb;
  padding: 14px;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid #23242a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

[data-theme="light"] .code-snippet {
  background: #111318;
  color: #f6f7fb;
}

/* Removed audience colored cards per new design */

.cta {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--promo-bg-2);
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
}

.cta-inner {
  text-align: left;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 980px) {
  .cta-grid {
    grid-template-columns: 1.1fr 1fr;
    column-gap: 56px;
  }
}

.cta-grid.reverse .cta-copy {
  order: 2;
}

.cta-grid.reverse .cta-visual {
  order: 1;
}

.cta-copy h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
}

.cta-copy h2 {
  text-wrap: balance;
}

.cta-sub {
  color: var(--fg);
  margin: 0 0 18px 0;
  line-height: 1.5;
  max-width: 56ch;
  opacity: 0.7;
}

.cta-visual {
  align-self: start;
}

.cta-note {
  margin-top: 10px;
  line-height: 1.5;
  color: var(--fg);
  font-size: 14px;
  opacity: 0.7;
}

/* CTA visual image: crisp, airy, neutral frame */
.cta-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid color-mix(in oklab, var(--bg) 100%, transparent);
}

/* Minimal token highlighting inside code-snippet */
.code-snippet .t-k {
  color: #56b6c2;
}

.code-snippet .t-f {
  color: #c678dd;
}

.code-snippet .t-s {
  color: #98c379;
}

.code-snippet .t-n {
  color: #e5c07b;
}

.code-snippet .t-c {
  color: #7f848e;
}

.faq {
  padding: 72px 0;
}

.faq h2 {
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3vw, 34px);
}

.faq .faq-more {
  display: inline-block;
  margin-bottom: 14px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.faq details {
  border: none;
  background: transparent;
  margin: 0;
}

.faq details+details {
  border-top: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
}

.faq details:first-of-type {
  border-top: 1px solid color-mix(in oklab, var(--fg) 18%, transparent);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding: 18px 0;
  font-size: clamp(16px, 2.2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--fg);
}

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

.faq summary::after {
  content: '';
  width: 20px;
  height: 20px;
  line-height: 1;
  background-color: var(--fg);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' fill-rule='evenodd' d='M4.25 12.522 12 20l7.75-7.478-.709-.733-6.531 6.302V4h-1.02v14.09L4.959 11.79z' clip-rule='evenodd'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' fill-rule='evenodd' d='M4.25 12.522 12 20l7.75-7.478-.709-.733-6.531 6.302V4h-1.02v14.09L4.959 11.79z' clip-rule='evenodd'/></svg>") no-repeat center / contain;
  transform: rotate(0deg);
  transition: transform .15s ease;
  opacity: 0.9;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq p {
  margin: 8px 0 18px 0;
  color: var(--muted);
  max-width: 72ch;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 12px;
}

/* Utilities */
[hidden] {
  display: none !important;
}

/* Pricing */
.pricing {
  padding: 84px 0;
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
}

.pricing h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 8px 0;
}

.pricing-sub {
  color: var(--muted);
  margin: 0 0 18px 0;
}

.pricing-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.billing-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  padding: 4px;
  gap: 4px;
}

.toggle-opt {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.toggle-opt[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.seat-select {
  display: none;
}

.seat-select select {
  display: none;
}

/* Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 20px 0 28px;
}

.plan {
  border-radius: 28px;
  padding: 26px;
  border: 2px solid var(--fg);
  color: var(--fg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
}

.pricing-cards>.plan:nth-child(2) {
  box-shadow: 0 14px 0 #0a0a0a;
  transform: translateY(-6px);
}

.plan-head {
  font-weight: 900;
  letter-spacing: -.01em;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-badge {
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
}

.plan-price {
  font-size: 44px;
  font-weight: 900;
  margin: 6px 0 8px;
  line-height: 1;
}

.plan-price span {
  font-size: 14px;
  font-weight: 700;
}

.plan-desc {
  margin: 0 6px 8px 0;
  font-weight: 600;
  color: var(--fg);
  opacity: 0.9;
}

.plan-features {
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.plan-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1aaa55;
  box-shadow: 0 0 0 2px #0a0a0a inset;
  flex: 0 0 16px;
}

.plan .button {
  align-self: start;
}

.plan.highlight {
  transform: translateY(-6px);
  box-shadow: 0 14px 0 #0a0a0a;
}

/* Feature comparison table */
.feature-compare {
  margin-top: 12px;
}

.feature-controls {
  display: inline-flex;
  border-radius: 999px;
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  padding: 4px;
  gap: 4px;
  margin-bottom: 12px;
}

.feature-filter {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.feature-filter[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.feature-table {
  overflow-x: auto;
  border: 1px solid color-mix(in oklab, var(--fg) 12%, transparent);
  border-radius: 12px;
}

.feature-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
}

.feature-table th,
.feature-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 10%, transparent);
  text-align: left;
}

.feature-table thead th {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}

.feature-table tr {
  height: 48px;
}

.feature-table tbody tr:nth-child(even) td {
  background: color-mix(in oklab, var(--fg) 3%, transparent);
}

.feat-cat {
  font-weight: 900;
  font-size: 14px;
  opacity: 0.8;
  padding-top: 18px;
}

.check {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1aaa55;
  box-shadow: 0 0 0 2px #0a0a0a inset;
}

.dash {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: #0a0a0a;
  opacity: 0.6;
  border-radius: 1px;
  vertical-align: middle;
}

/* Glitch effect */
/* PowerGlitch-driven swap: two stacked terms, centered, no layout shift */
.glitch.swap {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
  isolation: isolate;
  overflow: show;
}

.glitch.swap .term {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-block;
  isolation: isolate;
  text-align: center;
  color: var(--fg);
}

.glitch.swap .term-b {
  visibility: hidden;
}

/* Ensure the wrapper paints above normal text while glitching */
.glitch.swap {
  z-index: 0;
}

/* During glitch bursts, hide both terms so only the overlay is visible */
.glitch.swap[data-glitch="1"] .term {
  visibility: hidden !important;
}

/* Hook hero promo, large and airy */
.hooks {
  padding: 72px 0;
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
  background: var(--promo-bg);
}

.hook-view {
  position: relative;
}

.hook-block {
  background: color-mix(in oklab, var(--fg) 3%, transparent);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 24px);
}

/* strip subtle panel tint to feel more open */
.hook-block {
  background: transparent;
}

.hook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

@media (min-width: 900px) {
  .hook-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hook-copy h2 {
  margin: 6px 0 10px 0;
  font-size: clamp(28px, 4.6vw, 52px);
  letter-spacing: -0.01em;
}

.hook-copy p {
  margin: 0 0 14px 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.hook-visual {
  padding: 6px;
}

.hook-frame {
  border: 2px solid var(--fg);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.hook-chip {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1.5px var(--fg) inset;
  font-weight: 800;
  width: max-content;
  background: transparent;
  color: var(--fg);
}

.hook-bubble {
  border-radius: 14px;
  padding: 10px 12px;
  background: #7c4dff;
  color: white;
  font-weight: 800;
  width: max-content;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.hook-bubble.alt {
  background: #09c6a8;
}

.hook-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hook-pills .pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  font-weight: 800;
}

/* Slabs: alternating expansive sections */
.slab {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--promo-bg);
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
}

/* Use a neutral wash for the alternate slab to avoid repeating CTA hue */
.slab.alt {
  background: var(--promo-bg-3);
}

/* placeholder for future layout hooks; intentionally empty removed */
.slab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 980px) {
  .slab-grid {
    grid-template-columns: 1.1fr 1fr;
    column-gap: 56px;
  }
}

.slab-copy h2 {
  font-size: clamp(32px, 4.8vw, 60px);
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.slab-sub {
  color: var(--fg);
  opacity: 0.72;
  margin: 0 0 12px 0;
  line-height: 1.5;
  max-width: 62ch;
}

/* Center the paragraph under the deterministic section */
#deterministic .slab-copy.centered .slab-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  
}

#deterministic {
  padding-bottom: 70px !important;
}

.slab-media {
  align-self: start;
}

.kv-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.kv-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--fg) 5%, transparent);
  font-weight: 800;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pills .pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  font-weight: 800;
}

/* Stacked variant: center text, media below */
.stacked .slab-copy.centered {
  text-align: center;
  margin-inline: auto;
  max-width: 880px;
}

.wide-media {
  margin-top: 18px;
}

.media-placeholder {
  display: grid;
  place-items: center;
  height: clamp(220px, 32vw, 360px);
  border-radius: 18px;
  border: 2px dashed color-mix(in oklab, var(--fg) 32%, transparent);
  color: color-mix(in oklab, var(--fg) 70%, transparent);
  font-weight: 800;
}

/* Ensure wide-media images scale responsively */
.wide-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* AI capabilities visual */
.cap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cap-chips .chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  font-weight: 800;
}

.prompt-stack {
  display: grid;
  gap: 8px;
}

.prompt-bubble {
  padding: 10px 0px;
  background: transparent;
  color: var(--fg);
  font-weight: 900;
  box-shadow: none;
  position: relative;
}

.prompt-bubble.alt {
  background: transparent;
}

/* Accent dot for airy emphasis */
.prompt-bubble::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: .9;
}

.prompt-bubble.alt::before {
  background: var(--accent);
}

.prompt-bubble {
  padding-left: 24px;
}

/* AI visual with overlayed prompts */
.ai-visual {
  position: relative;
  display: grid;
}

.ai-visual-img {
  width: 100%;
  height: auto;
  border-radius: 0px;
  display: block;
}

/* When prompts are placed under chips on the left, use normal flow spacing */
.slab-copy>.prompt-stack {
  margin-top: 12px;
}

/* Small section kicker (eyebrow) for slabs */
.kicker {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 10px;
  opacity: 0.9;
}

/* Visual 2D full-bleed hero */
#visual-2d.visual-2d-hero {
  position: relative;
  min-height: min(90vh, 920px);
  display: grid;
  place-items: start center;
  padding: clamp(80px, 10vh, 140px) 0 clamp(40px, 8vh, 100px);
  background: url('./assets/vv-bg.png') center top/cover no-repeat;
  border-top: 1px solid color-mix(in oklab, var(--grid) 60%, transparent);
}

/* subtle darken/lighten to ensure text contrast across themes */
.visual-2d-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.visual-2d-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.visual-2d-title {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  text-wrap: balance;
}

.visual-2d-sub {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 80ch;
  margin: 6px auto 0;
}

/* Force white text atop dark image, independent of theme */
#visual-2d.visual-2d-hero .visual-2d-title {
  color: #ffffff;
}

#visual-2d.visual-2d-hero .visual-2d-sub {
  color: #ffffff;
  max-width: 900px;
}

#visual-2d.visual-2d-hero .kicker {
  color: #b6b8c0;
}