.shadow-brutal { box-shadow: 4px 4px 0 0 var(--obsidian-deep); }

button.chip { font: inherit; }

.has-tip {
  position: relative;
}

.has-tip::after {
  transition: opacity 0.18s ease;
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  color: var(--surface-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}

.has-tip:hover::after {
  opacity: 1;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dot-pulse { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.btn-outline-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-emerald);
  border-color: var(--brand-emerald);
}

.lede { max-width: 42ch; }

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.95fr);
  gap: 48px 40px;
  align-items: center;
  padding: 28px 0 64px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 18ch;
}

/* —— Desktop sketch —— */
.desk-sketch {
  margin: 12px 0 0;
}

.desk {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 1px solid var(--obsidian-bright);
  background: #0a1224;
  box-shadow: 4px 4px 0 0 #060E20;
  overflow: hidden;
}

.desk-bg {
  position: absolute;
  inset: 0 0 28px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, #0c1630 0%, #080f20 100%);
}

.desk-icons {
  position: absolute;
  top: 16px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1;
}

.dicon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 44px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.dicon i {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--obsidian-bright);
  background: rgba(23, 31, 51, 0.7);
}

.dicon:nth-child(2) i { border-radius: 4px; }
.dicon:nth-child(3) i { border-radius: 99px; }

.win {
  position: absolute;
  left: 72px;
  right: 20px;
  top: 16px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-lowest);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.win.is-closing {
  transform: scale(0.96) translateY(8px);
  opacity: 0.35;
}

.win-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--obsidian-bright);
  background: rgba(15, 23, 42, 0.9);
}

.win-dots { display: flex; gap: 5px; }
.win-dots b {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--obsidian-bright);
}
.win-dots b:first-child { background: #7f1d1d; }
.win-dots b:nth-child(2) { background: #854d0e; }
.win-dots b:nth-child(3) { background: #14532d; }

.win-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.win-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 8px 0;
  background: var(--obsidian-deep);
}

.win-tab {
  padding: 5px 10px 6px;
  border: 1px solid var(--obsidian-bright);
  border-bottom: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  max-width: 140px;
  color: var(--surface-muted);
  background: var(--obsidian-low);
  transition: max-width 0.4s ease, opacity 0.32s ease, padding 0.4s ease;
}

.win-tab.on {
  color: var(--white);
  background: var(--obsidian-lowest);
  border-color: var(--obsidian-bright);
}

.win-tab.is-closing {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  border-left-width: 0;
  border-right-width: 0;
  opacity: 0;
}

/* —— App chrome variants —— */
.chrome { display: none; }

.win.app-browser .chrome[data-chrome="browser"],
.win.app-explorer .chrome[data-chrome="explorer"],
.win.app-vm .chrome[data-chrome="vm"] { display: block; }

.exp-tools,
.vm-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 8px 8px;
  padding: 5px 8px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--surface-muted);
}

.exp-nav {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-style: solid;
  border-width: 4px 6px 4px 0;
  border-color: transparent var(--obsidian-bright) transparent transparent;
}

.exp-nav.fwd { transform: rotate(180deg); }

.vm-tools {
  background: rgba(212, 175, 55, 0.07);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--covenant-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vm-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--covenant-gold);
}

.win-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 8px;
  padding: 5px 8px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--surface-muted);
}

.win-lock {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--brand-emerald);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 4px 0 -1.5px var(--brand-emerald);
}

.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 8px 8px;
  overflow: hidden;
  background: #0b1328;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.scene.is-on {
  opacity: 1;
  transform: none;
}

.scene-work { padding: 16px 18px; }
.note-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--brand-emerald);
}
.note-title {
  margin: 8px 0 12px;
  height: 10px;
  width: 42%;
  background: #dae2fd;
}
.note-line {
  height: 6px;
  margin-bottom: 8px;
  background: #31394d;
}
.note-line:nth-child(3) { width: 92%; }
.note-line:nth-child(4) { width: 86%; }
.note-line:nth-child(5) { width: 74%; }
.note-line:nth-child(6) { width: 80%; }

