/* ════════════════════════════════════════════════════════════
   D10 LEAKS: pricing page
   Layered on top of legal.css, which supplies the tokens, nav,
   page-wrap, footer and music player. Only the plan grid lives here.
   ════════════════════════════════════════════════════════════ */

/* The legal wrapper is 800px, a reading measure for prose. Three tier cards
   need more, so this page opts into a wider shell while every block of running
   text inside it stays capped to a comfortable line length. */
.page-wrap--wide { max-width: 1120px; }
.page-wrap--wide > p,
.page-wrap--wide .pr-faq,
.page-wrap--wide .pr-note { max-width: 74ch; }

/* ── intro ───────────────────────────────────────────────────── */
.pr-intro { max-width: 62ch; }

.pr-note {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,20,40,.04);
  font-size: .88rem; color: var(--mid); line-height: 1.6;
}
.pr-note strong { color: var(--silver); font-weight: 500; }

/* ── plan grid ───────────────────────────────────────────────── */
.pr-grid {
  margin: 40px 0 8px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.pr-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.075);
  /* Real glass is two things at once: a blurred backdrop, and a top-lit sheen
     over it. The gradient is what stops it reading as a flat grey panel. */
  background:
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.014) 42%, rgba(255,255,255,0) 100%),
    rgba(13,14,19,.5);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),      /* lit top edge */
    inset 0 -1px 0 rgba(0,0,0,.4),            /* grounded bottom edge */
    0 24px 54px -22px rgba(0,0,0,.85);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}

/* Hairline that catches light unevenly, like a real edge, instead of one flat
   1px border all the way round. Two-layer mask cuts the fill out of the middle. */
.pr-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(148deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 36%, rgba(255,20,40,.3) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .85;
  transition: opacity .5s var(--ease);
}

/* Spotlight that tracks the cursor. pricing.js sets --mx/--my through the CSSOM,
   not a style attribute, so the page's CSP (no 'unsafe-inline') is unaffected. */
.pr-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,20,40,.16), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}

.pr-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 34px 70px -24px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,20,40,.16);
}
.pr-card:hover::before { opacity: 1; }
.pr-card:hover::after  { opacity: 1; }

/* The featured plan sits slightly forward at rest and carries a slow rotating
   sheen, so the eye lands on it before reading a single word. */
.pr-card--featured {
  border-color: rgba(255,20,40,.3);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,20,40,.035) 46%, rgba(255,255,255,0) 100%),
    rgba(15,13,17,.55);
}
.pr-card--featured::before { opacity: 1; }

.pr-ring {
  position: absolute; inset: -1px; border-radius: inherit; overflow: hidden;
  pointer-events: none; z-index: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.pr-ring::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 180%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,20,40,.85) 12%, transparent 26%, transparent 100%);
  animation: prRing 6s linear infinite;
}
/* transform only, so it rides the compositor and costs nothing per frame */
@keyframes prRing { to { rotate: 360deg; } }

.pr-card > *:not(.pr-ring) { position: relative; z-index: 1; }

/* ── entrance ────────────────────────────────────────────────────
   .js-anim is added by pricing.js, so without JS everything is simply
   visible rather than stuck at opacity 0. */
.js-anim .pr-card,
.js-anim .pr-step,
.js-anim .pr-role,
.js-anim .pr-note {
  opacity: 0; transform: translateY(22px) scale(.988);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js-anim .pr-card.in,
.js-anim .pr-step.in,
.js-anim .pr-role.in,
.js-anim .pr-note.in { opacity: 1; transform: none; }

/* Stagger left to right so the row assembles rather than snapping in. */
.js-anim .pr-card:nth-child(1) { transition-delay: .00s; }
.js-anim .pr-card:nth-child(2) { transition-delay: .09s; }
.js-anim .pr-card:nth-child(3) { transition-delay: .18s; }
.js-anim .pr-step:nth-child(1) { transition-delay: .00s; }
.js-anim .pr-step:nth-child(2) { transition-delay: .08s; }
.js-anim .pr-step:nth-child(3) { transition-delay: .16s; }

.pr-badge {
  position: absolute; top: -11px; left: 26px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .62rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
}

.pr-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.06rem; font-weight: 300; letter-spacing: .01em;
  color: var(--silver);
}

