/* xenarch.com landers: shared parts on top of each lander's inline <style>.
   Linked AFTER it, so these rules win where they overlap. Colours come from
   /assets/tokens.css. The only motion is the hero's (PRODUCT IN MOTION). */

/* ============================================================
   APP WINDOW KIT: simplified product screens, tokens only. A window is
   a depiction of the product, not a live control: chrome bar + dots +
   label, and nothing in it reacts to the cursor.
   ============================================================ */
/* Tour visuals are depictions of the product, not live controls: framed as an
   app window (chrome bar + dots + label) and made fully non-interactive so the
   cursor never turns into a pointer and nothing reacts to hover/click. */
.tv { position: relative; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; min-width: 0;
      background: var(--card); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 44px 0 0;
      cursor: default; pointer-events: none; -webkit-user-select: none; user-select: none; }
.tv > * + * { border-top: 1px solid var(--surface-border); }
.tv::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 32px; background-color: rgba(255,255,255,0.022);
      border-bottom: 1px solid var(--surface-border); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      background-image: radial-gradient(circle at 17px 16px, var(--dim) 3.5px, transparent 4px), radial-gradient(circle at 31px 16px, var(--dim) 3.5px, transparent 4px), radial-gradient(circle at 45px 16px, var(--dim) 3.5px, transparent 4px);
      background-repeat: no-repeat; }
