/* ============================
   Homepage v2 (GTM-202)
   ============================ */
.hp-container {
  width: 100%;
  max-width: calc(var(--hp-max) + 2 * var(--hp-gutter));
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
}

/* ---------- Hero ---------- */
.hp-hero {
  padding-top: calc(var(--hp-nav-height) + clamp(48px, 4.6vw, 100px));
}
.hp-hero-intro {
  container-type: inline-size;
}
.hp-hero-title {
  /* Sized to the container so "Agents that connect" fills the first line */
  font-size: max(44px, 10.7cqi);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: clamp(28px, 3.9vw, 72px);
}
.hp-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.hp-hero-subtitle {
  max-width: 20em;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--hp-text-muted);
}
.hp-hero-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

/* Ambient backdrop: three stops each cycle the palette one step apart, so the
   gradient drifts through neighbouring colors; a soft glow wanders on top */
@property --hp-amb-1 { syntax: '<color>'; inherits: true; initial-value: #D4C5E9; }
@property --hp-amb-2 { syntax: '<color>'; inherits: true; initial-value: #C77BC1; }
@property --hp-amb-3 { syntax: '<color>'; inherits: true; initial-value: #6C4A99; }
@keyframes hpAmbientCycle {
  0%, 100% { --hp-amb-1: #D4C5E9; --hp-amb-2: #C77BC1; --hp-amb-3: #6C4A99; }
  20%      { --hp-amb-1: #C77BC1; --hp-amb-2: #6C4A99; --hp-amb-3: #547DC5; }
  40%      { --hp-amb-1: #6C4A99; --hp-amb-2: #547DC5; --hp-amb-3: #A2B9E2; }
  60%      { --hp-amb-1: #547DC5; --hp-amb-2: #A2B9E2; --hp-amb-3: #D4C5E9; }
  80%      { --hp-amb-1: #A2B9E2; --hp-amb-2: #D4C5E9; --hp-amb-3: #C77BC1; }
}
@keyframes hpAmbientDrift {
  0%   { transform: translate3d(-12%, -8%, 0) scale(1); }
  50%  { transform: translate3d(10%, 6%, 0) scale(1.15); }
  100% { transform: translate3d(-4%, 10%, 0) scale(1.05); }
}
.hp-hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(64px, 8.5vw, 160px);
  padding: clamp(32px, 5.3vw, 96px) 0;
  background: linear-gradient(160deg, var(--hp-amb-1, #D4C5E9) 0%, var(--hp-amb-2, #C77BC1) 50%, var(--hp-amb-3, #6C4A99) 100%);
}
.hp-hero-stage::before {
  content: '';
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 35%, color-mix(in oklab, var(--hp-amb-3, #6C4A99) 55%, transparent), transparent 70%),
    radial-gradient(35% 45% at 75% 70%, color-mix(in oklab, var(--hp-amb-1, #D4C5E9) 50%, transparent), transparent 70%);
  animation: hpAmbientDrift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
.hp-hero-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0D100F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 80px rgba(13, 16, 15, 0.35);
  overflow: hidden;
}

.hp-hero-title,
.hp-hero-subtitle,
.hp-hero-actions {
  opacity: 0;
  animation: heroBlurIn 0.6s ease forwards;
}
.hp-hero-title { animation-delay: 0.05s; }
.hp-hero-subtitle { animation-delay: 0.2s; }
.hp-hero-actions { animation-delay: 0.3s; }
.hp-hero-stage { animation: hpAmbientCycle 50s ease-in-out infinite; }
.hp-hero-shot {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.4s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hp-hero-stage,
  .hp-hero-stage::before { animation: none; }
}

/* ---------- Hero console mock (mirrors console.deck.co) ---------- */
.hpc {
  --hpc-bg: #0D100F;
  --hpc-fg: #F6F6F6;
  --hpc-muted-fg: rgba(246, 246, 246, 0.7);
  --hpc-border: rgba(255, 255, 255, 0.1);
  --hpc-muted: rgba(38, 38, 38, 0.7);
  --hpc-muted-hover: rgba(38, 38, 38, 0.95);
  --hpc-green: #286650;
  --hpc-blue: #547DC5;
  --hpc-yellow: #FDFAC3;
  --hpc-deck-red: oklch(0.65 0.2 25);
  --hpc-customer: oklch(0.687 0.131 330);

  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 810px;
  transform: scale(var(--hpc-scale, 1));
  transform-origin: 0 0;
  display: grid;
  grid-template-columns: 216px 1fr;
  background: var(--hpc-bg);
  color: var(--hpc-fg);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  user-select: none;
}
.hpc button {
  font: inherit;
  color: inherit;
  text-align: inherit;
}
.hpc svg { width: 16px; height: 16px; flex-shrink: 0; }
.hpc button:focus-visible {
  outline: 2px solid var(--hpc-blue);
  outline-offset: -2px;
}

/* Sidebar */
.hpc-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px 12px;
  border-right: 1px solid var(--hpc-border);
  min-height: 0;
}
.hpc-wordmark {
  align-self: flex-start;
  height: 14px;
  width: auto;
  margin: 2px 8px 22px;
}
.hpc-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: rgba(246, 246, 246, 0.85);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hpc .hpc-nav-item svg { width: 14px; height: 14px; }
.hpc-nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpc-nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--hpc-fg); }
.hpc-nav-item.is-active { background: #262626; color: var(--hpc-fg); }
.hpc-nav-item.is-inert { cursor: default; }
.hpc-nav-item.is-inert:hover { background: none; color: rgba(246, 246, 246, 0.85); }
.hpc-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 6px;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.6;
}
.hpc-group-label svg { width: 13px; height: 13px; }
.hpc-nav-gap { height: 14px; }
.hpc-side-footer { margin-top: auto; }

/* Main + top bar */
.hpc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.hpc-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px 0 32px;
}
.hpc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  height: 32px;
  padding: 0 8px 0 10px;
  border-radius: 6px;
  background: var(--hpc-muted);
  color: var(--hpc-muted-fg);
}
.hpc-search svg { width: 15px; height: 15px; }
.hpc-search--flex { flex: 1; width: auto; }
.hpc-kbd {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font: 10px var(--mono);
  opacity: 0.7;
}
.hpc-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--hpc-muted-fg);
}
.hpc-icon { position: relative; display: flex; }
.hpc-bell::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
}
.hpc-org {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hpc-fg);
  font-size: 11.5px;
}
.hpc-org svg { width: 13px; height: 13px; opacity: 0.6; }
.hpc-org-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--hpc-green);
  font-size: 10.5px;
  font-weight: 500;
}

/* Scrollable view */
.hpc-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 40px 40px;
  scrollbar-width: none;
  animation: hpcViewIn 0.25s ease;
}
.hpc-view::-webkit-scrollbar { display: none; }
@keyframes hpcViewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Page header */
.hpc-ph {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.hpc-h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hpc-ph-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hpc-muted-fg);
}
.hpc-sep { margin: 0 4px; opacity: 0.5; }
.hpc-actions { display: flex; gap: 8px; flex: none; }
.hpc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.hpc-btn svg { width: 14px; height: 14px; }
.hpc-btn-sm { height: 30px; padding: 0 10px; }
.hpc-btn-green {
  background: var(--hpc-green);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.hpc-btn-green:hover { filter: brightness(1.12); }
.hpc-btn-green:active { transform: scale(0.98); }
.hpc-btn-muted { background: var(--hpc-muted); }
.hpc-btn-kbd {
  display: inline-grid;
  place-items: center;
  height: 16px;
  margin-left: 2px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font: 10px var(--mono);
  opacity: 0.5;
}
.hpc-divider {
  margin: 22px 0 28px;
  border-bottom: 1px solid var(--hpc-border);
}

/* Layout */
.hpc-cols { display: flex; align-items: flex-start; gap: 32px; }
.hpc-left { flex: 1; min-width: 0; }
.hpc-aside {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 300px;
}
.hpc-section { margin-top: 36px; }
.hpc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hpc-section-head .hpc-h2 { margin-bottom: 0; }
.hpc-h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
}
.hpc-aside > .hpc-h2 { margin-bottom: 4px; }

/* Tables */
.hpc-table { border-bottom: 1px solid var(--hpc-border); }
.hpc-thead,
.hpc-row {
  display: grid;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 12px;
}
.hpc-thead {
  height: 40px;
  font-size: 11.5px;
  color: var(--hpc-muted-fg);
  border-bottom: 1px solid var(--hpc-border);
}
.hpc-row {
  height: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hpc-thead + .hpc-row { border-top: 0; }
.hpc-row:hover { background: rgba(255, 255, 255, 0.03); }
.hpc-row.is-selected { background: rgba(40, 102, 80, 0.14); }
.hpc-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpc-row--tasks { grid-template-columns: 6fr 3fr 3fr; }
.hpc-row--runs { grid-template-columns: minmax(186px, 3.4fr) 3fr 2.6fr 1.4fr 1.4fr; }
.hpc-strong { font-weight: 500; }
.hpc-muted { color: var(--hpc-muted-fg); font-variant-numeric: tabular-nums; }
.hpc-mono { font-family: var(--mono); font-size: 11.5px; }

.hpc-src { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hpc-src-logo {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
}
.hpc-src-logo--fallback {
  display: inline-grid;
  place-items: center;
  background: #262626;
  font-size: 8.5px;
  font-weight: 500;
}

/* Status pill */
.hpc-pill {
  --pill: #CDCDCD;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--pill) 50%, transparent);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.hpc-pill-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--pill);
}
.hpc-pill-sep { margin: 0 4px; opacity: 0.4; }
.hpc-pill--completed { --pill: var(--hpc-green); }
.hpc-pill--running { --pill: var(--hpc-blue); }
.hpc-pill--running .hpc-pill-dot { animation: hpcPulse 1.4s ease-in-out infinite; }
.hpc-pill--queued { --pill: var(--hpc-yellow); }
.hpc-pill--failed-deck { --pill: var(--hpc-deck-red); }
.hpc-pill--failed-customer { --pill: var(--hpc-customer); }
@keyframes hpcPulse { 50% { opacity: 0.35; } }

/* Toolbar + filters */
.hpc-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hpc-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  max-width: 180px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--hpc-muted);
  white-space: nowrap;
  overflow: hidden;
}
.hpc-filter svg { width: 13px; height: 13px; opacity: 0.6; }
button.hpc-filter { cursor: pointer; }
.hpc-filter.is-on { background: rgba(40, 102, 80, 0.35); }
.hpc-x { opacity: 0.7; font-size: 13px; line-height: 1; }
.hpc-dots { display: inline-flex; }
.hpc-dots i {
  width: 7px;
  height: 7px;
  margin-left: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #1c1e1d;
}
.hpc-dots i:first-child { margin-left: 0; }

/* Cards */
.hpc-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hpc-muted-fg);
}
.hpc-card-label svg { width: 13px; height: 13px; opacity: 0.6; }
.hpc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--hpc-muted-fg);
}
.hpc-link svg { width: 13px; height: 13px; }
.hpc-perf-card,
.hpc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(246, 246, 246, 0.02);
}
.hpc-perf-card { gap: 8px; padding: 18px 20px 20px; }
.hpc-perf-link { position: absolute; top: 18px; right: 20px; }
.hpc-perf-value {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hpc-perf-bar { display: flex; gap: 3px; height: 8px; margin-top: 10px; }
.hpc-perf-bar i { border-radius: 2px; min-width: 3px; }
.hpc-range-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--hpc-muted);
  font-size: 11.5px;
}
.hpc-range-inline svg { width: 12px; height: 12px; opacity: 0.6; }

