/* Pricing — the /pricing page (pr-), the shared price cards (pc-) and the pricing FAQ (pf-). The homepage pricing
   section and /how-it-works load this file too (pageCss: 'pricing'). Tokens from site.css. Motion: transform and
   opacity only, plus background-position for the hover light on the border. The hero card's violet border is a
   rotated conic layer (compositor-only). From-states exist only under .mr-motion (set by motion.js after its
   reduced-motion exit); without JS and under reduced motion everything is in its final state. */

/* ── cards ─────────────────────────────────────────────────────────────────────────────────────────── */
.pc-grid { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 640px) and (max-width: 979px) { .pc-grid { grid-template-columns: 1fr 1fr; } .pc-hero { grid-column: 1 / -1; } }
@media (min-width: 980px) { .pc-grid { grid-template-columns: 1.32fr 1fr 1fr; gap: 20px; } }

.pc { position: relative; isolation: isolate; padding: 1px; border-radius: var(--r-xl); background: var(--line-2);
  transition: transform var(--t-comp) var(--ease-std); }
.pc-in { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2.4vw, 34px);
  border-radius: calc(var(--r-xl) - 1px); background: linear-gradient(180deg, var(--elevated), var(--surface) 70%); box-shadow: var(--e-2); }
.pc-in > * { margin: 0; max-width: none; }

/* hover: lift 2 px and a light that sweeps across the border (the gradient band travels through the 1 px ring) */
.pc::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .6) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: background-position .9s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .pc:hover { transform: translateY(-2px); }
  .pc:hover::after { background-position: 0 0; }
}
.pc:focus-within { transform: translateY(-2px); }

/* the assessment card: slow violet light around the border + soft inner glow */
.pc-hero { overflow: hidden; background: rgba(167, 139, 250, .26);
  box-shadow: 0 40px 110px -56px rgba(124, 92, 255, .75), 0 0 0 1px rgba(124, 92, 255, .08); }
.pc-hero::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 320%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 40%, rgba(124, 92, 255, .9) 52%, #C4B5FD 58%, rgba(124, 92, 255, .9) 64%, transparent 76% 100%);
  transform: translate(-50%, -50%) rotate(0turn); animation: pcOrbit 14s linear infinite; will-change: transform; }
@keyframes pcOrbit { to { transform: translate(-50%, -50%) rotate(1turn); } }
.pc-hero .pc-in { background:
    radial-gradient(120% 55% at 50% -8%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(70% 40% at 100% 100%, rgba(167, 139, 250, .07), transparent 70%),
    linear-gradient(180deg, #161126, var(--surface) 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 64px rgba(124, 92, 255, .10); }
.mr-motion .pc-grid:not(.pc-live) .pc-hero::before { animation-play-state: paused; }

.pc-k { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 12px/1.4 var(--ui-sans);   color: var(--text-2); }   /* QA 2026-10-05: --text-3 on the card was 4.06:1 */
.pc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-pill); color: var(--lav); background: var(--violet-bg); border: 1px solid var(--line-strong); }
.pc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 10px var(--violet); }
.pc-name { margin-top: 18px !important; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }

.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 6px !important; }
.pc-amt { font: 500 clamp(36px, 3.4vw, 46px)/1.05 var(--ui-sans); font-variant-numeric: tabular-nums; letter-spacing: -0.06em; color: var(--text); }
.pc-hero .pc-amt { font-size: clamp(46px, 4.6vw, 64px);
  color: #fff; text-shadow: 0 0 40px rgba(124, 92, 255, .45); }
.pc-from, .pc-unit { font-size: 15px; color: var(--text-3); }
.pc-price-t .pc-amt { font: 600 clamp(30px, 2.6vw, 38px)/1.1 var(--font); letter-spacing: -0.03em; }

.pc-sum { margin-top: 10px !important; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pc-hero .pc-sum { color: var(--text); font-size: 16px; }
.pc-inc-k { margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--line); font: 500 12px/1.4 var(--ui-sans);   color: var(--text-2); }   /* QA 2026-10-05: --text-3 on the card was 3.83:1 */
.pc-inc { list-style: none; padding: 0 !important; margin-top: 14px !important; display: grid; gap: 11px; }
.pc:not(.pc-hero) .pc-inc { margin-top: 22px !important; padding-top: 20px !important; border-top: 1px solid var(--line); }
.pc-inc li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.pc-hero .pc-inc li { color: var(--text); }
.pc-tick { width: 18px; height: 18px; margin-top: 2px; overflow: visible; }
.pc-tick circle { fill: rgba(124, 92, 255, .16); stroke: rgba(167, 139, 250, .55); stroke-width: 1; }
.pc-tick path { fill: none; stroke: var(--lav); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10; stroke-dashoffset: 0; }
.pc-inc-s { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--text-2); }

