/* ============================================================
   Partners (ISO / Agent) page — PayMullet
   ============================================================ */

/* Hero */
.partners-hero {
  position: relative;
  padding: calc(var(--nav-height, 64px) + var(--space-10)) 0 var(--space-16);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 960px) {
  .partners-hero {
    padding: calc(var(--nav-height, 64px) + var(--space-8)) 0 var(--space-12);
  }
}
.partners-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}
.partners-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-divider) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.partners-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 960px) {
  .partners-hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
}
.partners-hero__copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: var(--space-5) 0 var(--space-5);
}
.partners-hero__copy p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-text-2);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 var(--space-7);
}
.partners-hero__cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
/* Compact horizontal KPI strip — no boxed cards */
.partners-hero__stats {
  display: grid;
  /* 4 equal columns so longer labels wrap inside their own cell instead of pushing the row wider. */
  grid-template-columns: repeat(4, 1fr);
  justify-content: start;
  column-gap: var(--space-6);
  row-gap: var(--space-5);
  list-style: none;
  padding: var(--space-5) 0 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
  max-width: 760px;
}
.partners-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
/* Keep the big top number on one line; let the descriptive label wrap. */
.partners-hero__stats li strong { white-space: nowrap; }
.partners-hero__stats li span { white-space: normal; }
.partners-hero__stats strong {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-text);
  font-feature-settings: "tnum";
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.partners-hero__stats strong em {
  font-size: 0.58em;
  font-style: normal;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0;
  margin-left: 1px;
}
.partners-hero__stats span {
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .partners-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
    row-gap: var(--space-4);
  }
  .partners-hero__stats strong { font-size: 1.3rem; }
}

/* Agent card (visual) */
.partners-hero__visual {
  display: flex;
  justify-content: center;
}
.agent-card {
  background: linear-gradient(160deg, #0a0b14 0%, #131731 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 60px -20px rgba(10, 11, 20, 0.35);
}
.agent-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-card__dots {
  display: flex;
  gap: 6px;
}
.agent-card__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.agent-card__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}
.agent-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.agent-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.agent-stat__value {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  font-feature-settings: "tnum";
}
.agent-stat__delta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #22c55e;
}
.agent-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}
.agent-stat-row > div { display: flex; flex-direction: column; gap: 2px; }
.agent-stat__mid {
  font-weight: 700;
  font-size: var(--text-base);
  color: #ffffff;
  letter-spacing: -0.01em;
}
.agent-deals {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.agent-deal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
}
.agent-deal .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.dot--amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

/* How it works */
.how-it-works {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.steps {
  margin-top: var(--space-10);
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  position: relative;
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}
.step p {
  color: var(--color-text-2);
  line-height: 1.55;
  font-size: var(--text-sm);
  margin: 0;
}

/* Economics tiers */
.economics {
  padding: var(--space-12) 0;
  background: var(--color-surface-2);
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}
.tier-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px -20px rgba(3, 116, 73, 0.25);
}
.tier-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: var(--space-5);
  position: relative;
}
.tier-card__ribbon {
  position: absolute;
  top: calc(-1 * var(--space-8) - 12px);
  left: var(--space-8);
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.tier-card__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.tier-card__split {
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-text);
}
.tier-card--featured .tier-card__split { color: var(--color-primary); }
.tier-card__hint {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}
.tier-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.tier-card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}
.tier-card__list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23037449' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.tier-card .btn { align-self: flex-start; }

/* Partner tools */
.partner-tools {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tool-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.tool-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}
.tool-card__icon svg { width: 22px; height: 22px; }
.tool-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
.tool-card p {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.5;
  margin: 0;
}

