/* Rizer vs generic AI: page-specific visuals.
   Loads after design-product.css (hero, timeline, panels, owner tags) and
   design-comparison.css (FAQ, CTA fineprint). One idea per visual, readable
   in a second. Generic AI is always slate; Rizer gets the accent; a good
   outcome is green. */

/* ============================================================
   Hero
   ============================================================ */
.vsai-hero {
  padding-bottom: 88px;
}

.vsai-hero .lede {
  max-width: 620px;
}

.vsai-hero-actions {
  justify-content: center;
  margin-top: 32px;
}

/* ============================================================
   Six things: copy on the left, one simple visual on the right
   ============================================================ */
.vsai-six {
  padding-top: 96px;
  padding-bottom: 88px;
}

.vsai-page .process-copy p {
  max-width: 46ch;
}

.vsai-step-link {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: var(--brand-dark);
  font-size: 14.5px;
  font-weight: 700;
}

.vsai-step-link:hover,
.vsai-step-link:focus-visible {
  color: var(--brand);
}

.vsai-step-link .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s var(--ease-out);
}

.vsai-step-link:hover .arrow {
  transform: translateX(3px);
}

/* Every visual: same frame, compact, one idea */
.vsai-viz {
  gap: 12px;
  align-self: stretch;
  justify-content: center;
  padding: 18px;
}

.vsai-viz > .trend-caption {
  margin-bottom: 2px;
}

.vsai-tile {
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--tile-shadow);
}

/* 1. Consistent: zigzag vs flat line */
.vsai-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.vsai-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vsai-legend i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-4);
}

.vsai-legend .is-rizer {
  color: var(--brand-dark);
}

.vsai-legend .is-rizer i {
  background: var(--brand);
}

.vsai-legend b {
  margin-left: 2px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}

.vsai-line {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.vsai-line-grid line {
  stroke: var(--rule);
  stroke-width: 1;
}

.vsai-line-axis text {
  fill: var(--ink-4);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
}

.vsai-line-chat,
.vsai-line-rizer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsai-line-chat {
  stroke: var(--ink-4);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
}

.vsai-line-rizer {
  stroke: var(--brand);
  stroke-width: 3.5;
}

.vsai-line-chat-dots circle {
  fill: #fff;
  stroke: var(--ink-4);
  stroke-width: 2.5;
}

.vsai-line-rizer-dots circle {
  fill: var(--brand);
  stroke: #fff;
  stroke-width: 2;
}

/* 2. Complete: loss rate by segment, top row only visible in a full read */
.vsai-segments {
  display: grid;
  gap: 8px;
}

.vsai-seg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--tile-shadow);
}

.vsai-seg-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.vsai-seg-name em {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.vsai-seg-value {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.vsai-seg-track {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-3);
}

.vsai-seg-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #fb923c);
}

.vsai-seg.is-hot {
  background: var(--red-tint);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.25);
}

.vsai-seg.is-hot .vsai-seg-name,
.vsai-seg.is-hot .vsai-seg-value {
  color: var(--red);
}

.vsai-seg.is-hot .vsai-seg-track {
  background: #fff;
}

.vsai-seg.is-hot .vsai-seg-track span {
  background: var(--red);
}

html.rz-anim .vsai-seg-track span {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out) 0.15s;
}

html.rz-anim .rz-in .vsai-seg-track span {
  transform: scaleX(1);
}

/* 3. Persistent: one release reopens a batch of lost deals */
.vsai-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--tile-shadow);
}

