/* PIO UI — public homepage (front-page.php). Shares the dashboard's palette. */

html {
  --pio-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pio-bg: #ffffff;
  --pio-bg-alt: #f5f7fb;
  --pio-surface: #ffffff;
  --pio-surface-3: #f1f3f8;
  --pio-border: #e4e7ee;
  --pio-border-strong: #d3d8e2;
  --pio-text: #101828;
  --pio-text-2: #344054;
  --pio-muted: #667085;
  --pio-primary: #3355f0;
  --pio-primary-hover: #2743cf;
  --pio-primary-soft: #edf1ff;
  --pio-on-primary: #ffffff;
  --pio-accent: #e6168f;
  --pio-success: #0e9f6e;
  --pio-success-soft: #e6f6ef;
  --pio-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
  --pio-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);
  --pio-ring: 0 0 0 3px rgba(51, 85, 240, 0.22);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --pio-bg: #0b0f19;
  --pio-bg-alt: #0f1422;
  --pio-surface: #131927;
  --pio-surface-3: #1c2436;
  --pio-border: #242d40;
  --pio-border-strong: #313c54;
  --pio-text: #e7ebf3;
  --pio-text-2: #c5cddb;
  --pio-muted: #8f9bb3;
  --pio-primary: #7f96ff;
  --pio-primary-hover: #9aacff;
  --pio-primary-soft: rgba(127, 150, 255, 0.14);
  --pio-on-primary: #0b0f19;
  --pio-accent: #ff5db4;
  --pio-success: #34d399;
  --pio-success-soft: rgba(52, 211, 153, 0.14);
  --pio-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --pio-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --pio-ring: 0 0 0 3px rgba(127, 150, 255, 0.3);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Base (scoped: the parent theme's stylesheet is still loaded) ---- */
html, body.pio-site { margin: 0 !important; }
body.pio-site {
  background: var(--pio-bg) !important;
  color: var(--pio-text-2);
  font-family: var(--pio-font) !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.pio-site *, .pio-site *::before, .pio-site *::after { box-sizing: border-box; }
.pio-site h1, .pio-site h2, .pio-site h3 {
  margin: 0;
  color: var(--pio-text);
  font-family: var(--pio-font);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-transform: none;
}
.pio-site h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.pio-site h2 { font-size: clamp(27px, 3.2vw, 38px); }
.pio-site h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
.pio-site p { margin: 0 0 16px; }
.pio-site a { color: var(--pio-primary); text-decoration: none; }
.pio-site a:hover { color: var(--pio-primary-hover); }
.pio-site ul, .pio-site ol { margin: 0; padding: 0; list-style: none; }
.pio-site li { margin: 0; }
.pio-site img { max-width: 100%; height: auto; }
.pio-site :focus-visible { outline: none; box-shadow: var(--pio-ring); border-radius: 8px; }

.pio-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pio-skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: var(--pio-primary); color: #fff !important; }
.pio-skip:focus { left: 12px; }

/* ---- Buttons ---- */
.pio-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 11px;
  font: 600 15px/1 var(--pio-font);
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}
.pio-btn-lg { min-height: 52px; padding: 0 24px; border-radius: 13px; font-size: 16px; }
.pio-site a.pio-btn-primary { background: var(--pio-primary); color: var(--pio-on-primary); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }
.pio-site a.pio-btn-primary:hover { background: var(--pio-primary-hover); color: var(--pio-on-primary); }
.pio-site a.pio-btn-outline { border-color: var(--pio-border-strong); background: var(--pio-surface); color: var(--pio-text); }
.pio-site a.pio-btn-outline:hover { background: var(--pio-surface-3); color: var(--pio-text); }
.pio-site a.pio-btn-ghost { color: var(--pio-text); }
.pio-site a.pio-btn-ghost:hover { background: var(--pio-surface-3); color: var(--pio-text); }
.pio-site a.pio-btn-light { background: #fff; color: #1b2a78; }
.pio-site a.pio-btn-light:hover { background: #eef1ff; color: #1b2a78; }
.pio-btn:active { transform: translateY(1px); }
.pio-icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 11px; background: transparent; color: var(--pio-text-2); font-size: 16px; cursor: pointer; }
.pio-icon-btn:hover { background: var(--pio-surface-3); color: var(--pio-text); }

/* ---- Header ---- */
.pio-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--pio-bg) 86%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.pio-header.pio-scrolled { border-bottom-color: var(--pio-border); }
.pio-header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.pio-site a.pio-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pio-text); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pio-logo img { width: 40px; height: 40px; object-fit: contain; }
.pio-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.pio-site .pio-nav > a { padding: 9px 12px; border-radius: 9px; color: var(--pio-text-2); font-size: 15px; font-weight: 500; }
.pio-site .pio-nav > a:hover { background: var(--pio-surface-3); color: var(--pio-text); }
.pio-nav-cta { display: none; }
.pio-header-actions { display: flex; align-items: center; gap: 6px; }
.pio-menu-btn { display: none; }