.scene-tube {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 8px;
  padding: 8px;
}

.tube-player {
  position: relative;
  background: #111827;
  border: 1px solid var(--obsidian-bright);
  min-height: 0;
}

.tube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #dc2626;
  transform: translate(-40%, -50%);
}

.tube-side { display: flex; flex-direction: column; gap: 6px; }
.tube-thumb {
  flex: 1;
  display: flex;
  gap: 6px;
  min-height: 0;
}
.tube-thumb b {
  width: 42%;
  background: #1e293b;
  border: 1px solid var(--obsidian-bright);
}
.tube-thumb span {
  flex: 1;
  align-self: center;
  height: 6px;
  background: #31394d;
}
.win.is-tempt .tube-thumb:last-child b {
  background: #3f1d1d;
  border-color: #dc2626;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.35);
}

.scene-feed { padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.rd-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--obsidian-bright);
  background: rgba(19, 27, 46, 0.55);
}
.rd-vote {
  width: 0;
  height: 0;
  margin: 4px auto 0;
  border-style: solid;
  border-width: 0 5px 7px 5px;
  border-color: transparent transparent #ea580c transparent;
}
.rd-lines { display: flex; flex-direction: column; gap: 5px; }
.rd-lines i { display: block; height: 5px; background: #31394d; }
.rd-lines i:first-child { width: 55%; }
.rd-lines i:last-child { width: 80%; }
.rd-pic {
  height: 42px;
  margin-top: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #172554);
  transition: background 0.35s ease;
}
.win.is-tempt .rd-row:nth-child(2) {
  border-color: #dc2626;
}
.win.is-tempt .rd-row:nth-child(2) .rd-pic {
  background: linear-gradient(135deg, #7f1d1d, #431407);
}

/* File Explorer */
.scene-files {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  padding: 8px;
}

.fx-rail { display: flex; flex-direction: column; gap: 7px; }

.fx-rail span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.fx-rail b {
  width: 11px;
  height: 8px;
  flex-shrink: 0;
  background: #31394d;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  min-height: 0;
}

.fx-file {
  border: 1px solid var(--obsidian-bright);
  background: #1e293b;
  min-height: 0;
}

.fx-file:nth-child(2) { background: #172554; }
.fx-file:nth-child(4) { background: #1a2e22; }
.fx-file:nth-child(6) { background: #2a2030; }

.fx-file.pick {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Image viewer */
.scene-viewer {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  padding: 8px;
}

.vw-frame {
  min-height: 0;
  border: 1px solid var(--obsidian-bright);
  background: linear-gradient(135deg, #1e293b, #111827);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.win.is-tempt .vw-frame {
  border-color: #dc2626;
  background: linear-gradient(135deg, #7f1d1d, #431407);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.4);
}

.vw-cap {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--surface-muted);
}

/* Virtual machine */
.scene-vm { padding: 8px; }

.vm-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--obsidian-bright);
  background: #070d1c;
  overflow: hidden;
}

.vm-win {
  flex: 1;
  min-height: 0;
  margin: 10px 12px 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-lowest);
}

.vm-win-bar {
  display: flex;
  gap: 4px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--obsidian-bright);
  background: rgba(15, 23, 42, 0.9);
}

.vm-win-bar b {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--obsidian-bright);
}

.vm-win-body {
  flex: 1;
  min-height: 0;
  margin: 6px;
  border: 1px solid var(--obsidian-bright);
  background: #111827;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.win.is-tempt .vm-win-body {
  border-color: #dc2626;
  background: linear-gradient(135deg, #7f1d1d, #431407);
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.35);
}

.vm-taskbar {
  height: 13px;
  margin-top: 8px;
  background: #060E20;
  border-top: 1px solid var(--obsidian-bright);
}

/* Distraction countdown */
.count {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(6, 14, 32, 0.92);
  border-bottom: 1px solid var(--covenant-gold);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.win.is-counting .count { opacity: 1; transform: none; }

.count-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--covenant-gold);
}

.count-track {
  flex: 1;
  min-width: 32px;
  height: 4px;
  background: var(--obsidian-high);
}

.count-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-emerald), var(--covenant-gold));
}

