/*
Theme Name: Michael's Plugin Shop
Theme URI: https://michaelferrari.net/
Author: Michael Ferrari
Author URI: https://michaelferrari.net/
Description: A dark, parallax storefront for selling WordPress plugins with WooCommerce. Floating plugin cards, a spotlight with screenshot frames, plugin sales pages built from a simple "Plugin details" box (features, Free vs Pro table, FAQ), and every homepage section editable in the Customizer.
Version: 1.0.2
Requires at least: 6.2
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: michaels-plugin-shop
Tags: e-commerce, dark, one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #07081a;
  --bg-2: #0c0e26;
  --bg-3: #12153a;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0ff;
  --muted: #a6abd6;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --accent3: #ff5fa2;
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 55%, var(--accent3) 110%);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 74px;
}
.mps-system-fonts { --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: #fff; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }
.container--text { width: min(760px, 100% - 48px); }
@media (max-width: 640px) { .container, .container--narrow, .container--text { width: calc(100% - 32px); } }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: 21px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 8s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.kicker:has(.dot)::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

.pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, var(--pc, var(--accent)), var(--accent3)); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; color: #fff; text-decoration: none; cursor: pointer; font: 700 15px/1 var(--body); letter-spacing: .01em; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s; background: transparent; white-space: nowrap; }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:hover .icon { transform: translateX(3px); }
.btn--grad { background: var(--grad); background-size: 160% 100%; box-shadow: 0 14px 36px -14px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--grad:hover { background-position: 100% 0; box-shadow: 0 20px 44px -14px rgba(34, 211, 238, .75); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .35s, border-color .35s, height .35s var(--ease); border-bottom: 1px solid transparent; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { background: rgba(7, 8, 26, .72); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); --header-h: 64px; }
.site-header__row { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand__name { line-height: 1.15; }
@media (max-width: 420px) { .brand { font-size: 17px; } }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9); }
.brand__mark .icon { width: 20px; height: 20px; }
.brand__logo { width: 38px; height: 38px; object-fit: contain; border-radius: 10px; }
.nav { margin-left: auto; }
.nav__list, .nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { display: block; padding: 9px 14px; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .25s, background .25s; }
.nav a:hover, .nav .current-menu-item > a { color: #fff; background: var(--panel-2); }
.nav .sub-menu { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .25s; }
.cart-link:hover { border-color: var(--line-2); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent3); color: #fff; font: 700 11px/19px var(--body); text-align: center; }
.cart-count.is-empty { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; place-items: center; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; }
.admin-bar .scroll-progress { top: 32px; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: rgba(7, 8, 26, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 14px 16px 22px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list, .nav ul { flex-direction: column; }
  .nav a { font-size: 18px; padding: 12px 14px; }
  .nav .sub-menu { display: block; padding-left: 14px; }
}

/* ==========================================================================
   Reveal + tilt
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero__bg, .cta__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid { position: absolute; inset: -20% -10%; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 55% at 60% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(60% 55% at 60% 45%, #000, transparent 75%); transform: perspective(900px) rotateX(55deg) translateY(-10%); transform-origin: 50% 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb--a { width: 560px; height: 560px; left: -140px; top: -120px; background: radial-gradient(circle, var(--accent), transparent 68%); }
.orb--b { width: 520px; height: 520px; right: -160px; top: 18%; background: radial-gradient(circle, var(--accent2), transparent 68%); opacity: .42; }
.orb--c { width: 420px; height: 420px; left: 40%; bottom: -220px; background: radial-gradient(circle, var(--accent3), transparent 68%); opacity: .35; }
.stars { position: absolute; inset: -30% 0 0; background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent), radial-gradient(1.2px 1.2px at 42% 72%, #fff, transparent), radial-gradient(1px 1px at 88% 64%, #fff, transparent), radial-gradient(1.6px 1.6px at 22% 88%, #fff, transparent), radial-gradient(1px 1px at 58% 34%, #fff, transparent), radial-gradient(1.3px 1.3px at 94% 28%, #fff, transparent), radial-gradient(1px 1px at 6% 52%, #fff, transparent); background-size: 520px 520px; opacity: .55; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
.hero__row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.035em; margin-bottom: 26px; }
.hero__text { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* the floating scene */
.hero__scene { position: relative; height: 520px; perspective: 1200px; }
.win, .float-card { position: absolute; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); backdrop-filter: blur(14px); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.win { padding: 16px 18px; }
.win__bar { display: flex; gap: 6px; margin-bottom: 12px; }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.win__bar i:first-child { background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win--code { width: 330px; top: 30px; left: 2%; font: 500 13.5px/1.75 ui-monospace, Consolas, monospace; color: #c9cdf2; animation: floatA 9s ease-in-out infinite; }
.win__code .c1 { color: var(--accent2); }
.win__code .c2 { color: #ffd479; }
.win__code .c3 { color: var(--accent3); }
.win--toggles { width: 240px; right: 0; bottom: 40px; display: grid; gap: 12px; animation: floatB 11s ease-in-out infinite; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tgl span { height: 8px; flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.tgl b { width: 36px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, .15); position: relative; }
.tgl b::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .3s; }
.tgl b.on { background: var(--grad); }
.tgl b.on::after { left: 19px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.float-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; min-width: 270px; max-width: 330px; text-decoration: none; }
.float-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, var(--pc), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.float-card__text { display: flex; flex-direction: column; line-height: 1.3; }
.float-card__text b { font-family: var(--display); font-size: 17px; }
.float-card__text small { color: var(--muted); font-size: 13px; }
.float-card--0 { top: 170px; left: 14%; z-index: 3; animation: floatB 8s ease-in-out infinite; }
.float-card--1 { top: 300px; left: 34%; z-index: 4; animation: floatA 10s ease-in-out infinite; }
.float-card--2 { top: auto; bottom: 6px; left: 0; z-index: 2; animation: floatA 12s ease-in-out infinite reverse; }
@keyframes floatA { 50% { margin-top: -14px; } }
@keyframes floatB { 50% { margin-top: 12px; } }
.pcard__icon { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--pc, var(--accent)) 22%, transparent); color: #fff; border: 1px solid color-mix(in srgb, var(--pc, var(--accent)) 45%, transparent); }
.pcard__icon img { width: 100%; height: 100%; object-fit: cover; }
.pcard__icon .icon { width: 26px; height: 26px; }
.pcard__icon--lg { width: 78px; height: 78px; border-radius: 22px; }
.pcard__icon--lg .icon { width: 36px; height: 36px; }

@media (max-width: 960px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__scene { height: 360px; margin-top: 10px; }
  .win--code { width: 280px; font-size: 12px; }
  .float-card { min-width: 230px; }
  .float-card--1 { left: 20%; top: 230px; }
  .float-card--2 { display: none; }
}
@media (max-width: 560px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
  .hero__scene { height: 300px; }
  .win--toggles { display: none; }
  .win--code { left: 0; top: 0; }
  .float-card--0 { left: 4%; top: 130px; }
  .float-card--1 { left: 12%; top: 210px; }
}

/* marquee */
.marquee { margin-top: 70px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 46px; list-style: none; margin: 0; padding: 20px 23px; }
.marquee__list li { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font: 600 16px/1 var(--display); color: var(--muted); }
.marquee__list .icon { color: var(--accent2); width: 16px; height: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-more { text-align: center; margin: 44px 0 0; }
.admin-hint { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); }
.page-intro { padding: 70px 0 0; }

/* stats */
.stats { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 44px 0; }
.stat b { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* plugin cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); overflow: hidden; transition: border-color .4s, box-shadow .4s var(--ease), transform .2s; isolation: isolate; }
.pcard::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--pc), transparent 65%); opacity: .18; z-index: -1; transition: opacity .4s, transform .6s var(--ease); }
.pcard:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--pc) 70%, transparent); }
.pcard:hover::before { opacity: .38; transform: scale(1.2); }
.pcard__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; }
.pcard__name { margin: 4px 0 0; font-size: 24px; }
.pcard__tag { color: var(--muted); margin: 0; font-size: 15.5px; flex: 1; }
.pcard__foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard__price { font: 700 19px/1 var(--display); }
.pcard__price del { opacity: .5; font-size: .8em; margin-right: 6px; }
.pcard__price ins { text-decoration: none; }
.pcard__free { font-size: 12.5px; color: var(--accent2); border: 1px solid color-mix(in srgb, var(--accent2) 40%, transparent); padding: 4px 10px; border-radius: 99px; }
.pcard__go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); transition: background .3s, transform .3s var(--ease); }
.pcard:hover .pcard__go { background: var(--pc); transform: rotate(-35deg); }

