:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --panel: #11161c;
  --panel-alt: #161d25;
  --surface: #1b232d;
  --border: rgba(220, 234, 244, 0.11);
  --border-strong: rgba(220, 234, 244, 0.2);
  --text: #eef4f7;
  --muted: #98a8b5;
  --faint: #6f8090;
  --accent: #3ee0a8;
  --accent-hover: #64ebb9;
  --accent-dim: rgba(62, 224, 168, 0.13);
  --accent-border: rgba(62, 224, 168, 0.42);
  --warn: #f87171;
  --warn-dim: rgba(248, 113, 113, 0.14);
  --warn-border: rgba(248, 113, 113, 0.42);
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-tag: 5px;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, ul, ol, pre { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Single-line 64px Navbar (above page-sprites overlay z-index 42 and dock 46) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(11, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav-signin {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: var(--radius-btn);
  transition: color 0.15s, background 0.15s;
}
.nav-signin:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-signin.is-authed {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  font-family: var(--mono);
  font-size: 12px;
}

/* Mobile Nav Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.mobile-nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.mobile-nav-drawer {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 55;
  background: #0b0e12;
  opacity: 1;
  border-bottom: 1px solid var(--border-strong);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}
.mobile-nav-drawer[hidden] { display: none; }
.mobile-nav-drawer > a {
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.mobile-nav-drawer > a:hover { background: var(--surface); }
.mobile-nav-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #051610;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent-border); background: #222c37; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; }

/* SECTION 1: HERO */
.hero-section {
  padding: 54px 0 56px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 76% 30%, rgba(62, 224, 168, 0.09), transparent 48%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 40px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 3.65vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 15.5ch;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.56;
  color: var(--muted);
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.hero-trust-strip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.hero-engine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hero-engine-chip {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.hero-byok-note {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.4;
}
.hero-byok-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-frame {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: #090c0f;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.hero-artwork {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Integrated Live 1x/8x Pixel Proof Console inside Hero Frame */
.hero-proof-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.proof-loupe-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.proof-canvas-wrap {
  width: 104px;
  height: 104px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--accent-border);
  background-color: #202830;
  background-image: conic-gradient(#171d23 25%, transparent 0 50%, #171d23 0 75%, transparent 0);
  background-size: 10px 10px;
  overflow: hidden;
}
#hero-proof-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.proof-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.proof-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.proof-top-row strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proof-specs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  line-height: 1.38;
}
.zoom-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  gap: 2px;
  flex: none;
}
.zoom-btn {
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.zoom-btn:hover { color: var(--text); }
.zoom-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.reel-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.reel-tile {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: #202830;
  background-image: conic-gradient(#171d23 25%, transparent 0 50%, #171d23 0 75%, transparent 0);
  background-size: 8px 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.reel-tile:hover, .reel-tile.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.reel-tile canvas, .reel-tile img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Shared Section Rhythm */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}
.section-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
  margin-bottom: 34px;
}
.section-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-intro p {
  font-size: 15px;
  color: var(--muted);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* SECTION 2: DIFFUSION VS INDEXED PIXEL GRID COMPARE LAB */
.compare-lab {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  overflow: hidden;
}
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.compare-sprite-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compare-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-stage-wrap {
  position: relative;
  width: 100%;
  background: #0d1117;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}
.compare-labels {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 4;
}
.cmp-tag {
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(11, 14, 18, 0.88);
  border: 1px solid var(--border-strong);
}
.cmp-tag-bad {
  color: #fca5a5;
  border-color: var(--warn-border);
}
.cmp-tag-good {
  color: var(--accent);
  border-color: var(--accent-border);
}
#compare-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 360;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.compare-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(62, 224, 168, 0.6);
  pointer-events: none;
  z-index: 5;
  transform: translateX(-1px);
}
.compare-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #051610;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.compare-range-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
}
.compare-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel-alt);
}
.tel-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tel-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.tel-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
}
.tel-bad { color: #fca5a5; }
.tel-arrow { color: var(--faint); font-size: 11px; }
.tel-good { color: var(--accent); font-weight: 700; }
.tel-action {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}
.tel-readout {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* SECTION 3: 4-GAME STARTER PACKS SHOWCASE */
.examples-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.examples-head .section-intro { margin-bottom: 0; }
.example-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.example-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.example-tab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.example-tab:hover { color: var(--text); }
.example-tab.active {
  background: var(--surface);
  color: var(--text);
}
.tab-angle {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.example-tab.active .tab-angle {
  background: var(--accent-dim);
  color: var(--accent);
}

.example-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.example-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}
.example-meta-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.example-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.example-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.example-title-row h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.ex-angle-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.ex-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}
.ex-desc { font-size: 14px; color: var(--muted); }
.ex-direction-box {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ex-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.ex-direction-box p { font-size: 13px; color: #d5e2ea; line-height: 1.48; }
.ex-spec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-palette-strip { display: flex; flex-wrap: wrap; gap: 4px; }
.ex-palette-strip span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ex-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; margin-top: auto; }

.diorama-panel {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  overflow: hidden;
}
.diorama-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.diorama-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.diorama-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}
.diorama-controls { display: inline-flex; align-items: center; gap: 5px; }
.diorama-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.diorama-btn:hover { color: var(--text); border-color: var(--border-strong); }
.diorama-btn.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
.diorama-canvas-wrap {
  flex: 1;
  min-height: 240px;
  display: grid;
  place-items: center;
  background: #0d1016;
}
#ex-diorama-canvas {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.diorama-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: var(--panel-alt);
}

.pack-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pack-wall-title { display: flex; flex-direction: column; gap: 2px; }
.pack-wall-title strong { font-size: 14px; }
.pack-wall-title span { font-size: 12.5px; color: var(--muted); }
.pack-filter-group {
  display: inline-flex;
  gap: 5px;
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.pack-filter-btn {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.pack-filter-btn:hover { color: var(--text); }
.pack-filter-btn.active { background: var(--surface); color: var(--accent); }

.example-sprites-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  align-content: start;
}
.example-sprites-grid.grid-8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ex-sprite-card {
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.ex-sprite-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.ex-sprite-canvas-wrap {
  height: 116px;
  display: grid;
  place-items: center;
  background-color: #202830;
  background-image: conic-gradient(#171d23 25%, transparent 0 50%, #171d23 0 75%, transparent 0);
  background-size: 12px 12px;
  position: relative;
}
.ex-sprite-canvas-wrap canvas, .ex-sprite-canvas-wrap img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.ex-role-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(11, 14, 18, 0.86);
  border: 1px solid rgba(62, 224, 168, 0.35);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
}
.ex-role-badge.prop {
  border-color: rgba(245, 184, 86, 0.45);
  color: #f5b856;
}
.ex-live-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(11, 14, 18, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
}
.ex-sprite-foot {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ex-sprite-foot strong {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-sprite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

/* SECTION 4: INTERACTIVE 3-PASS PIPELINE SCRUBBER */
.pipeline-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: stretch;
}
.pipe-stage-panel {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pipe-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.pipe-sprite-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pipe-stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pipe-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}
.pipe-canvas-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  padding: 18px;
  align-items: center;
  flex: 1;
  background: #0d1117;
}
.pipe-zoom-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pipe-zoom-box {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: #1f272f;
  background-image: conic-gradient(#161c22 25%, transparent 0 50%, #161c22 0 75%, transparent 0);
  background-size: 14px 14px;
}
.pipe-mask-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pipe-mask-legend[hidden] { display: none; }
.mask-pill {
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.mask-allow {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.mask-lock {
  background: var(--warn-dim);
  border: 1px solid var(--warn-border);
  color: #fca5a5;
}
#pipe-stage-canvas {
  width: 240px;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pipe-side-telemetry {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pipe-1x-card, .pipe-pal-card, .pipe-contact-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pipe-1x-frame {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #171e26;
  border: 1px solid var(--border);
}
#pipe-1x-canvas, #pipe-contact-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
#pipe-contact-canvas {
  width: 100%;
  height: auto;
  border-radius: 5px;
  background: #171e26;
}
.pipe-stage-foot {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel-alt);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipe-stage-foot strong {
  font-size: 14px;
  color: var(--accent);
  font-family: var(--mono);
}
.pipe-stage-foot p {
  font-size: 13px;
  color: var(--muted);
}

.pipe-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pipe-scrubber-bar {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pipe-scrubber-bar label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pipe-scrubber-bar input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.pipe-steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pipe-step-btn {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  transition: border-color 0.15s, background 0.15s;
}
.pipe-step-btn:hover {
  border-color: var(--border-strong);
  background: var(--panel-alt);
}
.pipe-step-btn.active {
  border-color: var(--accent-border);
  background: linear-gradient(145deg, rgba(62, 224, 168, 0.1) 0%, var(--panel) 65%);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  padding-top: 2px;
}
.step-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.step-copy span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* SECTION 5: ENGINE EXPORT INSPECTOR & STUDIO PILLARS */
.export-inspector {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 42px;
}
.export-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.export-asset-picker, .export-sheet-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}
.export-asset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#export-sheet-canvas {
  display: block;
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: #1f272f;
  background-image: conic-gradient(#161c22 25%, transparent 0 50%, #161c22 0 75%, transparent 0);
  background-size: 10px 10px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Dual-audience Humans + AI Agents Workflow Band */
.audience-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.audience-card.audience-ai {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(62, 224, 168, 0.06), rgba(16, 21, 28, 0.96));
}
.audience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.audience-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-tag);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--muted);
}
.audience-card.audience-ai .audience-badge {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}
.audience-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
}
.audience-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.audience-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text);
}
.audience-points li {
  position: relative;
  padding-left: 16px;
}
.audience-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.audience-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) {
  .audience-split {
    grid-template-columns: 1fr;
  }
}
/* Manual Pixel Editor Showcase (#manual-editor) */
.manual-editor-section {
  border-top: 1px solid var(--border);
  background: radial-gradient(1100px 420px at 50% 0%, rgba(62, 224, 168, 0.06), transparent 72%);
}
.manual-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.me-card {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.me-card-wide {
  grid-column: span 2;
}
.me-card-highlight {
  border-color: var(--accent-border);
  background: linear-gradient(155deg, rgba(62, 224, 168, 0.08), var(--panel) 58%);
}
.me-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.me-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel-alt);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.me-tag.accent {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}
.me-free-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.me-card h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.me-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.me-shortcut-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.me-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12.5px;
  color: var(--text);
}
.me-key kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.me-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.me-list li {
  position: relative;
  padding-left: 16px;
}
.me-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.me-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 820px) {
  .manual-editor-grid {
    grid-template-columns: 1fr;
  }
  .me-card-wide {
    grid-column: span 1;
  }
}

