/* ── HOME PRODUCTS - six products and the mechanism (VTE) ──
   Owns the home products section: card shell, fronts, the VTE card and the
   flip. The heading uses the site's own .section-label and .section-title, and
   every front colour comes from the site's theme tokens (veridex.css :root and
   .theme-dark), so this section wears the same navy as every other section in
   dark and the same raised grey cards in light. The class names avoid "card"
   and "wrap" on purpose: veridex.css paints any such class in dark theme with
   !important. The back-face content (.pb-*, .pbc-*) is kept as it was, on one
   dark slate surface in both themes.

   Size carries one meaning: the six products are peers and share one size; VTE
   is the mechanism, not a product, so it runs the full width.

   Hue-meaning map (one meaning each, always beside a written label):
     teal   controlled pipeline; the one accent in the product art
     blue   design partner (the site primary)
     amber  controlled testing
     VTE's three answers share the site primary; shape and word tell them apart */

.vx-stage {
  --vx-surface: var(--bg, #eef1f6);
  --vx-raise: 10px 10px 24px #d4d9e2, -10px -10px 24px #ffffff;
  --vx-raise-hi: 14px 14px 32px #c9d0dc, -10px -10px 24px #ffffff;
  --vx-line: rgba(15, 23, 42, 0.07);
  --vx-line-hi: rgba(51, 73, 179, 0.28);
  --vx-text: var(--text, #0f172a);
  --vx-soft: #4f5d74;
  --vx-faint: var(--primary, #3349b3);
  --vx-art: rgba(51, 73, 179, 0.58);
  --vx-art-faint: rgba(51, 73, 179, 0.2);
  --vx-teal: #0d9488;
  --vx-panel: rgba(51, 73, 179, 0.04);
  --vx-panel-line: rgba(51, 73, 179, 0.1);
  --vx-hair: rgba(15, 23, 42, 0.1);
  --vx-pill-line: rgba(15, 23, 42, 0.14);
  --vx-turn-line: rgba(15, 23, 42, 0.18);
  --vx-turn-fg: #4f5d74;
  --vx-glyph: var(--primary, #3349b3);
  --vx-tag-bg: rgba(51, 73, 179, 0.08);
  --vx-dot-pipeline: #0d9488;
  --vx-dot-partner: #3349b3;
  --vx-dot-testing: #d97706;
  --vx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vx-cta-line: rgba(51, 73, 179, 0.25);
  --vx-cta-accent: var(--primary, #3349b3);
  --vx-cta-hover: rgba(51, 73, 179, 0.05);

  position: relative;
  color: var(--vx-text);
}
.theme-dark .vx-stage {
  --vx-cta-line: rgba(165, 191, 240, 0.25);
  --vx-cta-accent: #a5bff0;
  --vx-cta-hover: rgba(165, 191, 240, 0.06);
  --vx-surface: var(--neo-bg, #142238);
  --vx-raise: none;
  --vx-raise-hi: none;
  --vx-line: var(--border, #223454);
  --vx-line-hi: var(--primary, #7287ff);
  --vx-soft: var(--muted, #a8b3cc);
  --vx-faint: var(--primary2, #8ca0ff);
  --vx-art: rgba(140, 160, 255, 0.6);
  --vx-art-faint: rgba(140, 160, 255, 0.2);
  --vx-teal: #5eead4;
  --vx-panel: rgba(255, 255, 255, 0.02);
  --vx-panel-line: rgba(255, 255, 255, 0.06);
  --vx-hair: rgba(255, 255, 255, 0.08);
  --vx-pill-line: rgba(255, 255, 255, 0.14);
  --vx-turn-line: rgba(255, 255, 255, 0.18);
  --vx-turn-fg: rgba(255, 255, 255, 0.72);
  --vx-glyph: var(--primary2, #8ca0ff);
  --vx-tag-bg: rgba(140, 160, 255, 0.14);
  --vx-dot-pipeline: #5eead4;
  --vx-dot-partner: #bcd4ff;
  --vx-dot-testing: #fcd34d;
}

/* the cards: in light theme a deep shade of the brand blue (Paula's pick, 28
   Sep, over flat brand blue, a pale tint and the footer gradient), in
   dark theme the site's slate navy; the heading and the divider sit on the
   page and follow its theme */
.vx-tile {
  --vx-surface: linear-gradient(160deg, #243685 0%, #1c2a6b 100%);
  --vx-sheet: #20306f;
  --vx-back-bg:
    radial-gradient(120% 90% at 100% 0%, rgba(94, 234, 212, 0.1) 0%, transparent 58%),
    linear-gradient(158deg, #1f2e74 0%, #18245a 100%) #18245a;
  --vx-back-line: rgba(255, 255, 255, 0.22);
  --vx-raise: 0 2px 6px rgba(28, 42, 107, 0.14), 0 16px 36px rgba(28, 42, 107, 0.22);
  --vx-raise-hi: 0 4px 10px rgba(28, 42, 107, 0.18), 0 24px 48px rgba(28, 42, 107, 0.32);
  --vx-line: rgba(255, 255, 255, 0.14);
  --vx-line-hi: rgba(255, 255, 255, 0.5);
  --vx-text: #ffffff;
  --vx-soft: rgba(255, 255, 255, 0.82);
  --vx-faint: #e3e8ff;
  --vx-art: rgba(255, 255, 255, 0.62);
  --vx-art-faint: rgba(255, 255, 255, 0.24);
  --vx-teal: #5eead4;
  --vx-panel: rgba(255, 255, 255, 0.07);
  --vx-panel-line: rgba(255, 255, 255, 0.16);
  --vx-hair: rgba(255, 255, 255, 0.16);
  --vx-pill-line: rgba(255, 255, 255, 0.3);
  --vx-turn-line: rgba(255, 255, 255, 0.34);
  --vx-turn-fg: #ffffff;
  --vx-glyph: #ffffff;
  --vx-tag-bg: rgba(255, 255, 255, 0.16);
  --vx-dot-pipeline: #5eead4;
  --vx-dot-partner: #ffffff;
  --vx-dot-testing: #fcd34d;

  /* the card is the perspective box and holds the grid cell at the front's
     height; the flip wrapper inside grows to the back's height */
  position: relative;
  height: var(--fh, 400px);
  perspective: 1600px;
  color: var(--vx-text);
  transition: opacity 0.3s var(--vx-ease);
}
.theme-dark .vx-tile {
  --vx-surface: #142238;
  --vx-sheet: #142238;
  --vx-back-bg:
    radial-gradient(120% 90% at 100% 0%, rgba(94, 234, 212, 0.13) 0%, transparent 58%),
    linear-gradient(158deg, #1d2f50 0%, #142238 62%, #0f1b2e 100%) #142238;
  --vx-back-line: rgba(140, 160, 255, 0.3);
  --vx-raise: none;
  --vx-raise-hi: none;
  --vx-line: #223454;
  --vx-line-hi: #7287ff;
  --vx-text: #f5f7ff;
  --vx-soft: #a8b3cc;
  --vx-faint: #8ca0ff;
  --vx-art: rgba(140, 160, 255, 0.6);
  --vx-art-faint: rgba(140, 160, 255, 0.2);
  --vx-panel: rgba(255, 255, 255, 0.02);
  --vx-panel-line: rgba(255, 255, 255, 0.06);
  --vx-hair: rgba(255, 255, 255, 0.08);
  --vx-pill-line: rgba(255, 255, 255, 0.14);
  --vx-turn-line: rgba(255, 255, 255, 0.18);
  --vx-turn-fg: rgba(255, 255, 255, 0.72);
  --vx-glyph: #8ca0ff;
  --vx-tag-bg: rgba(140, 160, 255, 0.14);
  --vx-dot-partner: #bcd4ff;
}

/* ── heading: the site's own label and title; the accent is the site's too ── */
.vx-head {
  max-width: 780px;
  margin-bottom: 40px;
}
.vx-head .vx-accent {
  color: var(--primary2);
}

/* ── the six ── */
.vx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* the card is the perspective box and holds the grid cell at the front's height;
   the flip wrapper grows to the back's height and overlays its neighbours, so a
   turned card never shoves the page (heights are measured in products-bento.js) */
.vx-tile:hover,
.vx-tile:focus-within,
.vx-tile.is-flipped {
  z-index: 5;
}
.vx-flip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--fh, 400px);
  transform-style: preserve-3d;
  transition:
    transform 0.85s var(--vx-ease),
    height 0.6s var(--vx-ease);
}
.vx-tile.grows-up .vx-flip {
  top: auto;
  bottom: 0;
}
.vx-tile:hover .vx-flip,
.vx-tile:focus-within .vx-flip,
.vx-tile.is-flipped .vx-flip {
  height: var(--bh, auto);
  transform: rotateY(180deg);
}

/* both faces stack in the wrapper; no backdrop-filter, it flattens preserve-3d */
.vx-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  backface-visibility: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.vx-front {
  gap: 0;
  padding: 24px 24px 22px;
  background: var(--vx-surface);
  border: 1px solid var(--vx-line);
  box-shadow: var(--vx-raise);
}

/* the back face: one opaque dark surface in both themes, on the site's slate
   navy (not a second, indigo navy), so a turned card never brings in a blue the
   rest of the page does not use */
.vx-back {
  gap: 0;
  padding: 16px 16px 15px;
  overflow: hidden;
  transform: rotateY(180deg);
  background: var(--vx-back-bg);
  border: 1px solid var(--vx-back-line);
  box-shadow: inset 0 1px 0 rgba(94, 234, 212, 0.35);
}

/* the one card a turned card grows over fades out underneath it (marked in
   products-bento.js), so the two never show through each other; nothing
   else on the page changes */
.vx-tile.is-under {
  opacity: 0;
}

/* the backs' evidence content was set at 8.5-12px, a size step below the
   fronts; scale it as one piece so every figure, chart and source line reads,
   without touching its proportions or its words */
.vx-tile:not(.vx-tile-wide) .vx-back > * {
  zoom: 1.2;
}

/* the backs' first lines keep clear of the turn control */
.vx-back .pb-head,
.vx-back .pb-eyebrow {
  padding-right: 44px;
}
.vx-tile:hover .vx-front,
.vx-tile:focus-within .vx-front,
.vx-tile.is-flipped .vx-front {
  border-color: var(--vx-line-hi);
  box-shadow: var(--vx-raise-hi);
}

/* a turned card overlays its neighbours, so its back needs a real lift */
.vx-tile:hover .vx-back,
.vx-tile:focus-within .vx-back,
.vx-tile.is-flipped .vx-back {
  box-shadow:
    0 30px 64px rgba(7, 17, 31, 0.45),
    0 6px 16px rgba(7, 17, 31, 0.3);
}

/* ── front anatomy: mark and role, name, one line, the product's picture, stage ── */
.vx-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 36px;
}
.vx-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}
.vx-role {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--vx-tag-bg);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vx-faint);
}
.vx-name {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #a5bff0;
}
.vx-line {
  margin: 6px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--vx-soft);
}
.vx-art {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  max-height: 128px;
  margin: 18px 0 16px;
  overflow: visible;
}
.vx-art svg {
  width: 100%;
  max-width: 210px;
  height: auto;
  color: var(--vx-art);
  overflow: visible;
}
.vx-art text {
  fill: var(--vx-soft);
}
.vx-art .sheet {
  fill: var(--vx-sheet);
}
.vx-art .f {
  color: var(--vx-art-faint);
}
.vx-art .a {
  color: var(--vx-teal);
}
.vx-art .pulse {
  animation: vx-pulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes vx-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* the stage, stated in words beside its dot - never hue alone */
.vx-status {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--vx-pill-line);
  font-size: 11px;
  font-weight: 500;
  color: var(--vx-soft);
}
.vx-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vx-dot, var(--vx-teal));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--vx-dot, var(--vx-teal)) 22%, transparent);
}
.vx-status-pipeline {
  --vx-dot: var(--vx-dot-pipeline);
}
.vx-status-partner {
  --vx-dot: var(--vx-dot-partner);
}
.vx-status-testing {
  --vx-dot: var(--vx-dot-testing);
}

/* the control: the pointer-less way in (touch, and pinning with a keyboard) */
.vx-turn {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--vx-turn-line);
  border-radius: 50%;
  background: transparent;
  color: var(--vx-turn-fg);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.vx-turn svg {
  width: 11px;
  height: 11px;
}
.vx-turn:hover {
  border-color: var(--vx-faint);
  color: var(--vx-faint);
}

/* once the card has turned, the control sits on the dark back */
.vx-tile:hover .vx-turn,
.vx-tile:focus-within .vx-turn,
.vx-tile.is-flipped .vx-turn {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
}
.vx-turn:focus-visible {
  outline: 2px solid var(--vx-teal);
  outline-offset: 2px;
}
.vx-tile.grows-up .vx-turn {
  top: auto;
  bottom: 12px;
}

/* ── the mechanism: divider, then one full-width card ──
   Three columns on both faces, on the same thirds as the six above: copy,
   picture, answers in front; what it receives, what travels and what never
   crosses, and the four questions behind. */
.vx-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vx-faint);
}
.vx-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--vx-art-faint), transparent);
}
.vx-tile-wide {
  height: var(--fh, 340px);
}
.vx-tile-wide .vx-front,
.vx-tile-wide .vx-back {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  padding: 28px 32px;
}
.vx-tile-wide .vx-front {
  padding-right: 48px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 48px;
  align-items: center;
  background: radial-gradient(60% 120% at 0% 0%, var(--vx-panel-line) 0%, transparent 70%), var(--vx-surface);
}
.vx-wide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.vx-wide-copy .vx-top {
  align-self: stretch;
  padding-right: 36px;
}