/* spotlight */
.spotlight { overflow: hidden; }
.spotlight__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, transparent), transparent 65%); filter: blur(30px); pointer-events: none; }
.spotlight__row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.spotlight__tag { font-size: 20px; color: var(--muted); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { color: var(--pc); margin-top: 3px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 18%, transparent); }
.ticks b { color: #fff; }
.ticks span { color: var(--muted); }
.spotlight__media { position: relative; min-height: 420px; }
.browser { position: relative; z-index: 2; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0f1230; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser__bar span { flex: 1; height: 18px; margin-left: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.browser img { width: 100%; }
.browser--back { position: absolute; z-index: 1; width: 78%; right: -10%; top: -14%; opacity: .55; filter: saturate(.7); }
@media (max-width: 960px) { .spotlight__row { grid-template-columns: 1fr; } .spotlight__media { min-height: 0; } .browser--back { display: none; } }

/* tiles */
.why { overflow: hidden; }
.why__lines { position: absolute; inset: -20% 0; background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(124, 92, 255, .05) 80px 81px); pointer-events: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.tile { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--accent2) 25%, transparent)); color: #fff; }
.tile__icon .icon { width: 24px; height: 24px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* quotes */
.quotes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.quote blockquote { margin: 0 0 20px; font-size: 18px; line-height: 1.55; }
.quote blockquote::before { content: "\201C"; display: block; font: 800 54px/0.6 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--muted); font-size: 14px; }

/* about */
.about { overflow: hidden; }
.about__row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about__photo { position: relative; }
.about__photo img, .about__placeholder { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; border: 1px solid var(--line-2); }
.about__placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); }
.about__placeholder .icon { width: 80px; height: 80px; color: var(--accent); opacity: .6; }
.about__ring { position: absolute; inset: -18px -18px auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent2) 45%, transparent); animation: spin 40s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.about__copy p { color: var(--muted); font-size: 18px; }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 860px) { .about__row { grid-template-columns: 1fr; gap: 40px; } .about__photo { max-width: 360px; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); transition: border-color .3s, background .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--panel-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 22px; font: 600 18px/1.35 var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-weight: 400; transition: transform .35s var(--ease), background .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--grad); }
.faq__a { padding: 0 22px 18px; color: var(--muted); }