.export-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.export-fmt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.export-fmt-btn {
  height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.export-fmt-btn:hover { color: var(--text); background: var(--panel); }
.export-fmt-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.export-code-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.export-filename {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-right: 4px;
}
.export-code-pane {
  padding: 18px 20px;
  background: #080b0f;
  color: #dbe8f0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  max-height: 330px;
}

/* Architectural 3-Column Studio Pillars (clean border-top layout, distinct from card grids) */
.studio-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pillar-item p {
  font-size: 14px;
  color: var(--muted);
}

.preset-showcase, .filter-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}
.preset-chip, .fmt-tag, .fp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: var(--radius-tag);
  border: 1px solid var(--border);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.preset-chip {
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.preset-chip:hover {
  border-color: var(--accent-border);
  background: var(--surface);
  transform: translateY(-1px);
}
.preset-chip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: block;
}
.fp-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}
.fmt-tag { color: var(--muted); background: var(--bg); }

.queue-preview {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.qp-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 12px;
}
.qp-row strong {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.qp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.qp-dot.running {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.qp-dot.done { background: #9aeec9; }

/* SECTION 6: PRICING, ONE-TIME PACKS, BYOK & CALCULATOR */
.pricing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.pricing-header .section-intro { margin-bottom: 0; }

.billing-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  gap: 4px;
}
.bill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.bill-btn.active {
  background: var(--surface);
  color: var(--text);
}
.save-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
}
.plan-featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(62, 224, 168, 0.08) 0%, var(--panel) 45%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-head { display: flex; flex-direction: column; gap: 6px; min-height: 76px; }
.plan-head h3 { font-size: 19px; font-weight: 700; }
.plan-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.popular-badge {
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-cadence { font-size: 13px; color: var(--muted); }
.plan-credits {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.plan-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 18px;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.plan-cta { width: 100%; height: 42px; }

/* One-Time Credit Packs Band */
.packs-band {
  padding: 22px 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.packs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.packs-head h3 { font-size: 17px; font-weight: 700; }
.packs-head p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.packs-tax-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pack-tile {
  padding: 15px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pack-tier-medium {
  border-color: rgba(62, 224, 168, 0.24);
}
.pack-tier-large {
  border-color: var(--accent-border);
  background: linear-gradient(150deg, rgba(62, 224, 168, 0.07) 0%, var(--bg) 62%);
}
.pack-visual {
  width: 86px;
  height: 86px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 60%, rgba(62, 224, 168, 0.09), rgba(11, 14, 18, 0.92));
  overflow: hidden;
}
.pack-art {
  object-fit: contain;
  display: block;
}
.pack-art-sm { width: 54px; height: 54px; }
.pack-art-md { width: 68px; height: 68px; }
.pack-art-lg { width: 82px; height: 82px; }
.pack-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.pack-tile-meta strong { font-size: 14px; }
.pack-credits { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 700; }
.pack-rate { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.pack-tile-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
}
.pack-price { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pack-tile-action .btn-secondary { height: 32px; padding: 0 12px; font-size: 12px; }

/* BYOK Prepaid Fee Wallet Band */
.byok-band {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(260px, 0.78fr);
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-border);
  background: linear-gradient(155deg, rgba(62, 224, 168, 0.08) 0%, var(--panel) 55%);
  margin-bottom: 22px;
  align-items: center;
}
.byok-band-copy { display: flex; flex-direction: column; gap: 12px; }
.byok-band-copy h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.byok-band-copy p { font-size: 14px; color: var(--muted); }
.byok-band-copy code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--accent);
}
.byok-unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}
.byok-unit {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.byok-unit span { font-size: 11.5px; color: var(--muted); }
.byok-unit strong { font-family: var(--mono); font-size: 12px; color: var(--text); }
.byok-band-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.byok-fee-highlight { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
.fee-big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.fee-sub { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.byok-topup-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.byok-topup-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 82px;
  padding: 8px 6px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}
.byok-topup-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}
.byok-art { object-fit: contain; display: block; }
.byok-art-sm { width: 32px; height: 32px; }
.byok-art-md { width: 42px; height: 42px; }
.byok-art-lg { width: 52px; height: 52px; }
.byok-band-cta .btn-primary, .byok-band-cta .btn-secondary { width: 100%; height: 40px; }

.showcase-fallback-box {
  padding: 24px 20px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.showcase-fallback-box[hidden] { display: none; }
.showcase-fallback-box strong { font-size: 15px; color: var(--text); }
.showcase-fallback-box p { font-size: 13.5px; color: var(--muted); }

/* Calculator */
.estimator-card {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.98fr);
  gap: 28px;
  padding: 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  align-items: center;
}
.estimator-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.estimator-left h3 { font-size: 18px; font-weight: 700; }
.estimator-note { font-size: 13.5px; color: var(--muted); }
.est-model-row {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg);
  gap: 4px;
  width: fit-content;
}
.est-model-btn {
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.est-model-btn.active {
  background: var(--surface);
  color: var(--accent);
}
.est-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.est-slider {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.est-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.est-slider-head strong {
  font-family: var(--mono);
  color: var(--text);
}
.est-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.est-result-box {
  padding: 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.est-kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.est-total {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.est-plan-rec {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.est-byok-box {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--accent-border);
  background: rgba(62, 224, 168, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.est-byok-line {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.credit-weights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.credit-weights strong {
  font-family: var(--mono);
  color: var(--text);
}
.est-cta { margin-top: 4px; width: 100%; height: 42px; }

.pricing-footnote {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}
.pricing-footnote a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-toast {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent-border);
  background: var(--panel);
  color: var(--text);
  font-size: 13.5px;
}
.checkout-toast a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 8px;
}

/* Footer (extra bottom padding keeps links clear of floating platformer dock) */
.site-footer {
  padding: 36px 0 84px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.footer-brand p { font-size: 13px; color: var(--faint); }
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links a:hover, .footer-link-btn:hover { color: var(--text); }
.footer-link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Consent-Gated Privacy Dialog */
.privacy-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(390px, calc(100vw - 32px));
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-strong);
  background: rgba(17, 22, 28, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.privacy-panel[hidden] { display: none; }
.privacy-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.privacy-panel h2 { font-size: 15px; font-weight: 700; }
.privacy-close {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
}
.privacy-panel p { font-size: 13px; color: var(--muted); line-height: 1.48; }
.privacy-more {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: underline;
  width: fit-content;
}
.privacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

/* Interactive UI-Platformer Page Characters Overlay */
#page-platformer-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 42;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
#page-platformer-canvas.is-hidden {
  display: none;
}
.platformer-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 46;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 18, 24, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.platformer-dock.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.platformer-dock[hidden] {
  display: none;
}
.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  padding-right: 4px;
}
.pf-score {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #ffe88a;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 184, 86, 0.14);
  border: 1px solid rgba(245, 184, 86, 0.32);
}
.pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(62, 224, 168, 0.65);
}
.pf-dot.paused {
  background: var(--faint);
  box-shadow: none;
}
.pf-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pf-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}
.pf-btn.accent {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .example-top-grid { grid-template-columns: 1fr; }
  .example-sprites-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tel-action { justify-content: flex-start; }
  .pipeline-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .studio-pillars { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .packs-grid { grid-template-columns: 1fr; }
  .byok-band { grid-template-columns: 1fr; }
  .estimator-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
}

@media (max-width: 680px) {
  .container, .nav-inner { padding: 0 16px; }
  .hero-section { padding: 18px 0 36px; }
  .hero-grid { gap: 18px; }
  .hero-copy { gap: 12px; }
  .hero-copy h1 { font-size: 1.95rem; max-width: 15ch; }
  .hero-proof-console {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }
  .proof-loupe-box {
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
  }
  .proof-canvas-wrap {
    width: 104px;
    height: 104px;
  }
  .proof-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .proof-specs {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.38;
  }
  .reel-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .reel-tile {
    width: 100%;
    height: 48px;
  }
  .section { padding: 52px 0; }
  .compare-telemetry { grid-template-columns: 1fr; }
  .compare-labels { top: 8px; left: 8px; right: 8px; }
  .cmp-tag { font-size: 9.5px; padding: 3px 7px; }
  #compare-canvas { aspect-ratio: 480 / 260; }
  .example-stage { padding: 16px; }
  .example-sprites-grid,
  .example-sprites-grid.grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-canvas-area { grid-template-columns: 1fr; }
  #pipe-stage-canvas { width: 200px; height: 200px; }
  .byok-unit-grid { grid-template-columns: 1fr; }
  .credit-weights { grid-template-columns: 1fr; }
  .est-model-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .est-model-btn { padding: 0 6px; font-size: 11px; }
  .platformer-dock {
    right: 10px;
    bottom: 10px;
    padding: 5px 7px 5px 9px;
    gap: 5px;
  }
  .pf-status-text,
  .pf-desktop-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