/* ---- Hero ---- */
.pio-hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.pio-hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px 360px at 82% 12%, color-mix(in srgb, var(--pio-accent) 16%, transparent), transparent 70%),
    radial-gradient(620px 420px at 64% 70%, color-mix(in srgb, var(--pio-primary) 18%, transparent), transparent 70%);
}
.pio-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 56px; }
.pio-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px !important; padding: 6px 12px; border-radius: 999px; background: var(--pio-primary-soft); color: var(--pio-primary); font-size: 13.5px; font-weight: 600; }
.pio-lead { max-width: 560px; margin: 20px 0 30px !important; color: var(--pio-text-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.pio-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pio-hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px !important; color: var(--pio-text-2); font-size: 14.5px; font-weight: 500; }
.pio-hero-points i { margin-right: 7px; color: var(--pio-success); font-size: 13px; }

/* Hero illustration */
.pio-hero-art { position: relative; display: flex; justify-content: center; min-height: 520px; }
.pio-phone { position: relative; width: 268px; padding: 12px; border-radius: 40px; background: #0d1326; box-shadow: var(--pio-shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08); transform: rotate(2deg); }
.pio-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 70px; height: 6px; margin-left: -35px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); z-index: 2; }
.pio-phone-screen { display: flex; flex-direction: column; gap: 12px; min-height: 496px; padding: 40px 16px 18px; border-radius: 30px; background: linear-gradient(165deg, #1b2a78 0%, #2337b4 46%, #6a2bb0 100%); color: #fff; }
.pio-phone-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; font-weight: 600; opacity: 0.95; }
.pio-phone-brand img { width: 64px; height: 64px; object-fit: contain; }
.pio-phone-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.96); color: #101828; }
.pio-phone-label { color: #667085; font-size: 11.5px; font-weight: 600; }
.pio-phone-input { padding: 9px 12px; border: 1px solid #d3d8e2; border-radius: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-align: center; }
.pio-phone-btn { padding: 10px; border-radius: 10px; background: #3355f0; color: #fff; font-size: 13.5px; font-weight: 700; text-align: center; }
.pio-phone-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pio-phone-pay span { padding: 9px; border-radius: 10px; background: #edf1ff; color: #2743cf; font-size: 13px; font-weight: 700; text-align: center; }
.pio-phone-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.pio-phone-rates div { padding: 9px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); text-align: center; }
.pio-phone-rates b { display: block; font-size: 15px; }
.pio-phone-rates span { font-size: 10.5px; opacity: 0.85; }

.pio-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--pio-border); border-radius: 16px; background: var(--pio-surface); box-shadow: var(--pio-shadow-lg); }
.pio-float small { display: block; color: var(--pio-muted); font-size: 12px; font-weight: 500; line-height: 1.3; }
.pio-float b { display: block; color: var(--pio-text); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pio-float-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--pio-success-soft); color: var(--pio-success); }
.pio-float-icon.alt { background: var(--pio-primary-soft); color: var(--pio-primary); }
.pio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pio-success); box-shadow: 0 0 0 5px var(--pio-success-soft); }
.pio-float-a { top: 56px; left: -6px; }
.pio-float-b { bottom: 96px; right: -10px; }
.pio-float-c { bottom: 18px; left: 22px; }

/* ---- Sections ---- */
.pio-section { padding: 88px 0; }
.pio-section-alt { background: var(--pio-bg-alt); }
.pio-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.pio-section-head.pio-left { margin: 0; text-align: left; }
.pio-section-head p:last-child { margin: 14px 0 0; color: var(--pio-text-2); font-size: 17px; }
.pio-kicker { margin: 0 0 12px !important; color: var(--pio-primary); font-size: 13.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.pio-fineprint { color: var(--pio-muted); font-size: 14px; }

.pio-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.pio-split h2 { margin-bottom: 18px; }
.pio-split .pio-btn { margin-top: 8px; }

.pio-checklist { display: grid; gap: 14px; }
.pio-checklist li { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--pio-border); border-radius: 16px; background: var(--pio-surface); }
.pio-checklist i { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: var(--pio-primary-soft); color: var(--pio-primary); font-size: 16px; }
.pio-checklist b { display: block; color: var(--pio-text); font-size: 16px; font-weight: 600; }
.pio-checklist span { display: block; margin-top: 2px; color: var(--pio-text-2); font-size: 14.5px; line-height: 1.5; }

