/* VirtualProg landing page. Uses the site's tokens from theme.css (dark default, [data-theme="light"]). */

.vp {
  overflow: clip;
  --vp-link: var(--color-brand-light);
  --vp-check: var(--color-success);
  --vp-shot-radius: 14px;
}

[data-theme="light"] .vp {
  --vp-link: var(--color-brand-dark);
}

.vp section[id] {
  scroll-margin-top: 8rem;
}

.vp p {
  color: var(--color-text-muted);
}

.vp h1,
.vp h2,
.vp h3 {
  color: var(--color-text);
}

.vp-ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.vp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vp-grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vp-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--vp-link) !important;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.vp-badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

[data-theme="light"] .vp-badge {
  color: var(--color-accent-dark);
}

.vp h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.vp-lead {
  font-size: 1.07rem;
  line-height: 1.7;
}

.vp-small {
  font-size: 0.84rem;
}

.vp-center {
  text-align: center;
}

.vp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--vp-link);
  font-size: 0.92rem;
  font-weight: 700;
}

.vp-link .vp-ico {
  transition: transform var(--transition-fast);
}

.vp-link:hover .vp-ico {
  transform: translateX(3px);
}

.vp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
}

.vp code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--color-surface-alt);
  font-size: 0.88em;
}

/* ---------- Buttons ---------- */

.vp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vp-actions--center {
  justify-content: center;
}

.vp-button {
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
}

.vp-button--lg {
  min-height: 3.4rem;
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.vp-hero {
  position: relative;
  background: var(--gradient-mesh);
  border-bottom: 1px solid var(--color-border);
}

.vp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: 3rem;
}

.vp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 70%, transparent);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.vp-pill img {
  border-radius: 6px;
}

.vp-pill:hover {
  border-color: var(--color-brand);
  color: var(--color-text);
}

.vp-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.vp-hero__lead {
  max-width: 34rem;
  margin: 1.4rem 0 1.9rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.vp-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.vp-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.vp-ticks .vp-ico,
.vp-list .vp-ico,
.vp-more .vp-ico {
  color: var(--vp-check);
}

.vp-hero__visual {
  position: relative;
  min-width: 0;
  padding: 1rem 0 3rem 3rem;
}

.vp-hero__glow {
  position: absolute;
  inset: 0 -10% 0 0;
  background: radial-gradient(ellipse at 60% 45%, rgba(110, 131, 255, 0.35), rgba(160, 107, 255, 0.12) 45%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.vp-window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--vp-shot-radius);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.vp-window img {
  display: block;
  width: 100%;
  height: auto;
}

.vp-window--main {
  transform: perspective(1600px) rotateY(-6deg);
  transform-origin: left center;
}

.vp-window--side {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  border-radius: 12px;
}

.vp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.vp-float .vp-ico {
  color: var(--color-accent);
}

.vp-float--a {
  top: 0;
  right: 6%;
}

.vp-float--b {
  right: 2%;
  bottom: 1.5rem;
}

.vp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-bg);
}

.vp-oslist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--color-border);
}

.vp-oslist span {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.vp-oslist .vp-oslist__label {
  border: 0;
  background: none;
  padding-left: 0;
  color: var(--vp-link);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ---------- Proof bar ---------- */

.vp-proof {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tint);
}

.vp-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.7fr)) minmax(0, 1.5fr);
}

.vp-proof__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 1.5rem 1.25rem;
  border-left: 1px solid var(--color-border);
}

.vp-proof__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.vp-proof__item strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.vp-proof__item span {
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.vp-proof__quote {
  color: var(--color-text);
}

.vp-proof__quote > span:last-child {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.vp-proof__quote em {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}

.vp-proof__quote:hover em {
  color: var(--vp-link);
}

.vp-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-amber) !important;
}

.vp-stars .vp-ico {
  fill: currentColor;
}

/* ---------- Sections ---------- */

.vp-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.vp-section--tint {
  background: var(--color-bg-tint);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.vp-section--slim {
  padding: 2.5rem 0;
}

.vp-head {
  max-width: 44rem;
  margin-bottom: 2.6rem;
}

.vp-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.vp-head--center .vp-eyebrow {
  justify-content: center;
}

/* ---------- Use cases ---------- */

.vp-uses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.vp-use {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-base);
}

.vp-use:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: var(--glow-brand);
  color: inherit;
}

