/* ==========================================================================
   nuclide-research.com/home.css
   Page-Specific Layout & Components for Home Page (index.html)
   Requires styles.css, zoe-studio.css, and split-system.css (?v=zoe60)
   100% Vanilla CSS | Strict CSP 'self' | Zero External CDNs
   ========================================================================== */

/* Hero Portrait & Two-Way "Zoe | Ablation" Selector */
.home-hero {
  padding-top: 38px;
}

.home-entry-hub {
  margin-top: 8px;
}

.home-entry-bar-note {
  font-family: var(--zs-mono);
  font-size: 0.74rem;
  color: var(--zs-ink-soft);
}

.home-aura-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-aura-label {
  font-family: var(--zs-mono);
  font-size: 0.72rem;
  color: var(--zs-ink-muted);
}

.home-aura-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-aura-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.home-aura-dot:hover {
  transform: scale(1.12);
}

.home-aura-dot.is-active {
  border-color: var(--zs-ink);
  transform: scale(1.12);
}

.home-aura-ruby { background: #E11D48; }
.home-aura-aqua { background: #14B8A6; }
.home-aura-gold { background: #D97706; }
.home-aura-mint { background: #10B981; }
.home-aura-orchid { background: #9333EA; }
.home-aura-rose { background: #FB7185; }

.home-door-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-folio-spread .zs-entry-grid {
  position: relative;
}

.home-folio-left {
  box-shadow: inset -18px 0 32px -26px rgba(0, 0, 0, 0.65);
}

.home-folio-right {
  box-shadow: inset 18px 0 32px -26px rgba(0, 0, 0, 0.65);
}

body[data-theme="vellum"] .home-folio-left {
  box-shadow: inset -18px 0 28px -24px rgba(9, 9, 11, 0.16);
}

body[data-theme="vellum"] .home-folio-right {
  box-shadow: inset 18px 0 28px -24px rgba(9, 9, 11, 0.16);
}

.home-folio-spread .zs-entry-divider {
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.04),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="vellum"] .home-folio-spread .zs-entry-divider {
  background: linear-gradient(90deg, #ECEAE4 0%, #F7F6F2 50%, #ECEAE4 100%);
  box-shadow:
    inset 1px 0 0 rgba(9, 9, 11, 0.06),
    inset -1px 0 0 rgba(9, 9, 11, 0.06);
}

.home-door-plate {
  width: 160px;
  max-width: 190px;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--zs-rule-strong);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.65), var(--zs-specular);
  background: var(--zs-well);
}

body[data-theme="vellum"] .home-door-plate {
  box-shadow: 0 10px 24px -14px rgba(9, 9, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-door-plate-zoe {
  background: #14141B;
}

body[data-theme="vellum"] .home-door-plate-zoe {
  background: #F4F4F6;
}

.home-door-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}

.home-door-plate-gem {
  padding: 14px 10px;
  background:
    radial-gradient(circle at 50% 38%, rgba(20, 184, 166, 0.22), rgba(9, 9, 11, 0.92) 76%),
    #09090D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

body[data-theme="vellum"] .home-door-plate-gem {
  background:
    radial-gradient(circle at 50% 38%, rgba(15, 118, 110, 0.14), #F3F2EE 78%),
    #FFFFFF;
}

.home-door-emblem {
  width: 76px;
  height: 76px;
  display: block;
}

.home-door-crest {
  font-family: var(--zs-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--zs-teal-text);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  background: rgba(20, 184, 166, 0.12);
}

body[data-theme="vellum"] .home-door-crest {
  color: #115E59;
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.09);
}

.home-door-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-hero .zs-hero-title,
.home-door-title,
.home-decision-title,
.zs-head-folio h2 {
  font-family: var(--font-serif);
}

.home-door-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--zs-ink);
}

.home-door-copy {
  margin: 0;
  max-width: 60ch;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--zs-ink-soft);
}

.home-door-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-family: var(--zs-mono);
  font-size: 0.77rem;
  color: var(--zs-ink-soft);
}

.home-door-specs li {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--zs-rule);
  background: rgba(255, 255, 255, 0.025);
}

body[data-theme="vellum"] .home-door-specs li {
  background: rgba(9, 9, 11, 0.03);
}

.home-door-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.home-divider-kicker {
  font-family: var(--zs-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zs-ink-muted);
  text-align: center;
}

/* Live Interactive Exhibits: Show, Don't Tell (#introductions) */
.home-exhibits-grid {
  align-items: stretch;
}

.home-exhibit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
}