/* Light theme: window-chrome dots take macOS traffic-light colors. */
@media (prefers-color-scheme: light) { :root:not([data-theme]) .tv::before {
      background-image: radial-gradient(circle at 17px 16px, #ed6a5e 3.5px, transparent 4px), radial-gradient(circle at 31px 16px, #f3bd4e 3.5px, transparent 4px), radial-gradient(circle at 45px 16px, #5cb860 3.5px, transparent 4px); } }
:root[data-theme="light"] .tv::before {
      background-image: radial-gradient(circle at 17px 16px, #ed6a5e 3.5px, transparent 4px), radial-gradient(circle at 31px 16px, #f3bd4e 3.5px, transparent 4px), radial-gradient(circle at 45px 16px, #5cb860 3.5px, transparent 4px); }
.tv::after { content: attr(data-frame); position: absolute; top: 0; left: 60px; right: 60px; height: 32px; line-height: 32px; text-align: center;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
/* the title centres on the WINDOW: it clears the dots by the same 60px on both sides */
.tv-narrow { max-width: 380px; }
.tv-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tv-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tv-split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-chip { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 5px 11px; border-radius: var(--radius-md); border: 1px solid var(--surface-border); color: var(--secondary); }
.tv-chip.on { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); font-weight: 500; }
.tv-field { display: flex; align-items: center; gap: 14px; border-top: 1px dashed var(--surface-border); padding-top: 11px; }
.tv-k { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); width: 64px; flex-shrink: 0; }
.tv-input { font-size: 13px; color: var(--fg); background: var(--input-bg, var(--surface)); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 6px 10px; flex: 1; }
.tv-tag { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--fg); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 5px 10px; }
.tv-tag.ok { color: var(--success); border-color: var(--success-border); background: var(--success-bg); }
.tv-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid var(--surface-border); color: var(--secondary); }
.tv-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tv-pill.ok { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.tv-url { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg); background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 9px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.tv-btn { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 7px 13px; border-radius: var(--radius-md); border: 1px solid var(--surface-border); color: var(--fg); }
.tv-btn.primary { background: var(--fg-strong); color: var(--bg); border-color: var(--fg-strong); font-weight: 500; }
.tv-merchant { display: flex; align-items: center; gap: 11px; }
.tv-avatar { width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--surface-border); color: var(--fg-strong); flex: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tv-m { display: flex; flex-direction: column; gap: 1px; }
.tv-m-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: var(--fg-strong); }
.tv-m-domain { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--secondary); }
.ok-ic { color: var(--success); }
.tv-amount { font-family: 'JetBrains Mono', monospace; font-size: 34px; color: var(--fg-strong); letter-spacing: -0.01em; margin-top: 2px; }
.tv-amount .ccy { font-size: 15px; color: var(--secondary); }
.tv-fiat { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); margin-top: -8px; }
.tv-paybtn { background: var(--fg-strong); color: var(--card); border-radius: var(--radius-md); padding: 13px 16px; text-align: center; font-size: 14.5px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; display: flex; flex-direction: column; gap: 1px; }
.tv-paybtn .sub, .tv-paybtn .pb-sub { font-family: 'JetBrains Mono', monospace; color: inherit; font-size: 10.5px; font-weight: 400; opacity: 0.72; }
.tv-trust { border-top: 1px dashed var(--surface-border); padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.tv-trust-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.tv-facts { display: flex; flex-direction: column; gap: 7px; }
.tv-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.tv-fact .k { color: var(--muted); }
.tv-fact .v { display: inline-flex; align-items: center; gap: 5px; color: var(--fg); }
.tv-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 2px 16px 16px; }
.tv-stat { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.tv-stat .k { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tv-stat .v { font-family: 'JetBrains Mono', monospace; font-size: clamp(11px, 3.2vw, 17px); color: var(--fg-strong); white-space: nowrap; }
.tv-list { padding: 6px 0; gap: 0; }
.tv-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; }
.tv-row + .tv-row { border-top: 1px solid var(--surface-border); }
.tv-r-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; color: var(--fg); flex-shrink: 0; }
.tv-r-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-streams { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 2px 16px 16px; }
.tv-stream { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.tv-stream .k { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--fg); }
.tv-stream .v { font-family: 'JetBrains Mono', monospace; font-size: 20px; color: var(--fg-strong); }
.tv-stream .s { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }
/* Light theme: nested mockup cards read as raised — lighter than the frame, not darker. */
@media (prefers-color-scheme: light) { :root:not([data-theme]) .tv-stat, :root:not([data-theme]) .tv-stream { background: #ffffff; } }
:root[data-theme="light"] .tv-stat, :root[data-theme="light"] .tv-stream { background: #ffffff; }
.tv-wallet { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.tv-walletline { display: flex; align-items: center; gap: 9px; }
.tv-wallet .wdot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.tv-addr { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--fg); }
/* Builder stepper (tour 01) — collapsed done-steps + the active step expanded,
   modeling the real /payments/new flow. Same .tv kit. */
.tv-steps { padding: 0; gap: 0; }
.tv-step { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.tv-step + .tv-step { border-top: 1px solid var(--surface-border); }
.tv-sx { width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--surface-border); display: inline-flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); flex: none; }
.tv-step.done .tv-sx { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.tv-sx.num { color: var(--fg-strong); border-color: var(--fg); }
.tv-sn { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500; color: var(--fg); flex: none; }
.tv-step.done .tv-sn { color: var(--fg-strong); }
.tv-ss { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-sedit { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); flex: none; }
.tv-step.active { flex-direction: column; align-items: stretch; gap: 13px; padding: 15px 16px; }
.tv-step-h { display: flex; align-items: center; gap: 12px; }
.tv-step-body { padding-left: 31px; display: flex; flex-direction: column; gap: 13px; }
.tv-toggles { display: flex; gap: 22px; }
.tv-tog { display: inline-flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--secondary); }
.tv-switch { width: 30px; height: 17px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--surface-border); position: relative; flex: none; }
.tv-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.tv-switch.on { background: var(--success-bg); border-color: var(--success-border); }
.tv-switch.on::after { left: 16px; background: var(--success); }
.tv-erow { display: flex; align-items: center; gap: 14px; }
.tv-brow { display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .tv-stats { gap: 8px; padding: 2px 12px 14px; }
  .tv-stat { padding: 11px 10px; }
}

/* ============================================================
   PRODUCT IN MOTION: the landers' heroes. Each one is the product's
   own two screens doing one real thing: the payer's screen in front,
   the seller's dashboard page behind it. Words, states and pill tones
   are copied from the app code; values change in place.
   The stage is .hp with data-step; /assets/hero.js walks the steps
   in data-tl while the hero is on screen and the tab is visible.
   No JS or reduced motion: the stage rests on its final step.
   ============================================================ */

/* two screens beside the copy */
.hero.hero-mo { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 44px; }
/* the status line stays one line: its least useful facts leave as the column narrows */
.hero-mo .hero-copy { container-type: inline-size; }
@container (max-width: 440px) { .hero .statusline .si-l1 { display: none; } }
@container (max-width: 350px) { .hero .statusline .si-l2 { display: none; } .hero .statusline { font-size: 10.5px; } }
/* the subtitle never leaves one word on its last line; the headline wraps into even lines */
.hero-mo .sub { text-wrap: pretty; }
.hero-mo h1 { text-wrap: balance; }
/* the front screen's top sits a fixed step under the dashboard's first
   row, so the row that changes is never covered, and inside the second
   row's top padding, so its edge never cuts a line of text:
   dash chrome 44 + stats 76 + list pad 4 + row 54 + 8 */
.hp { position: relative; padding-top: 186px; }
.hp .tv { margin: 0; max-width: none; }
.hp .hp-dash { position: absolute; top: 0; right: 0; width: 420px; }
.hp .hp-pay { position: relative; width: 304px; z-index: 1;
  box-shadow: 0 36px 64px -24px var(--cast), 0 14px 28px -14px var(--cast); }
.hp .hp-pay::after { text-transform: none; letter-spacing: 0; font-size: 10.5px; }
.hp .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 14px; height: 76px; box-sizing: border-box; align-items: stretch; }
.hp-stats .tv-stat { padding: 10px 13px; justify-content: center; }
.hp-stats .tv-stat .v { font-size: 17px; }
.hp-list { padding: 4px 0; }
.hp-list .tv-row { height: 54px; box-sizing: border-box; padding: 0 16px; gap: 14px; }
.hp-rc { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hp-rc .tv-r-meta { flex: none; }
.hp-list .tv-pill { flex: none; }
.hp-issuer, .hp-bill { padding: 16px 18px; display: flex; flex-direction: column; }
.hp-issuer { gap: 9px; }
.hp-issuer .tv-label { font-size: 9.5px; }
.hp-ok { color: var(--success); margin-right: 5px; }
.hp-ref { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--secondary); }
.hp-bill .tv-amount { font-size: 30px; margin-top: 10px; }
.hp-bill .tv-fiat { margin-top: 2px; }
.hp-slot { display: grid; margin-top: 16px; }
.hp-st > .hp-card { flex: 1; }
.hp .nw { white-space: nowrap; }
/* a hand-set line: breaks where the sentence does, wraps inside only when it must */
.hp-sub .ln { display: block; }
/* the front screen's states share one slot and cross-fade */
.hp-st { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(6px);
  transition: opacity var(--d-swap) var(--ease-snap), transform var(--d-swap) var(--ease-snap); }
