/* Nexa pricing — the payment card. Two cards share the section: this one is the decision
   surface (price, button, ladder, pay lanes) and pricing-incl.css draws the reading surface
   beside it. Both land on the same bottom edge; each nominates one slack line to absorb the
   height difference. Uses site.css tokens. */

.px-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.px-flag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.px-flag .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2.2s ease-out infinite;
}
.px-lead { margin-top: 18px; max-width: 54ch; font-size: var(--fs-sub); color: var(--ink-60); line-height: 1.65; }
.px-lead b { color: var(--ink); font-weight: 600; }

/* stretch, not start: whichever card is shorter grows to the row height, and its slack line
   opens the difference as breathing room inside the card rather than dead space beneath it. */
.px-grid {
  margin-top: clamp(34px, 5.5vh, 54px);
  display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(16px, 2.4vw, 26px);
  align-items: stretch;
}

/* ---------- the payment card ---------- */
.px-card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 22px 18px; border-radius: var(--r-xl);
}
.px-top { display: flex; align-items: flex-start; gap: 12px; }
.px-kind {
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-40);
}
/* The licence pill. Geometry and colour copied from the app's own activation badge, so the buyer
   is looking at the exact mark Nexa puts bottom-right once a key is in. --lic is the app's blue,
   deliberately not the page accent — this pill is a quote from the product. align-self stops it
   stretching to the column width. */
.px-lic-pill {
  --lic: #3b82f6;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--lic) 42%, transparent);
  background: color-mix(in srgb, var(--lic) 12%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-style: normal; letter-spacing: -0.01em; text-transform: none;
  font-size: var(--fs-body); font-weight: 600; color: var(--ink);
}
.px-lic-pill .px-badge { stroke: var(--lic); }
.px-card .px-stage {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 1px var(--glass-spec);
  font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-60); white-space: nowrap;
}
.px-card .px-stage .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); animation: pulse 2.2s ease-out infinite;
}

.px-price { margin-top: 20px; display: flex; align-items: flex-end; gap: 14px; }
.px-now {
  font-weight: 600; font-size: clamp(50px, 5vw, 64px); line-height: 0.8;
  letter-spacing: -0.055em; color: var(--ink);
}
.px-now .cur { font-size: 0.46em; font-weight: 500; color: var(--ink-40); vertical-align: 0.38em; margin-right: 3px; }
.px-meta { display: flex; flex-direction: column; gap: 4px; padding-bottom: 5px; min-width: 0; }
.px-meta b { font-size: var(--fs-copy); font-weight: 500; color: var(--ink-40); }
/* the card's ONE terms line: free window, then the one-time price. Nothing else restates it. */
.px-meta em { font-style: normal; font-size: var(--fs-body); font-weight: 600; color: var(--ink-60); line-height: 1.45; }

.px-cta {
  margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-md);
  background: var(--pill-bg); color: var(--pill-ink);
  font-size: var(--fs-copy); font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(12, 19, 34, 0.24);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.3s ease;
}
.px-cta .arr { transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.4); }
.px-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(12, 19, 34, 0.3); color: var(--pill-ink); }
.px-cta:hover .arr { transform: translateX(5px); }
/* locked claim CTA - visible but not clickable */
.px-cta-locked { pointer-events: none; cursor: default; opacity: 0.62; }

/* reassurance under the CTA - the deadline closes the offer, not a claimed trial */
.px-keep {
  display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 9px 2px 0;
  font-size: var(--fs-body); line-height: 1.5; color: var(--ink-40); text-align: center;
}
/* display:flex out-specifies the UA [hidden] rule - restate it so live.js can hide the note */
.px-keep[hidden] { display: none; }
.px-keep svg { flex: none; width: 13px; height: 13px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.px-keep b { font-weight: 700; color: var(--ink); }

/* ---------- zones ----------
   every zone below the offer opens the same way: hairline, caps label, plain-language aside. */
.px-zone { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--hairline); }
.px-zone-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-40);
}
.px-zone-head em {
  font-style: normal; letter-spacing: 0.02em; text-transform: none;
  font-size: var(--fs-body); font-weight: 500; color: var(--ink-60); white-space: nowrap;
}
.px-seam { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.px-seam::before, .px-seam::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.px-seam span {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- the ladder, sized for a narrow card ----------
   Four stops on one track, labels stacked under. The rung's live state ("Selling now · 48 left",
   "Sold out", "Locked") is read out to assistive tech from inside each stop while the zone head
   carries it visually — a quarter-width column cannot hold that sentence. */
.px-steps { list-style: none; margin: 15px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.px-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-top: 15px; }
.px-step::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--hairline); }
.px-step.done::before, .px-step.now::before { background: var(--accent-soft); }
.px-step:first-child::before { border-radius: 2px 0 0 2px; }
.px-step:last-child::before { border-radius: 0 2px 2px 0; }
.px-dot {
  position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--hairline); background: var(--bg);
}
.px-step.done .px-dot { border-color: var(--accent-soft); background: var(--accent-soft); }
.px-step.now .px-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.px-step b { font-size: var(--fs-lead); font-weight: 650; letter-spacing: -0.03em; color: var(--ink-40); }
.px-step i { font-style: normal; font-size: var(--fs-micro); font-weight: 500; color: var(--ink-40); }
.px-step.now b { color: var(--ink); }
.px-step.now i { color: var(--ink-60); }
.px-step.done b { text-decoration: line-through; }
.px-step.locked { opacity: 0.62; }
/* pre-open beta rung — held, not live: live.js hangs the countdown off data-flag */
.px-step.soon::after {
  content: attr(data-flag); position: absolute; top: -13px; left: 0;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--ink-60); white-space: nowrap;
}
/* a11y only: the sentence live.js writes per rung, kept out of the visual track */
.px-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Seat meter, beta era only. The bar is the one thing here that carries colour, because the bar
   IS the number. It sits under the whole track, not inside a rung. */
