/* ==================================================================================================
   paywall-personal.css — the panel that makes a refusal screen about the reader.

   Used by /upgrade (above the plans) and by the potentials gate modal. Both surfaces argued for
   Premium entirely in market-wide statistics; this panel is the half that is about the person
   reading it, so it is deliberately NOT styled like a marketing card. It is a statement stub:
   hairline rules, mono figures, one gold accent, nothing that pulses or counts down.

   The one signature element is .pxp-meter — the wallet drawn in DAYS rather than in a progress bar
   toward a sale. Each slot is one day of Premium at the store's own price; the trailing partial slot
   is the fraction of the next day already earned. It is the only decorated thing on the panel.
   ================================================================================================== */

.pxp {
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(232,163,61,0.05) 0%, transparent 120px),
    var(--bg-card);
  padding: 20px;
  margin: 0;
}
.pxp[hidden] { display: none; }

.pxp-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Rows are separated by the same hairline the market tables use, never by a card gap: this reads as
   one statement about one account, not as three tiles. */
.pxp-row { padding: 16px 0 0; }
.pxp-row + .pxp-row { margin-top: 16px; border-top: 1px solid var(--border); }
.pxp-row:first-of-type { padding-top: 0; }

.pxp-fig {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
}
.pxp-fig b { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.pxp-fig span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.pxp-row.is-credits .pxp-fig b { color: var(--gold); }

.pxp-say { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 56ch; }
.pxp-say b { color: var(--text); font-weight: 600; }

/* The caveat is not fine print and is not styled as an apology. It is the sentence that says what we
   did NOT measure, and it stays legible. */
.pxp-caveat {
  margin: 8px 0 0; font-size: 12.5px; line-height: 1.55;
  color: var(--text-3); max-width: 56ch;
}

/* ---- the day meter ------------------------------------------------------------------------- */
.pxp-meter { display: flex; gap: 4px; margin: 14px 0 0; height: 8px; }
.pxp-meter i {
  flex: 1 1 0; min-width: 0; height: 100%;
  border-radius: 2px;
  background: var(--veil-2);
  box-shadow: inset 0 0 0 1px var(--border);
  position: relative; overflow: hidden;
}
.pxp-meter i.is-on { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.pxp-meter i.is-part::after {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: var(--fill, 0%); background: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgba(232,163,61,0.45);
}
.pxp-meter-key {
  margin: 7px 0 0; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--text-3);
}

/* ---- the redeem call ----------------------------------------------------------------------- */
.pxp-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--gold); color: #1a1206;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.15s ease, transform 0.15s ease;
}
.pxp-cta:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #1a1206; }
.pxp-cta:active { transform: translateY(1px); }
.pxp-cta.is-quiet {
  background: transparent; color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--border));
}
.pxp-cta.is-quiet:hover { background: var(--gold-dim); color: var(--gold); }
.pxp-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pxp-cta { transition: none; }
  .pxp-cta:active { transform: none; }
}

/* ---- /upgrade placement -------------------------------------------------------------------- */
/* Width and centring only. The section's vertical rhythm is .u-sec's, which is declared in the page's
   own <style> AFTER this file and at the same specificity -- a padding here would lose that cascade
   silently and sit in the file looking like it did something. */
.pxp-sec { max-width: 780px; margin: 0 auto; }

/* ---- inside the potentials gate modal ------------------------------------------------------ */
/* The modal is already a bordered surface, so the panel drops its own frame there and keeps only
   the gold rule that identifies it. */
.pm-modal .pxp {
  border: 0; border-top: 1px solid var(--border); border-radius: 0;
  background: none; padding: 16px 0 0; margin: 4px 0 0;
}
.pm-modal .pxp-eyebrow { margin-bottom: 12px; }
.pm-modal .pxp-fig b { font-size: 24px; }
.pm-modal .pxp-say { font-size: 13px; }

@media (max-width: 420px) {
  .pxp { padding: 16px; }
  .pxp-fig b { font-size: 26px; }
  .pxp-say { font-size: 13.5px; }
  .pxp-cta { width: 100%; justify-content: center; }
}