/* Overview */
.hpc-ranges { display: flex; gap: 2px; }
.hpc-range {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--hpc-muted-fg);
  font-size: 11.5px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hpc-range:hover { color: var(--hpc-fg); }
.hpc-range.is-active { background: #262626; color: var(--hpc-fg); }
.hpc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.hpc-card { padding: 18px 20px 14px; }
.hpc-card-head { display: flex; align-items: center; justify-content: space-between; }
.hpc-card-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hpc-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  color: #3FB68B;
}
.hpc-delta svg { width: 11px; height: 11px; }
.hpc-delta.is-down { color: #3FB68B; }
.hpc svg.hpc-chart { width: 100%; height: 170px; display: block; }
.hpc-chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9.5px;
  color: rgba(246, 246, 246, 0.45);
}

/* Breadcrumbs */
.hpc-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--hpc-muted-fg);
}
.hpc-crumbs button { cursor: pointer; transition: color 0.15s ease; }
.hpc-crumbs button:hover { color: var(--hpc-fg); }
.hpc-crumbs svg { width: 13px; height: 13px; opacity: 0.5; }
.hpc-meta-label { font-size: 11.5px; color: var(--hpc-muted-fg); }
.hpc-pill--canceled { --pill: #8a8a8a; }

/* Run page: metadata strip + run/results split (task run detail redesign) */
.hpc-view[data-view="live"],
.hpc-view[data-view="run"] {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  overflow: hidden;
}
.hpc-view[data-view="live"] .hpc-crumbs,
.hpc-view[data-view="run"] .hpc-crumbs { margin-bottom: 4px; }
.hpc-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 6px -40px 0;
  padding: 10px 40px 14px;
  border-bottom: 1px solid var(--hpc-border);
}
.hpc-strip-actions { margin-left: auto; }
.hpc-strip-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hpc-strip-value { display: flex; align-items: center; min-height: 22px; white-space: nowrap; }
.hpc-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 53fr 47fr;
  margin: 0 -40px;
}
.hpc-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hpc-pane--run { border-right: 1px solid var(--hpc-border); }
.hpc-utabs {
  flex: none;
  display: flex;
  align-items: stretch;
  gap: 22px;
  height: 40px;
  padding: 0 24px;
  border-bottom: 1px solid var(--hpc-border);
  font-size: 12px;
  font-weight: 500;
  color: rgba(246, 246, 246, 0.55);
}
.hpc-utabs span { display: flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hpc-utabs .is-active { color: var(--hpc-fg); border-color: var(--hpc-fg); }
.hpc-run-stack { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hpc-run-stack .hpc-bv {
  flex: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hpc-border);
  border-radius: 0;
}
.hpc-bv-ended {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--hpc-muted-fg);
  background: radial-gradient(ellipse at center, #141816, #000 75%);
}
.hpc-live-ind {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #34D399;
  font-size: 10.5px;
  font-weight: 500;
}
.hpc-live-ind i {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}
.hpc-live-ind i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10B981;
  animation: hpcPing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes hpcPing { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.hpc-live-ind.is-ended { opacity: 0; transition: opacity 0.4s ease; }

/* Activity timeline */
.hpc-tl {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 24px;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent, #000 18px);
}
.hpc-tl::-webkit-scrollbar { display: none; }
.hpc-tl-list {
  display: grid;
  grid-template-columns: 14px 58px minmax(0, 1fr) auto;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.hpc-tl-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 7px 0;
  animation: hpcStepIn 0.3s ease;
}
@keyframes hpcStepIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.hpc-tl-icon { display: flex; color: var(--hpc-muted-fg); }
.hpc .hpc-tl-icon svg { width: 13px; height: 13px; }
.hpc-tl-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 4px;
  background: #262626;
  color: var(--hpc-muted-fg);
  font-size: 10px;
  font-weight: 500;
}
.hpc-tl-pill--reason { background: rgba(84, 125, 197, 0.15); color: #8EB4E8; }
.hpc-tl-pill--tool { background: rgba(40, 102, 80, 0.3); color: #9EE0C0; }
.hpc-tl-pill--action { background: rgba(253, 250, 195, 0.15); color: var(--hpc-yellow); }
.hpc-tl-pill--auth { background: rgba(108, 74, 153, 0.25); color: #C4A8E8; }
.hpc-tl-desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpc-tl-row:has(.hpc-tl-pill--tool) .hpc-tl-desc,
.hpc-tl-row:has(.hpc-tl-pill--action) .hpc-tl-desc { color: var(--hpc-muted-fg); }
.hpc-tl-time { font: 11px var(--mono); color: rgba(246, 246, 246, 0.45); }
.hpc-tl-working { animation: none; }
.hpc-tl-working .hpc-spin { width: 12px; height: 12px; }

/* Results pane */
.hpc-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: none;
}
.hpc-results-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  color: var(--hpc-muted-fg);
}
.hpc-results-done { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.hpc-results-done.is-in { opacity: 1; transform: none; }
.hpc-ptabs { display: flex; gap: 8px; margin-bottom: 16px; }
.hpc-ptab {
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.4);
  color: var(--hpc-muted-fg);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hpc-ptab:hover { background: rgba(38, 38, 38, 0.7); color: var(--hpc-fg); }
.hpc-ptab.is-active { background: #262626; color: var(--hpc-fg); }
.hpc-kv-card {
  margin: 0;
  padding: 2px 16px;
  border-radius: 12px;
  background: rgba(38, 38, 38, 0.4);
}
.hpc-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px;
  border-top: 1px solid var(--hpc-border);
}
.hpc-kv:first-child { border-top: 0; }
.hpc-kv dt { flex: none; color: var(--hpc-muted-fg); }
.hpc-kv dd { margin: 0; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hpc-error-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid color-mix(in oklab, var(--hpc-deck-red) 30%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, var(--hpc-deck-red) 6%, transparent);
}
.hpc-error-banner p { font-weight: 500; }
.hpc-error-banner span { display: block; margin-top: 4px; font-size: 11px; color: var(--hpc-muted-fg); }
.hpc-error-banner i { margin: 0 6px; font-style: normal; opacity: 0.4; }
.hpc-error-banner code { font-family: var(--mono); }
.hpc-logs-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0 -40px;
  padding: 0 24px;
  border-top: 1px solid var(--hpc-border);
  background: rgba(38, 38, 38, 0.4);
  color: var(--hpc-muted-fg);
}
.hpc-logs-bar b { color: var(--hpc-fg); font-weight: 500; }
.hpc-logs-bar svg:last-child { margin-left: auto; transform: rotate(180deg); }
.hpc .hpc-logs-bar svg { width: 15px; height: 15px; }

/* Browser view (VNC frame) */
.hpc-bv {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hpc-border);
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}
.hpc-bv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: var(--hpc-muted-fg);
  transition: opacity 0.4s ease;
}
.hpc-bv-overlay.is-hidden { opacity: 0; pointer-events: none; }
/* Same ring spinner as the feature graphics (.hp-auth-spin), sized for the console */
.hpc-spin {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(246, 246, 246, 0.2);
  border-top-color: var(--hpc-fg);
  border-radius: 50%;
  animation: hpAuthSpin 0.7s linear infinite;
}
.hpc-spin--lg { width: 22px; height: 22px; border-width: 2px; }
@keyframes hpcSpin { to { transform: rotate(360deg); } }