/* the ask sits under the VTE card, not on it: the card turns on hover, so a
   link on its face could never be clicked with a mouse */
.vx-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 14px;
  padding: 16px 22px;
  border: 1px solid var(--vx-cta-line);
  border-radius: 16px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.vx-cta:hover {
  border-color: var(--vx-cta-accent);
  background: var(--vx-cta-hover);
}
.vx-cta:focus-visible {
  outline: 2px solid var(--vx-cta-accent);
  outline-offset: 2px;
}
.vx-cta-k {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.vx-cta-v {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--vx-cta-accent);
  white-space: nowrap;
}
.vx-wide-copy .vx-status {
  margin-top: 14px;
}
.vx-mark-vte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vx-art-faint);
  background: var(--vx-panel);
  color: var(--vx-teal);
}
.vx-wide-name {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #a5bff0;
}
.vx-wide-full {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--vx-faint);
}
.vx-wide-head {
  max-width: 34ch;
  text-wrap: balance;
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--vx-text);
}
.vx-wide-copy .vx-line {
  margin-top: 8px;
  font-size: 14px;
}

/* ── VTE front: an example answer, drawn the way the product returns it.
   One question, one word, the receipt line under it; the tabs show the other
   two answers. Label says "example": this is the format, not a live result. */
.vx-wide-right {
  min-width: 0;
}
.vx-receipt {
  padding: 22px 24px 20px;
  border: 1px solid var(--vx-panel-line);
  border-radius: 16px;
  background: var(--vx-panel);
}
.vx-rc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vx-hair);
}
.vx-rc-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vx-faint);
}
.vx-rc-q {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--vx-soft);
}

