/* The PCMB universe (showcase.js): the hero of the plan pages (#/buy/sprint, #/buy/topper) and what follows it. The hero
   fills the first view under the site header - heading and buttons, the universe (a WebGL canvas, or the 2D universe
   where 3D is not on), the story card of the tour - then the book's counts and one door per feature. The subjects'
   colours are the book's (pcmb.css .s-*); everything else is the site's theme tokens, so every theme follows. Motion in
   the page is transform and opacity only, on small layers; showcase.js pauses it off screen; reduced motion stills it. */

/* the plan page's panel: the hero reaches its edges, the rest keeps the panel's padding */
.pc-test.pc-plan { padding: 0; overflow: hidden; }
.pc-plan .pcx-slot > .pc-planhead { padding: 22px; }                  /* before the showcase takes it (or without it) */
.pc-plan .pc-planmore { padding: 0 22px 22px; }
.pc-plan .pc-planmore .pc-locked, .pc-plan .pc-planmore .pc-tpitch { margin: 0; max-width: 820px; }
.pc-planhead .pc-cta { align-items: center; }
.pc-planhead .pc-cta .lk-btn { min-height: 42px; margin: 0; }
.pc-planhead .lk-msg { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.pc-planhead .lk-msg:empty { display: none; }
.pc-planhead .lk-msg.bad { color: #f87171; }
.pc-planhead .pc-offer-note { display: block; margin-top: 8px; font-size: 12px; color: var(--text3); }

.pcx { margin: 0; padding: 0; }

/* ---- the hero ---------------------------------------------------------------------------------------------------- */
.pcx-hero {
  --pcx-top: 84px; --pcx-bar: 0px; --pcx-gap: 12px;
  position: relative; isolation: isolate; overflow: hidden; container: pcxhero / size;
  height: calc(100vh - var(--pcx-top) - var(--pcx-bar) - var(--pcx-gap)); height: calc(100svh - var(--pcx-top) - var(--pcx-bar) - var(--pcx-gap));
  min-height: 430px; background: #04060d; touch-action: pan-y;
}
.pcx-bg, .pcx-bg i { position: absolute; inset: 0; pointer-events: none; }
.pcx-bg {
  z-index: 0;
  background:
    radial-gradient(34% 40% at 22% 30%, rgba(59, 130, 246, .17), transparent 70%),
    radial-gradient(30% 36% at 60% 26%, rgba(234, 88, 12, .13), transparent 70%),
    radial-gradient(34% 40% at 22% 78%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(30% 38% at 60% 80%, rgba(22, 163, 74, .14), transparent 70%),
    radial-gradient(60% 60% at 42% 52%, rgba(var(--glow2), .1), transparent 75%),
    linear-gradient(180deg, rgba(4, 7, 16, .6), rgba(2, 4, 10, .9));
}
.pcx-bg i { background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 37% 64%, #fff, transparent), radial-gradient(1.4px 1.4px at 58% 12%, #fff, transparent), radial-gradient(1px 1px at 81% 46%, #fff, transparent), radial-gradient(1.2px 1.2px at 67% 88%, #fff, transparent), radial-gradient(1px 1px at 22% 92%, #fff, transparent), radial-gradient(1px 1px at 92% 8%, #fff, transparent), radial-gradient(1.3px 1.3px at 47% 37%, #fff, transparent), radial-gradient(1px 1px at 5% 52%, #fff, transparent), radial-gradient(1.2px 1.2px at 73% 23%, #fff, transparent); opacity: .4; }
.pcx-bg i + i { transform: rotate(180deg); opacity: .22; }
.pcx-2d .pcx-bg i + i { animation: pcx-twinkle 7s ease-in-out infinite alternate; }
@keyframes pcx-twinkle { to { opacity: .55; } }

/* the 3D canvas fills the hero; it fades in over the still sky once its first frame is drawn (no layout moves) */
.pcx-gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.pcx-3d-on .pcx-gl { opacity: 1; }
.pcx-3d .pcx-hero { cursor: grab; }
.pcx-3d .pcx-hero.pcx-grab { cursor: grabbing; }
.pcx-labels { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s ease .3s; }
.pcx-3d-on .pcx-labels { opacity: 1; }

/* a quiet floor under the foot's small print */
.pcx-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(3, 5, 12, .78), transparent); }
/* the layout over it: heading (top left), the free stage under it, a slim foot, the story on the right */
.pcx-grid { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 31%, 400px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px 22px; padding: 20px 22px 14px; pointer-events: none; }
.pcx-top { grid-area: 1 / 1; position: relative; min-width: 0; }
.pcx-top::before { content: ''; position: absolute; inset: -20px -90px -34px -22px; z-index: -1; background: radial-gradient(105% 115% at 0% 0%, rgba(3, 5, 12, .95), rgba(3, 5, 12, .84) 52%, rgba(3, 5, 12, .5) 72%, transparent 86%); }
.pcx-stage { grid-area: 2 / 1; position: relative; min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; }
.pcx-foot { grid-area: 3 / 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.pcx-side { grid-area: 1 / 2 / 4 / 3; display: flex; flex-direction: column; min-width: 0; min-height: 0; pointer-events: auto; cursor: auto; }
.pcx-top a, .pcx-top button, .pcx-foot button, .pcx-stage .pcx-uni { pointer-events: auto; }

/* the heading (pcmb.js wrote it; the universe's own line sits under the title) */
.pcx-top .pc-planhead { max-width: 640px; }
.pcx-top .kick, .pcx-kick { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sc, var(--accent-hi)); }
.pcx-top h2 { font: 800 clamp(22px, 1.1cqw + 16px, 36px)/1.1 var(--display); margin: 8px 0 0; letter-spacing: -.01em; }
.pcx-tag { font: 800 clamp(15.5px, .8cqw + 11px, 25px)/1.15 var(--display); margin: 6px 0 0; letter-spacing: -.005em; color: var(--text); }
.pcx-tag em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcx-top .pc-lead { margin: 9px 0 0; max-width: 600px; font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.pcx-top .pc-lead b { color: var(--text); }
.pcx-top .pc-cta { margin-top: 13px; }

/* the foot: what the orbits mean, and what waits below the first view */
.pcx-legend { display: none; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; font: 600 10.5px/1.3 var(--mono); letter-spacing: .03em; color: var(--text3); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.pcx-3d .pcx-legend { display: flex; }
.pcx-legend i { display: inline-block; flex: none; width: 8px; height: 8px; margin: 0 6px 0 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); }
.pcx-legend i:first-child { margin-left: 0; }
.pcx-legend .k1 { width: 6px; height: 6px; }
.pcx-legend .k2 { background: rgba(255, 255, 255, .55); }
.pcx-legend .k3 { width: 14px; height: 0; border: 0; border-top: 1.5px dashed rgba(255, 255, 255, .6); border-radius: 0; }
.pcx-legend em { display: none; font-style: normal; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line2); color: var(--text2); }
@container pcxhero (min-width: 1180px) { .pcx-legend em { display: inline; } }
@media (pointer: coarse) { .pcx-legend em { display: none !important; } }
.pcx-more { margin-left: auto; flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(6, 9, 20, .7); color: var(--text2); font: 700 11.5px/1 var(--body); cursor: pointer; transition: border-color .2s, color .2s; }
.pcx-more:hover { border-color: var(--gline2); color: var(--text); }
.pcx-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcx-more span { display: inline-block; margin-left: 3px; animation: pcx-nudge 2.4s ease-in-out infinite; }
@keyframes pcx-nudge { 0%, 60%, 100% { transform: none; } 80% { transform: translateY(3px); } }

/* ---- the groups as buttons over the 3D scene (universe3d.js moves them) ---- */
.pcx-3d .pcx-node { position: absolute; left: 0; top: 0; z-index: 1; width: 0; height: 0; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; will-change: transform; transition: opacity .25s ease; }
.pcx-3d .pcx-node.off, .pcx-hub3.off, .pcx-core3.off { opacity: 0; pointer-events: none; }
.pcx-3d .pcx-node::before { content: ''; position: absolute; left: -24px; top: -34px; width: 48px; height: 64px; }   /* the body above its name is part of the button */
.pcx-3d .pcx-dot { position: absolute; left: 0; top: 0; transform: translateX(-50%); display: grid; place-items: center; min-width: 28px; height: 19px; padding: 0 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc) 85%, #fff); background: rgba(5, 8, 18, .78); transition: background .3s ease, transform .3s ease; }
.pcx-3d .pcx-dot b { font: 800 10.5px/1 var(--mono); color: var(--text); }
.pcx-3d .pcx-lbl { position: absolute; left: 0; top: 22px; transform: translateX(-50%); width: max-content; max-width: 11em; text-align: center; font: 600 11px/1.2 var(--body); color: var(--text2); text-shadow: 0 1px 6px #000, 0 0 2px #000; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.pcx-3d .pcx-node.far .pcx-lbl, .pcx-3d .pcx-node.on .pcx-lbl, .pcx-3d .pcx-node:hover .pcx-lbl, .pcx-3d .pcx-node:focus-visible .pcx-lbl { opacity: 1; }
.pcx-3d .pcx-node.on { z-index: 3; }
.pcx-3d .pcx-node.on .pcx-dot { background: var(--sc); border-color: rgba(255, 255, 255, .85); transform: translateX(-50%) scale(1.15); }
.pcx-3d .pcx-node.on .pcx-dot b { color: #fff; }
.pcx-3d .pcx-node.on .pcx-lbl { color: var(--text); font-weight: 700; top: 24px; }
.pcx-3d .pcx-node:hover { z-index: 4; }
.pcx-3d .pcx-node:hover .pcx-dot { background: color-mix(in srgb, var(--sc) 55%, rgba(5, 8, 18, .9)); }
.pcx-3d .pcx-node:focus-visible { outline: none; opacity: 1; z-index: 4; }
.pcx-3d .pcx-node:focus-visible .pcx-dot { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--accent); }
.pcx-hub3, .pcx-core3 { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; transition: opacity .25s ease; }
.pcx-hub3 { display: flex; justify-content: center; }
.pcx-hub3 b { flex: none; padding: 3px 7px 3px 8px; border-radius: 999px; background: rgba(5, 8, 18, .6); font: 800 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: color-mix(in srgb, var(--sc) 40%, #fff); }
.pcx-core3 { display: flex; justify-content: center; align-items: center; }
.pcx-core3 b { flex: none; font: 800 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--text); text-shadow: 0 0 6px #000, 0 0 2px #000; }

/* ---- the 2D universe (no WebGL2, reduced motion, a lost context): the same groups, placed in the stage ---- */
.pcx-uni { position: relative; width: min(100cqw, 100cqh * 1.1628); aspect-ratio: 1000 / 860; container-type: inline-size; }
.pcx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.pcx-lines path { fill: none; vector-effect: non-scaling-stroke; transition: opacity .6s var(--ease); }
.pcx-spoke { stroke: var(--sc); stroke-width: 1.4; opacity: 0; }
.pcx-bridge { stroke: rgba(255, 255, 255, .7); stroke-width: 1.3; stroke-dasharray: 3 6; opacity: 0; }
.pcx-in .pcx-spoke { opacity: .26; transition-delay: .9s; }
.pcx-in .pcx-bridge { opacity: .22; transition-delay: 1.1s; }
.pcx-in .pcx-spoke.on { opacity: .95; transition-delay: 0s; }
.pcx-in .pcx-bridge.on { opacity: .95; stroke-width: 2; transition-delay: 0s; }

/* the core and the four subjects */
.pcx-core, .pcx-hub, .pcx-uni .pcx-node { position: absolute; transform: translate(-50%, -50%); }
.pcx-core { z-index: 2; width: clamp(40px, 10cqw, 84px); aspect-ratio: 1; display: grid; place-items: center; }
.pcx-core b { position: relative; z-index: 1; width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 clamp(8px, 1.5cqw, 12.5px)/1 var(--mono); letter-spacing: .08em; color: var(--text); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(10, 14, 28, .95) 70%); border: 1px solid var(--line2); }
.pcx-core i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--physics), var(--chemistry), var(--biology), var(--maths), var(--physics)); -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 82%, #000 98%, transparent); mask: radial-gradient(closest-side, transparent 80%, #000 82%, #000 98%, transparent); animation: pcx-spin 14s linear infinite; }
.pcx-hub { z-index: 2; width: 0; height: 0; }
.pcx-hub > b { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: clamp(40px, 11.6cqw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font: 800 clamp(8px, 1.45cqw, 12px)/1.1 var(--body); color: #fff; letter-spacing: .01em;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), var(--sc) 42%, var(--sc2) 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 0 34px -4px var(--sc); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.15s + var(--i) * .12s); }
.pcx-hub > b .s { display: none; }
.pcx-tight .pcx-hub > b .l { display: none; }
.pcx-tight .pcx-hub > b .s { display: inline; }
.pcx-orbit { position: absolute; left: 0; top: 0; width: 27.6cqw; height: 27.6cqw; margin: -13.8cqw 0 0 -13.8cqw; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); transition: opacity 1s var(--ease); transition-delay: calc(.4s + var(--i) * .12s); animation: pcx-spin 90s linear infinite reverse; }
.pcx-orbit.two { border: 1.5px solid transparent; border-top-color: var(--sc); border-right-color: color-mix(in srgb, var(--sc) 35%, transparent); opacity: .55; animation: pcx-spin 16s linear infinite; animation-delay: calc(var(--i) * -3.2s); }
.pcx-hub:nth-of-type(odd) .pcx-orbit.two { animation-direction: reverse; }
.pcx-hub.on .pcx-orbit.two { opacity: 1; }
@keyframes pcx-spin { to { transform: rotate(360deg); } }

/* the sixteen groups */
.pcx-uni .pcx-node { z-index: 3; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; transition: opacity .6s var(--ease); transition-delay: calc(.55s + var(--i) * 45ms); }
.pcx-uni .pcx-dot { position: relative; display: grid; place-items: center; width: clamp(24px, 6.4cqw, 46px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .12), rgba(8, 12, 24, .96) 70%); border: 2px solid var(--sc); box-shadow: 0 0 18px -6px var(--sc); transition: transform .35s var(--ease), opacity .45s var(--ease); }
.pcx-uni .pcx-dot b { font: 800 clamp(8.5px, 1.6cqw, 12.5px)/1 var(--mono); color: var(--text); }
.pcx-uni .pcx-dot::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--sc); opacity: 0; transform: scale(.7); }
.pcx-uni .pcx-node.on .pcx-dot { transform: scale(1.18); }
.pcx-uni .pcx-node.on .pcx-dot::before { animation: pcx-ping 1.6s var(--ease) infinite; }
@keyframes pcx-ping { 0% { opacity: .9; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.55); } }
.pcx-uni .pcx-node:hover .pcx-dot { transform: scale(1.12); }
.pcx-uni .pcx-node:focus-visible { outline: none; }
.pcx-uni .pcx-node:focus-visible .pcx-dot { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--accent); }
.pcx-uni.focus .pcx-node:not(.on) .pcx-dot { opacity: .62; }
.pcx-uni .pcx-lbl { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); width: max-content; max-width: 10.5em; text-align: center; font: 600 11px/1.25 var(--body); color: var(--text2); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); pointer-events: none; transition: opacity .3s; }
.pcx-uni .pcx-node.up .pcx-lbl { top: auto; bottom: calc(100% + 5px); }
.pcx-uni .pcx-node.l .pcx-lbl, .pcx-uni .pcx-node.r .pcx-lbl { top: 50%; transform: translateY(-50%); max-width: 8em; }
.pcx-uni .pcx-node.l .pcx-lbl { left: auto; right: calc(100% + 7px); text-align: right; }
.pcx-uni .pcx-node.r .pcx-lbl { left: calc(100% + 7px); text-align: left; }
.pcx-uni .pcx-node.on .pcx-lbl { color: var(--text); }
/* a small stage shows the codes; the group whose story is told keeps its name */
.pcx-tight .pcx-uni .pcx-lbl { display: none; }
.pcx-tight .pcx-uni .pcx-node.on { z-index: 4; }
.pcx-tight .pcx-uni .pcx-node.on .pcx-lbl { display: block; padding: 2px 6px; border-radius: 6px; background: rgba(5, 8, 18, .85); font-weight: 700; }

