/* The visual bill. Sits on the site's own styles.css + measurement.css. */

.vb {
  max-width: 1080px; margin: 0 auto;
  /* motion: one place to tune. --k stretches every duration, --ease is the curve things settle on */
  --k: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --move: calc(var(--k) * 0.6s);
  --leave: calc(var(--k) * 0.4s);
  --fade: calc(var(--k) * 0.35s);
  --reveal: calc(var(--k) * 0.5s);
  --draw: calc(var(--k) * 1s);
}
.vb button { font: inherit; color: inherit; }
.vb :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.vb.no-anim *, .vb.no-anim *::before, .vb.no-anim *::after { transition: none !important; }
.vb-hero-rate { color: var(--text); font-weight: 600; }

/* overflow: clip keeps the card's round corners on the total bar without stopping it from sticking */
.vb-card { padding: 10px 40px 34px; border-radius: 22px; overflow: clip; }

.vb-head { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 22px 0 4px; }
.vb-head .vb-seg { margin-left: auto; flex-shrink: 0; }
.vb-head .vb-kicker { flex-shrink: 0; }
.vb-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--text-muted);
}
.vb-kicker b { color: var(--text); font-weight: 600; margin-right: 10px; }

.vb-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.vb-seg button {
  background: none; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--text-muted);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.vb-seg button:hover { color: var(--text); }
.vb-seg button[aria-pressed='true'] { background: rgba(0, 122, 255, 0.16); color: #5aa9ff; }
.vb-seg small { font-size: 11px; font-weight: 500; margin-left: 5px; opacity: 0.85; }

/* ---------- rows: control | picture | price ---------- */
.vb-row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 156px;
  column-gap: 36px; align-items: center; padding: 24px 0;
}
.vb-row + .vb-row { border-top: 1px solid var(--glass-border); }
.vb-sep { padding: 26px 0 0; border-top: 1px solid var(--glass-border); }
#vb-levels .vb-row:first-child { padding-top: 16px; }

.vb-count { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.vb-count label { font-size: 17px; font-weight: 600; }
.vb-count output { display: inline-block; font-size: 38px; font-weight: 700; line-height: 0.9; font-variant-numeric: tabular-nums; }
.vb-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.vb-label > .vb-desc { margin-top: 14px; }
.vb-row--pay .vb-label > .vb-desc { margin-top: 5px; }
#vb-pack-desc { min-height: 63px; }
.vb-below { display: grid; margin-top: 14px; }
.vb-below > * { grid-area: 1 / 1; transition: opacity var(--fade) ease, transform var(--fade) var(--ease); }
.vb-full {
  display: grid; align-content: start; justify-items: start; row-gap: 10px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  font-size: 13.5px; line-height: 1.55; color: var(--text-muted);
}
/* the faded-out text must not sit over the button and catch its clicks */
.vb-row.is-full .vb-below > .vb-desc { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.vb-row.is-full .vb-full { opacity: 1; transform: none; pointer-events: auto; position: relative; z-index: 1; }
.vb-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap;
  background: rgba(0, 122, 255, 0.14); border: 1px solid rgba(0, 122, 255, 0.6);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.vb-btn b { color: #5aa9ff; font-weight: 600; }
.vb-btn:hover { background: rgba(0, 122, 255, 0.24); box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12); }
.vb-inline {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; color: #5aa9ff;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}

.vb-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 0;
  border-radius: 3px; outline-offset: 8px; cursor: pointer; touch-action: pan-y;
  background: linear-gradient(90deg, var(--blue) var(--fill, 20%), rgba(255, 255, 255, 0.12) var(--fill, 20%));
}
.vb-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue); cursor: grab;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.vb-range:hover::-webkit-slider-thumb { box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5), 0 0 0 7px rgba(0, 122, 255, 0.14); }
.vb-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.14); box-shadow: 0 2px 14px rgba(0, 122, 255, 0.6), 0 0 0 9px rgba(0, 122, 255, 0.18); }
.vb-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue); cursor: grab; box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5);
  transition: transform 0.2s var(--ease);
}
.vb-range:active::-moz-range-thumb { cursor: grabbing; transform: scale(1.14); }