.pr-tagline {
  margin-top: 7px; font-size: .87rem; line-height: 1.55; color: var(--muted);
  min-height: 2.6em;   /* keeps the price row aligned across cards */
}

.pr-price {
  margin: 22px 0 4px;
  display: flex; align-items: baseline; gap: 3px;
  font-family: 'Unbounded', sans-serif; font-weight: 200;
}
.pr-price .pr-cur { font-size: 1.35rem; color: var(--mid); }
.pr-price .pr-amt { font-size: 3rem; line-height: 1; color: var(--silver); letter-spacing: -.02em; }
/* Cents ride small and high against the dollars, so a 34.99 reads as one
   price rather than a wall of digits competing with the tier name. */
.pr-price .pr-cents { font-size: 1.25rem; color: var(--mid); align-self: flex-start; margin-top: .38em; letter-spacing: -.01em; }

.pr-term {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.pr-list { list-style: none; margin: 24px 0 0; display: grid; gap: 11px; }
.pr-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 11px;
  align-items: start;
  font-size: .9rem; line-height: 1.5; color: var(--mid);
}
.pr-list svg { width: 15px; height: 15px; margin-top: 3px; color: var(--red); }
.pr-list b { color: var(--silver); font-weight: 500; }

.pr-cta {
  margin-top: 26px; padding: 13px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--silver);
  font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 400;
  text-decoration: none; text-align: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.pr-cta:hover { background: rgba(255,20,40,.1); border-color: rgba(255,20,40,.45); }
.pr-cta--solid { background: var(--red); border-color: var(--red); color: #fff; }
.pr-cta--solid:hover { background: #e00f22; border-color: #e00f22; color: #fff; }

/* Pushes every CTA to the bottom edge so the buttons line up even when the
   feature lists are different lengths. */
.pr-card .pr-cta { margin-top: auto; }
.pr-list + .pr-cta { margin-top: 26px; }

/* ── how it works ────────────────────────────────────────────── */
.pr-steps { margin: 14px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.pr-step { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.pr-step-n {
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem;
  letter-spacing: .16em; color: var(--red);
}
.pr-step h3 { margin: 8px 0 5px; font-family: 'Unbounded', sans-serif; font-size: .92rem; font-weight: 300; color: var(--silver); }
.pr-step p  { font-size: .85rem; line-height: 1.55; color: var(--muted); }

/* ── faq ─────────────────────────────────────────────────────── */
.pr-faq { margin-top: 12px; display: grid; gap: 2px; }
.pr-faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
}
.pr-faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .95rem; color: var(--silver);
}
.pr-faq summary::-webkit-details-marker { display: none; }
.pr-faq summary::after {
  content: "+"; color: var(--red); font-size: 1.15rem; line-height: 1; flex: 0 0 auto;
}
.pr-faq details[open] summary::after { content: "–"; }
.pr-faq p { margin-top: 10px; font-size: .88rem; line-height: 1.65; color: var(--muted); }

/* ── mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) and (pointer: coarse) {
  /* Same reason as legal.css: fixed/blurred layers are re-sampled every
     scroll frame and wreck smoothness on phones. */
  .pr-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16,17,22,.92); }
}

@media (max-width: 560px) {
  .pr-grid { gap: 16px; }
  .pr-card { padding: 26px 20px 22px; }
  .pr-price .pr-amt { font-size: 2.6rem; }
  .pr-tagline { min-height: 0; }
}

/* ── verified roles ──────────────────────────────────────────── */
.pr-role {
  margin-top: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel);
}
.pr-role-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pr-role-head h3 {
  font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 300; color: var(--silver);
}
.pr-role-tag {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(255,20,40,.4); background: rgba(255,20,40,.1);
  font-family: 'IBM Plex Mono', monospace; font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.pr-role p { font-size: .9rem; line-height: 1.7; color: var(--mid); }
.pr-role p + p { margin-top: 11px; }
.pr-role strong { color: var(--silver); font-weight: 500; }

@media (max-width: 900px) and (pointer: coarse) {
  .pr-role { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16,17,22,.92); }
}