/* Comparison */
.compare {
  padding: var(--space-12) 0;
  background: var(--color-surface-2);
}
.compare-grid {
  margin-top: var(--space-6);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  background: var(--color-bg);
  padding: var(--space-3) var(--space-5);
  align-items: center;
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .compare-row > div:first-child { font-weight: 700; margin-bottom: var(--space-2); }
}
.compare-row--head {
  background: var(--color-surface-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.compare-row > div[role="rowheader"] {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.compare-ok {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-sm);
}
.compare-muted {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* FAQ */
.partners-faq {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.partners-faq .faq {
  max-width: 780px;
  margin: var(--space-10) auto 0;
}

/* CTA */
.partners-cta {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.partners-cta__card {
  background: linear-gradient(160deg, #0a0b14 0%, #131731 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  text-align: center;
}
.partners-cta__card h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 var(--space-4);
}
.partners-cta__card p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}
.partners-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.partners-cta__foot {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.partners-cta__foot a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.partners-cta__foot a:hover { text-decoration: underline; }

/* ==========================================================================
   Partners page — ISO program (2026 rebuild)
   Hero glow, pillars, custom economics, residual buyout,
   popup ISO form, AI chat bubble.
   All token refs use the canonical --color-text / --color-text-2 /
   --color-text-muted / --color-text-faint.
   ========================================================================== */

/* -------------------- Hero glow (ambient background) -------------------- */
.partners-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(47, 179, 122, 0.18), transparent 60%),
    radial-gradient(500px 360px at 10% 70%, rgba(3, 116, 73, 0.12), transparent 60%);
  z-index: 0;
  opacity: 0.9;
  mix-blend-mode: normal;
}
[data-theme="dark"] .partners-hero__glow {
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(47, 179, 122, 0.22), transparent 60%),
    radial-gradient(500px 360px at 10% 70%, rgba(3, 116, 73, 0.22), transparent 60%);
}
.partners-hero { position: relative; }
.partners-hero__inner { position: relative; z-index: 1; }

/* -------------------- ISO Pillars (6-card grid) -------------------- */
.iso-pillars {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.iso-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (max-width: 900px) {
  .iso-pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .iso-pillars__grid { grid-template-columns: 1fr; }
}
.iso-pillar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    transform var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
    border-color var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-pillar:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 6px 22px -12px rgba(3, 116, 73, 0.28);
}
.iso-pillar__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.iso-pillar__ico svg { width: 22px; height: 22px; }
.iso-pillar h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}
.iso-pillar p {
  color: var(--color-text-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
}
.iso-pillar__list {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.iso-pillar__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.iso-pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.25;
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.08);
}

/* -------------------- Custom Economics (no preset tiers) -------------------- */
.economics--custom {
  padding: var(--space-12) 0;
  background: var(--color-surface);
}
.economics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
  margin-top: var(--space-8);
}
@media (max-width: 900px) {
  .economics-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.economics-lead h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}
.economics-lead p {
  color: var(--color-text-2);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}
.economics-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(3, 116, 73, 0.08);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(3, 116, 73, 0.18);
}
.economics-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.2);
}

.economics-breakdown {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
}
.economics-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.economics-row:last-child { border-bottom: 0; }
.economics-row__label {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}
.economics-row__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(3, 116, 73, 0.1);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.economics-row__label > div { display: flex; flex-direction: column; gap: 4px; }
.economics-row__label h4 {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
.economics-row__label p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}
.economics-row__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 6px;
  text-align: right;
}

/* -------------------- Residual Book Buyout -------------------- */
.buyout {
  padding: var(--space-12) 0;
  background: var(--color-bg);
}
.buyout__card {
  background: linear-gradient(160deg, #0a0b14 0%, #0a3a28 55%, #0f4a32 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4.5vw, var(--space-12));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.buyout__card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 179, 122, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .buyout__card { grid-template-columns: 1fr; gap: var(--space-8); }
}
.buyout__left h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: var(--space-3) 0 var(--space-4);
  line-height: 1.1;
}
.buyout__left p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
  font-size: var(--text-md, 1rem);
}
.eyebrow--invert {
  color: #2fb37a;
  background: rgba(47, 179, 122, 0.12);
  border-color: rgba(47, 179, 122, 0.3);
}
.buyout__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.buyout__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.buyout__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb37a;
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(47, 179, 122, 0.18);
}
.buyout__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.buyout__right { position: relative; }
.buyout__viz {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
  position: relative;
}
.buyout__chip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-3);
  align-items: baseline;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-3);
  background: rgba(0, 0, 0, 0.25);
}
.buyout__chip--offer { background: rgba(47, 179, 122, 0.12); border-color: rgba(47, 179, 122, 0.3); }
.buyout__chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  grid-column: 1 / -1;
}
.buyout__chip-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.buyout__chip-hint {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
}
.buyout__svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: var(--space-2);
}