.hp .tv-paybtn { transition: transform 140ms var(--ease-move), background-color 140ms var(--ease-move); }
.hp[data-step="press"] .tv-paybtn { transform: scale(.975); background: var(--secondary); }
.hp-note { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); text-align: center; }
.hp-card { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: var(--radius-md);
  background: var(--panel-inset); border: 1px solid var(--panel-line); }
/* icon on the first line: the head is 20px tall, the 26px mark rises 3px to centre on it */
.hp-in { display: flex; align-items: flex-start; gap: 13px; }
.hp-in > .hp-pulse, .hp-in > .hp-check { margin-top: -3px; }
.hp-h { font-family: 'Space Grotesk', sans-serif; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--fg-strong); }
.hp-sub { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--secondary); margin-top: 3px; line-height: 1.5; text-wrap: pretty; }
.hp-pulse { position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--warning-bg); border: 1px solid var(--warning-border); }
.hp-pulse::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--warning); }
@keyframes hp-beat { to { opacity: .35; } }
.hp-check { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.hp-check svg { width: 13px; height: 13px; }
.hp-card.paid { border-color: var(--success-border); }
.hp-tx { display: flex; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; margin-top: 5px; }
.hp-tx .k { color: var(--muted); }
.hp-tx .v { color: var(--fg); display: inline-flex; align-items: center; gap: 4px; }
.hp-tx svg { width: 9px; height: 9px; color: var(--muted); }
/* a value that changes rolls in place: the old one leaves upward, the new one arrives from below */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > * { grid-area: 1 / 1; transition: transform var(--d-swap) var(--ease-snap), opacity var(--d-swap) var(--ease-snap); }
.roll > :last-child { transform: translateY(100%); opacity: 0; }
.hp-dash .roll { justify-items: start; }
.hp-dash .roll.hp-pill { justify-items: end; }
/* the reset: everything returns together, in place, without rolling backwards */
.hp.rs .roll > *, .hp.rs .hp-st { transition: opacity var(--d-move) var(--ease-move); transform: none !important; }
@media (prefers-reduced-motion: reduce) { .hp *, .hp *::after { transition: none !important; animation: none !important; } }
/* a list where a new row lands on top: each slot's row moves down one slot
   (the slots clip it). The leaving row stays solid while it moves and drops
   out once it is gone; the arriving one fades in over the first part of its
   move. A page names the step that lands the row. */
.hp-feed > .tv-row { display: block; padding: 0; overflow: hidden; }
.hp-feed > .tv-row > .roll { display: grid; width: 100%; height: 100%; justify-items: stretch; }
.hp-feed > .tv-row > .roll > * { display: flex; align-items: center; gap: 14px; padding: 0 16px; min-width: 0; }
.hp-feed > .tv-row > .roll > :first-child { transition: transform var(--d-swap) var(--ease-snap), opacity 0s linear var(--d-swap); }
.hp-feed > .tv-row > .roll > :last-child { transform: translateY(-100%); transition: transform var(--d-swap) var(--ease-snap), opacity 160ms linear; }
.hp.rs .hp-feed > .tv-row > .roll > * { transition: opacity var(--d-move) var(--ease-move); }
/* narrow: the two screens stack, the payer's first; nothing overlaps */
@media (max-width: 900px) {
  .hero.hero-mo { display: block; }
  .hp { padding-top: 0; display: flex; flex-direction: column; gap: 14px; max-width: 440px; margin: 36px auto 0; }
  .hp .hp-dash { position: relative; width: auto; order: 2; }
  .hp .hp-pay { width: auto; order: 1; box-shadow: none; }
}
@media (max-width: 640px) { .hp-list .tv-row:nth-child(3) { display: none; } }

/* ---- home: one payment, both screens ----
   Front: the payer's hosted checkout. Behind: the seller's Payment Links
   page (dashboard/app/l/[id]/Invoice.tsx, payments/page.tsx). Steps:
   await -> press -> settling -> paid -> booked. */
/* narrow window: the row's kind leaves (its name says Invoice), so no meta is cut */
.hp-home .hp-dash { container-type: inline-size; }
@container (max-width: 340px) { .hp-home .m-kind { display: none; } }
.hp-home[data-step="settling"] .hp-pulse::after { animation: hp-beat 1s var(--ease-float) infinite alternate; }
.hp-home[data-step="await"] .hp-s-pay, .hp-home[data-step="press"] .hp-s-pay,
.hp-home[data-step="settling"] .hp-s-wait,
.hp-home[data-step="paid"] .hp-s-paid, .hp-home[data-step="booked"] .hp-s-paid { opacity: 1; transform: none; }
.hp-home[data-step="booked"] .hp-dash .roll > :first-child,
.hp-home[data-step="paid"] .hp-eb > :first-child, .hp-home[data-step="booked"] .hp-eb > :first-child { transform: translateY(-100%); opacity: 0; }
.hp-home[data-step="booked"] .hp-dash .roll > :last-child,
.hp-home[data-step="paid"] .hp-eb > :last-child, .hp-home[data-step="booked"] .hp-eb > :last-child { transform: none; opacity: 1; }

/* ---- /payments: a subscription signed once ----
   Front: the subscriber's permit checkout (dashboard/app/l/[id]/
   SubscriptionPermit.tsx: Sign authorization -> Waiting for your
   signature -> Subscription authorized). Behind: the seller's Subscribers
   page; the permit creates an active row, newest first, and Active and
   MRR move by one plan. Steps: sign -> press -> signing -> authorized -> listed. */
.hp-subs .tv-fiat .z { color: var(--success); font-weight: 600; }
/* the price stays one line; it scales down on the narrowest phones */
.hp-subs .tv-amount { white-space: nowrap; font-size: clamp(24px, 7.4vw, 30px); }
/* when the window is narrow a row's amount leaves (MRR above still carries it), so no meta is cut */
.hp-subs .hp-dash { container-type: inline-size; }
@container (max-width: 340px) { .hp-subs .m-amt { display: none; } }
/* a long headline keeps its two sentences on two lines: the copy takes the
   rest of the row, the stage a fixed 416px with a narrower dashboard */
@media (min-width: 901px) {
  .hero.hero-mo-wide { grid-template-columns: minmax(0, 1fr) 416px; }
  .hero-mo-wide .hp .hp-dash { width: 360px; }
}
.hp-subs .tv-amount .per { font-size: 13px; color: var(--muted); }
.hp-subs .tv-amount .pre { font-size: 13px; color: var(--muted); margin-right: 8px; }
.hp-subs .hp-ref .tv-pill { padding: 2px 8px; }
.hp-subs .tv-r-name.unknown { color: var(--muted); }
.hp-subs[data-step="signing"] .hp-pulse::after { animation: hp-beat 1s var(--ease-float) infinite alternate; }
.hp-subs[data-step="sign"] .hp-s-sign, .hp-subs[data-step="press"] .hp-s-sign,
.hp-subs[data-step="signing"] .hp-s-wait,
.hp-subs[data-step="authorized"] .hp-s-ok, .hp-subs[data-step="listed"] .hp-s-ok { opacity: 1; transform: none; }
.hp-subs[data-step="authorized"] .hp-eb > :first-child, .hp-subs[data-step="listed"] .hp-eb > :first-child,
.hp-subs[data-step="listed"] .hp-stats .roll > :first-child { transform: translateY(-100%); opacity: 0; }
.hp-subs[data-step="authorized"] .hp-eb > :last-child, .hp-subs[data-step="listed"] .hp-eb > :last-child,
.hp-subs[data-step="listed"] .hp-stats .roll > :last-child { transform: none; opacity: 1; }
.hp-subs[data-step="listed"] .hp-feed > .tv-row > .roll > :first-child { transform: translateY(100%); opacity: 0; }
.hp-subs[data-step="listed"] .hp-feed > .tv-row > .roll > :last-child { transform: none; opacity: 1; }

/* ---- /gating: one crawl paid for ----
   Front: GPTBot's request to a gated page and the site's answer
   (xenarch/middleware.py: a 402 with the new gate's body, then the
   X-PAYMENT retry is settled and the page is served). Behind: the site's
   Activity page (sites/[id]/activity): the open gate lands on top as a
   "gate" row and turns "pay" once the payment is verified.
   Steps: gated -> logged -> paying -> served -> booked. */
.tv-type { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: var(--radius-sm); flex: none; }
.tv-type.pay { color: var(--success); background: var(--success-bg); }
.tv-type.gate { color: var(--warning); background: var(--warning-bg); }
.hp-gate .hp-path { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 400; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-gate .hp-amt { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--fg); flex: none; }
/* one pill width, so the amounts beside them line up */
.hp-gate .hp-feed .tv-type { min-width: 42px; box-sizing: border-box; text-align: center; }
.hp-get { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--fg-strong); display: flex; gap: 9px; }
.hp-get .m { color: var(--secondary); }
.hp-ua { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--secondary); display: flex; gap: 9px; margin-top: -3px; }
.hp-ua .k, .hp-body .k { color: var(--muted); }
.hp-gate .hp-code { display: flex; align-items: baseline; gap: 12px; }
.hp-gate .hp-code .ccy { font-size: 14px; color: var(--fg); }
.hp-gate .c402 { color: var(--warning); }
.hp-gate .c200 { color: var(--success); }
.hp-gate .hp-code .roll { justify-items: start; }
/* the 402 body: the keys the gate returns, recessed like the state cards */
.hp-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px; border-radius: var(--radius-md);
  background: var(--panel-inset); border: 1px solid var(--panel-line); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.hp-body .kv { display: flex; justify-content: space-between; gap: 12px; }