/* the drawing and the answers are one picture: the active answer lights up
   and a flow runs from the book, through VTE and that answer, to the
   counterparty; the other two dim */
.vx-flow {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 12px auto 0;
  color: var(--vx-art);
  overflow: visible;
}
.vx-flow .f {
  color: var(--vx-art-faint);
}
.vx-flow .a {
  color: var(--vx-teal);
}
.vx-flow .core {
  fill: var(--vx-panel-line);
}
.vx-flow .flow {
  stroke: var(--vx-art-faint);
  stroke-dasharray: 4 6;
}
.vx-flow .flow-in {
  stroke: var(--vx-teal);
  animation: vx-flow 1.1s linear infinite;
}
.vx-flow .ans {
  opacity: 0.32;
  transition: opacity 0.45s var(--vx-ease);
}
.vx-flow .pulse {
  animation: vx-pulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.vx-receipt[data-state="allowed"] .ans[data-state="allowed"],
.vx-receipt[data-state="blocked"] .ans[data-state="blocked"],
.vx-receipt[data-state="notverified"] .ans[data-state="notverified"] {
  opacity: 1;
  color: var(--vx-glyph);
}
.vx-receipt[data-state="allowed"] .ans[data-state="allowed"] .flow,
.vx-receipt[data-state="blocked"] .ans[data-state="blocked"] .flow,
.vx-receipt[data-state="notverified"] .ans[data-state="notverified"] .flow {
  stroke: var(--vx-teal);
  animation: vx-flow 1.1s linear infinite;
}
.vx-receipt[data-state="allowed"] .ans[data-state="allowed"] .box,
.vx-receipt[data-state="blocked"] .ans[data-state="blocked"] .box,
.vx-receipt[data-state="notverified"] .ans[data-state="notverified"] .box {
  fill: var(--vx-panel-line);
}
@keyframes vx-flow {
  to {
    stroke-dashoffset: -20;
  }
}
.vx-rc-meta[hidden] {
  display: none;
}
.vx-rc-meta {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--vx-soft);
}
.vx-rc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.vx-rc-tab-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--vx-art-faint);
  color: var(--vx-glyph);
}
.vx-rc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--vx-pill-line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vx-soft);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.vx-rc-tab:hover {
  color: var(--vx-text);
}
.vx-rc-tab[aria-pressed="true"] {
  border-color: var(--vx-faint);
  background: var(--vx-panel-line);
  color: var(--vx-text);
}
.vx-rc-tab:focus-visible {
  outline: 2px solid var(--vx-faint);
  outline-offset: 2px;
}