/* -------------------- ISO Modal (popup application form) -------------------- */
.iso-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px) 16px;
  overflow-y: auto;
}
.iso-modal.is-open { display: flex; }
.iso-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  animation: iso-fade-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.iso-modal__panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.45);
  animation: iso-pop-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto 0;
}
@keyframes iso-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes iso-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.iso-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-modal__close:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}
.iso-modal__head { margin-bottom: var(--space-6); padding-right: 40px; }
.iso-modal__head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.iso-modal__head p {
  color: var(--color-text-2);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}

/* Form */
.iso-form { display: flex; flex-direction: column; gap: var(--space-5); }
.iso-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .iso-form__grid { grid-template-columns: 1fr; }
}
.iso-field { display: flex; flex-direction: column; gap: 6px; }
.iso-field--full { grid-column: 1 / -1; }
.iso-field > span,
.iso-field > label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: block;
}
.iso-field > span i,
.iso-field > span .iso-req {
  color: var(--color-primary);
  margin-left: 2px;
  font-style: normal;
}
.iso-field input[type="text"],
.iso-field input[type="email"],
.iso-field input[type="tel"],
.iso-field textarea,
.iso-field select {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition:
    border-color var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-field textarea { min-height: 96px; resize: vertical; }
.iso-field input:focus,
.iso-field textarea:focus,
.iso-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.12);
}

.iso-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.iso-fieldset > legend {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: 0;
  margin-bottom: 4px;
}
.iso-fieldset > .iso-legend-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.iso-chipgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.iso-chipgroup label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-2);
  font-size: var(--text-sm);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-chipgroup input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0;
  height: 0;
  pointer-events: none;
}
.iso-chipgroup label:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.iso-chipgroup input:checked + span,
.iso-chipgroup label:has(input:checked) {
  background: rgba(3, 116, 73, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.iso-form__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.iso-form__privacy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 340px;
  margin: 0;
}
.iso-form__privacy a { color: var(--color-primary); text-decoration: none; }
.iso-form__privacy a:hover { text-decoration: underline; }

.iso-form__success {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.iso-form__success.is-visible { display: block; }
.iso-form__success[hidden] { display: none; }
.iso-form__success > svg {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(3, 116, 73, 0.1);
  color: var(--color-primary);
  display: block;
  margin: 0 auto var(--space-4);
  box-sizing: border-box;
}
.iso-form__success h4 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.iso-form__success p {
  color: var(--color-text-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}

/* -------------------- AI Chat bubble -------------------- */
.iso-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.iso-chat__bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--radius-full);
  border: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 10px 32px -8px rgba(3, 116, 73, 0.55);
  transition:
    transform var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-chat__bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(3, 116, 73, 0.6);
}
.iso-chat__bubble:active { transform: translateY(0); }
.iso-chat__bubble-ring {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.iso-chat__bubble-ico { width: 14px; height: 14px; color: #fff; }
.iso-chat__bubble-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: iso-chat-pulse 2.2s ease-out infinite;
}
@keyframes iso-chat-pulse {
  0%   { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.iso-chat__bubble-label { white-space: nowrap; }
.iso-chat__bubble-msg {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.iso-chat__bubble:hover + .iso-chat__bubble-msg,
.iso-chat__bubble-msg.is-shown {
  opacity: 1;
  transform: translateY(0);
}

.iso-chat__window {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 48px));
  max-height: min(560px, calc(100vh - 120px));
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.iso-chat.is-open .iso-chat__window {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.iso-chat.is-open .iso-chat__bubble-msg { display: none; }

.iso-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.iso-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.iso-chat__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.iso-chat__meta strong {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
}
.iso-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}
.iso-chat__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.25);
}
.iso-chat__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--transition-interactive, 180ms);
  flex-shrink: 0;
}
.iso-chat__close:hover { color: var(--color-text); }

.iso-chat__log {
  flex: 1;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
}
.iso-chat__msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--text-sm);
  line-height: 1.5;
  word-wrap: break-word;
  animation: iso-msg-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes iso-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.iso-chat__msg--bot {
  align-self: flex-start;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  border-top-left-radius: 4px;
}
.iso-chat__msg--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-top-right-radius: 4px;
}
.iso-chat__msg strong { font-weight: 700; }