/* closing cta */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 180px) 0; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(42px, 7vw, 88px); }
.cta p { color: var(--muted); font-size: 20px; margin-bottom: 34px; }

/* footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 30px; }
.site-footer__glow { position: absolute; left: 50%; bottom: -320px; width: 900px; height: 500px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .3), transparent 70%); filter: blur(30px); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { color: var(--muted); max-width: 360px; margin-top: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bar { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer__bar .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-widget__title, .site-footer__widgets h2, .site-footer__widgets h3 { font-size: 16px; letter-spacing: 0; margin: 0 0 12px; }
.site-footer__widgets { display: grid; gap: 24px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pages, posts
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 90px) 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, var(--bg-3), var(--bg)); }
.page-hero--sm { padding-bottom: 50px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); margin: 0; }
.page-hero .orb { opacity: .35; }
.page-hero__center { text-align: center; }
.big404 { font: 800 clamp(110px, 22vw, 240px)/.9 var(--display); margin: 0; }
.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content a { color: var(--accent2); }
.entry-content h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 1.6em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content code { font-family: ui-monospace, Consolas, monospace; background: var(--panel-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; overflow: auto; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-hero img { border-radius: var(--radius); margin-bottom: 36px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.post-card__img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; }
.post-card__body h2 { font-size: 24px; }
.post-card__body h2 a { text-decoration: none; }
.post-card__meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--grad); border-color: transparent; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=tel], input[type=number], textarea, select { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--accent2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 25%, transparent); }
.search-form { display: flex; gap: 8px; }
.comments { margin-top: 60px; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.mps-wc { position: relative; overflow: hidden; padding-top: var(--header-h); }
.wc-glow { position: absolute; width: 900px; height: 700px; left: 50%; margin-left: -450px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .28), transparent 65%); filter: blur(30px); pointer-events: none; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-products-header__title { font-size: clamp(40px, 6vw, 72px); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; }
.woocommerce ul.products li.product .pcard { height: 100%; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color: var(--muted); margin-bottom: 26px; }
.woocommerce span.onsale { background: var(--accent3); border-radius: 99px; min-height: 0; line-height: 1; padding: 8px 12px; }

/* single product = plugin sales page */
.mps-wc--product div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 54px; align-items: start; }
.mps-wc--product div.product > * { grid-column: 1 / -1; min-width: 0; }
.mps-wc--product div.product div.images { grid-column: 1; width: 100% !important; float: none !important; margin: 0 !important; }
.mps-wc--product div.product div.summary { grid-column: 2; width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); backdrop-filter: blur(10px); }
.mps-wc--product div.product .woocommerce-product-gallery__wrapper { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); }
.mps-wc--product div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px !important; }
.mps-wc--product div.product .flex-control-thumbs li { width: auto !important; }
.mps-wc--product div.product .flex-control-thumbs img { border-radius: 10px; border: 1px solid var(--line); opacity: .55; transition: opacity .3s; }
.mps-wc--product div.product .flex-control-thumbs img.flex-active, .mps-wc--product div.product .flex-control-thumbs img:hover { opacity: 1; }
.psum__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product_title { font-size: clamp(34px, 4vw, 48px); margin-bottom: 10px; }
.psum__tagline { color: var(--muted); font-size: 18px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #fff; font: 800 34px/1.1 var(--display); margin: 18px 0; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.woocommerce div.product form.cart .quantity, .woocommerce div.product .woocommerce-variation-add-to-cart .quantity { display: none !important; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 8px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 4px 0; color: var(--muted); }
.woocommerce div.product form.cart .single_variation_wrap { width: 100%; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) { background: var(--grad) !important; background-size: 160% 100% !important; color: #fff !important; border-radius: 999px !important; border: 0 !important; padding: 15px 26px !important; font: 700 15px/1 var(--body) !important; box-shadow: 0 14px 36px -14px rgba(124, 92, 255, .9); transition: transform .3s var(--ease), background-position .3s !important; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .wc-block-components-button:not(.is-link):hover { transform: translateY(-2px); background-position: 100% 0 !important; color: #fff !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; font-size: 17px !important; padding: 18px 30px !important; }
.psum__note { color: var(--muted); font-size: 13.5px; text-align: center; margin: 6px 0 18px; }
.psum__links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.psum__links .btn { flex: 1 1 auto; padding: 11px 16px; font-size: 14px; }
.psum__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.psum__specs div { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.psum__specs dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.psum__specs dd { margin: 2px 0 0; font-weight: 700; }
.psec { margin-top: 90px; }
.psec__title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 30px; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 15px/1 var(--display); background: var(--panel); }
.compare tbody th { font-weight: 500; }
.compare td { text-align: center; color: var(--muted); }
.compare thead th:not(:first-child) { text-align: center; }
.compare .is-pro { background: color-mix(in srgb, var(--accent) 10%, transparent); color: #fff; }
.compare thead .is-pro { background: var(--grad); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: #3ee6a1; }
.compare .no { color: rgba(255, 255, 255, .3); }
.woocommerce div.product .woocommerce-tabs { margin-top: 90px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; display: flex; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--muted); padding: 10px 18px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--grad); border-color: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 17.5px; max-width: 860px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel a { color: var(--accent2); }
.woocommerce .related.products { margin-top: 90px; }
.woocommerce .related.products > h2 { font-size: clamp(28px, 3.5vw, 40px); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { background: var(--panel-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: var(--radius-sm) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent2) !important; }
.woocommerce table.shop_table { border-color: var(--line) !important; border-radius: var(--radius-sm); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line) !important; }
.wc-block-components-sidebar-layout, .wc-block-cart, .wc-block-checkout { color: var(--text); }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { background: rgba(255, 255, 255, .05) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label { color: var(--muted) !important; }
.wc-block-components-totals-wrapper, .wc-block-components-order-summary, .wp-block-woocommerce-checkout-order-summary-block { border-color: var(--line) !important; }
.wc-block-components-panel__button, .wc-block-components-product-name { color: var(--text) !important; }
@media (max-width: 960px) {
  .mps-wc--product div.product { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .mps-wc--product div.product div.summary { grid-column: 1; position: static; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  [data-parallax] { translate: none !important; }
}