/* ── VTE back: why a third path, what the counterparty never receives ── */
.vx-tile-wide .vx-back {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vx-vb-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aeb9ff;
}
.vx-vb-answer {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}
.vx-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vx-path {
  padding: 14px 16px;
  border: 1px solid rgba(174, 185, 255, 0.16);
  border-radius: 12px;
}
.vx-path-answer {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.05);
}
.vx-path-k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.vx-path-ic {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(174, 185, 255, 0.35);
  color: rgba(174, 185, 255, 0.8);
}
.vx-path-answer .vx-path-ic {
  border-color: rgba(94, 234, 212, 0.6);
  color: #5eead4;
}
.vx-path-v {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}
.vx-vb-foot {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(174, 185, 255, 0.14);
}

.vx-vb-k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
}
.vx-never-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.vx-never-list li {
  padding: 3px 10px;
  border: 1px solid rgba(252, 165, 165, 0.3);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.vx-vb-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.vx-vb-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #fcd34d;
}

/* ── touch: the class is the only thing that turns a card (a tap latches a
   synthetic :hover that would otherwise hold the card over) ── */
@media (hover: none) {
  .vx-turn {
    width: 36px;
    height: 36px;
  }
  .vx-tile:hover .vx-flip,
  .vx-tile:focus-within .vx-flip {
    height: var(--fh, auto);
    transform: none;
  }
  .vx-tile.is-flipped .vx-flip {
    height: var(--bh, auto);
    transform: rotateY(180deg);
  }
  .vx-tile:hover .vx-face,
  .vx-tile:focus-within .vx-face {
    border-color: var(--vx-line);
    box-shadow: none;
  }
  .vx-tile.is-flipped .vx-face {
    border-color: var(--vx-line-hi);
  }
}