.iso-chat__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.iso-chat__presets button {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-interactive, 180ms cubic-bezier(0.16, 1, 0.3, 1));
}
.iso-chat__presets button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.iso-chat__form {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.iso-chat__form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  transition:
    border-color var(--transition-interactive, 180ms),
    box-shadow var(--transition-interactive, 180ms);
}
.iso-chat__form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.12);
}
.iso-chat__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2fb37a 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-interactive, 180ms);
}
.iso-chat__send:hover { transform: scale(1.05); }
.iso-chat__send:active { transform: scale(0.95); }

.iso-chat__foot {
  padding: 8px 14px 10px;
  font-size: 10px;
  color: var(--color-text-faint);
  text-align: center;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* Mobile: full-width bubble-window */
@media (max-width: 520px) {
  .iso-chat {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: stretch;
  }
  .iso-chat__bubble { align-self: flex-end; }
  .iso-chat__window {
    right: 0;
    left: 0;
    width: auto;
    max-height: 70vh;
  }
  .iso-chat__bubble-label { display: none; }
  .iso-chat__bubble { padding: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .iso-chat__bubble-pulse { animation: none; }
  .iso-modal__panel,
  .iso-modal__backdrop,
  .iso-chat__msg { animation: none; }
}

/* Body scroll lock when modal is open */
body.iso-modal-open { overflow: hidden; }

/* ---- Agent card hero extras (used on partners.html) ---- */
.agent-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
}
.agent-card__foot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: agent-foot-pulse 2.4s ease-out infinite;
}
@keyframes agent-foot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.agent-card--animated { animation: agent-card-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes agent-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.agent-card--animated .agent-deal {
  animation: agent-deal-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.agent-card--animated .agent-deal[data-delay="1"] { animation-delay: 240ms; }
.agent-card--animated .agent-deal[data-delay="2"] { animation-delay: 340ms; }
.agent-card--animated .agent-deal[data-delay="3"] { animation-delay: 440ms; }
.agent-card--animated .agent-deal[data-delay="4"] { animation-delay: 540ms; }
@keyframes agent-deal-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .agent-card--animated,
  .agent-card--animated .agent-deal,
  .agent-card__foot-dot { animation: none; }
}

/* ============================================================
   Agent card — LIVE variant (partners hero)
   ============================================================ */
.agent-card--live {
  background: linear-gradient(160deg, #0b0d17 0%, #141935 55%, #0f1428 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -18px rgba(6, 10, 30, 0.55),
    0 8px 20px -8px rgba(47, 179, 122, 0.22);
  max-width: 480px;
  animation: agent-card-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}
.agent-card--live .agent-card__head {
  position: relative;
  padding-right: 96px; /* room for LIVE pill */
}
.agent-card__pill {
  position: absolute;
  top: 50%;
  right: var(--space-5);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 179, 122, 0.16);
  border: 1px solid rgba(47, 179, 122, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7ff0bb;
}
.agent-card__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.25);
  animation: agent-pill-pulse 1.6s ease-out infinite;
}
@keyframes agent-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 179, 122, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(47, 179, 122, 0); }
}

/* Hero stat block: residual value + sparkline inline */
.agent-hero-stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.agent-hero-stat__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.agent-card--live .agent-stat__value {
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1;
  transition: color 180ms ease-out;
}
.agent-card--live .agent-stat__value.is-ticking {
  color: #7ff0bb;
}

/* Sparkline */
.agent-spark {
  width: 128px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
}
.agent-spark__line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: agent-spark-draw 1400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}
@keyframes agent-spark-draw {
  to { stroke-dashoffset: 0; }
}
.agent-spark__fill {
  opacity: 0;
  animation: agent-spark-fade 800ms ease-out 1100ms forwards;
}
@keyframes agent-spark-fade {
  to { opacity: 1; }
}
.agent-spark__dot {
  transform-origin: 120px 6px;
  transform-box: fill-box;
  opacity: 0;
  animation:
    agent-spark-dot-in 300ms ease-out 1500ms forwards,
    agent-spark-dot-pulse 1.8s ease-out 1800ms infinite;
}
@keyframes agent-spark-dot-in {
  from { opacity: 0; r: 0; }
  to { opacity: 1; r: 3; }
}
@keyframes agent-spark-dot-pulse {
  0% { filter: drop-shadow(0 0 0 rgba(47, 179, 122, 0.6)); }
  50% { filter: drop-shadow(0 0 8px rgba(47, 179, 122, 0.9)); }
  100% { filter: drop-shadow(0 0 0 rgba(47, 179, 122, 0.6)); }
}