/* the travelling light */
.pcx-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pcx-sp { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px var(--sc), 0 0 2px 1px #fff; opacity: 0; will-change: transform, opacity; }
.pcx-sp.amb { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; box-shadow: 0 0 6px 2px var(--sc); }

/* before it is first seen: everything waits off stage */
.pcx:not(.pcx-in):not(.pcx-still) .pcx-stats div { opacity: 0; transform: translateY(10px); }
.pcx:not(.pcx-in):not(.pcx-still) .pcx-hub > b { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.pcx:not(.pcx-in):not(.pcx-still) .pcx-orbit { opacity: 0; }
.pcx:not(.pcx-in):not(.pcx-still) .pcx-uni .pcx-node { opacity: 0; }
.pcx:not(.pcx-in):not(.pcx-still) .pcx-door { opacity: 0; }

/* ---- the tour: a group's root and what grows from it, or a bridge ---- */
.pcx-story { flex: 0 1 auto; min-height: min(440px, calc(100% - 48px)); overflow: hidden; padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(6, 9, 20, .93); box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9); transition: opacity .18s ease, transform .18s ease; }
.pcx-story.out { opacity: 0; transform: translateY(6px); }
.pcx-chip { display: inline-block; margin-right: 6px; padding: 4px 7px; border-radius: 6px; font: 800 11px/1 var(--mono); color: #fff; background: var(--sc); }
.pcx-sk { font: 700 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.pcx-st h4 { font: 800 20px/1.22 var(--display); margin: 12px 0 14px; }
.pcx-flow { display: flex; flex-direction: column; }
.pcx-fr { padding: 10px 13px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); background: color-mix(in srgb, var(--sc) 9%, transparent); }
.pcx-fr.grow { border-color: color-mix(in srgb, var(--sc) 75%, transparent); background: color-mix(in srgb, var(--sc) 16%, transparent); }
.pcx-fr small { display: block; font: 700 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-bottom: 3px; }
.pcx-fr a { color: var(--text); font: 650 15px/1.3 var(--body); text-decoration: none; }
.pcx-fr a:hover, .pcx-fr a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.pcx-tr { position: relative; height: 40px; margin-left: 22px; display: flex; align-items: center; }
.pcx-tr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 80%, transparent), rgba(255, 255, 255, .5)); }
.pcx-tr i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--sc); animation: pcx-flow 1.5s ease-in-out infinite; }
@keyframes pcx-flow { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes pcx-flow-s { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes pcx-flow-x { 0% { transform: translateX(-2px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(15px); opacity: 0; } }
.pcx-tr span { margin-left: 16px; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.pcx-why { color: var(--text2); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; }
.pcx-open { display: inline-block; margin-top: 12px; color: var(--accent-hi); font: 700 13.5px/1.2 var(--body); text-decoration: none; }
.pcx-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcx-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex: none; }
.pcx-cb { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: rgba(6, 9, 20, .75); color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; }
.pcx-cb:hover { border-color: var(--gline2); transform: translateY(-1px); }
.pcx-cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcx-cb svg { width: 16px; height: 16px; }
.pcx .pl { display: none; }
.pcx.paused .ps { display: none; }
.pcx.paused .pl { display: inline; }
.pcx-pos { flex: 1; height: 3px; margin-left: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.pcx-pos i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }

/* ---- the hero at other sizes (its own box decides, not the window) ---- */
/* a short window: the story drops its last paragraph, the heading tightens */
@container pcxhero (max-height: 640px) {
  .pcx-grid { padding-top: 16px; }
  .pcx-why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 10px; }
  .pcx-st h4 { font-size: 18px; margin: 10px 0 11px; }
  .pcx-tr { height: 30px; }
  .pcx-tr i { animation-name: pcx-flow-s; }
  .pcx-fr { padding: 8px 12px; }
}
@container pcxhero (max-height: 560px) {
  .pcx-why { display: none; }
  .pcx-top .pc-lead { font-size: 13.5px; }
  .pcx-top .pc-cta { margin-top: 10px; }
  .pcx-story { padding: 14px 16px; }
}
@container pcxhero (max-height: 470px) { .pcx-idea { display: none; } }
/* a narrow hero (a phone, a small tablet): heading, the universe, then the story as a compact card */
@container pcxhero (max-width: 760px) {
  .pcx-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; padding: 14px 12px 10px; }
  .pcx-top::before { inset: -14px -12px -22px -12px; background: linear-gradient(180deg, rgba(3, 5, 12, .95), rgba(3, 5, 12, .84) 68%, transparent); }
  .pcx-foot { grid-area: 2 / 1; align-self: end; justify-self: end; }
  .pcx-side { grid-area: 3 / 1; }
  .pcx-legend { display: none !important; }
  .pcx-top h2 { font-size: clamp(18px, 5.4cqw, 26px); margin-top: 7px; }
  .pcx-tag { font-size: clamp(13px, 3.75cqw, 18px); margin-top: 4px; }
  .pcx-top .pc-lead { display: none; }
  .pcx-top .pc-lead.keep { display: block; font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
  .pcx-top .pc-offer-note { display: none; }
  .pcx-top .pc-cta { margin-top: 10px; gap: 8px; }
  .pcx-top .pc-cta .pc-btn, .pcx-top .pc-cta .lk-btn { height: 38px; min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
  .pcx-more { height: 28px; padding: 0 10px; font-size: 11px; }
  .pcx-story { flex: none; min-height: 0; padding: 11px 12px; border-radius: 14px; }
  .pcx-sk { font-size: 9.5px; letter-spacing: .05em; }
  .pcx-st h4 { font-size: 15.5px; margin: 7px 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .pcx-flow { flex-direction: row; align-items: stretch; }
  .pcx-fr { flex: 1 1 0; min-width: 0; padding: 6px 9px; border-radius: 10px; }
  .pcx-fr small { font-size: 8.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcx-fr a { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .pcx-tr { flex: none; width: 20px; height: auto; margin: 0; }
  .pcx-tr::before { left: 2px; right: 2px; top: 50%; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 80%, transparent), rgba(255, 255, 255, .5)); }
  .pcx-tr i { left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; animation-name: pcx-flow-x; }
  .pcx-tr span { display: none; }
  .pcx-why { display: none; }
  .pcx-open { margin-top: 8px; font-size: 12.5px; }
  .pcx-ctl { margin-top: 7px; }
  .pcx-cb { width: 34px; height: 34px; }
  .pcx-3d .pcx-lbl { font-size: 10.5px; }
}

/* ---- below the first view: the idea in a line, the book's counts, the doors ---- */
.pcx-below { padding: 22px; }
.pcx-note { margin: 0; max-width: 820px; color: var(--text2); font-size: 15px; line-height: 1.6; }
.pcx-mine .pcx-note span { display: none; }            /* an owner's hero already says it */
.pcx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pcx-stats div { padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.pcx-stats b { display: block; font: 800 clamp(22px, 2.4vw, 30px)/1 var(--display); font-variant-numeric: tabular-nums; }
.pcx-stats span { display: block; color: var(--text3); font-size: 12.5px; margin-top: 6px; }

.pcx-doors-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 30px; }
.pcx-doors-h h4 { font: 800 22px/1.1 var(--display); margin: 0; }
.pcx-doors-h span { color: var(--text3); font-size: 13.5px; }
.pcx-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pcx-door { --c: var(--accent); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, opacity .6s var(--ease); }
.pcx-door { transition-delay: 0s, 0s, calc(.2s + var(--i) * 60ms); }
.pcx-door:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.pcx-door:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcx-k-brain { --c: #a78bfa; } .pcx-k-tests { --c: #38bdf8; } .pcx-k-intel { --c: #f59e0b; } .pcx-k-cards { --c: #fbbf24; }
.pcx-k-exams { --c: #fb923c; } .pcx-k-papers { --c: #f97316; } .pcx-k-video { --c: #f43f5e; } .pcx-k-desk { --c: #34d399; }
.pcx-ic { position: relative; width: 60px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.pcx-ic > span, .pcx-ic > span > * { position: absolute; display: block; }
.pcx-ic > span { inset: 0; }
.pcx-tx { display: flex; flex-direction: column; min-width: 0; }
.pcx-tx b { font: 800 15.5px/1.25 var(--display); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pcx-top-b { padding: 2px 6px; border-radius: 999px; font: 700 9.5px/1.3 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #1c1917; background: linear-gradient(100deg, #fbbf24, #f97316); }
.pcx-tx small { font: 700 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text3); margin-top: 3px; }
.pcx-tx > span { color: var(--text2); font-size: 12.8px; line-height: 1.5; margin-top: 6px; }
.pcx-go { margin-top: auto; font: 700 12.5px/1 var(--body); color: color-mix(in srgb, var(--c) 70%, var(--text)); }
.pcx-go span { display: inline-block; transition: transform .25s var(--ease); }
.pcx-door:hover .pcx-go span { transform: translateX(4px); }

/* the doors' small loops (each a few elements a few pixels big) */
.pcx-a-brain i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: pcx-fire 1.8s ease-in-out infinite; }
.pcx-a-brain i:nth-child(1) { left: 14px; top: 12px; } .pcx-a-brain i:nth-child(2) { left: 38px; top: 10px; animation-delay: .6s; } .pcx-a-brain i:nth-child(3) { left: 26px; top: 28px; animation-delay: 1.2s; }
.pcx-a-brain b { left: 15px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: pcx-ring 2.4s ease-out infinite; }
@keyframes pcx-fire { 0%, 100% { transform: scale(.7); opacity: .45; } 30% { transform: scale(1.35); opacity: 1; } }
@keyframes pcx-ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.pcx-a-tests i { left: 20px; width: 28px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.pcx-a-tests i:nth-child(1) { top: 10px; } .pcx-a-tests i:nth-child(2) { top: 20px; } .pcx-a-tests i:nth-child(3) { top: 30px; }
.pcx-a-tests i::before { content: ''; position: absolute; left: -10px; top: -1px; width: 7px; height: 7px; border-radius: 2px; background: var(--c); transform: scale(0); animation: pcx-tick 3s ease-in-out infinite; }
.pcx-a-tests i:nth-child(2)::before { animation-delay: .35s; } .pcx-a-tests i:nth-child(3)::before { animation-delay: .7s; }
@keyframes pcx-tick { 0%, 8% { transform: scale(0); } 18%, 82% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
.pcx-a-intel i { bottom: 9px; width: 7px; border-radius: 2px 2px 0 0; background: var(--c); transform-origin: bottom; animation: pcx-bar 1.8s ease-in-out infinite alternate; }
.pcx-a-intel i:nth-child(1) { left: 13px; height: 14px; } .pcx-a-intel i:nth-child(2) { left: 23px; height: 24px; animation-delay: .3s; }
.pcx-a-intel i:nth-child(3) { left: 33px; height: 18px; animation-delay: .6s; } .pcx-a-intel i:nth-child(4) { left: 43px; height: 28px; animation-delay: .9s; }
@keyframes pcx-bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.pcx-a-cards i, .pcx-a-cards b { left: 19px; top: 7px; width: 22px; height: 30px; border-radius: 4px; backface-visibility: hidden; animation: pcx-flip 3.2s ease-in-out infinite; }
.pcx-a-cards i { background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); }
.pcx-a-cards b { background: rgba(255, 255, 255, .9); animation-name: pcx-flipb; }
@keyframes pcx-flip { 0%, 30% { transform: perspective(120px) rotateY(0); } 50%, 80% { transform: perspective(120px) rotateY(180deg); } 100% { transform: perspective(120px) rotateY(360deg); } }
@keyframes pcx-flipb { 0%, 30% { transform: perspective(120px) rotateY(180deg); } 50%, 80% { transform: perspective(120px) rotateY(360deg); } 100% { transform: perspective(120px) rotateY(540deg); } }
.pcx-a-exams i { left: 15px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--c); animation: pcx-spin 3s linear infinite reverse; }
.pcx-a-exams b { left: 29px; top: 12px; width: 2px; height: 11px; border-radius: 2px; background: var(--c); transform-origin: 50% 100%; animation: pcx-spin 3s linear infinite; }
.pcx-a-papers i { top: 8px; width: 22px; height: 29px; border-radius: 3px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.pcx-a-papers i:nth-child(1) { left: 23px; } .pcx-a-papers i:nth-child(2) { left: 20px; top: 9px; }
.pcx-a-papers i:nth-child(3) { left: 17px; top: 10px; background: color-mix(in srgb, var(--c) 70%, #fff); animation: pcx-page 2.8s ease-in-out infinite; }
@keyframes pcx-page { 0%, 40% { transform: none; opacity: 1; } 75% { transform: translate(22px, -4px) rotate(12deg); opacity: 0; } 76% { transform: none; opacity: 0; } 100% { opacity: 1; } }
.pcx-a-video i { left: 11px; top: 8px; width: 38px; height: 26px; border-radius: 5px; border: 2px solid var(--c); }
.pcx-a-video b { left: 26px; top: 14px; width: 0; height: 0; border-left: 10px solid var(--c); border-top: 6px solid transparent; border-bottom: 6px solid transparent; animation: pcx-fire 2s ease-in-out infinite; }
.pcx-a-video em { left: 11px; top: 38px; width: 38px; height: 2px; border-radius: 2px; background: var(--c); transform-origin: left; animation: pcx-prog 3.6s linear infinite; }
@keyframes pcx-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pcx-a-desk i { bottom: 9px; width: 6px; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 75%, transparent); transform-origin: bottom; animation: pcx-grow 3.2s ease-out infinite; }
.pcx-a-desk i:nth-child(1) { left: 12px; height: 8px; } .pcx-a-desk i:nth-child(2) { left: 21px; height: 14px; animation-delay: .2s; }
.pcx-a-desk i:nth-child(3) { left: 30px; height: 20px; animation-delay: .4s; } .pcx-a-desk i:nth-child(4) { left: 39px; height: 27px; animation-delay: .6s; }
.pcx-a-desk b { left: 40px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px var(--c); animation: pcx-rise 3.2s ease-out infinite; animation-delay: .6s; }
@keyframes pcx-grow { 0% { transform: scaleY(0); } 35%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes pcx-rise { 0% { transform: translateY(20px); opacity: 0; } 35%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* the Topper Edition's view: its own gold kicker */
.pc-app.ed-topper .pcx-top .kick, .pc-app.ed-topper .pcx-kick { color: #fbbf24; }

/* ---- sizes (the window: the panel around the hero, the parts below it) ---- */
@media (max-width: 1180px) { .pcx-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px), ((max-height: 500px) and (pointer: coarse)) {
  .pcx-hero { --pcx-top: 124px; --pcx-gap: 8px; }
  .pc-plan .pcx-slot > .pc-planhead { padding: 16px 12px; }
  .pc-plan .pc-planmore { padding: 0 12px 16px; }
  .pcx-below { padding: 18px 12px; }
}
@media (max-width: 900px) and (min-height: 501px) { .pcx-hero { --pcx-bar: 56px; } }
@media (max-width: 640px) {
  .pcx-note { font-size: 14px; }
  .pcx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcx-stats div { padding: 11px 12px; }
  .pcx-doors { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pcx-door { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px; }
  .pcx-go { display: none; }
}
/* stillness: the system's reduced motion, and the page's own flag for it */
.pcx-still *, .pcx-still *::before, .pcx-still *::after { animation: none !important; transition: none !important; }
.pcx-still .pcx-spoke { opacity: .3; } .pcx-still .pcx-bridge { opacity: .3; }
.pcx-still .pcx-tr i { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pcx *, .pcx *::before, .pcx *::after { animation: none !important; transition: none !important; }
}