.home-exhibit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-exhibit-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-exhibit-portrait {
  width: 48px;
  height: 58px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 14%;
  border: 1px solid var(--zs-rule-strong);
  flex-shrink: 0;
}

.home-exhibit-head h3 {
  margin: 2px 0 0;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--zs-ink);
}

.home-exhibit-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--zs-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.12);
  color: var(--zs-accent-soft);
}

body[data-theme="vellum"] .home-exhibit-badge {
  background: rgba(190, 18, 60, 0.09);
  border-color: rgba(190, 18, 60, 0.28);
  color: #9F1239;
}

.home-exhibit-badge-teal {
  border-color: rgba(20, 184, 166, 0.36);
  background: rgba(20, 184, 166, 0.12);
  color: var(--zs-teal-text);
}

body[data-theme="vellum"] .home-exhibit-badge-teal {
  background: rgba(15, 118, 110, 0.09);
  border-color: rgba(15, 118, 110, 0.30);
  color: #115E59;
}

.home-exhibit-badge-emerald {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(16, 185, 129, 0.12);
  color: var(--zs-emerald-text);
}

body[data-theme="vellum"] .home-exhibit-badge-emerald {
  background: rgba(4, 120, 87, 0.09);
  border-color: rgba(4, 120, 87, 0.30);
  color: #065F46;
}

.home-exhibit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-ex-tab {
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--zs-rule-strong);
  background: var(--zs-surface-2);
  color: var(--zs-ink-soft);
  font-family: var(--zs-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.home-ex-tab:hover {
  color: var(--zs-ink);
  border-color: var(--zs-ink-muted);
}

.home-ex-tab.is-active {
  background: #FAFAFA;
  border-color: #FAFAFA;
  color: #09090B;
}

body[data-theme="vellum"] .home-ex-tab.is-active {
  background: #09090B;
  border-color: #09090B;
  color: #FAFAFA;
}

.home-exhibit-stage {
  border-radius: 10px;
  border: 1px solid var(--zs-rule-strong);
  background: #0B0B10;
  color: #F4F4F5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 214px;
  justify-content: space-between;
}

.home-ex-gem-stage,
.home-ex-ab-stage {
  --zs-ink: #F4F4F5;
  --zs-ink-soft: #D4D4D8;
  --zs-ink-muted: #A1A1AA;
  --zs-teal-text: #2DD4BF;
  --zs-accent-soft: #FB7185;
  --zs-emerald-text: #34D399;
  --surface-strong: rgba(255, 255, 255, 0.12);
  --zs-rule: rgba(255, 255, 255, 0.14);
}

body[data-theme="vellum"] .home-ex-zoe-stage {
  background: #F6F5F1;
  color: #09090B;
  border-color: rgba(9, 9, 11, 0.14);
}

.home-ex-bubble {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body[data-theme="vellum"] .home-ex-bubble {
  border-color: rgba(9, 9, 11, 0.10);
  background: #FFFFFF;
}

.home-ex-bubble-u {
  border-color: rgba(20, 184, 166, 0.32);
}

.home-ex-bubble-z {
  border-color: rgba(225, 29, 72, 0.34);
}

.home-ex-role {
  font-family: var(--zs-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A1A1AA;
}

body[data-theme="vellum"] .home-ex-role {
  color: #52525B;
}

.home-ex-bubble p {
  margin: 0;
  max-width: 64ch;
  font-size: 0.81rem;
  line-height: 1.52;
  color: inherit;
}

.home-ex-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.home-ex-bar-item {
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--zs-mono);
  font-size: 0.67rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-theme="vellum"] .home-ex-bar-item {
  border-color: rgba(9, 9, 11, 0.10);
  background: #FFFFFF;
}

.home-ex-bar-item.is-pass {
  border-color: rgba(52, 211, 153, 0.45);
}

.home-ex-bar-item.is-block {
  border-color: rgba(225, 29, 72, 0.45);
}

.home-ex-bar-lbl {
  color: #A1A1AA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-theme="vellum"] .home-ex-bar-lbl {
  color: #52525B;
}

.home-ex-bar-val {
  font-weight: 700;
  color: #FAFAFA;
}

body[data-theme="vellum"] .home-ex-bar-val {
  color: #09090B;
}

.home-ex-gem-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 7px;
  background: #07070B;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-ex-term-line {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--zs-mono);
  font-size: 0.7rem;
  color: #2DD4BF;
  overflow-x: auto;
}

.home-ex-term-line code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #2DD4BF;
}