.vb-pick {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 5px;
  width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
}
.vb-radio {
  position: relative; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.32); display: grid; place-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.vb-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  transform: scale(0); transition: transform 0.35s var(--spring);
}
.vb-radio::before {
  content: ''; position: absolute; left: 5.5px; top: 5.5px; width: 8px; height: 4.5px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(-45deg) scale(0); opacity: 0;
  transition: transform 0.35s var(--spring), opacity 0.2s ease;
}
.vb-row.is-chosen .vb-radio { border-color: var(--blue); }
.vb-row.is-chosen .vb-radio::after { transform: scale(1); }
.vb-row.is-on:not(.is-chosen) .vb-radio { border-color: rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.08); }
.vb-row.is-on:not(.is-chosen) .vb-radio::before { transform: rotate(-45deg) scale(1); opacity: 1; }
.vb-name { font-size: 17px; font-weight: 600; line-height: 1.35; transition: color var(--fade) ease; }
.vb-pick .vb-desc { grid-column: 2; }
.vb-row.is-off .vb-name { color: var(--text-muted); }
.vb-pick:hover .vb-radio { border-color: var(--blue); }
/* Data Access comes with every campaign, so its left side is a fixed, already-ticked choice */
.vb-pick--fixed { cursor: default; }

/* the price cell stacks its two states so they can cross-fade */
.vb-price { display: grid; text-align: right; }
.vb-price > *, .vb-price-stack > * { grid-area: 1 / 1; align-self: center; transition: opacity var(--fade) ease, transform var(--fade) var(--ease); }
.vb-price--level { justify-items: end; align-content: center; row-gap: 7px; cursor: pointer; }
.vb-price--level > * { grid-area: auto; }
.vb-price-stack { display: grid; }
.vb-more {
  background: none; border: 0; padding: 2px 0; cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: #5aa9ff;
  text-decoration: underline; text-decoration-color: rgba(90, 169, 255, 0.35); text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.vb-more:hover, .vb-price--level:hover .vb-more { text-decoration-color: #5aa9ff; color: #8cc4ff; }
.vb-price-b { opacity: 0; transform: translateY(5px); }
.vb-price.show-b .vb-price-a { opacity: 0; transform: translateY(-5px); }
.vb-price.show-b .vb-price-b { opacity: 1; transform: none; }
.vb-amount { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; transition: color 0.35s ease; }
.vb-sub { display: block; margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text-muted); }
.vb-amount.is-quiet { font-size: 14px; font-weight: 500; color: var(--text-muted); line-height: 1.45; }
.vb-row.is-off .vb-amount { color: var(--text-muted); }

/* ---------- creatives: a deck of tiles that never changes height ---------- */
.vb-visual { min-width: 0; }
.vb-deck { position: relative; height: calc(var(--th, 128px) + 27px); }
.vb-unit {
  position: absolute; left: 0; top: 0; width: var(--tw, 72px);
  display: grid; justify-items: center; row-gap: 9px;
  transform: translate3d(var(--x, 0px), 0, 0);
  transition: transform var(--move) var(--ease), opacity var(--fade) ease;
  will-change: transform, opacity;
}
.vb-unit.is-out {
  opacity: 0; pointer-events: none;
  transform: translate3d(calc(var(--x, 0px) + 30px), 10px, 0) scale(0.88);
  transition: transform var(--leave) var(--ease), opacity calc(var(--k) * 0.22s) ease;
}
.vb-unit:hover { z-index: 30; }
.vb-unit small {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; line-height: 1.6; color: var(--text-muted);
  white-space: nowrap;
  /* labels come back only once the tiles have moved apart, and go at once when they close up */
  transition: opacity var(--fade) ease calc(var(--move) * 0.55);
}
.vb-deck.is-tight .vb-unit small { opacity: 0; transition: opacity calc(var(--k) * 0.15s) ease; }
.vb-tile {
  position: relative; display: block; width: var(--tw, 72px); height: var(--th, 128px);
  border-radius: calc(var(--tw, 72px) * 0.17); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at var(--ax) var(--ay), color-mix(in srgb, var(--a) 78%, transparent), transparent 64%),
    radial-gradient(circle at var(--bx) var(--by), color-mix(in srgb, var(--b) 66%, transparent), transparent 60%),
    #0e1a29;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, opacity 0.25s ease;
}
.vb-unit:hover .vb-tile { transform: translateY(-7px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5); }
.vb-tile::before {
  content: ''; position: absolute; left: 50%; top: 46%;
  border-style: solid; border-color: transparent transparent transparent rgba(255, 255, 255, 0.92);
  border-width: calc(var(--tw, 72px) * 0.13) 0 calc(var(--tw, 72px) * 0.13) calc(var(--tw, 72px) * 0.21);
  transform: translate(-36%, -50%);
}
.vb-tile::after {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) var(--p, 40%), rgba(255, 255, 255, 0.28) var(--p, 40%));
}
.vb-bracket-wrap { width: var(--bw, 72px); margin-top: 2px; transition: width var(--move) var(--ease); }
.vb-bracket { height: 9px; border: 1px solid rgba(255, 255, 255, 0.24); border-top: 0; border-radius: 0 0 9px 9px; }
.vb-bracket-label {
  display: flex; justify-content: center; margin-top: 6px; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted);
}
.vb-bracket-label span { flex-shrink: 0; }