.hp-body .v { color: var(--fg); }
.hp-gate[data-step="paying"] .hp-pulse::after { animation: hp-beat 1s var(--ease-float) infinite alternate; }
.hp-gate[data-step="gated"] .hp-s-402, .hp-gate[data-step="logged"] .hp-s-402,
.hp-gate[data-step="paying"] .hp-s-wait,
.hp-gate[data-step="served"] .hp-s-ok, .hp-gate[data-step="booked"] .hp-s-ok { opacity: 1; transform: none; }
.hp-gate[data-step="served"] .hp-eb > :first-child, .hp-gate[data-step="booked"] .hp-eb > :first-child,
.hp-gate[data-step="booked"] .hp-flip > :first-child,
.hp-gate[data-step="booked"] .hp-stats .tv-stat:first-child .roll > :first-child,
.hp-gate:is([data-step="logged"], [data-step="paying"], [data-step="served"], [data-step="booked"]) .hp-stats .tv-stat:last-child .roll > :first-child { transform: translateY(-100%); opacity: 0; }
.hp-gate[data-step="served"] .hp-eb > :last-child, .hp-gate[data-step="booked"] .hp-eb > :last-child,
.hp-gate[data-step="booked"] .hp-flip > :last-child,
.hp-gate[data-step="booked"] .hp-stats .tv-stat:first-child .roll > :last-child,
.hp-gate:is([data-step="logged"], [data-step="paying"], [data-step="served"], [data-step="booked"]) .hp-stats .tv-stat:last-child .roll > :last-child { transform: none; opacity: 1; }
.hp-gate:is([data-step="logged"], [data-step="paying"], [data-step="served"], [data-step="booked"]) .hp-feed > .tv-row > .roll > :first-child { transform: translateY(100%); opacity: 0; }
.hp-gate:is([data-step="logged"], [data-step="paying"], [data-step="served"], [data-step="booked"]) .hp-feed > .tv-row > .roll > :last-child { transform: none; opacity: 1; }
.hp-gate .hp-dash { container-type: inline-size; }
@container (max-width: 340px) { .hp-gate .hp-amt, .hp-gate .hp-stats .kt { display: none; } }