.vnc-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 619px;
  transform-origin: 0 0;
  background: #fff;
  overflow: hidden;
}
.vnc-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px 0 104px;
  background: #DEE1E6;
  border-bottom: 1px solid #C9CCD1;
}
.hpc .vnc-toolbar svg { width: 14px; height: 14px; color: #5F6368; }
.vnc-navs { display: flex; gap: 10px; }
.vnc-navs svg:first-child { transform: scaleX(-1); }
.vnc-navs svg:nth-child(2) { opacity: 0.4; }
.vnc-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background: #fff;
  color: #202124;
  font: 13px -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.hpc .vnc-url svg { width: 11px; height: 11px; }
.vnc-load {
  position: absolute;
  top: 38px;
  left: 0;
  height: 2px;
  width: 0;
  background: #1A73E8;
  opacity: 0;
  z-index: 2;
}
.vnc-load.is-loading { opacity: 1; width: 70%; transition: width 0.5s ease-out; }
.vnc-load.is-done { opacity: 0; width: 100%; transition: width 0.15s ease, opacity 0.3s ease 0.15s; }
.vnc-page { position: absolute; top: 38px; left: 0; right: 0; bottom: 0; }
.vnc-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}
.hpc .vnc-cursor-svg {
  width: 24px;
  height: 24px;
  margin: -3px 0 0 -5px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
  transition: transform 0.1s ease;
}
.vnc-cursor.is-down .vnc-cursor-svg { transform: scale(0.86); }
.vnc-download {
  position: absolute;
  top: 46px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #202124;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font: 13px -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  animation: vncPop 0.25s ease;
}
.vnc-dl-ring {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2.5px solid #D2E3FC;
  border-top-color: #1A73E8;
  animation: hpcSpin 0.8s linear infinite;
}
.vnc-download.is-done .vnc-dl-ring {
  border-color: #1E8E3E;
  background: #1E8E3E;
  animation: none;
  box-shadow: inset 0 0 0 4px #fff;
}
.vnc-dl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vnc-dl-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vnc-dl-text span { color: #5F6368; font-size: 12px; }
@keyframes vncPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Ghost cursor used by the autoplay tour */
.hpc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 810px;
  transform: scale(var(--hpc-scale, 1));
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 3;
}
.hpc-ghost {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hpc-ghost svg {
  display: block;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -5px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.1s ease;
}
.hpc-ghost.is-on { opacity: 1; }
.hpc-ghost.is-down svg { transform: scale(0.86); }
.hpc-overlay.is-hover .hpc-ghost { opacity: 0; }
.hpc .is-pressed { filter: brightness(1.25); }

/* ---------- Simulated websites inside the browser view ---------- */
.vs-page {
  --brand: #1466B8;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: #1B1D1F;
  font: 14px/1.45 -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}
.vs-page h2 { font-size: 26px; font-weight: 600; margin: 4px 0 18px; letter-spacing: -0.01em; }
.vs-page h3 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.vs-page a, .vs-a { color: var(--brand); cursor: default; }
.vs-a { font-weight: 500; }
.vs-muted { color: #6B7075; }
.vs-small { font-size: 12.5px; }
.vs-center { text-align: center; }
.vs-gray { background: #F4F5F7; }
.vs-header {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  padding: 0 36px;
  background: #fff;
  border-bottom: 1px solid #E6E8EB;
}
.vs-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--brand); }
.vs-brand img { width: 26px; height: 26px; border-radius: 6px; }
.vs-nav { display: flex; gap: 26px; flex: 1; color: #3C4043; font-size: 13.5px; }
.vs-nav .is-on { color: var(--brand); font-weight: 600; }
.vs-hlink { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.vs-main { padding: 30px 44px; }
.vs-main--tight { padding: 22px 44px; }
.vs-narrow { max-width: 680px; margin: 0 auto; }
.vs-eyebrow { font-size: 12.5px; color: #6B7075; margin: 0; }
.vs-row { display: flex; align-items: center; gap: 12px; }
.vs-row--between { justify-content: space-between; }
.vs-row--fields > * { flex: 1; }
.vs-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vs-label { font-size: 12.5px; font-weight: 600; color: #3C4043; }
.vs-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #BFC4CA;
  border-radius: 6px;
  background: #fff;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vs-input.is-focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.vs-val { white-space: pre; }
.vs-ph { color: #9AA0A6; }
.vs-val:not(:empty) + .vs-ph { display: none; }
.vs-input.is-focus .vs-val::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 17px;
  margin-left: 1px;
  vertical-align: -3px;
  background: currentColor;
  animation: vsBlink 1s steps(1) infinite;
}
.vs-input.is-focus .vs-val:empty + .vs-ph { margin-left: -2px; }
.vs-input--code { font: 22px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.4em; justify-content: center; height: 52px; }
@keyframes vsBlink { 50% { opacity: 0; } }
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.1s ease;
}
.vs-btn--block { display: flex; width: 100%; margin: 6px 0 12px; }
.vs-btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px currentColor; }
.vs-btn--gray { background: rgba(128, 128, 128, 0.35); }
.vs-page .is-pressed { filter: brightness(0.88); }
.vs-check { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 13px; }
.vs-check i { width: 16px; height: 16px; border: 1.5px solid #9AA0A6; border-radius: 4px; }
.vs-check--on i { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff; }
.vs-split { display: grid; grid-template-columns: 1.1fr 1fr; height: calc(100% - 60px); }
.vs-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000));
  color: #fff;
}
.vs-hero-panel h2 { font-size: 32px; margin: 0 0 10px; }
.vs-hero-panel p { margin: 0; max-width: 360px; opacity: 0.85; font-size: 16px; }
.vs-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 36px 56px; }
.vs-form-panel .vs-row { justify-content: space-between; }
.vs-center-card {
  width: 420px;
  margin: 48px auto 0;
  padding: 32px 36px;
  border: 1px solid #E6E8EB;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.vs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.vs-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid #E6E8EB;
  border-radius: 10px;
  background: #fff;
}
.vs-card--accent { border-top: 3px solid var(--brand); }
.vs-card .vs-row { margin-top: 10px; }
.vs-big { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.vs-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 6px; }
.vs-bars i { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--brand) 70%, #fff); }
.vs-link-row { padding: 6px 0; color: var(--brand); border-bottom: 1px solid #F0F1F3; }
.vs-table { border: 1px solid #E6E8EB; border-radius: 10px; background: #fff; overflow: hidden; }
.vs-tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; padding: 13px 20px; border-top: 1px solid #F0F1F3; }
.vs-th { border-top: 0; background: #F8F9FA; font-size: 12.5px; font-weight: 600; color: #5F6368; }
.vs-tf { font-weight: 600; background: #F8F9FA; }
.vs-tag { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #EEF0F2; font-size: 12px; font-weight: 500; }
.vs-tag--due { background: #FFF4E5; color: #B25E09; }
.vs-tag--paid { background: #E6F4EA; color: #1E8E3E; }
.vs-list { gap: 0; padding: 4px 22px; }
.vs-li { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid #F0F1F3; }
.vs-li:first-child { border-top: 0; }
.vs-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; margin-left: auto; }
.vs-banner { margin-bottom: 18px; padding: 12px 16px; border-radius: 6px; background: #E6F4EA; color: #1E6B34; font-weight: 500; animation: vncPop 0.3s ease; }

/* Brand themes */
.vs-coned { --brand: #0B63B6; }
.vs-coned .vs-brand b { font-weight: 800; }
.vs-netflix { --brand: #E50914; }
.vs-dark { background: #000 radial-gradient(ellipse at top, #2a0a0c, #000 70%); color: #fff; }
.vs-light { background: #F3F3F3; }
.vs-header--bare { background: transparent; border: 0; height: 72px; padding: 0 48px; }
.vs-header--nf { background: #fff; }
.vs-nf-word { color: #E50914; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; transform: scaleY(1.15); }
.vs-nf-login {
  width: 400px;
  margin: 10px auto 0;
  padding: 40px 56px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
}
.vs-nf-login h3 { font-size: 28px; font-weight: 700; margin-bottom: 22px; }
.vs-nf-login .vs-input { margin-bottom: 14px; }
.vs-input--dark { background: rgba(22, 22, 22, 0.7); border-color: rgba(128, 128, 128, 0.7); color: #fff; height: 52px; }
.vs-input--dark .vs-ph { color: #B3B3B3; }
.vs-dark .vs-muted { color: #B3B3B3; }
.vs-dark .vs-check i { border-color: #B3B3B3; }
.vs-check--on i { background: var(--brand); }
.vs-nf-profiles { text-align: center; padding-top: 70px; }
.vs-nf-profiles h2 { font-size: 40px; font-weight: 500; margin-bottom: 30px; }
.vs-nf-profiles .vs-row { justify-content: center; gap: 26px; }
.vs-profile { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #B3B3B3; font-size: 15px; }
.vs-profile i { width: 110px; height: 110px; border-radius: 6px; }
.vs-profile.is-pressed i { box-shadow: 0 0 0 3px #fff; }
.vs-adp { --brand: #D0271D; }
.vs-adp-login {
  width: 400px;
  margin: 56px auto 0;
  padding: 36px 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.vs-adp.vs-page:not(.vs-gray) { background: linear-gradient(160deg, #F4F5F7, #E9EBEF); }
.vs-header--adp .vs-brand { color: #1B1D1F; font-size: 16px; }
.vs-filters { margin-bottom: 14px; }
.vs-select { padding: 8px 12px; border: 1px solid #D0D4D9; border-radius: 6px; background: #fff; font-size: 13px; }
.vs-hilton { --brand: #104C97; }
.vs-header--hilton .vs-brand { font-family: Georgia, serif; font-weight: 700; }
.vs-hotel {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #E6E8EB;
  border-radius: 10px;
  background: #fff;
}
.vs-hotel > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.vs-photo { display: block; height: 100px; border-radius: 6px; }
.vs-rating { font-size: 12.5px; color: #1E6B34; }
.vs-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-right: 8px; }
.vs-price strong { font-size: 22px; margin-bottom: 6px; }
.vs-checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.vs-kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #F0F1F3; font-size: 13.5px; }
.vs-kv--total { font-size: 16px; border-bottom: 0; }
.vs-confirm { text-align: center; }
.vs-ok { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: #E6F4EA; color: #1E8E3E; font-size: 24px; }

/* ---------- Logo row ---------- */
.hp-logos {
  padding: clamp(64px, 7vw, 112px) 0 clamp(56px, 6vw, 100px);
}
.hp-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hp-logos-row img {
  /* --h is set per logo so wide and compact marks carry the same visual weight */
  height: calc(var(--h, 26px) * var(--hp-logo-scale, 1));
  width: auto;
  flex: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (max-width: 1199px) {
  .hp-logos-row { --hp-logo-scale: 0.72; gap: 28px; }
}
@media (max-width: 900px) {
  /* Six marks in an even 3 × 2 grid; the seventh would leave a row of one */
  .hp-logos-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 36px 24px;
    max-width: calc(480px + 2 * var(--hp-gutter));
  }
  .hp-logos-row img:last-child { display: none; }
}

/* ---------- Use cases ---------- */
.hp-uses {
  --fg: #F7F8F8;
  --fg-2: #8A8F98;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  padding: clamp(40px, 5vw, 80px) 0 clamp(96px, 11vw, 180px);
}
.hp-uses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(56px, 6.5vw, 104px);
}
.hp-use {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.hp-use:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
@media (hover: hover) {
  .hp-use:hover { background-color: rgba(255, 255, 255, 0.055); }
  .hp-use:hover .hp-use-link svg { transform: translateX(4px); }
}
.hp-uses .hp-customers-head { grid-template-columns: minmax(0, 1fr); }
.hp-uses .hp-customers-title,
.hp-customers .hp-customers-title,
.hp-trust .hp-customers-title { max-width: none; font-size: clamp(40px, 5vw, 72px); }
.hp-use:nth-child(1) { --art: linear-gradient(180deg, #547DC5, #6C4A99); }
.hp-use:nth-child(2) { --art: linear-gradient(180deg, #547DC5, #31205A); }
.hp-use:nth-child(3) { --art: linear-gradient(180deg, #C77BC1, #6C4A99); }
.hp-use:nth-child(4) { --art: linear-gradient(180deg, #6C4A99, #31205A); }
.hp-use-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}
.hp-use-desc {
  max-width: 24em;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  text-wrap: pretty;
}
.hp-use-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 32px 0 28px;
  font-size: 16px;
  line-height: 24px;
  color: #77AB97;
  transition: color 0.3s ease;
}
.hp-use-link svg { width: 16px; height: 16px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

/* Pinned to the bottom so panels line up when descriptions wrap differently */
.hp-use-art {
  position: relative;
  flex: none;
  aspect-ratio: 1;
  margin-top: auto;
  overflow: hidden;
  background: var(--art, rgba(255, 255, 255, 0.03));
}

/* Same glass as the feature graphics, running off the panel edges. No backdrop blur:
   past the clipped edge it samples the dark page and smears it back in */
.hp-use-glass {
  position: absolute;
  left: 16%;
  right: -24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hp-use-glass--center { top: 50%; transform: translateY(-50%); }
.hp-use-glass--top { top: -18px; bottom: 17%; }

/* Source rows with a status circle: ring, spinner, then green check.
   Hover delays live only on the hover rules so leaving reverts at once */
.hp-use-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-use-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 8px;
  background: #18191C;
  font-size: 13px;
  line-height: 18px;
  color: var(--fg);
  transition: opacity 0.35s ease;
}
.hp-use-rows img { flex: none; background: #fff; }
.hp-use-rows li > span { min-width: 0; }
.hp-use-rows b { font-weight: 500; }
.hp-use-rows i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.hp-use-rows i::before,
.hp-use-rows i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.hp-use-rows i::before {
  border: 1.5px solid transparent;
  border-top-color: var(--fg);
  opacity: 0;
  animation: hpUseSpin 0.7s linear infinite;
  transition: opacity 0.2s ease;
}
.hp-use-rows i::after {
  background: #3D8B63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
@keyframes hpUseSpin { to { transform: rotate(360deg); } }

/* Fetch: rests mid-run (one done, one queued, one dimmed); hover finishes it */
.hp-use-fetch li { height: 68px; }
.hp-use-fetch img { width: 32px; height: 32px; border-radius: 7px; }
.hp-use-fetch b, .hp-use-fetch em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-use-fetch em { margin-top: 2px; font-style: normal; color: var(--fg-2); }
/* Dim the queued row's contents, not the row, so the card stays solid over the gradient */
.hp-use-fetch li > * { transition: opacity 0.35s ease; }
.hp-use-fetch li:nth-child(3) > * { opacity: 0.4; }
.hp-use-fetch li:first-child i::after { transform: none; }
@media (hover: hover) {
  .hp-use:is(:hover, :focus-visible) .hp-use-fetch li:nth-child(2) i::before { opacity: 1; }
  .hp-use:is(:hover, :focus-visible) .hp-use-fetch li:nth-child(2) i::after { transform: none; transition-delay: 1000ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-fetch li:nth-child(3) > * { opacity: 1; transition-delay: 500ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-fetch li:nth-child(3) i::before { opacity: 1; transition-delay: 900ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-fetch li:nth-child(3) i::after { transform: none; transition-delay: 1900ms; }
}

/* Swap: the new card's bottom edge peeks in above the accounts, which update one by one on hover */
.hp-use-edge {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 10px;
  min-height: 44px;
  padding: 0 24px 18px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #141920, #18191C);
  font-size: 20px;
  line-height: 26px;
  color: var(--fg-2);
}
.hp-use-dots { letter-spacing: 0.16em; }
.hp-use-num { display: inline-grid; color: var(--fg-2); }
.hp-use-num > span { grid-area: 1 / 1; transition: opacity 0.25s ease; }
.hp-use-num > span:last-child { opacity: 0; }
/* The edge number rolls up to its new value */
.hp-use-edge .hp-use-num > span { transition: opacity 0.3s ease, transform 0.45s var(--ease); }
.hp-use-edge .hp-use-num > span:last-child { transform: translateY(10px); }

.hp-use-seq { gap: 10px; }
.hp-use-seq li { height: 50px; gap: 12px; padding: 0 16px; }
.hp-use-seq li > span { display: flex; gap: 8px; overflow: hidden; white-space: nowrap; }
.hp-use-swap img { width: 24px; height: 24px; border-radius: 6px; }

/* Pay: the user confirms once in your app, then the agent submits it on the portal */
.hp-use-confirm {
  padding: 18px 16px;
  border-radius: 8px;
  background: #18191C;
  font-size: 13px;
  line-height: 18px;
  color: var(--fg);
  white-space: nowrap;
}
.hp-use-confirm dl { display: grid; grid-template-columns: 68px auto; row-gap: 10px; margin: 0; }
.hp-use-confirm dt { color: var(--fg-2); }
.hp-use-confirm dd { display: flex; align-items: center; gap: 6px; margin: 0; }
/* Runs past the card so the panel edge cuts it off; the right padding matches the hidden part
   so the label stays centered in what's visible */
.hp-use-cbtn {
  display: grid;
  height: 36px;
  margin: 16px -40px 0 0;
  padding-right: 38px;
  border-radius: 6px;
  background: var(--fg);
  color: #0F1011;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hp-use-cbtn > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.2s ease; }
.hp-use-cbtn > span:last-child { opacity: 0; }
.hp-use-cbtn svg { width: 14px; height: 14px; }
.hp-use-portal li { height: 68px; }
.hp-use-portal img { width: 32px; height: 32px; border-radius: 7px; }
.hp-use-portal li > span { display: flex; flex-direction: column; gap: 1px; overflow: hidden; white-space: nowrap; }
/* Three statuses in one cell: the middle one's wrapper hides it again once the payment lands */
.hp-use-mid > span { opacity: 0; transition: opacity 0.25s ease; }

/* Submit: a payer portal claim form the agent types into, then submits */
/* Bottom-aligned so on smaller panels the top of the form runs off the edge instead of the button */
.hp-use-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 0 18px 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #18191C;
  font-size: 13px;
  line-height: 18px;
  color: var(--fg);
  white-space: nowrap;
}
.hp-use-field { display: flex; flex: none; flex-direction: column; gap: 7px; color: var(--fg-2); }
.hp-use-form .hp-use-cbtn { flex: none; margin-top: 4px; }
.hp-use-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  margin-right: -40px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  transition: background-color 0.2s ease;
}
.hp-use-input.is-focus { background: rgba(255, 255, 255, 0.09); }
/* Typing: one span per character, each collapsed until its turn, so the caret rides the end of the text */
.hp-use-type { display: flex; align-items: center; }
.hp-use-type > span { max-width: 0; overflow: hidden; }
.hp-use-type > :nth-child(2) { --i: 1; }
.hp-use-type > :nth-child(3) { --i: 2; }
.hp-use-type > :nth-child(4) { --i: 3; }
.hp-use-type > :nth-child(5) { --i: 4; }
.hp-use-type > :nth-child(6) { --i: 5; }
.hp-use-type > :nth-child(7) { --i: 6; }
.hp-use-type > :nth-child(8) { --i: 7; }
.hp-use-type > :nth-child(9) { --i: 8; }
.hp-use-type > :nth-child(10) { --i: 9; }
.hp-use-type::after {
  content: '';
  width: 1px;
  height: 16px;
  margin-left: 1px;
  background: var(--fg);
  visibility: hidden;
  animation: hpUseBlink 1s steps(1) infinite;
}
.is-focus > .hp-use-type::after { visibility: visible; }
@keyframes hpUseBlink { 50% { opacity: 0; } }
@keyframes hpUseFocus { from, to { background: rgba(255, 255, 255, 0.09); } }
@keyframes hpUseShow { from, to { visibility: visible; } }
.hp-use-cbtn .hp-use-mid > span { display: flex; align-items: center; gap: 7px; }
.hp-use-spin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 16, 17, 0.18);
  border-top-color: #0F1011;
  animation: hpUseSpin 0.7s linear infinite;
}

@media (hover: hover) {
  .hp-use:is(:hover, :focus-visible) .hp-use-edge .hp-use-num > span:first-child { opacity: 0; transform: translateY(-10px); }
  .hp-use:is(:hover, :focus-visible) .hp-use-edge .hp-use-num > span:last-child { opacity: 1; transform: none; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li i::before { opacity: 1; transition-delay: 250ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(2) i::before { transition-delay: 700ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(3) i::before { transition-delay: 1400ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li i::after { transform: none; transition-delay: 700ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(2) i::after { transition-delay: 1400ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(3) i::after { transition-delay: 2100ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq .hp-use-num > span:first-child { opacity: 0; transition-delay: 700ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq .hp-use-num > span:last-child { opacity: 1; transition-delay: 700ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(2) .hp-use-num > span { transition-delay: 1400ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-seq li:nth-child(3) .hp-use-num > span { transition-delay: 2100ms; }

  .hp-use:is(:hover, :focus-visible) .hp-use-confirm .hp-use-cbtn { background-color: rgba(255, 255, 255, 0.1); color: var(--fg); transition-delay: 300ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-confirm .hp-use-cbtn > span:first-child { opacity: 0; transition-delay: 300ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-confirm .hp-use-cbtn > span:last-child { opacity: 1; transition-delay: 300ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal i::before { opacity: 1; transition-delay: 600ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal i::after { transform: none; transition-delay: 2000ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal .hp-use-num > span:first-child { opacity: 0; transition-delay: 600ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal .hp-use-mid > span { opacity: 1; transition-delay: 600ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal .hp-use-mid { opacity: 0; transition-delay: 2000ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-portal .hp-use-num > span:last-child { opacity: 1; transition-delay: 2000ms; }

  .hp-use:is(:hover, :focus-visible) .hp-use-type > span { max-width: 1em; transition: max-width 0s calc(var(--td, 0ms) + var(--i, 0) * 55ms); }
  .hp-use:is(:hover, :focus-visible) .hp-use-input.is-focus { background: rgba(255, 255, 255, 0.05); transition-delay: 700ms; }
  .hp-use:is(:hover, :focus-visible) .is-focus > .hp-use-type::after { visibility: hidden; transition: visibility 0s 700ms; }
  /* Focus hops to the amount while it types, then leaves for the button */
  .hp-use:is(:hover, :focus-visible) .hp-use-next { animation: hpUseFocus 0.65s 0.7s; }
  .hp-use:is(:hover, :focus-visible) .hp-use-next > .hp-use-type::after { animation: hpUseBlink 1s 0.7s steps(1) infinite, hpUseShow 0.65s 0.7s; }
  .hp-use:is(:hover, :focus-visible) .hp-use-sbtn > span:first-child { opacity: 0; transition-delay: 1400ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-sbtn .hp-use-mid > span { opacity: 1; transition-delay: 1400ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-sbtn .hp-use-mid { opacity: 0; transition-delay: 2350ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-sbtn > span:last-child { opacity: 1; transition-delay: 2350ms; }
  .hp-use:is(:hover, :focus-visible) .hp-use-sbtn { background-color: #3D8B63; color: #fff; transition-delay: 2350ms; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-use-art *, .hp-use-art *::before, .hp-use-art *::after { transition: none !important; }
  .hp-use-rows i::before, .hp-use-spin, .hp-use-art .hp-use-next, .hp-use-art .hp-use-type::after { animation: none !important; }
}
@media (max-width: 1199px) {
  .hp-uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hp-uses-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Trust ---------- */
.hp-trust { padding: clamp(40px, 5vw, 80px) 0 clamp(96px, 11vw, 180px); }
/* Section head with a link: full-width title, then the description with the link on its right */
.hp-customers-head.hp-customers-head--link { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.hp-customers-head--link .hp-customers-title { grid-column: 1 / -1; max-width: 1000px; }
.hp-customers-head--link .hp-customers-desc { margin-top: 40px; }
.hp-customers .hp-customers-desc { max-width: 36em; }
.hp-head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 20px;
  line-height: 1.5;
  color: #77AB97;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.hp-head-link svg { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .hp-head-link:hover svg { transform: translateX(4px); }
}
@media (max-width: 900px) {
  .hp-customers-head.hp-customers-head--link { grid-template-columns: minmax(0, 1fr); }
  .hp-head-link { justify-self: start; margin-top: 16px; font-size: 18px; }
}
.hp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(56px, 6.5vw, 104px);
}
.hp-trust-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}
/* Seal icons pinned to the bottom-left corner; Compliance carries two side by side */
.hp-trust-icon {
  display: flex;
  flex: none;
  gap: 8px;
  margin-top: auto;
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.7);
}
.hp-trust-icon svg { display: block; width: 64px; height: 64px; }
@media (max-width: 1199px) {
  .hp-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hp-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-trust-card { min-height: 200px; }
}

/* ---------- Product features ---------- */
.hp-features {
  --feature-h: clamp(480px, 40vw, 700px);
  padding-bottom: clamp(80px, 10vw, 160px);
}
.hp-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: var(--feature-h);
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
}
.hp-feature + .hp-feature { margin-top: 160px; }
.hp-feature:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
@media (hover: hover) {
  .hp-feature:hover { background-color: rgba(255, 255, 255, 0.055); }
  .hp-feature:hover .hp-feature-link svg { transform: translateX(4px); }
}
.hp-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 12px 32px 12px 12px;
}
@media (min-width: 901px) {
  .hp-feature:nth-of-type(even) .hp-feature-copy { order: 1; padding: 12px 12px 12px 32px; }
}
.hp-feature-title {
  max-width: 11em;
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}
.hp-feature-desc {
  max-width: 30em;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
/* Same text link as the use case cards, sized to the description */
.hp-feature-link { margin: 40px 0 0; font-size: 18px; line-height: 28px; color: #77AB97; }
/* Own layer, so the card's hover background doesn't make the glass blur re-render and flicker */
.hp-feature-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #1a1d2b;
  transform: translateZ(0);
}
.hp-feature-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-feature-glass {
  position: absolute;
  top: 19%;
  right: 20%;
  bottom: 13%;
  left: 20%;
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 7px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.hp-feature-glass--demo { inset: 17% 20% 15%; border-radius: 18px; }
.hp-feature-glass--wide { inset: 10% 12% 9%; }
.hp-feature-glass--wide[data-flow-demo] { inset: 18% 12%; }

/* Auth demo: a 360×368 minimum scene, scaled and stretched by home.js to fill the glass with an even inset */
.hp-auth {
  --ok: #4CB782;
  --warn: #F2C94C;
  --panel: #0F1011;
  --fg: #F7F8F8;
  --fg-2: #8A8F98;
  --fg-3: #62666D;
  position: absolute;
  top: 10px;
  left: 10px;
  width: var(--w, 360px);
  height: var(--h, 368px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  color: var(--fg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  transition: opacity 0.35s ease;
}
.hp-auth.is-out { opacity: 0; }
:where(.hp-auth) p { margin: 0; }

.hp-auth-portal,
.hp-auth-source {
  border-radius: 8px;
  background: var(--panel);
}
.hp-auth-portal { display: flex; flex-direction: column; overflow: hidden; }
.hp-auth-url {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  flex: none;
  background: #17181B;
  font-size: 10.5px;
  color: var(--fg-2);
}
.hp-auth-body { position: relative; flex: 1; }

.hp-auth-view {
  position: absolute;
  inset: 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-auth-view.is-on { opacity: 1; transform: none; }
.hp-auth-view--done { align-items: center; text-align: center; }
.hp-auth-title { font-size: 15px; font-weight: 500; letter-spacing: -0.012em; }
.hp-auth-sub { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--fg-2); }
.hp-auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hp-auth-field { display: flex; flex-direction: column; gap: 6px; }
.hp-auth-flabel { font-size: 11px; font-weight: 500; color: var(--fg-2); }
.hp-auth-input,
.hp-auth-digit,
.hp-auth-captcha {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.hp-auth-input {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.hp-auth-input [data-val]:empty::before { content: attr(data-ph); color: var(--fg-3); }
.hp-auth-input.is-focus,
.hp-auth-digit.is-focus {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.hp-auth-caret { width: 1px; height: 13px; margin-left: 1px; background: var(--fg); opacity: 0; }
/* An empty field shows its caret ahead of the placeholder, like a real input */
.hp-auth-input [data-val]:empty + .hp-auth-caret { order: -1; margin: 0 1px 0 0; }
.hp-auth-input.is-focus .hp-auth-caret { animation: hpAuthBlink 1s steps(1) infinite; }
@keyframes hpAuthBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hp-auth-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-top: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, #FAFAFA, #E2E3E5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.35);
  color: #0F1011;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}
.hp-auth-btn.is-press { transform: scale(0.98); filter: brightness(0.9); }
.hp-auth-btn.is-busy > span { opacity: 0; }
.hp-auth-spin {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(247, 248, 248, 0.2);
  border-top-color: var(--fg);
  border-radius: 50%;
  opacity: 0;
}
.hp-auth-btn .hp-auth-spin { border-color: rgba(15, 16, 17, 0.18); border-top-color: #0F1011; }
.hp-auth-btn.is-busy .hp-auth-spin { opacity: 1; animation: hpAuthSpin 0.7s linear infinite; }
@keyframes hpAuthSpin { to { transform: rotate(360deg); } }

.hp-auth-digits {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 8px repeat(3, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.hp-auth-dash { height: 1.5px; border-radius: 1px; background: var(--fg-3); }
.hp-auth-digit {
  display: grid;
  place-items: center;
  height: 36px;
  font-size: 15px;
  font-weight: 500;
}

.hp-auth-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  font-size: 11.5px;
}
.hp-auth-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgba(247, 248, 248, 0.24);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hp-auth-check .hp-auth-spin { width: 14px; height: 14px; }
.hp-auth-check svg { width: 12px; height: 12px; color: var(--ok); opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.hp-auth-captcha.is-press .hp-auth-check { transform: scale(0.9); box-shadow: inset 0 0 0 1.5px var(--fg); }
.hp-auth-captcha.is-busy .hp-auth-check { box-shadow: none; }
.hp-auth-captcha.is-busy .hp-auth-spin { opacity: 1; animation: hpAuthSpin 0.7s linear infinite; }
.hp-auth-captcha.is-ok .hp-auth-check { box-shadow: none; background: rgba(76, 183, 130, 0.14); }
.hp-auth-captcha.is-ok .hp-auth-check svg { opacity: 1; transform: none; }
.hp-auth-captcha-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.hp-auth-captcha-mark svg { width: 13px; height: 13px; }

.hp-auth-ok {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(76, 183, 130, 0.14);
  color: var(--ok);
}
.hp-auth-ok svg { width: 16px; height: 16px; }

/* The source + credential stored in Deck */
.hp-auth-source {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}
.hp-auth-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.hp-auth-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-auth-meta { flex: 1; min-width: 0; }
.hp-auth-domain { font-size: 12.5px; font-weight: 500; }
.hp-auth-user {
  margin-top: 1px;
  overflow: hidden;
  font-size: 11.5px;
  color: var(--fg-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-auth-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  flex: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 248, 248, 0.72);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hp-auth-status .hp-auth-spin,
.hp-auth-status svg { display: none; }
.hp-auth-status .hp-auth-spin { position: static; width: 10px; height: 10px; border-width: 1.5px; }
.hp-auth-status svg { width: 12px; height: 12px; }
.hp-auth-status[data-state="busy"] .hp-auth-spin { display: block; opacity: 1; animation: hpAuthSpin 0.7s linear infinite; }
.hp-auth-status[data-state="ok"] { background: rgba(76, 183, 130, 0.14); color: var(--ok); }
.hp-auth-status[data-state="ok"] svg { display: block; }

/* Agents demo: the Auth scene's panels, pill and scaling, with a task run over the live browser */
/* A capped column lets the prompt truncate instead of widening the cards */
.hp-agent { grid-template-columns: minmax(0, 1fr); }
.hp-agent-task {
  padding: 14px 16px 16px;
  border-radius: 8px;
  background: var(--panel);
}
.hp-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hp-agent-name { font-size: 12.5px; font-weight: 500; }
.hp-agent-fields {
  display: flex;
  gap: 28px;
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 16px;
}
.hp-agent-fields > div { flex: none; }
.hp-agent-fields > div:last-child { flex: 1; min-width: 0; }
.hp-agent-fields dt { font-size: 11px; color: var(--fg-2); }
.hp-agent-fields dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 4px 0 0;
}
.hp-agent-fields dd > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-agent .hp-auth-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 9px;
}
.hp-agent-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg-2);
}
.hp-agent-ico svg { width: 10px; height: 10px; }

.hp-agent-vnc {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}
.hp-agent-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  flex: none;
  padding: 0 10px;
  background: #17181B;
  font-size: 10.5px;
  color: var(--fg-2);
}
/* Equal side columns keep the path centered */
.hp-agent-live,
.hp-agent-time { flex: 0 0 40px; }
.hp-agent-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.hp-agent-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: background-color 0.3s ease;
}
.hp-agent-live.is-on { color: var(--fg); }
.hp-agent-live.is-on i { background: #77AB97; animation: hpAgentPulse 1.6s ease-in-out infinite; }
@keyframes hpAgentPulse { 50% { opacity: 0.35; } }
.hp-agent-path {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-agent-time { text-align: right; font-variant-numeric: tabular-nums; }

.hp-agent-screen {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #141517;
}
.hp-agent-boot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-2);
  transition: opacity 0.3s ease;
}
.hp-agent-boot .hp-auth-spin {
  position: static;
  width: 12px;
  height: 12px;
  border-width: 1.5px;
  opacity: 1;
  animation: hpAuthSpin 0.7s linear infinite;
}
.hp-agent-boot.is-off { opacity: 0; }
/* The remote page is a light, on-brand third-party site, set in a system stack so it reads as someone else's UI */
.hp-agent-site {
  --site-ink: #1B1F24;
  --site-ink-2: #5F6670;
  --site-line: #E4E7EB;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #F4F5F7;
  color: var(--site-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hp-agent-site.is-on { opacity: 1; }
.hp-agent-util {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 18px;
  flex: none;
  padding: 0 14px;
  background: var(--site-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 7.5px;
}
.hp-agent-util > span:first-child { color: #fff; font-weight: 600; }
.hp-agent-util-end { display: flex; gap: 10px; margin-left: auto; }
.hp-agent-head-site {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  flex: none;
  padding: 0 14px;
  border-bottom: 1px solid var(--site-line);
  background: #fff;
}
.hp-agent-site .hp-auth-logo { width: 15px; height: 15px; border-radius: 3px; font-size: 8px; }
.hp-agent-mark { font-size: 10.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--site-brand); }
.hp-agent-links {
  display: flex;
  align-self: stretch;
  gap: 12px;
  margin-left: 16px;
  font-size: 9px;
  font-weight: 500;
  color: var(--site-ink-2);
}
.hp-agent-links span {
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, opacity 0.15s ease;
}
.hp-agent-links .is-on { color: var(--site-brand); }
.hp-agent-links .is-on::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--site-brand);
}
.hp-agent-links .is-press { opacity: 0.6; }
.hp-agent-cta {
  display: flex;
  align-items: center;
  height: 20px;
  margin-left: auto;
  padding: 0 9px;
  border-radius: 3px;
  background: var(--site-brand);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
}

.hp-agent-page { position: relative; flex: 1; }
.hp-agent-view {
  position: absolute;
  inset: 12px 14px auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hp-agent-view.is-on { opacity: 1; }
.hp-agent-crumbs { font-size: 7.5px; color: var(--site-ink-2); }
.hp-agent-h { margin-top: 5px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.hp-agent-sub { margin-top: 2px; font-size: 8.5px; color: var(--site-ink-2); }
.hp-agent-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.hp-agent-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: #fff;
  font-size: 8px;
  color: var(--site-ink-2);
}
.hp-agent-tile strong { font-size: 14px; font-weight: 600; color: var(--site-ink); }
.hp-agent-tile em { margin-top: 2px; font-style: normal; font-weight: 500; color: var(--site-brand); }

.hp-agent-table {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: #fff;
  font-size: 9px;
}
.hp-agent-tr {
  display: grid;
  grid-template-columns: 1fr 64px 50px 56px;
  align-items: center;
  gap: 8px;
  height: 25px;
  padding: 0 10px;
  transition: background-color 0.2s ease;
}
.hp-agent-tr + .hp-agent-tr { border-top: 1px solid #EEF0F2; }
.hp-agent-th {
  height: 20px;
  background: #F8F9FA;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--site-ink-2);
}
.hp-agent-tr > :nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.hp-agent-tr.is-hover { background: #F5F7FA; }
.hp-agent-pill {
  justify-self: start;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 600;
}
.hp-agent-pill[data-tone="due"] { background: #FFF3E0; color: #A45A00; }
.hp-agent-pill[data-tone="paid"] { background: #E7F5EC; color: #1C7A45; }
.hp-agent-meta { color: var(--site-ink-2); }
.hp-agent-dl {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--site-brand);
  font-weight: 600;
  transition: transform 0.15s ease, color 0.2s ease;
}
.hp-agent-dl svg { width: 10px; height: 10px; flex: none; }
.hp-agent-dl svg:last-of-type { display: none; }
.hp-agent-dl .hp-auth-spin {
  position: static;
  display: none;
  width: 9px;
  height: 9px;
  border-width: 1.5px;
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: var(--site-brand);
}
.hp-agent-tr.is-hover .hp-agent-dl > span { text-decoration: underline; }
.hp-agent-dl.is-press { transform: scale(0.94); }
.hp-agent-dl.is-busy svg { display: none; }
.hp-agent-dl.is-busy .hp-auth-spin { display: block; opacity: 1; animation: hpAuthSpin 0.7s linear infinite; }
.hp-agent-dl.is-ok { color: #1C7A45; }
.hp-agent-dl.is-ok svg:first-of-type { display: none; }
.hp-agent-dl.is-ok svg:last-of-type { display: block; }

.hp-agent-foot {
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 7px;
  color: #8B929B;
  white-space: nowrap;
}

/* The remote browser's download bubble, pinned under the site header */
.hp-agent-toast {
  position: absolute;
  top: 58px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 7px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  color: #1B1F24;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-agent-toast svg { width: 11px; height: 11px; color: #1C7A45; }
.hp-agent-toast.is-on { opacity: 1; transform: none; }

/* translate() places the pointer's tip, which sits 2px in and 1.5px down in the 16px glyph */
.hp-agent-cursor {
  position: absolute;
  top: -1.5px;
  left: -2px;
  z-index: 2;
  width: 16px;
  height: 16px;
  opacity: 0;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
  transition-property: transform, opacity;
  transition-duration: 0.7s, 0.3s;
  transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease;
}
.hp-agent-cursor.is-on { opacity: 1; }
.hp-agent-cursor svg { display: block; width: 100%; height: 100%; }
.hp-agent-cursor::after {
  content: '';
  position: absolute;
  top: -6.5px;
  left: -6px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
}
.hp-agent-cursor.is-click::after { animation: hpAgentClick 0.45s ease-out; }
@keyframes hpAgentClick {
  from { opacity: 1; transform: scale(0.3); }
  to { opacity: 0; transform: scale(1.4); }
}

/* Automation demo: the Agents scene with the workflow on top and its run as a waterfall below */
.hp-flow-run {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}
.hp-flow-id {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px;
  transition: color 0.3s ease;
}
.hp-flow-id i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: background-color 0.3s ease;
}
.hp-flow-id[data-state] { color: var(--fg); }
.hp-flow-id[data-state] i { background: var(--ok); }
.hp-flow-id[data-state="on"] i { animation: hpAgentPulse 1.6s ease-in-out infinite; }
.hp-flow-prog { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Waterfall: a time ruler, one row per step with a bar placed by start and grown by duration */
.hp-wf-ruler,
.hp-wf-lane,
.hp-wf-grid { position: relative; margin: 0 12px; }
.hp-wf-ruler {
  flex: none;
  height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.hp-wf-ruler span { position: absolute; top: 8px; }
.hp-wf-rows {
  position: relative;
  flex: 1;
  min-height: 0;
  padding-top: 4px;
}
.hp-wf-grid { position: absolute; inset: 0 12px; margin: 0; pointer-events: none; }
.hp-wf-grid i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
}
.hp-wf-row {
  height: 22px;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}
.hp-wf-row[data-state] { opacity: 1; }
.hp-wf-row[data-state="run"]:not([data-kind="root"]) { background: rgba(255, 255, 255, 0.03); }
.hp-wf-row[data-kind="root"] { --bg: rgba(84, 125, 197, 0.16); --bd: rgba(84, 125, 197, 0.45); --tx: #B9CBEA; }
.hp-wf-row[data-kind="task"],
.hp-wf-row[data-kind="item"] { --bg: rgba(76, 183, 130, 0.13); --bd: rgba(76, 183, 130, 0.42); --tx: #9AD9B9; }
.hp-wf-row[data-kind="each"] { --bg: rgba(199, 123, 193, 0.13); --bd: rgba(199, 123, 193, 0.42); --tx: #E2C3DF; }
.hp-wf-lane { height: 100%; }
.hp-wf-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--bd);
  color: var(--tx);
}
.hp-wf-label {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 7px;
  white-space: nowrap;
}
.hp-wf-label svg { width: 9px; height: 9px; flex: none; }
.hp-wf-label code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 9px;
}
.hp-wf-tag {
  display: inline-flex;
  align-items: center;
  height: 12px;
  padding: 0 4px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--bd);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}
.hp-wf-dur {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.hp-wf-row[data-state="ok"] .hp-wf-dur { color: var(--fg-2); }
.hp-wf-bar .hp-wf-dur { right: 7px; color: var(--tx); opacity: 0.7; }


/* Observability demo: a recorded run, with screenshots in one card and the selected frame's details in another */
.hp-obs { grid-template-rows: minmax(0, 1fr) auto; }
.hp-obs-viewer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
}
.hp-obs-strip {
  display: flex;
  gap: 6px;
  flex: none;
  padding: 10px;
  background: #17181B;
}
.hp-obs-thumb {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0.5;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.hp-obs-thumb.is-on { opacity: 1; box-shadow: 0 0 0 1.5px var(--fg); }
.hp-obs-main { position: relative; flex: 1; min-height: 0; background: #08090A; }

.hp-obs-shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 275px;
  overflow: hidden;
  transform-origin: 0 0;
}
.hp-obs-thumb .hp-obs-shot { transform: scale(var(--tk, 0.15)); }
.hp-obs-main .hp-obs-shot {
  top: var(--y, 0);
  left: var(--x, 0);
  transform: scale(var(--k, 1));
  animation: hpObsIn 0.4s ease both;
}
@keyframes hpObsIn { from { opacity: 0; } }

.hp-obs-login {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 190px;
  padding: 16px;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  background: #fff;
  font-size: 8.5px;
  color: var(--site-ink-2);
  transform: translate(-50%, -58%);
}
.hp-obs-login .hp-agent-h { margin: 0 0 4px; font-size: 12px; color: var(--site-ink); }
.hp-obs-label { margin-top: 8px; font-weight: 500; }
.hp-obs-input {
  display: flex;
  align-items: center;
  height: 22px;
  margin-top: 4px;
  padding: 0 7px;
  border: 1px solid #D5D9DE;
  border-radius: 3px;
  color: var(--site-ink);
  font-size: 9px;
}
.hp-obs-btn {
  display: grid;
  place-items: center;
  height: 22px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--site-brand);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

/* Same pointer as the Agents browser; translate() places its tip */
.hp-obs-cursor {
  position: absolute;
  top: -1.5px;
  left: -2px;
  z-index: 2;
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
}
.hp-obs-cursor svg { display: block; width: 100%; height: 100%; }
.hp-obs-cursor.is-click::after {
  content: '';
  position: absolute;
  top: -6.5px;
  left: -6px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  animation: hpAgentClick 0.6s ease-out 0.35s both;
}

.hp-obs-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 14px 16px 16px;
  border-radius: 8px;
  background: var(--panel);
  font-size: 11.5px;
  line-height: 16px;
}
.hp-obs-details > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 12px;
}
.hp-obs-details dt { color: var(--fg-2); }
.hp-obs-details dd { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; }
.hp-obs-details > div:last-child dd { display: block; min-height: 32px; }
.hp-obs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

@media (max-width: 900px) {
  .hp-feature + .hp-feature { margin-top: 80px; }
  .hp-feature {
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
  }
  .hp-feature-visual { aspect-ratio: 4 / 3; }
  .hp-feature-visual--demo { aspect-ratio: 1; }
  .hp-feature-glass--demo { inset: 14px; }
  .hp-feature-glass--demo[data-flow-demo] { inset: 15% 14px; }
  .hp-feature-copy { padding: 12px 12px 4px; }
}

/* ---------- Customers ---------- */
.hp-customers { padding: clamp(40px, 5vw, 80px) 0 clamp(96px, 11vw, 180px); }
.hp-customers-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 40px;
}
.hp-customers-title {
  max-width: 10em;
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}
.hp-customers-desc {
  max-width: 28em;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}
/* Same card as the use cases: text on top, media pinned to the bottom */
.hp-customers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(56px, 6.5vw, 104px);
}
.hp-case {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.hp-case-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  text-wrap: balance;
}
.hp-case-media {
  flex: none;
  aspect-ratio: 3 / 2;
  margin-top: auto;
  overflow: hidden;
  background: #151917;
}
.hp-case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  /* Stays on its own layer so the zoom doesn't flash at the start and end */
  will-change: transform;
  backface-visibility: hidden;
}
.hp-case:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
@media (hover: hover) {
  .hp-case:hover { background-color: rgba(255, 255, 255, 0.055); }
  .hp-case:hover .hp-use-link svg { transform: translateX(4px); }
  .hp-case:hover .hp-case-media img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hp-case, .hp-case-media img { transition: none; }
}
@media (max-width: 900px) {
  .hp-customers-head { grid-template-columns: 1fr; }
  .hp-customers-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-customers-desc { margin-top: 20px; font-size: 18px; }
}

@media (max-width: 768px) {
  :root { --hp-nav-height: 64px; }
  .hp-hero { padding-top: calc(var(--hp-nav-height) + 64px); }
  /* Drops the desktop 44px floor so "Agents that connect" still fits the first line */
  .hp-hero-title { font-size: max(32px, 10.7cqi); margin-bottom: 28px; }
  .hp-hero-row {
    flex-direction: column;
    gap: 32px;
  }
  .hp-hero-subtitle { max-width: 32em; font-size: 17px; }
  .hp-hero-stage { margin-top: 72px; padding: 24px 0; }
  .hp-logos-row { --hp-logo-scale: 0.72; }
  .hp-hero-shot { border-radius: 8px; }
}

@media (max-width: 400px) {
  .hp-hero-actions { width: 100%; }
  .hp-hero-actions .hp-btn { flex: 1; }
}
