/* ============================================
   Product pages (v3) - shared by /ais, /spice
   and /qres: hero with the app's sticker and a
   mock-up, then numbered cards, code, tables.
   The mock-ups at the bottom of this file are
   each app's real UI rebuilt in markup.
   ============================================ */

/* --------- HERO --------- */
.section.hero.pd-hero {
  justify-content: center;
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: clamp(96px, 13vh, 130px);
}
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.pd-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white-faint);
}
.pd-crumb a { transition: color 0.3s var(--ease-out); }
.pd-crumb a:hover { color: var(--white); }
.pd-crumb .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px var(--purple-bright);
}
.pd-title {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  font-size: clamp(64px, 10vw, 156px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.07em;
}
.pd-title .keep-case { text-transform: none; }
.pd-stk {
  flex: none;
  width: 0.78em;
  rotate: -8deg;
}
html.js:not(.is-ready) .pd-stk { scale: 0; }
html.is-ready .pd-stk { scale: 1; transition: scale 1s var(--ease-spring) 0.35s; }
.pd-hero .chips { margin-top: clamp(18px, 2.2vw, 28px); }
.pd-lead {
  max-width: 540px;
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--white-dim);
}
.pd-lead strong, .pd-lead b { color: var(--white); font-weight: 500; }
.pd-lead em { font-style: normal; color: var(--lavender); }
.pd-lead .serif { font-size: 1.2em; color: var(--white); }
.pd-sub {
  max-width: 520px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-faint);
}
.pd-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}
.pd-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.3px;
  color: var(--white-faint);
}
.pd-note a { color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px; }
.pd-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.pd-visual > * { width: 100%; }
.pd-visual .qr-mock { width: 100%; max-width: 360px; }
.pd-caption {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--white-dim);
}

/* --------- shared content blocks --------- */
.pd-lead-wide {
  max-width: 760px;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}
.pd-note-block {
  max-width: 760px;
  margin-top: clamp(22px, 3vw, 36px);
  padding-left: 18px;
  border-left: 1px solid var(--purple-bright);
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-dim);
}
.pd-note-block em { font-style: normal; color: var(--lavender); }

/* two cards side by side */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.split-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
}
.split-card h3 {
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.split-card p, .split-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-dim);
}
.split-card p b, .split-card p strong { color: var(--white); font-weight: 500; }
.split-card ul { display: flex; flex-direction: column; gap: 8px; }
.split-card li { position: relative; padding-left: 20px; }
.split-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 9px; height: 1px;
  background: var(--purple-bright);
}
.split-card li.ok::before, .split-card li.warn::before { display: none; }
.split-card li.ok, .split-card li.warn { padding-left: 0; }
.split-card li .mark { display: inline-block; width: 20px; color: var(--ok); }
.split-card li.warn .mark { color: var(--warn); }
.tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-rule);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white-dim);
}
.tag.good { color: var(--ok); border-color: rgba(106, 255, 154, 0.3); }
.tag.bad  { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }
.tag.opt  { color: var(--warn); border-color: rgba(255, 204, 106, 0.3); }

/* code + commands */
.codeblock {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--white-line);
  background: var(--bg-0);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--white-dim);
  white-space: pre;
  scrollbar-width: thin;
}
.codeblock .del { display: block; color: var(--bad); }
.codeblock .add { display: block; color: var(--ok); }
.codeblock .ctx { display: block; color: var(--white-faint); }
.cmd-table {
  margin-top: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid var(--white-rule);
}
.cmd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--white-line);
  font-size: 14px;
  color: var(--white-dim);
}
.cmd-row code { justify-self: start; }
.cmd-row b { color: var(--white); font-weight: 500; }

/* big numbers */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(28px, 3.6vw, 48px);
}
.stat {
  padding: clamp(18px, 2.2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 0.42em; margin-left: 2px; color: var(--purple-bright); }
.stat-label { font-size: 14px; color: var(--white); }
.stat-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* tables */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-rule);
  background: var(--bg-1);
  scrollbar-width: thin;
}
.tbl {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white-faint);
  border-bottom: 1px solid var(--white-rule);
}
.tbl td {
  padding: 13px 18px;
  color: var(--white-dim);
  border-bottom: 1px solid var(--white-line);
  vertical-align: top;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--white); }