.win.is-counting .count-fill { animation: deplete 2.5s linear both; }

@keyframes deplete {
  from { width: 100%; }
  to { width: 0; }
}

.count-num {
  min-width: 12px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--covenant-gold);
}

/* Small intercept badge (tab-level close) */
.win-flash {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--brand-emerald);
  background: rgba(16, 185, 129, 0.14);
  font-family: var(--font-headline);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.win-flash.show { opacity: 1; transform: none; }

.win-close {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 14, 32, 0.72);
  border: 2px solid var(--brand-emerald);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.win-close.show {
  opacity: 1;
  transform: none;
}

.win-close em {
  font-family: var(--font-headline);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-emerald);
}

.desk-cursor {
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 #060E20);
}

.desk-cursor svg {
  display: block;
  width: 16px;
  height: 22px;
}

.desk-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 14, 32, 0.97);
  border-top: 1px solid var(--obsidian-bright);
}

.tb-center {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tb-start {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 2px;
  margin-right: 3px;
}

.tb-start i {
  display: block;
  border-radius: 1px;
  background: var(--surface-muted);
}

.tb-app {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid var(--obsidian-bright);
  border-radius: 3px;
  background: #1e293b;
}

.tb-app:nth-child(3) { background: #172554; }
.tb-app:nth-child(5) { background: #1a2e22; }

.tb-app.is-open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 11px;
  height: 2px;
  margin-left: -5.5px;
  border-radius: 2px;
  background: var(--brand-emerald);
}

.tb-tray {
  position: absolute;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tb-chev {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 3px 4px 3px;
  border-color: transparent transparent var(--surface-muted) transparent;
}

.tb-tray .icon { color: var(--brand-emerald); }

.tb-clock {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--surface-muted);
}

/* —— Control Panel window —— */
.panel-window {
  position: relative;
  margin-top: 64px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-lowest);
  box-shadow: 4px 4px 0 0 #060E20;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 720px;
  container-type: inline-size;
  container-name: demo;
}

.panel-window .app-header {
  padding: 16px 24px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.panel-window .header-left {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.panel-window #power-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@container demo (max-width: 720px) {
  .panel-window .app-header {
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .panel-window .header-left {
    gap: 8px;
    overflow: hidden;
  }

  .panel-window .lockup p { display: none; }

  .panel-window .lockup h1 {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .panel-window .lockup .icon {
    width: 22px;
    height: 22px;
  }

  .panel-window .divider-v { display: none; }

  .panel-window .chip {
    font-size: 10px;
    padding: 4px 8px;
  }

  .panel-window #power-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
}

@container demo (max-width: 420px) {
  .panel-window .lockup h1 { font-size: 13px; letter-spacing: 0.06em; }
  .panel-window .header-left #status-chip { display: none; }
}

.panel-body {
  display: flex;
  gap: 24px;
  padding: 24px;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--obsidian-bright);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-btn:hover:not(.active) { background: var(--obsidian-low); }

.nav-btn.active {
  background: var(--brand-emerald);
  border-color: var(--brand-emerald);
  color: var(--obsidian-deep);
}

.panel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #2D3449 #0F172A;
}

.panel-main::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.panel-main::-webkit-scrollbar-track {
  background: #0F172A;
}

.panel-main::-webkit-scrollbar-thumb {
  background: #2D3449;
  border: 2px solid #0F172A;
}

.panel-main::-webkit-scrollbar-thumb:hover {
  background: #10B981;
}

[hidden] { display: none !important; }

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chip-red {
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
}

.banner.down {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

.banner.down .icon { color: #EF4444; }

.tile-off {
  border-color: var(--obsidian-bright);
  background: rgba(15, 23, 42, 0.35);
  color: var(--surface-muted);
}

.demo-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid var(--obsidian-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%) translateY(8px);
  z-index: 5;
  padding: 10px 16px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.demo-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.shield-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shield-card {
  padding: 20px;
  border: 1px solid var(--obsidian-bright);
  background: rgba(19, 27, 46, 0.4);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.shield-card.armed {
  border-color: rgba(16, 185, 129, 0.35);
}

.shield-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--obsidian-bright);
}

.shield-card h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shield-card .kicker {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--surface-muted);
}

.shield-card p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--surface-muted);
}

.arm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  position: relative;
}