.home-ex-code {
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #07070B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--zs-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #E4E4E7;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.home-ex-proof-bar {
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  background: rgba(16, 185, 129, 0.12);
  color: #6EE7B7;
  font-family: var(--zs-mono);
  font-size: 0.7rem;
  line-height: 1.4;
}

.home-exhibit-caption {
  margin: 0;
  max-width: 62ch;
  font-size: 0.87rem;
  line-height: 1.58;
  color: var(--zs-ink-soft);
}

.home-intro-foot {
  padding-top: 10px;
  border-top: 1px solid var(--zs-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-intro-tag {
  font-family: var(--zs-mono);
  font-size: 0.72rem;
  color: var(--zs-ink-muted);
}

/* Interactive Preview Stage (#homePreviewStage) */
.home-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.home-preview-panel[hidden] {
  display: none;
}

/* Zoe Conversation Preview (#zoe-preview) */
.home-zoe-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 20px;
  align-items: stretch;
}

.home-zoe-window {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--zs-rule-strong);
  background: var(--zs-surface);
  box-shadow: var(--zs-shadow-window), var(--zs-specular);
  overflow: hidden;
  min-width: 0;
}

.home-window-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--zs-rule);
  background: rgba(255, 255, 255, 0.025);
}

body[data-theme="vellum"] .home-window-bar {
  background: rgba(9, 9, 11, 0.03);
}

.home-window-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-zoe-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--zs-rule-strong);
  flex-shrink: 0;
}

.home-window-title {
  font-family: var(--zs-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--zs-ink);
}

.home-zoe-controls {
  padding: 12px 18px;
  border-bottom: 1px solid var(--zs-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-chat-log {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 290px;
}

.home-msg {
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--zs-rule);
  background: var(--zs-surface-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-msg-user {
  align-self: flex-end;
  max-width: 88%;
  border-color: rgba(20, 184, 166, 0.34);
  background: rgba(20, 184, 166, 0.08);
}

.home-msg-zoe {
  align-self: flex-start;
  max-width: 96%;
  border-color: rgba(225, 29, 72, 0.28);
}

.home-msg-role {
  font-family: var(--zs-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zs-ink-muted);
}

.home-msg-zoe .home-msg-role {
  color: var(--zs-accent-soft);
}

.home-msg-user .home-msg-role {
  color: var(--zs-teal-text);
}

.home-msg-text {
  margin: 0;
  max-width: 64ch;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--zs-ink);
}

.home-msg-note {
  margin: 2px 0 0;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--zs-rule);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--zs-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--zs-ink-soft);
}

body[data-theme="vellum"] .home-msg-note {
  background: rgba(9, 9, 11, 0.03);
}

.home-zoe-foot {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--zs-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

body[data-theme="vellum"] .home-zoe-foot {
  background: rgba(9, 9, 11, 0.025);
}

.home-zoe-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-zoe-telemetry {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.home-kv-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.home-kv-item {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--zs-rule);
  background: var(--zs-surface-2);
}

.home-kv-item dt {
  font-family: var(--zs-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zs-ink-muted);
  margin-bottom: 3px;
}

.home-kv-item dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--zs-ink);
}

/* Ablation + GEM Bench Extras */
.home-mode-switcher {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--zs-rule);
}

.home-mode-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-mode-lbl {
  font-family: var(--zs-mono);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zs-ink-muted);
}

.home-bench-subpanel[hidden] {
  display: none;
}

.home-cfg-well {
  border-radius: 8px;
  border: 1px solid var(--zs-rule);
  background: #08060B;
  overflow: hidden;
}

.home-cfg-svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-cfg-caption {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--zs-ink-soft);
}

.home-altm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.home-altm-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
  font-family: var(--zs-mono);
  font-size: 0.76rem;
  color: var(--zs-emerald-text);
}

.home-bench-verdict-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--zs-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-verdict-pill {
  font-family: var(--zs-mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.1);
  color: var(--zs-teal-text);
}

.home-bench-inline-actions,
.home-bench-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-fence-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-fence-tag {
  font-family: var(--zs-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--zs-teal-text);
}

.home-ab-term-title {
  font-size: 1.02rem;
  color: var(--zs-ink);
}