/* pointing at one creative dims the others */
.vb.has-hot .vb-unit:not(.is-hot):not(.is-out) .vb-tile { opacity: 0.4; }
.vb.has-hot .vb-ssp .dot:not(.is-hot) { opacity: 0.2; }
.vb-ssp .dot.is-hot { r: 5.6; }

/* ---------- level strips ---------- */
.vb-strip {
  position: relative; display: flex; align-items: center; gap: 22px; height: 108px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--glass-border); background-color: rgba(8, 14, 22, 0.55);
  overflow: hidden; cursor: pointer; transition: border-color var(--reveal) ease, background-color var(--reveal) ease;
}
.vb-strip::before {
  content: ''; position: absolute; inset: 0; border-radius: 13px; pointer-events: none;
  border: 1px dashed rgba(255, 255, 255, 0.2); opacity: 0; transition: opacity var(--reveal) ease, border-color 0.25s ease;
}
.vb-strip > *:not(.vb-add) { transition: opacity var(--reveal) ease, filter var(--reveal) ease; }
.vb-row.is-off .vb-strip { border-color: transparent; background-color: rgba(8, 14, 22, 0); }
.vb-row.is-off .vb-strip::before { opacity: 1; }
.vb-row.is-off .vb-strip > *:not(.vb-add) { opacity: 0.2; filter: saturate(0); }
.vb-add {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(12, 21, 32, 0.94); border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: opacity var(--fade) ease, transform var(--leave) var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.vb-row.is-on .vb-add { opacity: 0; transform: translate(-50%, -50%) scale(0.9); pointer-events: none; }
.vb-add:hover { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14); }
.vb-row.is-off:hover .vb-strip::before { border-color: rgba(255, 255, 255, 0.38); }
.vb-row.is-on .vb-strip:hover { border-color: rgba(255, 255, 255, 0.26); }

.vb-ssp { width: 140px; height: 80px; flex-shrink: 0; overflow: visible; }
.vb-ssp .dot {
  transform-box: fill-box; transform-origin: center;
  transition: transform var(--reveal) var(--spring), opacity 0.25s ease, r 0.25s ease;
}
.vb-ssp .dot.is-out { transform: scale(0); transition: transform 0.25s ease, opacity 0.25s ease; }
.vb-score { flex: 1; min-width: 0; display: grid; gap: 11px; }
.vb-score-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.vb-score-k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; }
.vb-score-k.up { color: var(--teal); }
.vb-score-k.mid { color: var(--pink); }
.vb-score-k.low { color: var(--green); }
.vb-pills { display: flex; gap: 6px; }
.vb-pills i { flex: 1; max-width: 52px; height: 7px; border-radius: 4px; background: rgba(84, 228, 43, 0.85); }
.vb-pills i.r { background: rgba(246, 72, 72, 0.9); }