/* ---- /agents: an agent pays under its caps ----
   Front: the agent's MCP tool call (xenarch-mcp tools/pay.ts: the control
   plane checks scope and caps before anything is signed, then the payment
   settles and the tool replies). Behind: the operator's Overview
   (agent/overview/page.tsx): the Daily cap tile and Recent receipts.
   Steps: checking -> paying -> paid -> booked. */
.hp-agent .hp-cap { grid-template-columns: minmax(0, 1fr); }
.hp-agent .hp-cap .tv-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-content: center; }
.hp-agent .hp-cap .k { grid-column: 1; grid-row: 1; }
.hp-agent .hp-cap .v { grid-column: 1; grid-row: 2; }
.hp-agent .hp-cap .d { grid-column: 2; grid-row: 2; align-self: end; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); padding-bottom: 2px; }
.hp-agent .hp-amt { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--fg); flex: none; }
/* the receipt's source: an identity tag (a rectangle, no dot), not a status */
.tv-src { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; line-height: 1; padding: 4px 7px; border-radius: var(--radius-sm); flex: none;
  color: var(--secondary); background: var(--surface); border: 1px solid var(--surface-border); min-width: 36px; box-sizing: border-box; text-align: center; }
.hp-reply .v.ok { color: var(--success); }
.hp-agent .hp-dash { container-type: inline-size; }
@container (max-width: 340px) { .hp-agent .hp-amt, .hp-agent .hp-cap .d { display: none; } }
.hp-agent:is([data-step="checking"], [data-step="paying"]) .hp-pulse::after { animation: hp-beat 1s var(--ease-float) infinite alternate; }
.hp-agent[data-step="checking"] .hp-s-check,
.hp-agent[data-step="paying"] .hp-s-wait,
.hp-agent[data-step="paid"] .hp-s-ok, .hp-agent[data-step="booked"] .hp-s-ok { opacity: 1; transform: none; }
.hp-agent[data-step="booked"] .hp-cap .roll > :first-child { transform: translateY(-100%); opacity: 0; }
.hp-agent[data-step="booked"] .hp-cap .roll > :last-child { transform: none; opacity: 1; }
.hp-agent[data-step="booked"] .hp-feed > .tv-row > .roll > :first-child { transform: translateY(100%); opacity: 0; }
.hp-agent[data-step="booked"] .hp-feed > .tv-row > .roll > :last-child { transform: none; opacity: 1; }