.pio-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pio-feature { padding: 24px; border: 1px solid var(--pio-border); border-radius: 18px; background: var(--pio-surface); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.pio-feature:hover { border-color: var(--pio-border-strong); box-shadow: var(--pio-shadow-sm); transform: translateY(-2px); }
.pio-feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--pio-primary-soft); color: var(--pio-primary); font-size: 17px; }
.pio-feature h3 { margin-bottom: 8px; font-size: 17px; }
.pio-feature p { margin: 0; color: var(--pio-text-2); font-size: 14.5px; line-height: 1.55; }

.pio-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.pio-steps li { position: relative; padding-top: 4px; }
.pio-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--pio-primary); color: var(--pio-on-primary); font-size: 16px; font-weight: 700; }
.pio-steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 52px; right: -12px; height: 2px; background: var(--pio-border-strong); }
.pio-steps h3 { margin-bottom: 8px; font-size: 17px; }
.pio-steps p { margin: 0; color: var(--pio-text-2); font-size: 14.5px; line-height: 1.55; }

/* ---- Pricing ---- */
.pio-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pio-plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border: 1px solid var(--pio-border); border-radius: 20px; background: var(--pio-surface); }
.pio-plan-featured { border-color: var(--pio-primary); box-shadow: 0 0 0 1px var(--pio-primary), var(--pio-shadow-lg); }
.pio-plan-tag { position: absolute; top: -12px; left: 22px; padding: 4px 11px; border-radius: 999px; background: var(--pio-primary); color: var(--pio-on-primary); font-size: 12px; font-weight: 700; }
.pio-plan h3 { font-size: 17px; }
.pio-price { margin: 14px 0 18px !important; }
.pio-price b { display: block; color: var(--pio-text); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.pio-price span { display: block; margin-top: 4px; color: var(--pio-muted); font-size: 13.5px; }
.pio-plan ul { display: grid; gap: 9px; margin-bottom: 18px; }
.pio-plan li { display: flex; gap: 10px; color: var(--pio-text-2); font-size: 14.5px; line-height: 1.45; }
.pio-plan li i { margin-top: 4px; color: var(--pio-success); font-size: 12px; }
.pio-plan-note { margin: auto 0 16px !important; padding-top: 4px; color: var(--pio-muted); font-size: 12.5px; line-height: 1.5; }
.pio-plan .pio-btn { width: 100%; }

/* ---- Vendo ---- */
.pio-ticks { display: grid; gap: 10px; margin: 6px 0 24px !important; }
.pio-ticks li { display: flex; gap: 12px; color: var(--pio-text-2); font-size: 16px; }
.pio-ticks i { margin-top: 6px; color: var(--pio-success); font-size: 13px; }
.pio-vendo-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.pio-vendo-box { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 230px; padding: 26px 22px 34px; border-radius: 22px; background: linear-gradient(170deg, #1b2a78, #141a3c); box-shadow: var(--pio-shadow-lg); }
.pio-vendo-screen { width: 100%; padding: 16px 10px; border-radius: 12px; background: #0b1020; color: #7df0c3; font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; text-align: center; }
.pio-vendo-screen b { color: #fff; font-weight: 700; }
.pio-vendo-slot { width: 64px; height: 12px; border-radius: 6px; background: #0b1020; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18); }
.pio-vendo-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--pio-accent); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); }
.pio-float-d { bottom: 28px; right: 6%; }

/* ---- Reseller ---- */
.pio-reseller {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px;
  padding: 56px; border-radius: 28px; color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(560px 380px at 8% 0%, rgba(230, 22, 143, 0.36), transparent 62%),
    radial-gradient(520px 400px at 100% 100%, rgba(38, 198, 240, 0.28), transparent 60%),
    linear-gradient(150deg, #141a3c 0%, #1b2a78 55%, #2337b4 100%);
}
.pio-reseller h2 { margin-bottom: 16px; color: #fff; }
.pio-reseller .pio-kicker { color: #b9c6ff; }
.pio-reseller p { font-size: 17px; }
.pio-reseller ul { display: grid; gap: 12px; }
.pio-reseller li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 15px; font-weight: 500; }
.pio-reseller li i { width: 20px; text-align: center; color: #b9c6ff; }

/* ---- FAQ ---- */
.pio-faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.pio-faq { display: grid; gap: 10px; }
.pio-faq details { border: 1px solid var(--pio-border); border-radius: 14px; background: var(--pio-surface); }
.pio-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--pio-text); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.pio-faq summary::-webkit-details-marker { display: none; }
.pio-faq summary i { color: var(--pio-muted); font-size: 13px; transition: transform 0.18s ease; }
.pio-faq details[open] summary i { transform: rotate(180deg); }
.pio-faq details p { margin: 0; padding: 0 20px 18px; color: var(--pio-text-2); font-size: 15.5px; }

/* ---- CTA + footer ---- */
.pio-cta { text-align: center; }
.pio-cta p { margin: 14px 0 28px; font-size: 18px; }
.pio-cta .pio-hero-cta { justify-content: center; }

.pio-footer { padding: 56px 0 28px; border-top: 1px solid var(--pio-border); background: var(--pio-bg-alt); font-size: 15px; }
.pio-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.pio-footer p { margin: 14px 0 0; max-width: 300px; color: var(--pio-text-2); }
.pio-footer h3 { margin-bottom: 14px; font-size: 14px; letter-spacing: 0; }
.pio-footer-grid > div > a:not(.pio-logo), .pio-footer-grid > div > span { display: block; padding: 5px 0; color: var(--pio-text-2); }
.pio-footer-grid > div > a:not(.pio-logo):hover { color: var(--pio-primary); }
.pio-footer i { width: 18px; margin-right: 6px; color: var(--pio-muted); text-align: center; }
.pio-footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--pio-border); color: var(--pio-muted); font-size: 13.5px; }

/* ---- Tablet ---- */
@media (max-width: 1080px) {
  .pio-feature-grid, .pio-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pio-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .pio-steps li::after { display: none; }
  .pio-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Phone ---- */
@media (max-width: 899.98px) {
  html { scroll-padding-top: 72px; }
  .pio-wrap { padding: 0 20px; }
  .pio-header-inner { height: 60px; gap: 12px; }
  .pio-header-actions { margin-left: auto; }
  .pio-hide-sm { display: none !important; }
  .pio-menu-btn { display: inline-grid; }
  .pio-nav {
    /* absolute, not fixed: the header's backdrop-filter makes it the containing block */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); z-index: 99;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--pio-bg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow-y: auto;
  }
  .pio-menu-open .pio-nav { transform: none; opacity: 1; visibility: visible; }
  body.pio-menu-open { overflow: hidden; }
  .pio-site .pio-nav > a { padding: 15px 12px; border-radius: 12px; color: var(--pio-text); font-size: 18px; font-weight: 600; }
  .pio-nav-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
  .pio-nav-cta .pio-btn { min-height: 50px; font-size: 16px; }
  .pio-site .pio-nav-cta a.pio-btn-ghost { border-color: var(--pio-border-strong); }

  .pio-hero { padding: 36px 0 56px; }
  .pio-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .pio-hero-cta .pio-btn { flex: 1 1 100%; }
  .pio-hero-points { flex-direction: column; gap: 8px; }
  .pio-hero-art { min-height: 0; padding: 0 8px; }
  .pio-phone { width: 244px; transform: none; }
  .pio-phone-screen { min-height: 452px; }
  .pio-float { padding: 10px 13px; border-radius: 14px; }
  .pio-float b { font-size: 16px; }
  .pio-float-a { top: 40px; left: 0; }
  .pio-float-b { bottom: 110px; right: 0; }
  .pio-float-c { bottom: 8px; left: 8px; }

  .pio-section { padding: 60px 0; }
  .pio-section-head { margin-bottom: 32px; text-align: left; }
  .pio-split, .pio-faq-wrap, .pio-reseller { grid-template-columns: 1fr; gap: 32px; }
  .pio-split-rev > :first-child { order: 2; }
  .pio-feature-grid, .pio-plans, .pio-steps { grid-template-columns: 1fr; gap: 14px; }
  .pio-feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; }
  .pio-feature-icon { grid-row: span 2; margin: 0; }
  .pio-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .pio-step-num { grid-row: span 2; margin: 0; }
  .pio-plan-featured { margin-top: 8px; }
  .pio-reseller { padding: 32px 22px; border-radius: 22px; }
  .pio-reseller .pio-btn { width: 100%; }
  .pio-split .pio-btn, .pio-cta .pio-btn { width: 100%; min-height: 50px; }
  .pio-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Form fields in dark mode (public site) ----------
   Older theme / WooCommerce / plugin rules keep fields white while the dark theme
   turns their text light; give every field the dark surface and readable text. */
html[data-theme="dark"] { color-scheme: dark; } /* native parts: select arrows, date pickers, scrollbars */
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]),
html[data-theme="dark"] body select,
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body .select2-container--default .select2-selection--single,
html[data-theme="dark"] body .select2-container--default .select2-selection--multiple {
  background-color: var(--pio-surface) !important;
  color: var(--pio-text) !important;
  border-color: var(--pio-border-strong) !important;
}
html[data-theme="dark"] body .select2-container--default .select2-selection__rendered { color: var(--pio-text) !important; }
html[data-theme="dark"] body input::placeholder, html[data-theme="dark"] body textarea::placeholder { color: var(--pio-muted) !important; opacity: 1; }
html[data-theme="dark"] body select option { background-color: var(--pio-surface); color: var(--pio-text); }
html[data-theme="dark"] body input:focus, html[data-theme="dark"] body select:focus, html[data-theme="dark"] body textarea:focus { border-color: var(--pio-primary) !important; }
html[data-theme="dark"] body input:-webkit-autofill,
html[data-theme="dark"] body input:-webkit-autofill:hover,
html[data-theme="dark"] body input:-webkit-autofill:focus { -webkit-text-fill-color: var(--pio-text); box-shadow: 0 0 0 1000px var(--pio-surface) inset !important; caret-color: var(--pio-text); }
html[data-theme="dark"] body input[disabled], html[data-theme="dark"] body select[disabled], html[data-theme="dark"] body textarea[disabled] { opacity: .6; }
/* labels inside the login / register popup and Woo forms */
html[data-theme="dark"] body .xoo-el-form-container, html[data-theme="dark"] body .xoo-el-popup .xoo-el-srcont { background-color: var(--pio-surface); color: var(--pio-text); }
html[data-theme="dark"] body .xoo-aff-group .xoo-aff-input-icon { background-color: var(--pio-surface-2, var(--pio-bg-alt)) !important; color: var(--pio-muted) !important; border-color: var(--pio-border-strong) !important; }
html[data-theme="dark"] body .show-password-input, html[data-theme="dark"] body .show-password-input::after,
html[data-theme="dark"] body .xoo-aff-pw-toggle, html[data-theme="dark"] body .xoo-aff-pw-toggle * { color: var(--pio-muted) !important; }
html[data-theme="dark"] body .show-password-input:hover::after { color: var(--pio-text) !important; }
/* Payment method description box (checkout and "pay for order"): WooCommerce paints it light grey */
html[data-theme="dark"] body #payment div.payment_box,
html[data-theme="dark"] body .woocommerce #payment div.payment_box,
html[data-theme="dark"] body .wc_payment_method .payment_box {
  background-color: var(--pio-bg-alt) !important;
  color: var(--pio-text-2, var(--pio-text)) !important;
  border: 1px solid var(--pio-border) !important;
  border-radius: 10px;
}
html[data-theme="dark"] body #payment div.payment_box p,
html[data-theme="dark"] body #payment div.payment_box label { color: var(--pio-text-2, var(--pio-text)) !important; }
html[data-theme="dark"] body #payment div.payment_box::before { border-bottom-color: var(--pio-bg-alt) !important; }
html[data-theme="dark"] body #payment,
html[data-theme="dark"] body .woocommerce-checkout #payment { background-color: transparent; }

/* ===================== Homepage motion & hover ===================== */
/* Scroll reveal: the homepage script adds .pio-reveal (hidden) and then .is-in. --d staggers siblings. */
.pio-js .pio-reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.pio-js .pio-reveal.is-in { opacity: 1; translate: 0 0; }

/* Hero entrance and gentle floating */
@keyframes pio-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes pio-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pio-bob-sm { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.pio-hero-copy > * { animation: pio-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.pio-hero-copy > *:nth-child(2) { animation-delay: .08s; } .pio-hero-copy > *:nth-child(3) { animation-delay: .16s; }
.pio-hero-copy > *:nth-child(4) { animation-delay: .24s; } .pio-hero-copy > *:nth-child(5) { animation-delay: .32s; }
.pio-hero-art { animation: pio-rise .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.pio-hero-art .pio-phone { animation: pio-bob 6s ease-in-out infinite; transition: rotate .4s ease, scale .4s ease; }
.pio-hero-art:hover .pio-phone { rotate: -2deg; scale: 1.02; }
.pio-float { animation: pio-bob-sm 5s ease-in-out infinite; transition: box-shadow .25s ease, scale .25s ease; }
.pio-float-b { animation-delay: -1.6s; } .pio-float-c { animation-delay: -3.1s; } .pio-float-d { animation-delay: -2.2s; }
.pio-float:hover { scale: 1.05; box-shadow: var(--pio-shadow-lg); }
.pio-float-icon { transition: rotate .3s ease; }
.pio-float:hover .pio-float-icon { rotate: -10deg; }

/* Vendo illustration: a coin drops into the slot, the screen and button pulse */
.pio-vendo-box { position: relative; transition: translate .3s ease, box-shadow .3s ease; }
.pio-vendo-art:hover .pio-vendo-box { translate: 0 -4px; }
.pio-vendo-slot { position: relative; }
.pio-vendo-slot::before { content: ""; position: absolute; left: 50%; top: -34px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe58a, #f5b014 60%, #c98500); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
  animation: pio-coin 3.2s ease-in infinite; }
@keyframes pio-coin { 0%, 55% { opacity: 0; translate: 0 -22px; scale: 1; } 62% { opacity: 1; translate: 0 -22px; } 82% { opacity: 1; translate: 0 18px; scale: 1 .25; } 84%, 100% { opacity: 0; translate: 0 18px; scale: 1 .2; } }
.pio-vendo-screen b { display: inline-block; animation: pio-screen 3.2s ease-in-out infinite; }
@keyframes pio-screen { 0%, 80% { color: #fff; text-shadow: none; } 88% { color: #7df0c3; text-shadow: 0 0 10px rgba(125,240,195,.7); } 100% { color: #fff; } }
.pio-vendo-btn { transition: translate .15s ease, box-shadow .15s ease; cursor: default; }
.pio-vendo-art:hover .pio-vendo-btn { translate: 0 3px; box-shadow: 0 3px 0 rgba(0,0,0,.3); }

/* Buttons: lift with a soft shadow; arrow-like nudge on primary */
.pio-site .pio-btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, translate .15s ease, box-shadow .2s ease; }
.pio-site a.pio-btn:hover { translate: 0 -2px; box-shadow: 0 10px 22px rgba(16,24,40,.14); }
.pio-site a.pio-btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--pio-primary) 40%, transparent); }
.pio-site a.pio-btn:active { translate: 0 0; box-shadow: none; }

/* Cards and lists */
.pio-feature { transition: border-color .2s ease, box-shadow .25s ease, translate .25s ease; }
.pio-feature:hover { translate: 0 -4px; transform: none; border-color: color-mix(in srgb, var(--pio-primary) 35%, var(--pio-border)); box-shadow: 0 16px 34px rgba(16,24,40,.10); }
.pio-feature-icon { transition: background-color .25s ease, color .25s ease, scale .25s ease, rotate .25s ease; }
.pio-feature:hover .pio-feature-icon { background: var(--pio-primary); color: var(--pio-on-primary); scale: 1.08; rotate: -6deg; }
.pio-checklist li { transition: translate .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pio-checklist li:hover { translate: 6px 0; border-color: color-mix(in srgb, var(--pio-primary) 35%, var(--pio-border)); box-shadow: var(--pio-shadow-sm); }
.pio-checklist i { transition: background-color .2s ease, color .2s ease; }
.pio-checklist li:hover i { background: var(--pio-primary); color: var(--pio-on-primary); }
.pio-step-num { transition: scale .25s ease, box-shadow .25s ease; }
.pio-steps li:hover .pio-step-num { scale: 1.12; box-shadow: 0 0 0 6px var(--pio-primary-soft); }
.pio-steps li h3 { transition: color .2s ease; }
.pio-steps li:hover h3 { color: var(--pio-primary); }
.pio-plan { transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pio-plan:hover { translate: 0 -6px; border-color: color-mix(in srgb, var(--pio-primary) 45%, var(--pio-border)); box-shadow: 0 22px 44px rgba(16,24,40,.14); }
.pio-ticks li, .pio-plan li { transition: translate .2s ease; }
.pio-ticks li:hover, .pio-plan li:hover { translate: 4px 0; }
.pio-reseller li { transition: background-color .2s ease, translate .2s ease; }
.pio-reseller li:hover { background: rgba(255,255,255,.14); translate: 4px 0; }
.pio-faq details { transition: border-color .2s ease, box-shadow .2s ease; }
.pio-faq details:hover { border-color: color-mix(in srgb, var(--pio-primary) 35%, var(--pio-border)); }
.pio-faq details[open] { box-shadow: var(--pio-shadow-sm); }
.pio-faq summary { transition: color .15s ease; }
.pio-faq summary:hover { color: var(--pio-primary); }
.pio-faq details[open] p { animation: pio-rise .3s ease both; }

/* Header nav: underline grows on hover */
.pio-site .pio-nav > a { position: relative; }
.pio-site .pio-nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--pio-primary); scale: 0 1; transition: scale .2s ease; }
.pio-site .pio-nav > a:hover::after { scale: 1 1; }

@media (prefers-reduced-motion: reduce) {
  .pio-js .pio-reveal { opacity: 1; translate: none; transition: none; }
  .pio-hero-copy > *, .pio-hero-art, .pio-hero-art .pio-phone, .pio-float, .pio-vendo-slot::before, .pio-vendo-screen b, .pio-faq details[open] p { animation: none !important; }
  .pio-vendo-slot::before { display: none; }
  .pio-site *, .pio-site *::after { transition-duration: .01s !important; }
}

/* Free EAP hosting: the reseller panel's background, full width (edge to edge) */
.pio-grad-section {
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(760px 460px at 6% 0%, rgba(230, 22, 143, 0.36), transparent 62%),
    radial-gradient(720px 480px at 100% 100%, rgba(38, 198, 240, 0.28), transparent 60%),
    linear-gradient(150deg, #141a3c 0%, #1b2a78 55%, #2337b4 100%);
}
.pio-grad-panel { color: rgba(255, 255, 255, 0.82); }
.pio-grad-panel h2 { color: #fff; }
.pio-grad-panel .pio-kicker { color: #b9c6ff; }
.pio-grad-panel p { color: rgba(255, 255, 255, 0.82); }
.pio-grad-panel .pio-fineprint { color: rgba(255, 255, 255, 0.62); }
.pio-grad-panel .pio-checklist li { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.pio-grad-panel .pio-checklist li:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.pio-grad-panel .pio-checklist i { background: rgba(255, 255, 255, 0.12); color: #b9c6ff; }
.pio-grad-panel .pio-checklist li:hover i { background: #fff; color: #1b2a78; }
.pio-grad-panel .pio-checklist b { color: #fff; }
.pio-grad-panel .pio-checklist span { color: rgba(255, 255, 255, 0.78); }

/* FAQ: the parent theme gives <summary> a 20px bottom margin, which left empty space under closed questions */
.pio-faq summary { margin: 0 !important; }

/* Pricing buttons: filled "soft" buttons on the paid plans */
.pio-site a.pio-btn-soft { border: 1px solid color-mix(in srgb, var(--pio-primary) 30%, transparent); background: var(--pio-primary-soft); color: var(--pio-primary); }
.pio-site a.pio-btn-soft:hover { border-color: var(--pio-primary); background: var(--pio-primary); color: var(--pio-on-primary); }

/* "Sign up free" on the featured plan: a light running round the border, a sweeping shine and a soft pulsing glow */
@property --pio-shine-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.pio-site a.pio-btn-shine {
  position: relative; overflow: hidden; isolation: isolate;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--pio-primary), var(--pio-primary)) padding-box,
    conic-gradient(from var(--pio-shine-a), transparent 0deg 250deg, #fff 300deg, transparent 340deg) border-box,
    linear-gradient(color-mix(in srgb, var(--pio-primary) 70%, #fff), color-mix(in srgb, var(--pio-primary) 70%, #fff)) border-box;
  animation: pio-shine-run 2.6s linear infinite, pio-shine-glow 2.6s ease-in-out infinite;
}
.pio-site a.pio-btn-shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  transform: skewX(-20deg); animation: pio-shine-sweep 2.6s ease-in-out infinite;
}
.pio-site a.pio-btn-shine:hover { background:
    linear-gradient(var(--pio-primary-hover), var(--pio-primary-hover)) padding-box,
    conic-gradient(from var(--pio-shine-a), transparent 0deg 250deg, #fff 300deg, transparent 340deg) border-box,
    linear-gradient(color-mix(in srgb, var(--pio-primary) 70%, #fff), color-mix(in srgb, var(--pio-primary) 70%, #fff)) border-box; }
@keyframes pio-shine-run { to { --pio-shine-a: 360deg; } }
@keyframes pio-shine-sweep { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes pio-shine-glow { 0%, 100% { box-shadow: 0 8px 20px color-mix(in srgb, var(--pio-primary) 35%, transparent); } 50% { box-shadow: 0 10px 28px color-mix(in srgb, var(--pio-primary) 60%, transparent), 0 0 0 5px color-mix(in srgb, var(--pio-primary) 16%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pio-site a.pio-btn-shine, .pio-site a.pio-btn-shine::after { animation: none; } }

/* ---------- Hero phone demo (front-page.php script) ---------- */
.pio-phone-screen { position: relative; overflow: hidden; }
.pio-phone-brand { position: relative; }
.pio-phone-brand img { position: relative; z-index: 1; }
.pio-phone-waves { position: absolute; top: 32px; left: 50%; width: 0; height: 0; pointer-events: none; }
.pio-phone-waves i { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(185, 198, 255, .55); opacity: 0; animation: pio-wave 3s ease-out infinite; }
.pio-phone-waves i:nth-child(2) { animation-delay: 1s; } .pio-phone-waves i:nth-child(3) { animation-delay: 2s; }
@keyframes pio-wave { 0% { scale: .9; opacity: .7; } 100% { scale: 2.4; opacity: 0; } }
.pio-phone-input { min-height: 21px; transition: border-color .2s ease, box-shadow .2s ease; }
.pio-phone-input.typing { border-color: #3355f0; box-shadow: 0 0 0 3px rgba(51,85,240,.18); }
.pio-phone-input.typing::after { content: ""; display: inline-block; width: 2px; height: 15px; margin-left: 3px; vertical-align: -2px; background: #3355f0; animation: pio-caret 1s steps(1) infinite; }
@keyframes pio-caret { 50% { opacity: 0; } }
.pio-phone-btn, .pio-phone-pay span { transition: background-color .25s ease, color .25s ease, scale .15s ease; }
.pio-phone-btn.press, .pio-phone-pay span.press { scale: .96; filter: brightness(.95); }
.pio-phone-btn.ok { background: #12b76a; }
.pio-phone-pay span.press { background: #007dfe; color: #fff; }
.pio-phone-pay span.ok { background: #12b76a; color: #fff; }
.pio-phone-rates div { transition: background-color .3s ease, box-shadow .3s ease, scale .3s ease; }
.pio-phone-rates div.on { background: rgba(255,255,255,.3); box-shadow: 0 0 0 2px rgba(255,255,255,.65); scale: 1.05; }
.pio-phone-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px 14px;
  border-radius: 20px; background: #fff; color: #101828; text-align: center; box-shadow: 0 -10px 30px rgba(0,0,0,.25);
  translate: 0 120%; transition: translate .45s cubic-bezier(.2,.8,.2,1);
}
.pio-phone-sheet.show { translate: 0 0; }
.pio-phone-sheet b { font-size: 14px; }
.pio-phone-check { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 2px; border-radius: 50%; background: #12b76a; color: #fff; font-size: 15px; }
.pio-phone-sheet.show .pio-phone-check { animation: pio-pop .4s .2s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pio-pop { from { scale: 0; } to { scale: 1; } }
.pio-phone-left { color: #667085; font-size: 11.5px; font-weight: 600; }
.pio-phone-left em { color: #101828; font-style: normal; font-variant-numeric: tabular-nums; }
.pio-phone-bar { width: 100%; height: 6px; margin-top: 6px; border-radius: 3px; background: #edf1ff; overflow: hidden; }
.pio-phone-bar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #3355f0, #7f96ff); }
.pio-phone-sheet.show .pio-phone-bar i { animation: pio-drain 3s linear forwards; }
@keyframes pio-drain { from { width: 100%; } to { width: 88%; } }
.pio-float.pio-bump { scale: 1.06; box-shadow: var(--pio-shadow-lg); }
.pio-float.pio-bump .pio-float-icon { rotate: -10deg; }
@media (prefers-reduced-motion: reduce) { .pio-phone-waves { display: none; } .pio-phone-sheet { transition: none; } }
/* Hero phone demo: Insert coins step */
.pio-phone-screen { gap: 10px; }
.pio-phone-brand { margin-bottom: 0; }
.pio-phone-coin { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 45%, #ea580c); color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 1px rgba(120,53,15,.4);
  transition: scale .15s ease, filter .2s ease; }
.pio-phone-coin.press { scale: .96; filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(251,191,36,.35); }
.pio-phone-coin.ok { background: #12b76a; text-shadow: none; }
.pio-phone-sheet.coins .pio-phone-check { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.pio-phone-sheet.coins .pio-phone-bar { display: none; }
.pio-phone-drop { position: absolute; top: -26px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #ffe58a, #f5b014 60%, #c98500); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.pio-phone-sheet.drop .pio-phone-drop { animation: pio-phone-coin .55s ease-in both; }
@keyframes pio-phone-coin { 0% { opacity: 0; translate: 0 -20px; } 20% { opacity: 1; } 85% { opacity: 1; translate: 0 34px; scale: 1; } 100% { opacity: 0; translate: 0 40px; scale: .6; } }
.pio-phone-sheet.drop .pio-phone-check { animation: pio-pop .3s .4s cubic-bezier(.2,1.6,.4,1) both; }
