/* CubeFem Pixel – Home page (v1.9.0). Everything is scoped to .px-hp so no other page changes. Uses the theme tokens (light/dark). */
.px-hp { --hp-when: #C4B5FD; --hp-if: #FDBA74; --hp-do: #86EFAC; }
.px-hp > * + * { margin-block-start: 3.5rem; }
.px-hp > .px-section-head + * { margin-block-start: 1.5rem; }
.px-hp .px-section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.px-hp-hero { position: relative; display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem; align-items: center; padding: 2.75rem; border: 4px solid var(--px-hero-border); border-radius: 12px; box-shadow: 8px 8px 0 var(--px-shadow); background: linear-gradient(135deg, rgba(248,162,210,.28), rgba(94,229,230,.28)), var(--px-card); overflow: hidden; }
.px-hp-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--px-card-border) 1.2px, transparent 1.2px); background-size: 18px 18px; opacity: .13; pointer-events: none; }
.px-hp-hero > * { position: relative; margin: 0 !important; max-width: none !important; }
.px-hp-hero__text > * + * { margin-block-start: 1.1rem; }
.px-hp-hero .px-hero-title { font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.18; }
.px-hp-lead { font-size: 1.02rem !important; max-width: 36rem; }
.px-hp-who { gap: .5rem 1.25rem !important; }
.px-hp-who p { margin: 0; font: 500 .85rem 'Inter', sans-serif; color: var(--px-body); }
.px-hp-who strong { color: var(--px-text); }

/* hero picture: a pixel mascot + a stack of Cubevate blocks */
.px-hp-stage { position: relative; min-height: 23rem; display: grid; place-items: center; }
.px-hp-mascot { position: absolute; top: .2rem; right: 1rem; width: 6.5rem; height: 6.5rem; padding: .5rem; background: var(--px-card); border: 4px solid var(--px-charcoal); border-radius: 12px; box-shadow: 5px 5px 0 var(--px-cyan); animation: px-hp-bob 2.4s steps(2) infinite; z-index: 2; }
.px-hp-mascot svg { width: 100%; height: 100%; display: block; }
.px-hp-blocks { display: flex; flex-direction: column; gap: .7rem; width: min(100%, 22rem); margin-top: 6.5rem; }
.px-hp-blk { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border: 3px solid var(--px-charcoal); border-radius: 8px; box-shadow: 4px 4px 0 var(--px-charcoal); font: 600 .86rem/1.3 'Inter', sans-serif; color: #1A1821; }
.px-hp-blk span { flex: 0 0 auto; padding: .15rem .45rem; background: rgba(255,255,255,.65); border: 2px solid var(--px-charcoal); border-radius: 4px; font: 700 .6rem 'Silkscreen', cursive; letter-spacing: .05em; }
.px-hp-when { background: var(--hp-when); }
.px-hp-if { background: var(--hp-if); margin-left: 1.1rem; }
.px-hp-do { background: var(--hp-do); margin-left: 2.2rem; }
.px-hp-pixels i { position: absolute; width: .9rem; height: .9rem; border: 2px solid var(--px-charcoal); animation: px-hp-bob 3s steps(2) infinite; }
.px-hp-pixels i:nth-child(1) { left: 4%; top: 8%; background: var(--px-cyan); }
.px-hp-pixels i:nth-child(2) { left: 14%; top: 82%; background: var(--px-pink); animation-delay: -.6s; }
.px-hp-pixels i:nth-child(3) { right: 6%; top: 52%; background: var(--px-pink); animation-delay: -1.2s; }
.px-hp-pixels i:nth-child(4) { right: 22%; bottom: 4%; background: var(--px-cyan); animation-delay: -.3s; }
.px-hp-pixels i:nth-child(5) { left: 40%; top: 2%; width: .6rem; height: .6rem; background: var(--px-cyan); animation-delay: -1.8s; }
.px-hp-pixels i:nth-child(6) { right: 0; top: 30%; width: .6rem; height: .6rem; background: var(--px-pink); animation-delay: -2.1s; }
@keyframes px-hp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.4rem); } }
@media (prefers-reduced-motion: reduce) { .px-hp-mascot, .px-hp-pixels i { animation: none; } }

/* ---------- Facts strip ---------- */
.px-hp-strip { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.px-hp-strip > * { margin: 0 !important; max-width: none !important; }
.px-hp-fact { text-align: center; padding: 1rem .75rem; background: var(--px-card); border: 3px solid var(--px-card-border); border-radius: 10px; box-shadow: 4px 4px 0 var(--px-shadow); }
.px-hp-fact > * { margin: 0 !important; }
.px-hp-big { font: 400 2rem/1.1 'Silkscreen', cursive; color: var(--px-pink-dark); }
html[data-theme="dark"] .px-hp-big { color: var(--px-pink); }
.px-hp-cap { margin-top: .35rem !important; font: 600 .78rem 'Inter', sans-serif; color: var(--px-meta); }

/* ---------- App cards ---------- */
.px-hp-apps { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; align-items: stretch; }
.px-hp-apps > * { margin: 0 !important; max-width: none !important; }
.px-hp-app.is-style-pixel-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.px-hp-app > * { max-width: none !important; margin-inline: 0 !important; }
.px-hp-shot { display: grid; place-items: center; min-height: 15rem; padding: 1.25rem; border-bottom: 4px solid var(--px-card-border); background: linear-gradient(135deg, rgba(248,162,210,.3), rgba(94,229,230,.3)); background-color: var(--px-card); }
.px-hp-shot img { font: 600 .8rem 'Inter', sans-serif; color: var(--px-meta); text-align: center; display: block; max-width: 100%; max-height: 14rem; height: auto; image-rendering: pixelated; filter: drop-shadow(5px 5px 0 rgba(26,24,33,.35)); }
.px-hp-blocks--sm { width: min(100%, 21rem); margin: 0; }
.px-hp-app__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.5rem; }
.px-hp-app__body > * { margin: 0 !important; max-width: none !important; }
.px-hp-app__body > * + * { margin-top: 1rem !important; }
.px-hp-app__body h3 { font-size: 1.6rem; color: var(--px-heading); }
.px-hp-app__body .px-status { margin-bottom: 0 !important; }
.px-hp-app__body .wp-block-buttons { margin-top: auto !important; padding-top: 1.1rem; }

