/*
 * The pricing card (7 November 2026): "A team of [− 1–3 people +] is [price] a month." Used by the
 * front page (#pricing) and /pricing, which the site-pages script builds with a copy of the front
 * page's card. The pricing script (shared/pricing.js while payment is on) sets the prices and --heat on [data-pricing]. Loaded after
 * studio.css and site.css (the fire colours are in site.css).
 */

/* ---------- Pricing: one line, and the hearth grows with the team (7 November 2026) ----------
   "A team of [− 6–10 people +] is [price] a month." The buttons move one band at a time
   (shared/pricing.js sets --heat on [data-pricing]); the fire, its glow and the embers grow with the
   band, and the price pops when it changes. All still when motion is reduced. */

.pc-head { display: grid; gap: 12px; margin-bottom: 28px; }
.pc-head .lede { margin: 0; }
.pc-step { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 0; display: grid; place-items: center; font-size: 22px; line-height: 1; cursor: pointer; background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pc-step:hover { background: var(--hover); }
.pc-step:disabled { opacity: .4; cursor: default; }

.pc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc3 { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 40px); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow-1); }
.pc3 .h2 { font-size: clamp(30px, 3.4vw, 42px); }
.pc3-line { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.pc3-stepper { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border-radius: 999px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.pc3-stepper .pc-step { background: var(--panel); box-shadow: var(--shadow-1); }
.pc3-n { min-width: 2.4ch; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.pc3-price { color: var(--ink); font-weight: 600; }
.pc3-price [data-band-price] { color: var(--ember-ink); }
.pc3-unit { font-weight: 500; color: var(--ink-2); }
.pc3 .slider { width: min(520px, 100%); }
.pc3-note { margin: 0; font-size: 15px; color: var(--muted); max-width: 46ch; }
.pc3-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14.5px; color: var(--ink-2); }
.pc3-incl li { display: flex; align-items: center; gap: 8px; }
.pc3-incl svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.pc3 .fine { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 560px) { .pc3 .btn { width: 100%; } }
.pc3-n { min-width: 7.2ch; }
.pc3-all { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.pc3-all svg { width: 17px; height: 17px; color: var(--green); }

[data-band-price].is-new { display: inline-block; animation: price-pop .55s cubic-bezier(.2, .8, .3, 1.3); }
@keyframes price-pop { 0% { transform: scale(.82); text-shadow: 0 0 0 transparent; } 45% { transform: scale(1.12); text-shadow: 0 0 22px rgba(245, 146, 47, .7); } 100% { transform: none; text-shadow: 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { [data-band-price].is-new { animation: none; } }

.pc5 { position: relative; isolation: isolate; overflow: hidden; }
.pc5::before { content: ""; position: absolute; left: 50%; top: -40px; width: calc(320px + var(--heat, .2) * 260px); height: calc(200px + var(--heat, .2) * 140px); transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-ember), transparent); transition: width .6s ease, height .6s ease; }
.pg-fire { position: relative; width: 150px; height: 104px; margin-bottom: -6px; }
.pg-flames { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 90px; transform: translateX(-50%) scale(calc(.55 + var(--heat, .2) * .5)); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .8, .3, 1.2); filter: drop-shadow(0 0 calc(6px + var(--heat, .2) * 18px) rgba(245, 146, 47, .55)); }
.pg-flames svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pg-logs { position: absolute; left: 50%; bottom: 4px; width: 96px; height: 12px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(90deg, #5a3a26, #7a5136 50%, #5a3a26); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.pg-logs::after { content: ""; position: absolute; left: 14px; right: 14px; top: -7px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #6b4630, #8a5c3c 50%, #6b4630); transform: rotate(-4deg); }
.pg-e { position: absolute; inset: 0; opacity: clamp(0, calc((var(--heat, .2) - var(--need)) * 40), 1); transition: opacity .4s; }
.pc5 .pf-ember { position: absolute; top: 46px; left: var(--x); width: var(--s, 5px); height: var(--s, 5px); border-radius: 50%; background: var(--c, var(--ember-gold)); box-shadow: 0 0 7px 1px var(--ember-shadow); opacity: 0; animation: pf-rise var(--d, 3.6s) cubic-bezier(.3, .4, .5, 1) var(--dl, 0s) infinite; pointer-events: none; }
@keyframes pf-rise { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 14% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--dx, 0px), -60px) scale(.35); } }
@media (prefers-reduced-motion: reduce) { .pg-flames { transition: none; } .pc5 .pf-ember { display: none; } .pc5::before { transition: none; } }

/* /pricing: the card sits between the title band and the sheet of billing notes, in the same
   column as the sheet (pages.css .page-sheet: 860px wide, 24px corners) so the two panels line up. */
.pricing-sec { padding-block: 8px clamp(32px, 4vw, 48px); }
.pricing-sec .pc3 { max-width: 860px; border-radius: 24px; }