.px-seats { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.px-seats[hidden] { display: none; }
.px-seats-track { flex: 1; height: 6px; border-radius: var(--r-pill); background: var(--hairline); overflow: hidden; }
.px-seats-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.px-seats-left { flex: none; font-size: var(--fs-body); font-weight: 500; color: var(--ink-40); }
/* ladder echo of the beta deadline */
.px-ends-chip { display: block; margin-top: 12px; }
.px-ends-chip[hidden] { display: none; }
.px-ends-chip b {
  font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums; color: var(--ink-60);
  border: 1px solid var(--hairline); background: var(--field-sheen);
  padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap;
}

/* ---------- the pay lanes ----------
   The seam rides inside #px-pay so the heading cannot outlive the buttons pay.js may withhold.
   The rehearsal state keeps its dashed edge (pay-card.css) — here that reads on the top rule. */
.px-card .px-pay { margin: 18px 0 0; padding: 15px 0 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none; }
.px-card .px-pay-btn { padding: 9px 11px; }
/* at 372px the mark and the word are the whole button; the arrow only costs it room */
.px-card .px-pay-btn .arr { display: none; }
.px-card .px-pay-code-row { flex-wrap: wrap; }
/* 372px cannot hold lock + heading + rehearsal chip + note on one row; the note takes its own */
.px-card .px-pay-head { flex-wrap: wrap; row-gap: 4px; }
.px-card .px-pay-head em { flex: 1 0 100%; margin-left: 0; }

/* ---------- the slack line ----------
   auto top margin pins the fine print to the bottom edge, so however tall the left card grows
   the two cards finish on the same rule; the zone above carries the minimum gap. */
.px-card > .px-pay { margin-bottom: 16px; }
.px-fine { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--hairline); }
/* A one-time $49 with no refund line anywhere is the last thing a buyer checks and the first
   thing that stops them. It belongs on the card, not only in clause 04. */
.px-refund { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-40); }
.px-refund b { font-weight: 600; color: var(--ink-60); }
.px-refund a { color: var(--accent); text-underline-offset: 3px; text-decoration: underline; }
/* the deadline, written as a sentence rather than a panel of number cells — the card already
   has one big number and a second block of them read as an alert */
.px-ends { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; margin-top: 7px; font-size: var(--fs-body); color: var(--ink-40); }
.px-ends[hidden] { display: none; }
.px-ends-head { display: inline-flex; align-items: center; gap: 6px; }
.px-ends-head .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.px-ends-cells { font-variant-numeric: tabular-nums; }
.px-ends-cells span { font-weight: 700; color: var(--ink-60); }
.px-ends-cells i { font-style: normal; margin-right: 4px; }
.px-ends.over .px-ends-cells { display: none; }

/* ---------- beta-opens countdown (pre-open era only) ---------- */
.px-timer { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.px-timer[hidden] { display: none; }
.px-timer span {
  min-width: 40px; padding: 7px 5px; text-align: center;
  border-radius: 11px; border: 1px solid var(--hairline); background: var(--field-sheen);
  font: 700 17px var(--grotesk); letter-spacing: -0.01em; color: var(--ink);
}
.px-timer i { font: 500 var(--fs-tiny) var(--grotesk); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-40); font-style: normal; }

@media (max-width: 1000px) {
  .px-grid { grid-template-columns: 1fr; }
  .px-card { order: -1; max-width: 520px; }
}
@media (max-width: 520px) {
  .px-steps { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .px-step:nth-child(2)::before { border-radius: 0 2px 2px 0; }
  .px-step:nth-child(3)::before { border-radius: 2px 0 0 2px; }
  .px-card .px-pay-methods { grid-template-columns: 1fr; }
}