/* ---------- What's new ---------- */
.px-hp-grid2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.px-hp-grid2 > * { margin: 0 !important; max-width: none !important; }
.px-hp-news > * + * { margin-top: .9rem !important; }
.px-hp-news > * { margin-inline: 0 !important; }
.px-hp-verrow { align-items: center; gap: .75rem !important; }
.px-hp-verrow > * { margin: 0 !important; }
.px-hp-ver { font: 400 1.6rem 'Silkscreen', cursive; color: var(--px-heading); }

/* ---------- How I build ---------- */
.px-hp-steps { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
.px-hp-steps > * { margin: 0 !important; max-width: none !important; }
.px-hp-steps .px-step::before { content: none !important; }
.px-hp-stepnum { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin: 0 0 .75rem !important; background: var(--px-pink); color: var(--px-charcoal); border: 3px solid var(--px-charcoal); border-radius: 6px; box-shadow: 3px 3px 0 var(--px-cyan); font: 700 .95rem 'Silkscreen', cursive; }

/* ---------- Start here ---------- */
.px-hp-links { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.px-hp-links > * { margin: 0 !important; max-width: none !important; }
.px-hp-links .is-style-pixel-card > * + * { margin-top: .9rem !important; }
.px-hp-links .is-style-pixel-card > * { margin-inline: 0 !important; }

/* ---------- Idea + community ---------- */
.px-hp-end { align-items: stretch; }
.px-hp-idea > * + * { margin-top: 1rem !important; }
.px-hp-idea > * { margin-inline: 0 !important; }
.px-hp-cta { display: flex; flex-direction: column; justify-content: center; }
.px-hp-cta > * { margin-inline: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.px-hp-hero { grid-template-columns: minmax(0, 1fr); padding: 1.75rem; gap: 1.5rem; }
	.px-hp-stage { min-height: 21rem; }
	.px-hp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.px-hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.px-hp-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.px-hp-apps, .px-hp-grid2 { grid-template-columns: minmax(0, 1fr); }
	.px-hp-hero { box-shadow: 5px 5px 0 var(--px-shadow); }
}
@media (max-width: 560px) {
	.px-hp-steps, .px-hp-links { grid-template-columns: minmax(0, 1fr); }
	.px-hp-mascot { width: 5rem; height: 5rem; right: .25rem; }
	.px-hp-blocks { margin-top: 6.5rem; }
}

/* ---------- Cubevas picture: a painted pixel head, palette and layers (drawn with code, no image file) ---------- */
.px-hp-skin { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.px-hp-head { width: 9.5rem; height: auto; display: block; filter: drop-shadow(5px 5px 0 rgba(26,24,33,.3)); }
.px-hp-panel { display: flex; flex-direction: column; gap: .45rem; width: 9.5rem; padding: .7rem; background: var(--px-card); border: 3px solid var(--px-charcoal); border-radius: 8px; box-shadow: 4px 4px 0 var(--px-charcoal); color: var(--px-text); }
html[data-theme="dark"] .px-hp-panel { border-color: var(--px-pink); box-shadow: 4px 4px 0 var(--px-cyan); }
.px-hp-panel b { font: 700 .58rem 'Silkscreen', cursive; text-transform: uppercase; letter-spacing: .06em; color: var(--px-pink-dark); }
html[data-theme="dark"] .px-hp-panel b { color: var(--px-pink); }
.px-hp-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin-bottom: .2rem; }
.px-hp-sw i { display: block; aspect-ratio: 1; border: 2px solid var(--px-charcoal); }
.px-hp-lay { display: flex; align-items: center; gap: .4rem; padding: .22rem .35rem; border: 2px solid var(--px-card-border); border-radius: 4px; font: 600 .72rem 'Inter', sans-serif; }
.px-hp-lay i { width: .55rem; height: .55rem; background: var(--px-cyan); border: 2px solid var(--px-charcoal); }
.px-hp-lay.on { background: rgba(248,162,210,.3); border-color: var(--px-pink-dark); }
.px-hp-panel em { align-self: flex-start; margin-top: .15rem; padding: .12rem .4rem; background: var(--px-cyan); color: var(--px-charcoal); border: 2px solid var(--px-charcoal); border-radius: 4px; font: 700 .56rem 'Silkscreen', cursive; font-style: normal; text-transform: uppercase; }