.pc-facts { display: grid; gap: 0; margin-top: 22px !important; border-top: 1px solid var(--line); }
.pc-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pc-facts dt { color: var(--text-3); flex: none; }
.pc-facts dd { margin: 0; color: var(--text); text-align: right; }
.pc-facts .num { font-family: var(--ui-sans); font-variant-numeric: tabular-nums; }
.pc-credit { margin-top: 16px !important; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; color: var(--text-2);
  background: rgba(124, 92, 255, .07); border: 1px solid rgba(167, 139, 250, .16); }
.pc-note { margin-top: 18px !important; font-size: 14px; line-height: 1.5; color: var(--text-3); }

.pc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto !important; padding-top: 26px; }
.pc-cta .btn { flex: 1 1 auto; }
.pc-hero .pc-cta .btn { flex: 1 1 180px; }
.pc:not(.pc-hero) .pc-cta .btn { flex: 1 1 100%; }

.pc-refund { margin: 28px auto 0; max-width: 78ch; text-align: center; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.pc-refund strong { color: var(--text-2); font-weight: 500; }

/* ── the FAQ: animated disclosure (height + opacity, 220 ms, out-expo) ─────────────────────────────────── */
.pf { border-bottom: 1px solid var(--line); }
.pf-q > summary { font-size: 17px; min-height: 60px; padding: 16px 0; transition: color var(--t-micro) var(--ease-std); }
.pf-q > summary:hover { color: #fff; }
.pf-q > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.pf-a p { margin: 0 0 22px; max-width: 66ch; font-size: 16px; line-height: 1.65; color: var(--text-2); }
@supports (interpolate-size: allow-keywords) {
  .pf-q::details-content { transition: opacity 220ms var(--ease), translate 220ms var(--ease), content-visibility 220ms allow-discrete; }
}
.pf-a { transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
@keyframes pfIn { from { opacity: 0; transform: translateY(-4px); } }
.mr-motion .pf-q[open] .pf-a { animation: pfIn 220ms var(--ease); }
.mr-motion .pf-q:not([open]) .pf-a { opacity: 0; transform: translateY(-4px); }

/* ── /pricing page ─────────────────────────────────────────────────────────────────────────────────── */
.pr .page-hero { padding-bottom: clamp(48px, 6vw, 80px) !important; border-bottom: 0; }
.pr .page-hero h1 { max-width: 20ch; font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.035em; text-wrap: balance; }
.pr .page-hero .lede { max-width: 58ch; }
main > section.pr-cards { padding-top: 0; }
main > section.pr-cards::before { content: none; }
.pr-faq-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .pr-faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
  .pr-faq-grid .sec-head { position: sticky; top: calc(var(--header) + 32px); } }
.pr-faq .sec-head p:not(.eyebrow) { color: var(--text-2); }
.pr-close .wrap { text-align: center; }
.pr-close h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
.pr-close .lede { margin: 12px auto 0; }
.pr-close .cta-row { justify-content: center; }
.pr-close .small { margin-top: 24px; }
@media (max-width: 640px) { .pr-close .cta-row .btn { flex: 1 1 100%; } }

/* ── homepage + how-it-works wrappers ──────────────────────────────────────────────────────────────── */
.pc-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.pc-sec-head > div { max-width: 640px; }
.pc-sec-head h2 { margin: 0; }
.pc-sec-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--text-2); }
.pc-more { font-size: 15px; white-space: nowrap; }

@media print { .pc-hero::before, .pc::after { display: none !important; } .pc { transform: none !important; } }

/* ── motion (PRICING FX in motion.js): cards rise with a 60 ms stagger; ticks draw once ────────────────── */
@keyframes pcRise { from { opacity: 0; transform: translateY(28px); } }
@keyframes pcRiseSoft { from { transform: translateY(14px); } }
@keyframes pcTick { from { stroke-dashoffset: 10; } }
.mr-motion .pc-grid.pc-go > .pc { animation: pcRise .62s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.mr-motion .pc-grid.pc-go-soft > .pc { animation: pcRiseSoft .52s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.mr-motion .pc-grid.pc-go .pc-tick path, .mr-motion .pc-grid.pc-go-soft .pc-tick path { animation: pcTick .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + 320ms); }
.mr-motion .pc-grid.pc-pre > .pc { opacity: 0; transform: translateY(28px); }

/* big prices in Geist (proportional punctuation, tabular figures): Geist Mono sets the comma a full cell wide ("$2 , 500") */
.pc-amt { font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; }

/* money-at-risk calculator (Run 3; revenue/site/calculator.mjs): inputs in one row, three results that are never summed */
.calc-sec { padding-block: 56px; }
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-block: 20px; }
.calc-form input { width: 100%; font-variant-numeric: tabular-nums; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.calc-row { border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; padding: 16px; min-width: 0; }
.calc-label { margin: 0 0 6px; font-weight: 600; }
.calc-val { margin: 0 0 8px; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-src { margin-top: 16px; max-width: 72ch; }