.arm:has(input:disabled) {
  opacity: 0.65;
  cursor: not-allowed;
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.slider-row span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-emerald);
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  padding: 2px 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--obsidian-high);
  border: 1px solid var(--obsidian-bright);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 24px;
  margin-top: -9px;
  background: var(--brand-emerald);
  border: 2px solid var(--obsidian-deep);
  box-shadow: 2px 2px 0 0 var(--obsidian-deep);
  cursor: pointer;
}

.field,
.panel-window select,
.panel-window textarea {
  width: 100%;
  background: var(--obsidian-low);
  border: 1px solid var(--obsidian-bright);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px;
}

.panel-window select:focus,
.panel-window textarea:focus {
  outline: none;
  border-color: var(--brand-emerald);
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
}

input[type="range"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input[type="range"]:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

input[type="range"]:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

.slider-lock {
  position: relative;
}

.slider-lock.has-tip::after {
  left: 0;
  transform: none;
  max-width: 280px;
}

.scope {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--obsidian-bright);
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}

.scope:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

.scope.on {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

.pref-grid,
.tier-list,
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier,
.schedule-card,
.pref-box {
  padding: 16px;
  border: 1px solid var(--obsidian-bright);
  background: rgba(19, 27, 46, 0.35);
  text-align: left;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.tier.active,
.schedule-card.active {
  border-color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.tier h3,
.schedule-card h3,
.pref-box h3 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gold-panel {
  border: 3px solid var(--covenant-gold);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 4px 4px 0 0 var(--obsidian-deep);
}

.btn-gold {
  background: var(--covenant-gold);
  color: var(--obsidian-deep);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--surface-muted);
  cursor: pointer;
}

.back-btn:hover { color: var(--white); }

.edit-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: color 0.2s ease;
}

.edit-link:hover { color: var(--brand-emerald); }

.age-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.age-btn {
  padding: 4px 10px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  color: var(--surface-muted);
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.age-btn:hover,
.age-btn.active {
  color: var(--white);
  border-color: rgba(16, 185, 129, 0.55);
}

.safety-panel {
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.safety-panel ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--surface-muted);
  font-size: 11px;
  line-height: 1.5;
}

.youth-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
  color: var(--covenant-gold);
  font-size: 11px;
  line-height: 1.45;
}

#youth-page:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pref-box.locked {
  opacity: 0.8;
  cursor: not-allowed;
}

.unlock-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 14, 32, 0.72);
  backdrop-filter: blur(8px);
}

.unlock-overlay:not([hidden]) { animation: fade-in 0.25s ease; }

.unlock-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(23, 31, 51, 0.92);
  box-shadow: 4px 4px 0 0 var(--obsidian-deep);
  animation: rise 0.32s ease;
}

.unlock-card h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
  padding-right: 28px;
}

.unlock-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--surface-muted);
  cursor: pointer;
  padding: 4px;
}

.unlock-close:hover { color: var(--white); }

.unlock-field {
  width: 100%;
  background: var(--obsidian-deep);
  border: 1px solid var(--obsidian-bright);
  color: var(--white);
  font-family: var(--font-mono);
  padding: 10px;
}

.unlock-field:focus {
  outline: none;
  border-color: var(--covenant-gold);
}