.tbl tr.hl td { background: rgba(138, 120, 240, 0.09); }
.tbl td b { color: var(--white); font-weight: 500; }
.tbl td em { font-style: normal; color: var(--lavender); }

/* a framed note that says the uncomfortable part out loud */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(22px, 3vw, 36px);
  padding: clamp(18px, 2.2vw, 28px);
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-dim);
}
.callout b { color: var(--white); font-weight: 500; }
.callout h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -0.03em; }
.callout-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--warn);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--warn);
}

/* screenshot in a window frame */
.shot {
  margin: 0 0 clamp(22px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-rule);
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 80px rgba(138, 120, 240, 0.1);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--white-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--white-faint);
}

/* numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.2vw, 30px);
  min-width: 0;
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 38px;
  line-height: 0.9;
  color: var(--purple-bright);
}
.step h3 { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -0.03em; line-height: 1.15; }
.step p { font-size: 14px; line-height: 1.7; color: var(--white-dim); }
.step p b { color: var(--white); font-weight: 500; }

.pd-spec { margin-top: clamp(26px, 3.4vw, 44px); }
.pd-spec .spec-row .k {
  width: 90px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.pd-spec .spec-row .v { flex: 1; text-align: left; color: var(--white-dim); }
.pd-bottom-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 5vw, 64px);
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 2.6vw, 32px);
}

@media (max-width: 1000px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-visual { max-width: 560px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .split-grid, .steps { grid-template-columns: 1fr; }
  .cmd-row { grid-template-columns: 1fr; gap: 6px; }
  .pd-spec .spec-row { flex-direction: column; gap: 4px; }
}

/* --------- MOCK: Spice manager window --------- */
.spice-mock {
  background: var(--bg-1);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(180, 165, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(180, 165, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
}

.spice-mock-titlebar {
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(8, 8, 11, 0.92);
  border-bottom: 1px solid var(--white-line);
}
.spice-mock-brand {
  display: flex; align-items: center; gap: 8px;
}
.spice-mock-brand span:first-of-type {
  color: var(--white);
  letter-spacing: 0.22em;
  font-size: 9px;
}
.spice-mock-by {
  color: rgba(180, 165, 255, 0.5);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.spice-mock-alpha {
  background: rgba(180, 165, 255, 0.15);
  border: 1px solid rgba(180, 165, 255, 0.3);
  color: var(--purple-bright);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 7px;
  letter-spacing: 0.15em;
}
.spice-mock-tools { display: flex; gap: 6px; }
.spice-mock-tools span {
  width: 8px; height: 8px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.spice-mock-body {
  display: flex;
  min-height: 260px;
}
.spice-mock-side {
  width: 130px;
  padding: 14px 8px;
  border-right: 1px solid var(--white-line);
  display: flex; flex-direction: column; gap: 2px;
}
.spice-mock-nav-item {
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--white-faint);
  font-size: 8px;
  letter-spacing: 0.1em;
  border-left: 2px solid transparent;
}
.spice-mock-nav-item.active {
  background: rgba(180, 165, 255, 0.08);
  border-left-color: var(--purple-bright);
  color: var(--purple-bright);
}
.spice-mock-content {
  flex: 1;
  padding: 18px;
  display: flex; flex-direction: column; gap: 16px;
}
.spice-mock-preview {
  height: 130px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 50%, #1a1a1a 0%, #09090b 80%),
    linear-gradient(rgba(180,165,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(180,165,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.spice-mock-preview svg {
  width: 60px; height: 60px;
  filter: drop-shadow(0 0 8px rgba(180,165,255,0.5));
}
.spice-mock-controls {
  display: flex; flex-direction: column; gap: 7px;
}
.spice-mock-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 8px;
  color: var(--white-faint);
  letter-spacing: 0.1em;
}
.spice-mock-row span:first-of-type { width: 50px; }
.spice-mock-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.spice-mock-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  box-shadow: 0 0 8px var(--purple-bright);
}

/* --------- MOCK: Qres window --------- */
.qr-hero-right { display: flex; justify-content: center; }

.qr-mock {
  width: 100%;
  max-width: 330px;
  background: var(--bg-0);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-bottom: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(138, 120, 240, 0.08);
}

.qr-mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  height: 32px;
  border-bottom: 1px solid var(--white-line);
}
.qr-mock-brand { display: flex; align-items: baseline; gap: 7px; }
.qr-mock-brand svg { align-self: center; }
.qr-mock-name {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.qr-mock-ver {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--white-faint);
}
.qr-mock-tools { display: flex; }
.qr-mock-tools span { width: 30px; height: 32px; position: relative; }
.qr-mock-tools span::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 1px;
  background: var(--white-faint);
}
.qr-mock-tools span:nth-child(2)::after {
  width: 8px; height: 8px;
  background: none;
  background-image:
    linear-gradient(45deg, transparent 43%, var(--white-faint) 43%, var(--white-faint) 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--white-faint) 43%, var(--white-faint) 57%, transparent 57%);
}

/* Control row */
.qr-mock-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px 9px;
}
.qr-mock-select {
  flex: 1;
  min-width: 0;
  position: relative;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  padding: 8px 22px 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qr-mock-select::after {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  width: 4px; height: 4px;
  margin-top: -3px;
  border-right: 1.2px solid var(--white-faint);
  border-bottom: 1.2px solid var(--white-faint);
  transform: rotate(45deg);
}
.qr-mock-icon {
  width: 27px; height: 27px;
  flex: none;
  border-radius: var(--radius-sm);
  position: relative;
}
.qr-mock-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.2px solid var(--white-faint);
  border-radius: 50%;
}
.qr-mock-icon:last-child::after {
  inset: 9px 7px;
  border: none;
  border-top: 1.2px solid var(--white-faint);
  border-bottom: 1.2px solid var(--white-faint);
  border-radius: 0;
}

/* Status strip */
.qr-mock-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 12px 13px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.qr-mock-status i {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--purple);
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--purple);
}
.qr-mock-mono { color: var(--white-dim); }
.qr-mock-mono em,
.qr-mock-tile b em { font-style: normal; color: var(--purple-bright); padding: 0 2px; }