/* Live deal feed */
.agent-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.agent-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.agent-feed__now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.agent-feed__now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fb37a;
  box-shadow: 0 0 0 3px rgba(47, 179, 122, 0.22);
  animation: agent-pill-pulse 1.8s ease-out infinite;
}
.agent-feed__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 200px;
  overflow: hidden;
  position: relative;
}
.agent-feed__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}
.agent-feed__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.agent-feed__item-dot--green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.agent-feed__item-dot--amber { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
.agent-feed__item-name { color: #fff; font-weight: 600; }
.agent-feed__item-sep { opacity: 0.4; margin: 0 2px; }
.agent-feed__item-meta { color: rgba(255, 255, 255, 0.6); }
.agent-feed__item-amt { margin-left: auto; color: #7ff0bb; font-weight: 600; }

/* New-item enter animation (slide down + fade) */
.agent-feed__item--enter {
  animation: agent-feed-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes agent-feed-enter {
  from {
    opacity: 0;
    transform: translateY(-14px);
    max-height: 0;
    margin-top: calc(-1 * var(--space-2));
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
  40% {
    opacity: 0;
    max-height: 60px;
    margin-top: 0;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
    border-width: 1px;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
  }
}
.agent-feed__item--exit {
  animation: agent-feed-exit 380ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes agent-feed-exit {
  to {
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    margin-top: calc(-1 * var(--space-2));
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-card--live,
  .agent-card__pill-dot,
  .agent-spark__line,
  .agent-spark__fill,
  .agent-spark__dot,
  .agent-feed__now-dot,
  .agent-feed__item--enter,
  .agent-feed__item--exit {
    animation: none;
  }
  .agent-spark__line { stroke-dashoffset: 0; }
  .agent-spark__fill { opacity: 1; }
  .agent-spark__dot { opacity: 1; }
}

/* ============================================================
   Deal flight path — hero visual
   A deal-application card flies along a dashed path through
   four waypoints (Submitted, Underwritten, Boarded, Paid).
   ============================================================ */
.deal-flight {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 480 / 420;
  margin-inline: auto;
}
.deal-flight__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Dashed path — drawn on in as the intro */
.df-path {
  stroke-dasharray: 4 6;
  animation: df-path-draw 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes df-path-draw {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  20%  { opacity: 0.35; }
  100% { stroke-dashoffset: 0; opacity: 0.35; }
}

/* Waypoint stamps — fade + scale in sequentially as the card passes.
   Positioning is handled by the outer <g transform="translate(...)">.
   This class animates the inner <g>, so transform-origin at 0 0 lines up
   with the circle centre (which is drawn at local 0,0). */
.df-stamp {
  opacity: 0;
  transform-origin: 0 0;
  animation: df-stamp-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.df-stamp--1 { animation-delay: 800ms; }
.df-stamp--2 { animation-delay: 2400ms; }
.df-stamp--3 { animation-delay: 4000ms; }
.df-stamp--4 { animation-delay: 5600ms; }
@keyframes df-stamp-in {
  0%   { opacity: 0; transform: scale(0.3) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(1.18) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Check-mark draws in */
.df-stamp .df-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: df-check-draw 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.df-stamp--1 .df-check { animation-delay: 1060ms; }
.df-stamp--2 .df-check { animation-delay: 2660ms; }
.df-stamp--3 .df-check { animation-delay: 4260ms; }
.df-stamp--4 .df-check { animation-delay: 5860ms; }
@keyframes df-check-draw {
  to { stroke-dashoffset: 0; }
}

/* Paid stamp gets a subtle pulse once it lands */
.df-stamp--paid circle {
  animation: df-paid-pulse 2200ms ease-out 6200ms infinite;
}
@keyframes df-paid-pulse {
  0%, 70%, 100% { filter: none; }
  80% { filter: drop-shadow(0 0 0 rgba(3, 116, 73, 0.55)); }
  90% { filter: drop-shadow(0 0 14px rgba(3, 116, 73, 0.0)); }
}

/* Flying card — moves along the path via offset-path */
.df-card {
  offset-path: path("M 60 340 Q 150 320 200 250 Q 250 180 340 170 Q 400 162 430 100");
  offset-rotate: auto;
  offset-distance: 0%;
  transform-box: fill-box;
  animation: df-card-fly 6400ms cubic-bezier(0.55, 0.05, 0.45, 0.95) 500ms infinite;
  opacity: 0;
}
@keyframes df-card-fly {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  28%  { offset-distance: 25%; }
  30%  { offset-distance: 25%; }
  52%  { offset-distance: 54%; }
  54%  { offset-distance: 54%; }
  78%  { offset-distance: 82%; }
  80%  { offset-distance: 82%; }
  96%  { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Floating residual callout — sits in the open upper-left area so the
   PAID waypoint (the payoff of the journey) stays unobstructed */
.deal-flight__callout {
  position: absolute;
  top: 4%;
  left: 3%;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e3ecdf);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 170px;
  box-shadow: 0 10px 30px rgba(3, 116, 73, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
  animation: df-callout-in 520ms cubic-bezier(0.16, 1, 0.3, 1) 6000ms both;
}
@keyframes df-callout-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.deal-flight__callout-label {
  font-size: 11px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 700;
}
.deal-flight__callout-value {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1.05;
}
.deal-flight__callout-delta {
  font-size: 11px;
  color: #037449;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Dark-mode tweaks for the callout + waypoint circles */
[data-theme="dark"] .deal-flight__callout {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .df-stamp circle[fill="#ffffff"],
[data-theme="dark"] .df-card rect[fill="url(#df-paper)"] {
  fill: #0c2018;
}
[data-theme="dark"] .df-card rect[fill="#ffffff"] {
  fill: #0c2018;
}

/* Mobile: callout shifts below the SVG, smaller chrome */
@media (max-width: 720px) {
  .deal-flight {
    max-width: 440px;
  }
  .deal-flight__callout {
    position: static;
    margin: 12px auto 0;
    width: fit-content;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .df-stamp,
  .df-stamp .df-check,
  .df-path,
  .df-card,
  .df-stamp--paid circle,
  .deal-flight__callout {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
  }
  .df-card {
    offset-distance: 100%;
  }
}

/* ============================================================
   Interactive quote builder (replaces the .economics-grid
   two-column static layout). Left = inputs, right = live
   Schedule-A preview card that reacts to those inputs.
   ============================================================ */
.quote-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-10);
  align-items: stretch;
  margin-top: var(--space-10);
}
@media (max-width: 960px) {
  .quote-builder {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.quote-builder__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.quote-builder__controls h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}
.quote-builder__lede {
  color: var(--color-text-2, var(--color-text-muted));
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

/* Individual control group */
.qb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qb-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.qb-field__head label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.qb-field__out {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #037449;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}
.qb-field__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: 0.04em;
}

/* Range slider — custom-styled to match brand */
.qb-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    #037449 0%,
    #037449 var(--qb-fill, 0%),
    var(--color-divider, #e6ede9) var(--qb-fill, 0%),
    var(--color-divider, #e6ede9) 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.qb-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #037449;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(3, 116, 73, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.qb-field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}
.qb-field input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(3, 116, 73, 0.35);
}
.qb-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 2px solid #037449;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(3, 116, 73, 0.22);
}
.qb-field input[type="range"]:focus-visible {
  outline: 2px solid #037449;
  outline-offset: 4px;
  border-radius: 999px;
}

/* Segmented control for book health */
.qb-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.qb-seg__btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  letter-spacing: -0.01em;
}
.qb-seg__btn:hover {
  color: var(--color-text);
}
.qb-seg__btn.is-active {
  background: var(--color-bg);
  color: #037449;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.qb-seg__btn:focus-visible {
  outline: 2px solid #037449;
  outline-offset: 2px;
}

.qb-cta {
  align-self: flex-start;
  margin-top: var(--space-2);
}

/* ---- Preview card (right column): Schedule-A style paper ---- */
.quote-builder__preview {
  display: flex;
}
.qb-paper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(3, 116, 73, 0.06);
  overflow: hidden;
}
.qb-paper::before {
  /* Tick-tape edge along the top, like a receipt */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #037449 0%, #2fb37a 50%, #037449 100%);
  opacity: 0.9;
}

.qb-paper__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px dashed var(--color-divider);
}
.qb-paper__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #037449;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.qb-paper__tag {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* Line items */
.qb-lines {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.qb-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-divider);
}
.qb-line:last-of-type {
  border-bottom: 0;
}
.qb-line dt {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text);
  min-width: 0;
}
.qb-line__num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(3, 116, 73, 0.08);
  color: #037449;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.qb-line__label {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qb-line dd {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  text-align: right;
  transition: color 220ms ease;
}
.qb-line dd.is-pulse {
  color: #037449;
}

/* Big payout tile at bottom of preview */
.qb-payout {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(3, 116, 73, 0.06), rgba(47, 179, 122, 0.04));
  border: 1px solid rgba(3, 116, 73, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qb-payout__label {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #037449;
}
.qb-payout__value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-feature-settings: "tnum";
  line-height: 1.05;
  transition: color 260ms ease;
}
.qb-payout__value.is-pulse {
  color: #037449;
}
.qb-payout__note {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

/* Dark-mode polish */
[data-theme="dark"] .qb-paper {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .qb-seg {
  background: var(--color-surface);
}
[data-theme="dark"] .qb-seg__btn.is-active {
  background: var(--color-bg);
  color: #7fd1a7;
}
[data-theme="dark"] .qb-field__out,
[data-theme="dark"] .qb-paper__brand,
[data-theme="dark"] .qb-payout__label {
  color: #7fd1a7;
}
[data-theme="dark"] .qb-line__num {
  background: rgba(127, 209, 167, 0.14);
  color: #7fd1a7;
}
[data-theme="dark"] .qb-payout {
  background: linear-gradient(135deg, rgba(127, 209, 167, 0.08), rgba(47, 179, 122, 0.05));
  border-color: rgba(127, 209, 167, 0.22);
}

/* Mobile: preview stacks under the controls */
@media (max-width: 960px) {
  .qb-paper { padding: var(--space-5); }
}

/* Reduced motion: no transitions on values */
@media (prefers-reduced-motion: reduce) {
  .qb-line dd,
  .qb-payout__value,
  .qb-field input[type="range"]::-webkit-slider-thumb,
  .qb-seg__btn {
    transition: none !important;
  }
}

/* -------------------- Partners-scoped section tightening -------------------- */
/* Override global section padding for partners page */
.partners-page-marker ~ section,
main > .howitworks.howitworks--partners,
main > section.faq,
main > section.partners-hero ~ section.faq {
  /* no-op anchor for specificity */
}
.howitworks--partners { padding: var(--space-12) 0; }
.howitworks--partners .steps--animated { margin-top: var(--space-8); }
.partners-hero ~ .faq,
main .faq#faq { padding: var(--space-12) 0; }

/* -------------------- Partners-scoped section-head tightening -------------------- */
.partners-page .section-head,
main .how-it-works .section-head,
main .economics .section-head,
main .partner-tools .section-head,
main .compare .section-head,
main .iso-pillars .section-head,
main .economics--custom .section-head,
main .buyout .section-head,
main .partners-faq .section-head {
  margin-bottom: var(--space-8);
}
main .how-it-works .section-head h2,
main .economics .section-head h2,
main .partner-tools .section-head h2,
main .compare .section-head h2,
main .iso-pillars .section-head h2,
main .economics--custom .section-head h2,
main .buyout .section-head h2,
main .partners-faq .section-head h2 {
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

/* ============================================================
   Partner tools — "Backend you log into" 4-card grid
   ============================================================ */
.partner-tools .section-head { margin-bottom: var(--space-8); }

.pt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 860px) {
  .pt-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .pt-grid > * { min-width: 0; }
}

.pt-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pt-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(3, 116, 73, 0.18);
}

.pt-card__head h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-2);
  line-height: 1.25;
}
.pt-card__head p {
  color: var(--color-text-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}
.pt-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(3, 116, 73, 0.08);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(3, 116, 73, 0.18);
}

.pt-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.pt-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.5;
}
.pt-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.25;
  box-shadow: 0 0 0 3px rgba(3, 116, 73, 0.08);
}

/* Mock browser chrome */
.pt-mock {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
}
.pt-mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}
.pt-mock__chrome > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-divider);
}
.pt-mock__chrome > span:nth-child(1) { background: #ff5f57; }
.pt-mock__chrome > span:nth-child(2) { background: #febc2e; }
.pt-mock__chrome > span:nth-child(3) { background: #28c840; }
.pt-mock__url {
  margin-left: 10px;
  flex: 1;
  padding: 4px 10px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 10px;
  letter-spacing: 0.01em;
  border: 1px solid var(--color-divider);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-mock__body { padding: 14px; min-height: 180px; }
.pt-mock__body--code { padding: 0; background: #0b1512; }

/* Pipeline mock */
.pt-pipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pt-pipe__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pt-pipe__lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--color-divider);
}
.pt-pipe__card {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-text-faint);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}
.pt-pipe__card span {
  display: block;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 9px;
  margin-top: 2px;
}
.pt-pipe__card--new { border-left-color: #f59e0b; }
.pt-pipe__card--mid { border-left-color: #3b82f6; }
.pt-pipe__card--ok  { border-left-color: #22c55e; }

/* Ledger mock */
.pt-ledger {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-ledger__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 1fr;
  gap: 10px;
  padding: 6px 8px;
  font-size: 10px;
  color: var(--color-text);
  align-items: center;
}
.pt-ledger__row:nth-child(even) {
  background: var(--color-surface-offset);
  border-radius: 4px;
}
.pt-ledger__row--head {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-size: 9px;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 6px;
  background: transparent !important;
}
.pt-ledger__row--total {
  margin-top: 4px;
  border-top: 1px solid var(--color-divider);
  padding-top: 8px;
  font-weight: 700;
  background: transparent !important;
}
.pt-ledger .pt-num {
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
}

/* Code mock */
.pt-code {
  margin: 0;
  padding: 14px;
  color: #a7c9b7;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.pt-code__kw   { color: #6fd5a7; font-weight: 700; }
.pt-code__str  { color: #e4f4eb; }
.pt-code__num  { color: #fdba74; }
.pt-code__comm { color: #5a7d6e; font-style: italic; }
.pt-code__ok   { color: #86efac; font-weight: 700; }

/* Merchant management mock */
.pt-mgmt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pt-mgmt__card {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pt-mgmt__lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.pt-mgmt__val {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pt-mgmt__val i {
  font-style: normal;
  font-weight: 500;
  font-size: 9px;
  color: var(--color-primary);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(3, 116, 73, 0.1);
}

/* Dark-mode tweaks */
[data-theme="dark"] .pt-mock__chrome > span:nth-child(1) { background: #e04942; }
[data-theme="dark"] .pt-mock__chrome > span:nth-child(2) { background: #d6a024; }
[data-theme="dark"] .pt-mock__chrome > span:nth-child(3) { background: #1fa23a; }

/* Mobile: tighten mocks so they fit within the card */
@media (max-width: 640px) {
  .pt-card { padding: var(--space-5); min-width: 0; }
  .pt-mock { font-size: 10px; min-width: 0; }
  .pt-mock__body { padding: 10px; min-height: 0; }
  .pt-mock__chrome { padding: 8px 10px; gap: 5px; }
  .pt-mock__chrome > span { width: 8px; height: 8px; flex: 0 0 auto; }
  .pt-mock__url { margin-left: 6px; padding: 3px 8px; font-size: 9px; min-width: 0; }
  /* Pipeline: stack columns so cards don't shrink-crush */
  .pt-pipe { grid-template-columns: 1fr; gap: 8px; }
  .pt-pipe__col { gap: 4px; }
  /* Ledger: tighten columns, smaller type, keep all 4 columns */
  .pt-ledger__row { grid-template-columns: 0.9fr 1fr 0.9fr 0.9fr; gap: 4px; padding: 5px 4px; font-size: 9px; }
  .pt-ledger__row--head { font-size: 8px; padding-bottom: 5px; }
  .pt-ledger .pt-num { font-size: 9px; }
  /* Code: shrink + wrap softly so it never pushes the card wider */
  .pt-code { font-size: 10px; padding: 12px; word-break: break-word; overflow-wrap: anywhere; }
  /* Merchant tools: single column on mobile */
  .pt-mgmt { grid-template-columns: 1fr; gap: 6px; }
  .pt-mgmt__card { padding: 8px 10px; }
}