.vb-chart { position: relative; flex: 1; min-width: 0; height: 80px; }
.vb-chart svg { display: block; width: 100%; height: 66px; overflow: visible; }
.vb-chart .line {
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--draw) cubic-bezier(0.45, 0, 0.15, 1);
}
.vb-chart .line.is-out { stroke-dashoffset: 1; transition: none; }
.vb-legend {
  position: absolute; left: 0; top: -4px; display: flex; gap: 11px; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1.45; color: rgba(138, 154, 181, 0.9);
}
.vb-legend span { display: flex; align-items: center; gap: 3px; }
.vb-legend i { width: 5px; height: 5px; border-radius: 50%; }
.vb-legend i:last-of-type { margin-right: 3px; }
.vb-axis { display: flex; justify-content: space-between; margin-top: 3px; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(138, 154, 181, 0.75); }
.vb-peak { position: absolute; left: 47%; top: -3px; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--green); white-space: nowrap; }
.vb-chips { display: grid; gap: 6px; flex-shrink: 0; }
.vb-chips span {
  padding: 3px 10px; border-radius: 6px; font-size: 11px; text-align: center;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--text-muted);
}

.vb-heat { position: relative; width: 140px; height: 80px; flex-shrink: 0; border-radius: 9px; overflow: hidden; background: #0c1f47; }
.vb-heat i { position: absolute; border-radius: 50%; filter: blur(9px); }
.vb-heat i:nth-child(1) { width: 44px; height: 44px; left: 44px; top: 16px; background: rgba(255, 96, 40, 0.95); }
.vb-heat i:nth-child(2) { width: 30px; height: 30px; left: 84px; top: 34px; background: rgba(255, 150, 30, 0.9); }
.vb-heat i:nth-child(3) { width: 30px; height: 26px; left: 24px; top: 42px; background: rgba(120, 200, 60, 0.7); }
.vb-heat i:nth-child(4) { width: 22px; height: 22px; left: 100px; top: 10px; background: rgba(16, 168, 183, 0.6); }
.vb-heat em {
  position: absolute; left: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; font-style: normal;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-muted); background: rgba(8, 14, 22, 0.8);
}
.vb-notes { flex: 1; min-width: 0; display: grid; gap: 8px; }
.vb-note { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; line-height: 1.35; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-ts { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; color: #5aa9ff; background: rgba(0, 122, 255, 0.14); }
.vb-note b { font-weight: 600; }
.vb-note b.t { color: var(--teal); }
.vb-note b.p { color: var(--pink); }
.vb-note b.g { color: var(--green); }

/* ---------- total ---------- */
/* credits x the credit price = the money. Each part keeps its width so nothing slides sideways.
   The bar sticks to the bottom of the window while the card is on screen, so the sum is always in view. */
.vb-total {
  position: sticky; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 28px; row-gap: 12px;
  margin: 0 -40px -34px; padding: 20px 40px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 22, 34, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vb-sum { display: flex; align-items: baseline; column-gap: 16px; white-space: nowrap; }
.vb-term { display: grid; row-gap: 6px; }
.vb-term-n { font-size: clamp(21px, 2.1vw, 28px); font-weight: 700; line-height: 1; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.vb-term-n b { display: inline-block; font-weight: inherit; }
.vb-term small { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.vb-term--credits { min-width: clamp(118px, 11.4vw, 152px); }
.vb-term--rate { min-width: clamp(78px, 7.6vw, 102px); }
.vb-term--total .vb-term-n { font-size: clamp(34px, 3.5vw, 46px); font-weight: 800; letter-spacing: -1.5px; }
.vb-op { font-size: clamp(18px, 1.8vw, 24px); line-height: 1; color: var(--text-muted); }
.vb-less[hidden] { display: none; }

/* ---------- under the card ---------- */
.vb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 18px; padding: 0 6px; }
.vb-link { background: none; border: 0; padding: 6px 2px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.25s ease; }
.vb-link:hover { color: var(--text); }
.vb-link b { color: #5aa9ff; font-weight: 600; margin-right: 6px; }

.vb-tabs {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 2px 0;
  overflow-x: auto; scrollbar-width: none; animation: vb-rise 0.4s var(--ease);
}
.vb-tabs::-webkit-scrollbar { display: none; }
.vb-tabs[hidden] { display: none; }
.vb-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 30px; min-width: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px; font-weight: 500; color: var(--text-muted);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.vb-tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.vb-tab.is-active { cursor: default; padding: 0 5px 0 13px; border-color: var(--blue); background: rgba(0, 122, 255, 0.12); color: var(--text); }
.vb-tab em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.vb-tab-x {
  width: 20px; height: 20px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 13px; line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.vb-tab-x:hover { background: rgba(255, 255, 255, 0.2); color: var(--text); }
.vb-tab-add { color: #5aa9ff; font-weight: 600; font-size: 15px; }

/* ---------- 03 what a credit costs ---------- */
.vb-scale { position: relative; padding-top: 28px; --f: 0; }
/* the track is a slider cut in three, one piece per rate; the prices sit under it so the thumb never covers them */
.vb-scale-track { position: relative; height: 22px; }
.vb-scale-segs { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; }
.vb-scale-segs i { height: 8px; border-radius: 4px; background-color: rgba(255, 255, 255, 0.12); }
.vb-scale-segs.is-fill { clip-path: inset(0 calc(100% - (11px + (100% - 22px) * var(--f))) 0 0); }
.vb-scale-segs.is-fill i { background-color: var(--blue); }
.vb-scale-range {
  -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0;
  background: none; cursor: pointer; outline-offset: 6px; touch-action: pan-y;
}
.vb-scale-range::-webkit-slider-runnable-track { height: 22px; background: none; }
.vb-scale-range::-moz-range-track { height: 22px; background: none; }
.vb-scale-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 5px solid var(--blue); cursor: grab;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.vb-scale-range:hover::-webkit-slider-thumb { box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5), 0 0 0 7px rgba(0, 122, 255, 0.14); }
.vb-scale-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.14); }
.vb-scale-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); cursor: grab;
  box-shadow: 0 2px 12px rgba(0, 122, 255, 0.5);
}
.vb-scale-flag {
  position: absolute; top: 0; transform: translateX(-50%); pointer-events: none;
  left: clamp(36px, calc(11px + (100% - 22px) * var(--f)), calc(100% - 36px));
  padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #fff; background: var(--blue);
}
.vb-scale-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.vb-scale-band { display: grid; row-gap: 1px; padding: 0 2px; }
.vb-scale-price { display: flex; align-items: baseline; gap: 8px; }
.vb-scale-band b { font-size: 17px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--text-muted); transition: color var(--fade) ease; }
.vb-scale-band em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--green); white-space: nowrap; opacity: 0.75; transition: opacity var(--fade) ease; }
.vb-scale-band > span:last-child { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.vb-scale-band.is-on b { color: var(--text); }
.vb-scale-band.is-on em { opacity: 1; }

.vb-pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.vb-pay-opt {
  display: grid; align-content: center; row-gap: 2px; min-height: 76px; padding: 10px 14px; border-radius: 12px;
  text-align: left; cursor: pointer; border: 1px solid var(--glass-border); background-color: rgba(8, 14, 22, 0.55);
  transition: border-color var(--fade) ease, background-color var(--fade) ease;
}
.vb-pay-opt b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text-muted); transition: color var(--fade) ease; }
.vb-pay-opt span { font-size: 12px; line-height: 1.4; color: var(--text-muted); white-space: nowrap; }
.vb-pay-opt em { font-style: normal; margin-top: 3px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.vb-pay-opt[data-term='quarterly'] em, .vb-pay-opt[data-term='annual'] em { color: var(--green); }
.vb-pay-opt:hover { border-color: rgba(255, 255, 255, 0.28); }
.vb-pay-opt[aria-checked='true'] { border-color: rgba(0, 122, 255, 0.7); background-color: rgba(0, 122, 255, 0.1); }
.vb-pay-opt[aria-checked='true'] b { color: var(--text); }

/* ---------- the pop-up: what a level holds. Matches the site's own modal. ---------- */
.vb-modal {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 40px 40px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; overflow-y: auto;
  color: var(--text); font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, rgba(22, 32, 48, 0.98) 0%, rgba(14, 22, 34, 0.98) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 160, 255, 0.08);
}
.vb-modal button { font: inherit; }
.vb-modal::backdrop { background: rgba(12, 21, 32, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vb-modal[open] { animation: vb-modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.vb-modal[open]::backdrop { animation: vb-fade-in 0.25s ease; }
.vb-modal.is-closing { animation: vb-modal-out 0.19s ease forwards; }
.vb-modal.is-closing::backdrop { animation: vb-fade-out 0.19s ease forwards; }
.vb-modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.vb-modal-close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }
.vb-modal h2 { margin: 8px 0 6px; font-size: 28px; font-weight: 800; line-height: 1.15; }
.vb-modal-cost { margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #5aa9ff; }
.vb-modal-lead { margin-bottom: 24px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.vb-modal h3 { margin: 0 0 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); }
.vb-modal-list { list-style: none; margin: 0 0 22px; padding: 0; }
.vb-modal-list li { position: relative; display: grid; row-gap: 2px; padding: 11px 0 11px 30px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.vb-modal-list li::before {
  content: ''; position: absolute; left: 3px; top: 17px; width: 11px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.vb-modal-list b { font-size: 15px; font-weight: 600; }
.vb-modal-list span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.vb-modal-more { list-style: none; display: grid; gap: 6px; margin: 0 0 24px; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.vb-modal-more b { font-weight: 600; color: var(--text); }
.vb-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.vb-modal-chosen { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--green); }
.vb-modal-chosen::before { content: ''; width: 11px; height: 6px; margin-top: -3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

@keyframes vb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vb-modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes vb-modal-out { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes vb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vb-fade-out { to { opacity: 0; } }

@media (max-width: 900px) {
  .vb-card { padding: 6px 20px 26px; }
  .vb-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 16px; }
  .vb-row .vb-visual { grid-column: 1 / -1; grid-row: 2; }
  .vb-total { position: static; grid-template-columns: 1fr; margin: 0 -20px -26px; padding: 16px 20px 18px; }
  .vb-sum { flex-wrap: wrap; row-gap: 12px; white-space: normal; }
  .vb-head { flex-wrap: wrap; }
  .vb-pay { grid-template-columns: 1fr; }
  .vb-scale-band b { font-size: 14px; }
  .vb-scale-price { flex-direction: column; align-items: flex-start; gap: 0; }
  .vb-scale-band > span:last-child { white-space: normal; line-height: 1.35; }
  .vb-modal { padding: 34px 22px 22px; }
  .vb-term--credits, .vb-term--rate { min-width: 0; }
  .vb-term--total { flex-basis: 100%; }
  .vb-score-row { grid-template-columns: 1fr; row-gap: 4px; }
  .vb-chips { display: none; }
  .vb-strip { height: auto; min-height: 108px; gap: 16px; }
  .vb-heat { width: 92px; height: 68px; }
  .vb-note { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .vb *, .vb *::before, .vb *::after { animation: none !important; transition: none !important; }
  .vb-modal, .vb-modal::backdrop { animation: none !important; }
}