.vsai-event i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--ink-3);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.vsai-event span {
  display: grid;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.vsai-event small {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vsai-down {
  color: var(--ink-4);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.vsai-reopen {
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.18);
}

.vsai-reopen-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(21, 128, 61, 0.15);
}

.vsai-reopen-head b {
  color: var(--green-dark);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vsai-reopen-head span {
  display: grid;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.vsai-reopen-head em {
  color: var(--green-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.vsai-reopen-list,
.vsai-drill-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vsai-reopen-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.vsai-reopen-list b {
  color: var(--ink);
}

.vsai-reopen-list .is-more {
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 700;
}

/* 4. Accountable: the product page's action plan table, unchanged */

/* 5. Traceable: a number opened into its deals */
.vsai-drill {
  padding: 0;
  overflow: hidden;
}

.vsai-drill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.vsai-drill-head b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.vsai-drill-head i {
  font-size: 11px;
  font-style: normal;
}

.vsai-drill-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.vsai-drill-list li:last-child {
  border-bottom: 0;
}

.vsai-drill-list b {
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.vsai-drill-list em {
  color: var(--brand-dark);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}

/* 6. Actionable: managed vs auto-pilot */
.vsai-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--tile-shadow);
}

.vsai-switch span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.vsai-switch .is-on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.vsai-approve {
  padding: 0;
  overflow: hidden;
}

.vsai-approve-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.vsai-approve-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}

.vsai-approve-row:last-child {
  border-bottom: 0;
}

.vsai-approve-row span {
  display: grid;
  gap: 2px;
}

.vsai-approve-row b {
  color: var(--ink);
  font-size: 14px;
}

.vsai-approve-row small {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.vsai-approve-row em {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}

/* "+ N more" rows in lists and tables */
.vsai-more-row,
.vsai-drill-list .is-more {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.action-row.vsai-more-row {
  display: block;
}

.vsai-drill-list .is-more {
  display: block;
}

/* ============================================================
   FAQ, centred like the other section headers
   ============================================================ */
.comparison-page .vsai-faq .comparison-section-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.comparison-page .vsai-faq .cmp-faq {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

/* ============================================================
   Two agents: one loss profile feeds both
   ============================================================ */
.vsai-agents .section-header.centered {
  max-width: 880px;
}

.vsai-base {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: 0 auto 56px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--card-shadow);
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
}

.vsai-base i {
  color: var(--ink-4);
  font-style: normal;
}

.vsai-base b {
  color: var(--ink);
  font-weight: 800;
}

/* Branch: one stem down from the pill, splitting to both cards */
.vsai-base::before,
.vsai-base::after {
  content: "";
  position: absolute;
  top: 100%;
  pointer-events: none;
}

.vsai-base::before {
  left: 50%;
  height: 28px;
  border-left: 2px dashed var(--rule-2);
}

.vsai-agents-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.vsai-agents-grid::before {
  content: "";
  position: absolute;
  top: -28px;
  right: 25%;
  left: 25%;
  height: 28px;
  border: 2px dashed var(--rule-2);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

.vsai-agent {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.vsai-agent-label {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vsai-agent h3 {
  margin: 6px 0 20px;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.vsai-agent-steps {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: vsai-agent;
}

.vsai-agent-steps li {
  position: relative;
  padding-left: 36px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  counter-increment: vsai-agent;
}

.vsai-agent-steps li::before {
  content: counter(vsai-agent);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.vsai-agent-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   Build vs buy
   ============================================================ */
.vsai-build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.vsai-iceberg {
  display: flex;
  flex-direction: column;
}

.vsai-iceberg .vsai-below {
  flex: 1;
  align-content: start;
}

.vsai-iceberg,
.vsai-price {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.vsai-tier-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vsai-above {
  padding: 24px 26px 28px;
}

.vsai-above-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vsai-above-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.vsai-waterline {
  position: relative;
  border-top: 1.5px dashed var(--rule-2);
}

.vsai-waterline span {
  position: absolute;
  top: 0;
  left: 26px;
  padding: 3px 10px;
  transform: translateY(-50%);
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vsai-below {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 30px 26px 26px;
  list-style: none;
  background: var(--bg-2);
}

.vsai-below li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--tile-shadow);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.vsai-below li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ink-4);
}

.vsai-price {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-color: rgba(234, 88, 12, 0.35);
}

.vsai-price .vsai-tier-label {
  color: var(--brand-dark);
}

.vsai-price-figure {
  color: var(--ink);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vsai-price-figure small,
.vsai-price-figure span {
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0;
}

.vsai-price-figure small {
  font-size: 15px;
}

.vsai-price-figure span {
  font-size: 18px;
}

.vsai-price p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.vsai-price-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.vsai-price-list li {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
}

.vsai-price-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--brand);
  font-weight: 800;
}

.vsai-price .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .vsai-build-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .vsai-hero {
    padding-bottom: 56px;
  }

  .vsai-hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .vsai-six {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .vsai-viz {
    min-height: 0;
    padding: 12px;
  }

  .vsai-drill-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vsai-legend {
    display: grid;
    gap: 6px;
  }

  .vsai-line-axis text {
    font-size: 22px;
  }

  .vsai-line-chat,
  .vsai-line-rizer {
    stroke-width: 5;
  }

  .vsai-drill-list em {
    display: none;
  }

  .vsai-reopen-head b {
    font-size: 40px;
  }

  .vsai-below,
  .vsai-agents-grid {
    grid-template-columns: 1fr;
  }

  .vsai-base {
    margin-bottom: 24px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .vsai-base::before,
  .vsai-agents-grid::before {
    display: none;
  }

  .vsai-agent {
    padding: 22px;
  }

  .vsai-agent h3 {
    font-size: 22px;
  }


  .vsai-price-figure {
    font-size: 44px;
  }
}