.home-ab-summary {
  margin: 0;
  max-width: 62ch;
  font-size: 0.85rem;
  line-height: 1.58;
  color: var(--zs-ink-soft);
}

/* Plain-English 3-State Visual Demo (#decisionDemo) */
.home-decision-card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--zs-rule-strong);
  background: var(--zs-surface);
  box-shadow: var(--zs-shadow-window), var(--zs-specular);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
}

.home-decision-left,
.home-decision-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.home-decision-well {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--zs-rule-strong);
  background: #070709;
  display: flex;
  justify-content: center;
}

body[data-theme="vellum"] .home-decision-well {
  background: #FAF9F6;
  border-color: rgba(9, 9, 11, 0.14);
}

.home-decision-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.home-decision-verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-decision-scenario {
  font-family: var(--zs-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zs-ink-muted);
}

.home-decision-title {
  margin: 0;
  font-size: 1.48rem;
  font-weight: 680;
  line-height: 1.15;
  color: var(--zs-ink);
}

.home-decision-takeaway {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--zs-ink);
}

.home-decision-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--zs-ink-soft);
}

.home-decision-facts li {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--zs-rule);
  background: var(--zs-surface-2);
}

body[data-theme="vellum"] #decisionDemo .zs-regime-badge.is-act {
  background: rgba(4, 120, 87, 0.10);
  border-color: rgba(4, 120, 87, 0.34);
  color: #065F46;
}

body[data-theme="vellum"] #decisionDemo .zs-regime-badge.is-deliberate {
  background: rgba(146, 64, 14, 0.10);
  border-color: rgba(146, 64, 14, 0.34);
  color: #92400E;
}

body[data-theme="vellum"] #decisionDemo .zs-regime-badge.is-abstain {
  background: rgba(159, 18, 57, 0.10);
  border-color: rgba(159, 18, 57, 0.34);
  color: #9F1239;
}

/* Featured Verified Interactive Labs (#interactive-labs) */
.home-labs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-lab-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 20px;
}

.home-lab-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.home-lab-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--zs-mono);
  font-size: 0.68rem;
  font-weight: 650;
  border: 1px solid rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.12);
  color: var(--zs-teal-text);
}

body[data-theme="vellum"] .home-lab-badge {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.08);
  color: #115E59;
}

.home-lab-parity {
  font-family: var(--zs-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--zs-ink-soft);
}

.home-lab-copy {
  margin: 0;
  max-width: 64ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--zs-ink-soft);
}

.home-lab-foot {
  margin-top: auto;
  padding-top: 6px;
}

.home-lab-foot .zs-btn,
.home-labs-foot .zs-btn {
  min-height: 44px;
}

.home-labs-foot {
  margin-top: 24px;
}

/* Buy & Download Overview (#buy) */
.home-buy-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-buy-group + .home-buy-group {
  margin-top: 32px;
}

.home-buy-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-buy-subhead h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--zs-ink);
}

.home-buy-subhead span {
  font-family: var(--zs-mono);
  font-size: 0.78rem;
  color: var(--zs-ink-soft);
}

.home-zoe-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-editions-foot {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--zs-rule);
  background: var(--zs-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  font-size: 0.88rem;
  color: var(--zs-ink-soft);
}

.home-editions-foot strong {
  color: var(--zs-ink);
}

.home-buy-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Values & Constitution (#values) */
.home-firewall-eq {
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid var(--zs-rule-strong);
  background: var(--zs-well);
  color: var(--zs-teal-text);
  font-family: var(--zs-mono);
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

body[data-theme="vellum"] .home-firewall-eq {
  background: #F0EFEA;
  color: #115E59;
}

.home-clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--zs-ink-soft);
}

.home-clean-list li {
  position: relative;
  padding-left: 16px;
}

.home-clean-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--zs-mono);
  color: var(--zs-accent-soft);
}

.home-values-invariants {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--zs-rule);
  background: var(--zs-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-values-invariants-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-values-invariants-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--zs-ink);
}

.home-values-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .home-labs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .home-zoe-stage,
  .home-decision-card {
    grid-template-columns: 1fr;
  }
  .home-zoe-tiers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-labs-grid {
    grid-template-columns: 1fr;
  }
  .home-door-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .home-door-info {
    align-items: center;
  }
  .home-door-plate {
    width: 148px;
    max-width: 100%;
  }
  .home-door-actions {
    justify-content: center;
  }
  .home-decision-card {
    padding: 18px;
  }
}