.vp-use__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: var(--color-brand-tint);
  color: var(--vp-link);
  font-size: 1.3rem;
}

.vp-use h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.vp-use p {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.vp-use__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--vp-link);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Showcase rows ---------- */

.vp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.vp-row--flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.vp-row--flip .vp-row__copy {
  order: 2;
}

.vp-hero h1 .vp-grad {
  display: block;
}

.vp-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.vp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.vp-list .vp-ico {
  margin-top: 0.15rem;
}

.vp-list--tight {
  align-content: start;
  gap: 0.55rem;
  margin: 1.2rem 0 1.6rem;
}

.vp-req {
  flex: none;
  align-self: center;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.vp-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--vp-shot-radius);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.vp-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.vp-shot--stack {
  display: grid;
}

.vp-shot--stack img {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vp-shot--stack img.is-active {
  opacity: 1;
}

.vp-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0.4rem 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.vp-tab {
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.vp-tab:hover {
  color: var(--color-text);
}

.vp-tab.is-active {
  background: var(--gradient-brand-2);
  color: #fff;
}

.vp-shot-pair {
  position: relative;
  padding: 0 0 3rem;
}

.vp-shot-pair .vp-shot {
  width: 90%;
}

.vp-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  margin: 0;
  overflow: hidden;
  border: 6px solid #1b1d24;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.vp-phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Comparison ---------- */

.vp-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.vp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.vp-table th,
.vp-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.vp-table tbody tr:last-child th,
.vp-table tbody tr:last-child td {
  border-bottom: 0;
}

.vp-table thead th {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.vp-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}

.vp-table td {
  color: var(--color-text-muted);
}

.vp-table .vp-ico {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.vp-table .y {
  color: var(--color-success);
}

.vp-table .n {
  color: var(--color-text-faint);
}

.vp-table .p {
  color: var(--color-amber);
}

.vp-table .is-us {
  background: var(--color-brand-tint);
  color: var(--color-text);
}

.vp-table thead .is-us {
  color: var(--vp-link);
  font-size: 0.9rem;
}

.vp-table td.is-us.y {
  color: var(--color-success);
}

.vp-fine {
  max-width: 960px;
  margin: 1rem auto 0;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.vp-fine a {
  color: var(--vp-link);
  font-weight: 600;
}

/* ---------- And more ---------- */

.vp-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin: 0 0 2.2rem;
  padding: 0;
  list-style: none;
}

.vp-more li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.vp-more .vp-ico {
  margin-top: 0.1rem;
}

.vp-video {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */

.vp-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

.vp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.vp-plan--best {
  border-color: transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-brand) border-box;
  border-width: 2px;
  box-shadow: var(--glow-brand);
}

.vp-plan__tag {
  position: absolute;
  top: -0.8rem;
  right: 1.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.vp-plan h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.vp-plan__price {
  margin: 0;
  color: var(--color-text) !important;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.vp-plan__price small {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.vp-plan .vp-list {
  flex: 1;
}

.vp-plan__note {
  margin: 0.8rem 0 0;
  font-size: 0.76rem;
  text-align: center;
}

/* ---------- FAQ ---------- */

.vp-faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.vp-faq-wrap .vp-lead a {
  color: var(--vp-link);
  font-weight: 600;
}

.vp-faq details {
  border-bottom: 1px solid var(--color-border);
}

.vp-faq details:first-child {
  border-top: 1px solid var(--color-border);
}

.vp-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.vp-faq summary::-webkit-details-marker {
  display: none;
}

.vp-faq summary::after {
  content: "+";
  flex: none;
  color: var(--vp-link);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.vp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.vp-faq details p {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Resources ---------- */

.vp-resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.vp-resources a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
}

.vp-resources a:hover {
  border-color: var(--color-brand);
  color: var(--vp-link);
}

/* ---------- Final CTA ---------- */

.vp-final {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 8rem);
  background: var(--gradient-mesh);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.vp-final__icon {
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  box-shadow: var(--glow-brand-lg);
}

.vp-final h2 {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.vp-final .vp-actions {
  margin: 2rem 0 1rem;
}

/* ---------- Sticky bar ---------- */

.vp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.7rem 0;
  border-top: 1px solid var(--color-border-strong);
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform var(--transition-base);
}

.vp-sticky.is-visible {
  transform: translateY(0);
}

.vp-sticky__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.vp-sticky__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--color-text);
  font-size: 0.9rem;
}

.vp-sticky__brand img {
  border-radius: 8px;
}

.vp-sticky__sub {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.vp-sticky__actions {
  display: flex;
  flex: none;
  gap: 0.5rem;
}

/* ---------- Focus ---------- */

.vp a:focus-visible,
.vp button:focus-visible,
.vp summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .vp *,
  .vp-sticky {
    transition: none !important;
  }

  .vp-window--main {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .vp-uses,
  .vp-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vp-proof__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vp-proof__quote {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 860px) {
  .vp-hero__grid,
  .vp-row,
  .vp-faq-wrap {
    grid-template-columns: 1fr;
  }

  .vp-row--flip .vp-row__copy {
    order: 0;
  }

  .vp-hero__visual {
    max-width: 620px;
    margin: 0 auto;
    padding-left: 2rem;
  }

  .vp-window--main {
    transform: none;
  }

  .vp-pricing {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .vp-sticky__sub {
    display: none;
  }
}

@media (max-width: 560px) {
  .vp-uses,
  .vp-more {
    grid-template-columns: 1fr;
  }

  .vp-proof__grid {
    grid-template-columns: 1fr;
  }

  .vp-proof__item {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .vp-proof__item:first-child {
    border-top: 0;
  }

  .vp-actions .vp-button {
    width: 100%;
  }

  .vp-hero__visual {
    padding: 0.5rem 0 2.5rem 1rem;
  }

  .vp-float--a {
    display: none;
  }

  .vp-float--b {
    font-size: 0.72rem;
  }

  .vp-sticky__brand span {
    display: none;
  }

  .vp-sticky__actions {
    flex: 1;
  }

  .vp-sticky__actions .btn {
    flex: 1;
  }
}

.vp-cell-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- AI agent sandboxes ---------- */

.vp-agents {
  background: var(--gradient-mesh), var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.vp-agents__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.vp-agent {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  box-shadow: var(--shadow-md);
}

.vp-agent h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.vp-agent > p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.vp-agent > p strong {
  color: var(--color-text);
}

.vp-agent .vp-list {
  flex: 1;
}

.vp-term {
  max-width: 860px;
  margin: 2rem auto 0;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #0b0d14;
  box-shadow: var(--shadow-lg);
}

.vp-term__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 0.9rem;
  background: #1a1d27;
}

.vp-term__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.vp-term__bar span:nth-child(2) { background: #febc2e; }
.vp-term__bar span:nth-child(3) { background: #28c840; }

.vp-term__bar em {
  margin-left: auto;
  color: #8a92a6;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

.vp-term pre {
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  overflow-x: auto;
  background: none;
  border: 0;
}

.vp-term code {
  padding: 0;
  background: none;
  color: #e6e9f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  line-height: 1.7;
  white-space: pre;
}

.vp-term__p {
  color: #2fe0c4;
  font-weight: 700;
}

@media (max-width: 860px) {
  .vp-agents__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Server Mode ---------- */

.vp-server {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 3rem;
}

.vp-hostmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 1.6rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% 50%, var(--color-brand-tint), transparent 65%),
    var(--color-bg-tint);
}

.vp-hostmap__clients {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-hostmap__clients li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--vp-link);
  font-size: 0.74rem;
  line-height: 1.3;
}

.vp-hostmap__clients li .vp-ico {
  font-size: 1.15rem;
}

.vp-hostmap__clients li span {
  display: flex;
  flex-direction: column;
  color: var(--color-text-muted);
}

.vp-hostmap__clients li strong {
  color: var(--color-text);
  font-size: 0.8rem;
}

/* dashed connectors from each client to the host */
.vp-hostmap__clients li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.6rem;
  width: 1.6rem;
  border-top: 2px dashed color-mix(in srgb, var(--color-brand) 55%, transparent);
}

.vp-hostmap__clients--right li::after {
  right: auto;
  left: -1.6rem;
}

.vp-host {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-brand) 50%, var(--color-border-strong));
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--glow-brand);
}

.vp-host__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-text);
  font-size: 0.92rem;
}

.vp-host__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.68rem;
  font-weight: 700;
}

.vp-host__mode .vp-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.vp-host__vms {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-host__vms li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.76rem;
  font-weight: 600;
}

.vp-host__vms span {
  white-space: nowrap;
}

.vp-host__vms em {
  color: var(--color-success);
  font-size: 0.7rem;
  font-style: normal;
}

.vp-host__foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.vp-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vp-tile {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.vp-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: var(--color-brand-tint);
  color: var(--vp-link);
  font-size: 1.2rem;
}

.vp-tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.vp-tile p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .vp-server {
    grid-template-columns: 1fr;
  }

  .vp-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vp-hostmap {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.25rem;
  }

  .vp-hostmap__clients {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .vp-hostmap__clients li::after {
    display: none;
  }

  .vp-host {
    order: -1;
  }

  .vp-tiles {
    grid-template-columns: 1fr;
  }
}

.vp-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.vp-dl .vp-ico {
  color: var(--vp-link);
}

.vp-dl a {
  color: var(--vp-link);
  font-weight: 700;
}

.vp-dl a:hover {
  text-decoration: underline;
}

.vp-dl--center {
  justify-content: center;
  margin-top: 1.4rem;
}

/* Documentation and vpvm links under the "Runs" row */
.vp-toplinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: -0.6rem 0 0;
  padding-bottom: 1.6rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.vp-toplinks > a,
.vp-toplinks > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.vp-toplinks .vp-ico {
  width: 1em;
  height: 1em;
  color: var(--vp-link);
}

.vp-toplinks a {
  color: var(--vp-link);
  font-weight: 700;
}

.vp-toplinks a:hover {
  text-decoration: underline;
}

.vp-toplinks__sep {
  opacity: 0.5;
}

@media (max-width: 560px) {
  .vp-toplinks .vp-toplinks__sep {
    display: none;
  }

  .vp-toplinks {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Multiple hosts ---------- */

.vp-hosts {
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.vp-hosts__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.vp-hosts__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.vp-hosts__bar span:nth-child(2) { background: #febc2e; }
.vp-hosts__bar span:nth-child(3) { background: #28c840; }

.vp-hosts__bar strong {
  margin-left: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.vp-hosts__body {
  padding: 1.2rem 1.2rem 0.6rem;
}

.vp-hosts__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vp-hosts__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 500;
}

.vp-hosts ul {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  list-style: none;
}

.vp-hosts li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-tint);
}

.vp-hosts li:first-child {
  border-top: 0;
}

.vp-hosts li.is-active {
  background: var(--color-brand-tint);
}

.vp-hosts__icon {
  display: inline-flex;
  color: var(--vp-link);
  font-size: 1.4rem;
}

.vp-hosts__name {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.vp-hosts__name strong {
  color: var(--color-text);
  font-size: 0.92rem;
}

.vp-hosts__name small {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-hosts__stat {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-success);
  font-size: 0.76rem;
  font-weight: 700;
}

.vp-hosts__stat .vp-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.vp-hosts__stat--idle {
  color: var(--color-text-faint);
}

.vp-hosts__devices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem 1.2rem;
}

.vp-hosts__devices span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.vp-hosts__devices .vp-ico {
  color: var(--vp-link);
}

.vp code {
  white-space: nowrap;
}

/* ---------- Holiday sale ---------- */

.vp-sale {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(90deg, #b91c1c 0%, #be185d 45%, #6d28d9 100%);
  color: #fff;
}

.vp-sale::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff2e 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}

.vp-sale__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: center;
}

.vp-sale__tag {
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #be185d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vp-sale__text {
  margin: 0;
  color: #fff !important;
  font-size: 0.95rem;
}

.vp-sale__text s {
  opacity: 0.75;
}

.vp-sale__clock {
  padding: 0.22rem 0.7rem;
  border: 1px solid #ffffff55;
  border-radius: var(--radius-pill);
  background: #00000026;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vp-sale__clock:empty {
  display: none;
}

.vp-sale__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #6d28d9 !important;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.vp-sale__cta:hover {
  transform: translateY(-1px);
}

.vp-was {
  margin-right: 0.3rem;
  font-weight: 500;
  opacity: 0.6;
}

.vp-plan__price .vp-was {
  font-size: 1.3rem;
}

.vp-plan__sale {
  margin: 0.25rem 0 0;
  color: #f472b6 !important;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .vp-sale__text {
    font-size: 0.86rem;
  }
}