.unlock-code {
  letter-spacing: 0.3em;
  font-size: 18px;
  max-width: 200px;
}

.code-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.banner {
  padding: 24px;
  border: 3px solid var(--brand-emerald);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 4px 4px 0 0 var(--obsidian-deep);
  display: flex;
  gap: 16px;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.banner h2 {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.banner p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--surface-muted);
  max-width: 640px;
}

.status-card {
  padding: 24px;
  border: 1px solid var(--obsidian-bright);
}

.status-card h2 {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.tile {
  padding: 16px;
  border: 2px solid;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.tile-emerald {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.tile-gold {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--surface-muted);
}

.tile-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed {
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-low);
}

.feed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  transition: background-color 0.2s ease;
}

.feed-row:hover { background: rgba(16, 185, 129, 0.04); }

.feed-row + .feed-row { border-top: 1px solid var(--obsidian-bright); }

.feed-row h3 {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* —— Feature cards —— */
.section-title {
  margin: 56px 0 20px;
  font-size: 22px;
  letter-spacing: 0.02em;
  max-width: 28ch;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--obsidian-bright);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
}

.feature h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--surface-muted);
}

.feature a {
  color: var(--brand-emerald);
  text-underline-offset: 3px;
}

.feature a:hover { color: var(--white); }

/* —— Waitlist —— */
.waitlist {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--obsidian-bright);
  transition: border-color 0.3s ease;
}

.waitlist h2 {
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.waitlist > p {
  margin: 10px 0 16px;
  color: var(--surface-muted);
  font-size: 14px;
  line-height: 1.5;
}

.platform-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 12px;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.platform-note .icon {
  flex-shrink: 0;
  color: var(--brand-emerald);
  fill: currentColor;
  stroke: none;
}

.platform-note strong {
  color: var(--white);
  font-weight: 700;
}

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface-muted);
  margin-bottom: 8px;
}

input[type="email"],
textarea {
  width: 100%;
  background: var(--obsidian-lowest);
  border: 1px solid var(--obsidian-bright);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea { min-height: 96px; resize: vertical; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px;
}

.check-row input { margin-top: 3px; accent-color: var(--brand-emerald); }

.check-row span {
  font-size: 14px;
  color: var(--surface-text);
}

/* The consent text is a label, so it has to opt out of the uppercase mono
   field-label styling and stay clickable. */
.check-row .check-text {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--surface-text);
  cursor: pointer;
}

.check-row .check-text label {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
  cursor: pointer;
}

.check-row .opt-note { display: block; font-size: 10px; }

.check-row a {
  color: var(--brand-emerald);
  text-underline-offset: 3px;
}

.check-row a:hover { color: var(--white); }

.reason-wrap {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}
.waitlist:has(#beta:checked) .reason-wrap {
  max-height: 240px;
  opacity: 1;
  margin-top: 16px;
}

.form-error {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
  font-size: 13px;
  color: #F87171;
}

.form-error.show { display: block; animation: rise 0.3s ease; }

.success {
  display: none;
  padding: 24px;
  border: 3px solid var(--brand-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.success.show { display: block; animation: rise 0.45s ease; }

.success h3 {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.success p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--surface-muted);
}

.form-actions { margin-top: 20px; }

/* —— Motion —— */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 14px 0 rgba(16, 185, 129, 0.22); }
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.panel-window .chip-emerald { animation: chip-glow 3.4s ease-in-out infinite; }

.chip-in { animation: chip-in 0.35s ease; }

.tab-panel.tab-enter { animation: rise 0.35s ease; }

.hero-title { animation: rise 0.7s ease 0.12s both; }
#desk-sketch { animation: rise 0.75s ease 0.3s both; }
#demo { animation: rise 0.8s ease 0.38s both; }

[data-delay="1"] { --reveal-delay: 80ms; }
[data-delay="2"] { --reveal-delay: 160ms; }
[data-delay="3"] { --reveal-delay: 240ms; }
[data-delay="4"] { --reveal-delay: 320ms; }