/* ============================================================
   FIXES
   ============================================================ */

/* window chrome and inner wells sit one step below the window */
.win-chrome { background: var(--panel-inset); }

/* a status line's separator travels with the item after it, and a group that
   starts a new line has its "/" clipped: the inner row is pulled left by one
   separator + gap, the first item pushed back */
.statusline .si { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hero .statusline { overflow: hidden; display: block; }
.statusline .sl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-left: calc(-1ch - 9px); }
.statusline .sl > :first-child { margin-left: calc(1ch + 9px); }

.block-head .lede { text-wrap: balance; }
.block > .eyebrow + .moat-head { margin-top: 22px; }

/* a copyable command is a panel on the page (Retasc's .codeblock), not a filled button */
.btn.action[data-copy], .hero .agent-cmd code { background: var(--panel); border-color: var(--panel-line); color: var(--fg); }
.btn.action[data-copy]:hover, .hero .agent-cmd code:hover { background: var(--panel); border-color: var(--sep); }
.btn.action[data-copy] .pr { color: var(--success); margin-right: .6em; }

/* controls side by side in the hero share one height */
.hero .actions > .btn, .hero .actions .agent-cmd code { height: 46px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }

/* inline code steps down into the card it sits on (Retasc's code rule) */
.ic { background: var(--panel-inset); border: 1px solid var(--panel-line); color: var(--fg); white-space: nowrap; }