@media (max-width: 1060px) {
  .vx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vx-tile-wide .vx-front,
  .vx-tile-wide .vx-back {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 28px 32px;
  }
  .vx-tile-wide .vx-front {
    grid-template-columns: minmax(0, 1fr);
  }
  .vx-vb-foot {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* phones: the six become a row you swipe, each card as tall as its tallest face
   (a scroller clips anything that grows past it, so nothing grows here) */
@media (max-width: 720px) {
  .vx-head {
    margin-bottom: 18px;
  }

  /* the scroller clips, so it carries room for the raised cards' shadow */
  .vx-grid {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 8px 20px 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    align-items: flex-start;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .vx-grid::-webkit-scrollbar {
    display: none;
  }
  .vx-tile:not(.vx-tile-wide) .vx-back > * {
    zoom: 1;
  }
  .vx-grid .vx-tile {
    flex: 0 0 80%;
    scroll-snap-align: start;
    transition: height 0.5s var(--vx-ease);
  }
  .vx-front {
    padding: 18px 18px 16px;
  }
  .vx-name {
    margin-top: 12px;
    font-size: 19px;
  }
  .vx-line {
    font-size: 13.5px;
  }
  .vx-art {
    min-height: 72px;
    max-height: 96px;
    margin: 12px 0;
  }
  .vx-art svg {
    max-width: 170px;
  }

  /* a tapped card grows to its whole back, and the row grows with it; the
     other cards keep their height */
  .vx-grid .vx-tile.is-flipped {
    height: var(--bh, auto);
  }

  /* VTE on a phone: the tag on one line, the three answers on one row */
  .vx-tile-wide .vx-role {
    padding: 4px 8px;
    font-size: 9.5px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }
  .vx-wide-copy .vx-top {
    padding-right: 40px;
  }
  .vx-rc-tabs {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .vx-rc-tab {
    gap: 4px;
    padding: 4px 9px 4px 4px;
    font-size: 12px;
    white-space: nowrap;
  }
  .vx-rc-tab-ic {
    width: 18px;
    height: 18px;
  }
  .vx-rc-head {
    padding-bottom: 10px;
  }
  .vx-rc-q {
    font-size: 12px;
  }
  .vx-rc-meta {
    font-size: 11.5px;
  }

  /* phones: the sentence as a quiet line, the ask as a real button */
  .vx-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .vx-cta-k {
    font-size: 14px;
  }
  .vx-cta-v {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2a3c9c 0%, #3349b3 50%, #4359c2 100%);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(51, 73, 179, 0.3);
  }
  .vx-wide-name {
    margin-top: 12px;
    font-size: 30px;
  }
  .vx-wide-head {
    font-size: 16px;
  }
  .vx-flow {
    max-width: 240px;
  }
  .vx-receipt {
    padding: 14px;
  }
  .vx-tile-wide .vx-front,
  .vx-tile-wide .vx-back {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 18px;
  }
  .vx-paths,
  .vx-vb-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .vx-tile-wide {
    transition: height 0.6s var(--vx-ease);
  }
  .vx-tile-wide.is-flipped,
  .vx-tile-wide:focus-within {
    height: var(--bh, auto);
  }
  .vx-divider {
    margin-top: 12px;
  }
  .vx-turn {
    top: 10px;
    right: 10px;
  }
  .vx-tile.grows-up .vx-turn {
    top: 14px;
    bottom: auto;
  }
}

/* the narrowest phones: the answer chips drop their icon circle and the tag
   gives way to the turn control */
@media (max-width: 380px) {
  .vx-rc-tab-ic {
    display: none;
  }
  .vx-rc-tab {
    padding: 5px 10px;
  }
  .vx-tile-wide .vx-role {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .vx-wide-copy .vx-top {
    gap: 6px;
    padding-right: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vx-flip,
  .vx-tile {
    transition: none;
  }
  .vx-tile:hover .vx-flip,
  .vx-tile:focus-within .vx-flip {
    height: var(--fh, auto);
    transform: none;
  }
  .vx-tile.is-flipped .vx-flip {
    height: var(--bh, auto);
    transform: rotateY(180deg);
  }
  .vx-art .pulse,
  .vx-flow .pulse,
  .vx-flow .flow,
  .vx-flow .flow-in {
    animation: none !important;
  }
}