/* Eyebrow, same hairline-and-mono treatment as the page */
.qr-mock-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 8px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}
.qr-mock-eyebrow > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.qr-mock-eyebrow > span:first-child::before {
  content: "";
  display: block;
  width: 15px;
  height: 1px;
  background: var(--purple-bright);
  flex: none;
}
.qr-mock-eyebrow.spaced { padding-top: 15px; }
.qr-mock-eyebrow .num { color: var(--white-faint); }
.qr-mock-live { color: #4ade80; letter-spacing: 0.18em; }
.qr-mock-live::before {
  content: "";
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 6px #4ade80;
}

/* Tiles */
.qr-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 12px;
}
.qr-mock-tile {
  padding: 9px 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-sm);
}
.qr-mock-tile.active {
  border-color: rgba(180, 165, 255, 0.55);
  background: linear-gradient(180deg, rgba(138, 120, 240, 0.12), transparent 65%), rgba(255, 255, 255, 0.03);
}
.qr-mock-tile b {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 4px;
}
.qr-mock-tile b em { color: var(--white-faint); }
.qr-mock-tile.active b em { color: var(--purple-bright); }
.qr-mock-tile span {
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.qr-mock-tile.active span { color: var(--purple-bright); }

/* Hotkey row */
.qr-mock-row {
  display: flex;
  gap: 6px;
  padding: 0 12px;
}
.qr-mock-key {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-sm);
}
.qr-mock-key b {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-bottom-width: 2px;
  border-radius: 2px;
  padding: 2px 4px 1px;
  line-height: 1;
}
.qr-mock-btn {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
}