/* the product tour and the "in action" rows drop their outer box: the app
   window is the only object and the copy sits level with its top edge */
.tour { gap: 72px; }
/* copy beside an illustration is centred on it vertically, in every row on every page */
.tour-row, .tour-row.rev { background: none; border: 0; border-radius: 0; padding: 0; align-items: center; gap: 56px; }
.tour-copy { padding-top: 0; }
.tour-copy h3 { font-size: clamp(19px, 5.4vw, 22px); text-wrap: balance; }
.tv { max-width: 520px; background: var(--card); border-color: var(--card-border); margin: 0 0 0 auto; }
.tour-row.rev .tv { margin: 0 auto 0 0; }
.tv-narrow { max-width: 400px; }
.tv-url, .tv-stat, .tv-stream { background: var(--panel-inset); border-color: var(--panel-line); }
.usecases, .gact { gap: 72px !important; }
.uc-row, .uc-row.rev, .gact-row, .gact-row.rev { background: none; border: 0; border-radius: 0; padding: 0; align-items: center; gap: 56px; }
.uc-copy, .gact-copy { padding-top: 0; }
/* a reversed row mirrors the columns too, so every window in a section gets the
   same wide column and one width (442px); only the order flips */
@media (min-width: 901px) { .uc-row.rev, .gact-row.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.uc-vis > .carousel, .uc-vis > .inv, .uc-vis > .don { max-width: 442px; }
.uc-copy h3, .gact-copy h3 { font-size: clamp(19px, 5.4vw, 22px); text-wrap: balance; }
.gact-row:not(.rev) .gact-vis, .uc-row:not(.rev) .uc-vis { display: flex; justify-content: flex-end; }
.gact-row.rev .gact-vis, .uc-row.rev .uc-vis { display: flex; justify-content: flex-start; }

@media (max-width: 900px) {
  .tour-copy, .uc-copy, .gact-copy { padding-top: 0; }
  .tour-row, .tour-row.rev, .uc-row, .uc-row.rev, .gact-row, .gact-row.rev { gap: 24px; }
  .usecases, .gact { gap: 56px !important; }
  .gact-row .gact-vis, .uc-row .uc-vis { justify-content: center !important; }
  .tv, .tour-row.rev .tv { margin: 0 auto; }
}
@media (max-width: 640px) {
  .tour { gap: 48px; }
  /* claims: icon beside its title, one compact column, rules carry separation */
  .claims { gap: 0; }
  .claim { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; }
  .claim .ci { grid-row: 1; grid-column: 1; margin: 0; width: 18px; height: 18px; }
  .claim .k { grid-row: 1; grid-column: 2; align-self: center; }
  .claim .d { grid-column: 2; margin-top: 6px; }
}
@media (max-width: 480px) {
  .tv-ss { display: none; }
}

/* ============================================================
   THE LANDER SYSTEM: one look per role, on all four landers.
   Every rule here replaces per-page variants that had drifted
   (five section-head patterns, four card paddings, two window
   borders, three code fields). Change a role here, never on a page.
   ============================================================ */

/* Section head: the label on its own line, the headline under it,
   both on the content's left edge. A one-line summary pinned right
   floated mid-page as soon as it wrapped. */
.block-head { display: block; margin-bottom: 32px; }
.block-head .lede { display: block; max-width: 680px; margin-top: 14px; font-family: var(--display); font-weight: 500;
  font-size: 23px; line-height: 1.35; letter-spacing: -0.01em; color: var(--fg); text-wrap: balance; }
.block > .eyebrow + .moat-head { margin-top: 14px; }

/* Card: one skeleton. Icon, title, text; whatever closes the card
   (tags, a code field, a "for" line) sits on its bottom edge, so cards
   in a row end level. */
.feat, .kind, .integ { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-card);
  background: var(--card); border: 1px solid var(--card-border); }