.feature[data-reveal].is-in:hover {
  transform: translateY(-3px);
}

/* —— Arrow strike / guardian intercept —— */
.ag-strike {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ag-strike.is-live { opacity: 1; }

.ag-strike::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 34vmax at 50% 50%, transparent 30%, rgba(6, 14, 32, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ag-strike.is-live::before { opacity: 1; }

.ag-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.35);
}

.ag-strike.is-live .ag-core {
  animation: ag-core-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.ag-core .icon {
  grid-area: 1 / 1;
  color: var(--brand-emerald);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.45));
  transition: filter 0.16s ease, transform 0.16s ease;
}

.ag-core.is-hit .icon {
  transform: scale(1.09);
  filter: drop-shadow(0 0 22px rgba(16, 185, 129, 0.95));
}

.ag-ring {
  grid-area: 1 / 1;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 999px;
  opacity: 0;
}

.ag-ring.is-live {
  animation: ag-ring-out 0.6s ease-out both;
}

body > .app-header .lockup .icon,
#desk-sketch {
  cursor: pointer;
}

.ag-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 12px;
  margin: -6px 0 0 -33px;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.ag-arrow i {
  position: absolute;
  display: block;
}

.ag-head {
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 11px 6px 0;
  border-color: transparent var(--covenant-gold) transparent transparent;
}

.ag-shaft {
  left: 10px;
  right: 13px;
  top: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--covenant-gold), rgba(212, 175, 55, 0.25));
}

.ag-fletch {
  right: 0;
  top: 1px;
  width: 15px;
  height: 10px;
  background: rgba(212, 175, 55, 0.8);
  clip-path: polygon(0 50%, 55% 0, 100% 0, 45% 50%, 100% 100%, 55% 100%);
}

.ag-note {
  position: absolute;
  left: 50%;
  top: calc(50% + 74px);
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  opacity: 0;
}

.ag-note.show { animation: ag-note-in 1.3s ease both; }

@keyframes ag-core-in {
  0% { opacity: 0; transform: scale(0.35) rotate(-8deg); }
  70% { opacity: 1; transform: scale(1.06) rotate(0deg); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ag-ring-out {
  0% { opacity: 0.85; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(2.1); }
}

@keyframes ag-note-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  22% { opacity: 1; transform: translateX(-50%); }
  74% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 860px) {
  .panel-body { flex-direction: column; }
  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }
  .nav-btn { width: 100%; }
  .features, .tile-grid, .shield-grid, .scope-grid { grid-template-columns: 1fr; }
  .panel-window { height: auto; min-height: 640px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 8px 0 48px;
    gap: 36px;
  }
  .hero-title { max-width: none; }
  .lede { max-width: none; }
  .desk {
    max-width: 640px;
    margin: 0 auto;
  }
  .desk-sketch { margin: 8px 0 4px; }
  .desk-icons { display: none; }
  .win { left: 12px; right: 12px; }
  .count { gap: 6px; }
  .count-label { font-size: 8px; letter-spacing: 0.06em; }
  .panel-window .app-header { padding: 16px; }
}

/* 16px keeps iOS from zooming the page when a field takes focus. */
@media (max-width: 780px) {
  input[type="email"],
  textarea,
  .field,
  .panel-window select,
  .panel-window textarea { font-size: 16px; }

  .check-row { gap: 12px; margin: 18px 0 10px; }
  .check-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }
}

@media (max-width: 520px) {
  .sidebar { grid-template-columns: 1fr; }
  .waitlist { padding: 22px 16px; }
  .waitlist h2 { font-size: 17px; }
  .platform-note { margin-bottom: 18px; }
}

/* The Turnstile iframe has a 300px floor, so shrink it to fit narrow cards. */
@media (max-width: 380px) {
  .cf-turnstile { transform: scale(0.95); transform-origin: 0 50%; }
}

@media (max-width: 340px) {
  .cf-turnstile { transform: scale(0.84); }
}