/* --------- MOCK: AiS execution report --------- */
.ais-term {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13,13,17,0.96), rgba(5,5,7,0.96));
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(138, 120, 240, 0.07);
}
.ais-term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--white-line);
  background: rgba(255,255,255,0.015);
}
.ais-term-dots { display: flex; gap: 6px; }
.ais-term-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.13);
}
.ais-term-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--white-faint);
}

.ais-term-body { padding: 16px 18px 18px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.65; }
.ais-term-line { color: var(--white-dim); }
.ais-term-line.dim { color: var(--white-faint); margin-bottom: 12px; }

.ais-term-block {
  border-left: 2px solid var(--white-line);
  padding-left: 12px;
  margin-bottom: 14px;
}
.ais-term-row { display: flex; gap: 12px; }
.ais-term-row .k { color: var(--white-faint); min-width: 82px; text-align: right; }
.ais-term-row .v { color: var(--white-dim); }
.ais-term-row .v.it { font-style: italic; }
.ais-term-row .v.ok { color: #4ade80; }

.ais-verdict {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 14px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 11px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 26px rgba(220, 38, 38, 0.35);
}

.ais-term-finding {
  border-left: 2px solid;
  padding: 8px 0 8px 12px;
  margin-bottom: 10px;
}
.ais-term-finding.crit { border-color: #dc2626; }
.ais-term-finding.high { border-color: #f59e0b; }

.ais-f-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.ais-f-head .sev { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; padding: 2px 6px; border-radius: 2px; }
.ais-f-head .sev.crit { background: rgba(220, 38, 38, 0.16); color: #f87171; }
.ais-f-head .sev.high { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.ais-f-head .rule { color: #67e8f9; font-size: 10.5px; }

.ais-f-body { color: var(--white-dim); font-size: 11px; }
.ais-f-body b { color: var(--white); }
.ais-f-trace { color: var(--white-faint); font-size: 10.5px; margin-top: 3px; }
.ais-f-trace .arrowed { color: var(--purple-bright); }

.ais-term-prompt {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--white-line);
  color: var(--white-dim);
  font-size: 11px;
}
.ais-term-prompt .caret { color: var(--purple-bright); margin-right: 6px; }
.ais-term-prompt b { color: var(--white); }
.ais-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  margin-left: 6px;
  background: var(--purple-bright);
  vertical-align: text-bottom;
  animation: ais-blink 1.1s steps(1) infinite;
}
@keyframes ais-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.ais-term-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--white-faint);
}

/* --------- MOCK: clipped window --------- */
.pd-visual .cl-mock { width: 100%; max-width: 420px; }
.cl-mock {
  --cl-rail: 44px;
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--white-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(138, 120, 240, 0.1);
  rotate: 1.5deg;
}
.cl-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding-left: 10px;
  border-bottom: 1px solid var(--white-line);
  background: rgba(255, 255, 255, 0.015);
}
.cl-mock-brand { display: flex; align-items: center; gap: 7px; }
.cl-mock-logo { width: 20px; margin: -2px 0; }
.cl-mock-logo .stk { filter: none; }
.cl-mock-brand b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}
.cl-mock-brand em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--white-faint);
}
.cl-mock-win { display: flex; height: 100%; }
.cl-mock-win i { position: relative; width: 34px; height: 100%; }
.cl-mock-win i::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 1px;
  background: var(--white-dim);
  translate: -50% -50%;
}
.cl-mock-win i:nth-child(2)::after { height: 8px; width: 8px; background: none; border: 1px solid var(--white-dim); border-radius: 1.5px; }
.cl-mock-win i:nth-child(3)::after { height: 1px; width: 11px; rotate: 45deg; box-shadow: none; }
.cl-mock-win i:nth-child(3)::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1px;
  background: var(--white-dim);
  translate: -50% -50%;
  rotate: -45deg;
}
.cl-mock-body { display: grid; grid-template-columns: var(--cl-rail) minmax(0, 1fr); }
.cl-mock-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-right: 1px solid var(--white-line);
}
.cl-mock-rail span {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}
.cl-mock-rail span:nth-child(2) { border-radius: 50%; }
.cl-mock-rail span:nth-child(4) { rotate: 12deg; }
.cl-mock-rail span.on {
  background: var(--purple);
  border: 2.5px solid var(--white);
  rotate: -8deg;
  box-shadow: 0 0 18px rgba(138, 120, 240, 0.45);
}
.cl-mock-main { min-width: 0; padding: 12px 12px 14px; }
.cl-mock-engine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid rgba(180, 165, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(138, 120, 240, 0.08);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cl-mock-live { color: var(--ok); }
.cl-mock-live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  vertical-align: 1px;
  animation: livePulse 2s ease-in-out infinite;
}
.cl-mock-mono { color: var(--white-faint); }
.cl-mock-eyebrow {
  display: flex;
  justify-content: space-between;
  padding: 14px 2px 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.cl-mock-eyebrow > span:first-child { color: var(--white-dim); }
.cl-mock-eyebrow .num { color: var(--white-faint); }
.cl-mock-shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-short {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 70% 40% at 30% 70%, rgba(138, 120, 240, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(76, 58, 168, 0.7), transparent 70%),
    linear-gradient(170deg, #1b1533, #0b0912);
}
.cl-short.active { border-color: var(--purple-bright); box-shadow: 0 0 0 1px var(--purple-bright), 0 0 24px rgba(138, 120, 240, 0.35); }
/* facecam over gameplay */
.cl-short.split::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 36%;
  background: radial-gradient(circle at 50% 70%, #3a2f63 0 26%, transparent 27%), linear-gradient(180deg, #221b38, #16112a);
  border-bottom: 2px solid #0b0912;
}
.cl-short-cam { position: absolute; left: 50%; top: 9%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #4c3aa8; translate: -50% 0; }
/* blurred fill: the 16:9 clip in a band, its own blur behind */
.cl-short.blur::before {
  content: '';
  position: absolute;
  inset: 34% 0;
  background:
    radial-gradient(ellipse 50% 60% at 40% 60%, rgba(220, 214, 255, 0.45), transparent 70%),
    linear-gradient(120deg, #2b1568, #120a2c);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}
.cl-short.crop {
  background:
    radial-gradient(circle at 50% 46%, transparent 0 9%, rgba(220, 214, 255, 0.8) 9.5% 11%, transparent 11.5%),
    radial-gradient(ellipse 80% 50% at 50% 80%, rgba(138, 120, 240, 0.5), transparent 70%),
    linear-gradient(180deg, #120a2c, #2b1568);
}
.cl-short-cap {
  position: absolute;
  left: 6%; right: 6%;
  top: 58%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  font-family: var(--font-display);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 1px 0 #000, 0 2px 6px rgba(0, 0, 0, 0.9);
}
.cl-short-cap b { font-weight: 700; color: var(--lavender); }
.cl-short.crop .cl-short-cap { top: 66%; font-size: clamp(11px, 1.25vw, 15px); }
/* the current word lights up, one after another */
.cl-short.active .cl-short-cap span { animation: clWord 3s steps(1) infinite; animation-delay: calc(var(--w, 0) * 0.6s); }
@keyframes clWord {
  0% { color: var(--lavender); }
  20%, 100% { color: #fff; }
}
.cl-short-meta {
  position: absolute;
  left: 7%; bottom: 6%;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.cl-mock-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.cl-mock-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-mock-title small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.cl-mock-acts { display: flex; gap: 5px; flex: none; }
.cl-mock-acts span {
  padding: 5px 9px;
  border: 1px solid var(--white-rule);
  border-radius: 999px;
  font-size: 10px;
  color: var(--white-dim);
}
.cl-mock-acts span.ok { background: var(--white); border-color: var(--white); color: var(--ink); font-weight: 600; }
.cl-mock-log {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--white-faint);
  white-space: nowrap;
  overflow: hidden;
}
.cl-mock-log em { font-style: normal; color: var(--purple-bright); margin-right: 6px; }
@media (prefers-reduced-motion: reduce) {
  .cl-short.active .cl-short-cap span { animation: none; }
}