.surface { padding: 24px; }
/* a card's index sits level with its glyph, not on the glyph box's top edge */
.s-top { align-items: center; }
.feat .fico, .kind .kico, .integ .iico { width: 20px; height: 20px; margin: 0 0 16px; color: var(--secondary); }
.feat h3, .kind .kn, .integ .ititle { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--fg-strong); }
.kind .kn .soon { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.feat p, .kind .kd, .integ .idesc { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 8px 0 0; }
.kind .ke { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.integ .idesc { margin-bottom: 16px; }
.integ .codeblock { margin-top: auto; }
.integ .ifor { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Code field: one look. On the page it is a panel; inside a card it steps
   down into it. A long value wraps; it is never cut mid-word. */
.codeblock { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-md);
  font-family: var(--mono); font-size: 12px; color: var(--fg); padding: 9px 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.integ .codeblock { background: var(--panel-inset); }
/* the prompt is one space from its command in every code field */
.codeblock .pr, .btn.action[data-copy] .pr, .agent-cmd code .pr { color: var(--success); margin-right: .6em; }

/* Install rows: a chip and a command side by side are one height and share their edges */
.install .irow { align-items: center; }
.install .iv .plat-pill, .install .iv .btn.action, .install .iv .codeblock { height: 32px; box-sizing: border-box; display: inline-flex;
  align-items: center; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.install .iv .btn.action, .install .iv .codeblock { font-family: var(--mono); font-size: 12px; padding-left: 12px; padding-right: 12px; gap: 10px;
  background: var(--panel); border: 1px solid var(--panel-line); }

/* App window: one frame. Same border, same 32px chrome bar, plain initial avatar. */
.tv, .pco, .inv, .don, .term, .gm { border-color: var(--card-border); }
.win-chrome { min-height: 32px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.pco-logo { background: var(--surface); border: 1px solid var(--surface-border); color: var(--fg-strong); }

/* Figures in a stat strip: one face and size, no colour as emphasis */
.stat .val, .stat .val.dom { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.stat .val.ok { color: var(--fg); }

/* Comparison: a framed table in the app's own table look. The header row
   steps down to the inset, rows are divided, the first row is ours in the
   strongest ink and the others step back to secondary. No colour. */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); overflow: hidden; font-size: 14px; }
.cmp th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--panel-inset); padding: 11px 22px; border-bottom: 1px solid var(--card-border); }
.cmp td { padding: 16px 22px; border-bottom: 1px solid var(--surface-border); vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp .name { width: 200px; font-family: var(--display); font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--fg); }
.cmp .val { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--secondary); }
.cmp tr.us .name { color: var(--fg-strong); font-weight: 600; }
.cmp tr.us .val { color: var(--fg-strong); }
@media (max-width: 640px) {
  .cmp thead { display: none; }
  .cmp tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--surface-border); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp td { display: block; padding: 0; border: 0; width: auto; }
  .cmp .name { margin-bottom: 4px; }
}

/* read by screen readers, not drawn (the comparison's name column needs no visible header) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Questions: reading type, not code. Two columns of question + answer,
   a rule between rows (never under the last one). */
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.qa-item { padding: 22px 0 24px; border-top: 1px solid var(--surface-border); }
.qa-q { font-family: var(--display); font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--fg-strong); margin: 0 0 8px; text-wrap: balance; }
.qa-a { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
@media (max-width: 760px) { .qa-grid { grid-template-columns: minmax(0, 1fr); } }

/* Rhythm: the hero's stage starts 32px under the header (was 76px); every
   section sits 72px under the one above; the closer's rule sits in the
   middle of a 96px gap (was 88 + 60). */
.hero.hero-mo { padding-top: 32px; }
.closer { margin-top: 48px; padding-top: 48px; }

/* No paragraph ends on one word: statements and body copy wrap "pretty"
   (balance stops working past six lines, so the manifesto takes pretty too) */
.mf, .tour-copy p, .uc-copy p, .gact-copy p, .feat p, .kind .kd, .integ .idesc, .claim .d, .hero .sub { text-wrap: pretty; }
.closer-sub { text-wrap: balance; }
.closer h2 { text-wrap: balance; line-height: 1.15; }
/* a command reads from the left like code, also when it fills a phone's width */
.install .iv .btn.action[data-copy], .install .iv .codeblock { justify-content: flex-start; }

/* Link chips in "find us" are the same outlined chip as everywhere else */

/* Closing buttons: the hero's pair. Same height, the second one outlined, both in the sans */
.closer-actions .btn { height: 46px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 22px;
  font-family: var(--sans); font-size: 14px; }
.closer-actions .btn.action { background: transparent; border-color: var(--surface-border); color: var(--fg); }
.closer-actions .btn.action:hover { background: var(--panel); border-color: var(--sep); }
