/* TinkerPie Pro Plus page */
.pp-plus { --v: #8b5cf6; --v2: #c4b5fd; --g: #f5c451; --g2: #ff9f1c; --c: #34d3e0; --gr: #7be0a2; --r: #ff6b70; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px) 70px; color: #eceef3; }
.px-badge { display: inline-block; font: 800 12px/1 system-ui, sans-serif; letter-spacing: .14em; padding: 7px 12px; border-radius: 999px; color: #1b1400; background: linear-gradient(135deg, var(--g), var(--g2)); box-shadow: 0 4px 18px rgba(245, 196, 81, .35); }

/* hero */
.px-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 54px 0 30px; }
.px-hero::before { content: ''; position: absolute; inset: -60px -30% auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 75% 40%, rgba(139, 92, 246, .28), transparent 70%), radial-gradient(35% 45% at 20% 20%, rgba(245, 196, 81, .14), transparent 70%); }
.px-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; margin: 18px 0 16px; letter-spacing: -.02em; }
.px-hero h1 span { background: linear-gradient(90deg, var(--v2), var(--g)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-hero .lede { color: #c8cad4; font-size: 18px; max-width: 600px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.px-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(196, 181, 253, .35); background: rgba(139, 92, 246, .1); color: #ddd6fe; font-weight: 700; font-size: 13.5px; }
.px-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-btn { background: linear-gradient(135deg, var(--g), var(--g2)) !important; color: #1b1400 !important; font-weight: 800 !important; padding: 14px 26px !important; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(245, 196, 81, .35); text-decoration: none; }
.px-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.px-price { font-size: 24px; font-weight: 800; } .px-price small { font-size: 14px; color: #a9b2c3; font-weight: 500; }

/* stage: blackboard + Pi */
.px-stage { position: relative; height: 430px; }
.px-board { position: absolute; left: 0; right: 70px; top: 30px; height: 250px; border-radius: 22px; background: radial-gradient(120% 120% at 0 0, #1d3b2f, #0f241c); border: 10px solid #3b2a1a; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .45); overflow: hidden; }
.px-line { position: absolute; height: 3px; background: #e8f5e9; border-radius: 2px; transform-origin: 0 50%; opacity: .85; animation: px-draw 6s ease-in-out infinite; }
.px-line.l1 { left: 22%; top: 46%; width: 24%; } .px-line.l2 { left: 54%; top: 46%; width: 20%; animation-delay: .8s; } .px-line.l3 { left: 12%; top: 80%; width: 70%; height: 2px; opacity: .3; animation-delay: 1.6s; }
.px-node { position: absolute; top: 36%; padding: 6px 10px; border: 2px solid #e8f5e9; border-radius: 10px; color: #e8f5e9; font: 700 13px/1 'Comic Sans MS', 'Segoe Print', cursive; animation: px-pop 6s ease-in-out infinite; }
.px-node.n1 { left: 6%; } .px-node.n2 { left: 40%; animation-delay: .5s; } .px-node.n3 { left: 74%; animation-delay: 1.3s; }
@keyframes px-draw { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes px-pop { 0%, 5% { opacity: 0; transform: scale(.7); } 15%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.px-pi { position: absolute; right: 0; bottom: 0; width: 190px; height: 260px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.px-pi svg { width: 100%; height: 100%; }
.px-bubble { position: absolute; right: 120px; bottom: 300px; max-width: 230px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #fff; color: #111; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: px-bob 4s ease-in-out infinite; }
@keyframes px-bob { 50% { transform: translateY(-6px); } }
/* Pi animations (same as the classroom) */
.px-pi .blink { transform-box: fill-box; transform-origin: center; animation: px-blink 4s infinite; }
.px-pi .eq { transform-box: fill-box; transform-origin: 50% 100%; animation: px-eq .9s ease-in-out infinite; }
.px-pi .glow { animation: px-glow 2.2s ease-in-out infinite; }
.px-pi .floaty { animation: px-float 4s ease-in-out infinite; }
.px-pi .armR { transform-box: view-box; transform-origin: 170px 164px; animation: px-wave 2.4s ease-in-out infinite; }
@keyframes px-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes px-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes px-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes px-float { 50% { transform: translateY(-8px); } }
@keyframes px-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-150deg); } 45% { transform: rotate(-125deg); } 60% { transform: rotate(-150deg); } }

/* sections */
.px-sec { margin-top: 70px; }
.px-sec h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 6px; letter-spacing: -.01em; }
.px-sec .sub { color: #a9b2c3; margin: 0 0 22px; }
.pf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-card { position: relative; padding: 20px 18px; border-radius: 18px; border: 1px solid #262b36; background: linear-gradient(180deg, #171b24, #11141a); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pf-card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: var(--tint, rgba(139, 92, 246, .16)); filter: blur(10px); }
.pf-card:hover { transform: translateY(-4px); border-color: var(--edge, rgba(196, 181, 253, .55)); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.pf-card.gold { --tint: rgba(245, 196, 81, .16); --edge: rgba(245, 196, 81, .55); } .pf-card.cyan { --tint: rgba(52, 211, 224, .16); --edge: rgba(52, 211, 224, .55); }
.pf-card.green { --tint: rgba(123, 224, 162, .16); --edge: rgba(123, 224, 162, .55); } .pf-card.red { --tint: rgba(255, 107, 112, .16); --edge: rgba(255, 107, 112, .55); }
.pf-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 24px; background: rgba(255, 255, 255, .06); margin-bottom: 12px; }
.pf-card h3 { margin: 0 0 6px; font-size: 17px; } .pf-card p { margin: 0; color: #a9b2c3; font-size: 14.5px; line-height: 1.5; position: relative; z-index: 1; }

.px-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: s; position: relative; }
.px-steps::before { content: ''; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--v), var(--g)); opacity: .5; }
.px-steps li { position: relative; text-align: center; padding: 0 6px; }
.px-steps b { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #0b0d12; border: 2px solid var(--v2); color: #fff; font-size: 17px; position: relative; z-index: 1; }
.px-steps li:nth-child(even) b { border-color: var(--g); }
.px-steps h3 { margin: 0 0 4px; font-size: 16px; } .px-steps p { margin: 0; color: #a9b2c3; font-size: 13.5px; }

.px-table { border-radius: 16px; overflow: hidden; border: 1px solid #262b36; margin-top: 18px; }
.px-table .px-r { display: grid; grid-template-columns: 1fr 160px 180px; gap: 12px; padding: 12px 18px; border-top: 1px solid #1f2430; align-items: center; }
.px-table .px-r:first-child { border-top: 0; } .px-table .px-r span:nth-child(n+2) { text-align: center; }
.px-table .h { background: rgba(255, 255, 255, .04); font-weight: 800; } .px-table .p { background: rgba(245, 196, 81, .06); font-weight: 800; }
.px-table .gold, .px-table .px-r span:nth-child(3) { color: #f3e2b5; } .px-table .h .gold, .px-table .p .gold { color: var(--g); }

.px-get { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.px-plan, .px-box { padding: 26px; border-radius: 22px; border: 1px solid #262b36; background: #13151d; }
.px-plan { border: 1.5px solid rgba(245, 196, 81, .6); background: radial-gradient(120% 70% at 100% 0, rgba(139, 92, 246, .18), transparent 60%), #13151d; box-shadow: 0 20px 60px rgba(139, 92, 246, .12); }
.px-big { margin: 14px 0 2px; } .px-big b { font-size: 48px; } .px-big span { color: #9aa0ad; margin-left: 6px; }
.px-plan ul { padding-left: 20px; margin: 14px 0 0; } .px-plan li { margin: 7px 0; } .px-plan li::marker { color: var(--g); }
.muted { color: #9aa0ad; font-size: 14px; }
.px-box h3 { margin: 0 0 8px; font-size: 21px; }
.px-box label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.px-box input, .px-box textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid #3a4050; background: #0d0f15; color: #eef0f6; font: 15px/1.5 system-ui, sans-serif; }
.px-box textarea { min-height: 80px; resize: vertical; }
.px-cls { display: flex; flex-wrap: wrap; gap: 8px; } .px-cls button { padding: 8px 12px; border-radius: 10px; border: 1px solid #3a4050; background: transparent; color: #c8cad4; font-weight: 700; cursor: pointer; }
.px-cls button[aria-pressed="true"] { background: rgba(139, 92, 246, .25); border-color: var(--v2); color: #fff; }
.px-go { margin-top: 16px; width: 100%; padding: 14px; border: 0; border-radius: 12px; font: 800 16px system-ui, sans-serif; color: #1b1400; background: linear-gradient(135deg, var(--g), var(--g2)); cursor: pointer; }
.px-go:disabled { opacity: .6; cursor: wait; }
.px-msg { min-height: 20px; margin-top: 10px; font-size: 14px; } .px-msg.err { color: #ff6b70; } .px-msg.ok { color: #7be0a2; }
.px-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: #c8cad4; }
.px-agree input { width: 18px !important; height: 18px; margin-top: 2px; accent-color: var(--g); }
.px-state { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(196, 181, 253, .3); margin: 8px 0 14px; }
.px-state .i { font-size: 26px; }
.px-key { font: 700 18px ui-monospace, monospace; letter-spacing: .06em; padding: 10px 14px; border-radius: 10px; background: #0d0f15; border: 1px dashed var(--g); color: var(--g); display: inline-block; }
.px-lect { margin-top: 18px; } .px-lect h4 { margin: 18px 0 8px; color: var(--v2); }
.px-lect a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid #262b36; color: #eceef3; text-decoration: none; margin: 6px 0; }
.px-lect a:hover { border-color: var(--g); }
.px-faq { max-width: 1180px; } .px-faq details { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 2px; } .px-faq summary { cursor: pointer; font-weight: 700; } .px-faq p { color: #c8cad4; margin: 10px 0 0; }
.px-faq a { color: var(--g); }
#pp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483001; }

@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .px-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; } .px-steps::before { display: none; } }
@media (max-width: 860px) { .px-hero { grid-template-columns: 1fr; padding-top: 34px; } .px-stage { height: 360px; } .px-get { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } .px-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .px-table .px-r { grid-template-columns: 1fr 70px 90px; font-size: 13.5px; padding: 11px 12px; }
  .px-board { right: 40px; height: 210px; } .px-pi { width: 140px; height: 190px; } .px-bubble { right: 100px; bottom: 170px; max-width: 190px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .px-line, .px-node, .px-bubble, .px-pi * { animation: none !important; } .px-node { opacity: 1; } .px-line { transform: none; } }
html, body { overflow-x: clip; }
/* hero glow runs the full width of the screen, no boxed edges */
.px-hero::before { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); }
.px-open { display: block; text-align: center; text-decoration: none; margin: 4px 0 18px; }
.px-offer { margin: 10px 0 0; } .px-big .tp-was { font-size: .5em; vertical-align: middle; }
