/* JO UEFN Premium — badges, glow accents, pricing cards and the upgrade
   modal. Built only from the site's existing tokens (style.css :root), so
   Premium reads as a natural part of JO UEFN rather than a bolted-on skin. */

.jo-premium-badge{
  display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:999px;
  font-size:10.5px; font-weight:800; letter-spacing:.3px; text-transform:uppercase;
  background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#1a1300;
  box-shadow:0 0 12px rgba(var(--accent-rgb),.5);
}
.jo-premium-lock{
  display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px;
  border-radius:50%; background:rgba(var(--accent-rgb),.16); color:var(--accent-2); font-size:10px; flex:0 0 auto;
}

/* -------------------------------------------------------------- pricing page */
.jo-pricing-hero{ text-align:center; max-width:640px; margin:0 auto 40px; }
.jo-pricing-hero h1{ font-family:var(--font-display); font-size:clamp(28px,5vw,42px); margin:0 0 10px; }
.jo-pricing-hero p{ color:var(--text-1); font-size:14px; line-height:1.6; }

.jo-pricing-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; max-width:840px; margin:0 auto; position:relative; }
/* Soft ambient glow behind the pricing section — decorative, sits behind the
   grid, never intercepts clicks, drifts very slowly. */
.jo-pricing-grid::before{
  content:''; position:absolute; inset:-70px -30px; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse 55% 60% at 50% 20%, rgba(var(--accent-rgb),.13), transparent 72%);
  filter:blur(38px); animation:jo-bg-glow-drift 16s ease-in-out infinite alternate;
}
.jo-pricing-card{
  border:1px solid var(--border); border-radius:16px; padding:28px 24px; background:var(--bg-1);
  display:flex; flex-direction:column; gap:14px; position:relative; overflow:hidden;
  transition:transform .38s cubic-bezier(.22,1,.36,1), box-shadow .38s ease, border-color .38s ease, filter .3s ease;
  will-change:transform;
}
.jo-pricing-card.featured{
  border-color:rgba(var(--accent-rgb),.5); background:linear-gradient(180deg,rgba(var(--accent-rgb),.08),var(--bg-1) 60%);
  box-shadow:0 0 0 1px rgba(var(--accent-rgb),.2), 0 0 40px rgba(var(--accent-rgb),.15);
}
/* Mouse-follow spotlight — subtle, position driven by --mx/--my (set by
   js/pricingAnimations.js on mousemove; defaults to centered if JS is off). */
.jo-pricing-card::after{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; border-radius:inherit;
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(var(--accent-rgb),.10), transparent 70%);
  transition:opacity .3s ease;
}
.jo-pricing-card:hover::after{ opacity:1; }
.jo-pricing-card > *{ position:relative; z-index:1; }
.jo-pricing-card:hover{ transform:translateY(-4px) scale(1.01); border-color:var(--border-hi); box-shadow:0 12px 40px rgba(0,0,0,.35), 0 0 24px rgba(var(--accent-rgb),.12); }
.jo-pricing-card.featured:hover{ box-shadow:0 16px 46px rgba(0,0,0,.4), 0 0 52px rgba(var(--accent-rgb),.24); }
.jo-pricing-grid:hover .jo-pricing-card:not(:hover){ filter:brightness(.93); }

/* Animated glow border, featured plan only — a slowly rotating conic-gradient
   ring clipped to a thin outline via an inset mask layer. */
.jo-pricing-border-glow{ position:absolute; inset:-2px; z-index:-1; border-radius:inherit; overflow:hidden; pointer-events:none; }
.jo-pricing-border-glow::before{
  content:''; position:absolute; inset:-50%; background:conic-gradient(transparent 0deg, rgba(var(--accent-rgb),.9) 25deg, transparent 70deg 360deg);
  animation:jo-border-rotate 6s linear infinite;
}
.jo-pricing-border-glow::after{ content:''; position:absolute; inset:2px; border-radius:inherit; background:var(--bg-1); }
@keyframes jo-border-rotate{ to{ transform:rotate(360deg); } }
@keyframes jo-bg-glow-drift{ from{ transform:translateY(0) scale(1); } to{ transform:translateY(8px) scale(1.05); } }

/* Subtle floating particles, featured plan only */
.jo-pricing-particles{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; border-radius:inherit; }
.jo-pricing-particles span{
  position:absolute; width:3px; height:3px; border-radius:50%; background:rgba(var(--accent-rgb),.75);
  box-shadow:0 0 6px rgba(var(--accent-rgb),.65); opacity:0; animation:jo-particle-float 7s ease-in-out infinite;
}
.jo-pricing-particles span:nth-child(1){ left:12%; bottom:20%; animation-delay:0s; }
.jo-pricing-particles span:nth-child(2){ left:35%; bottom:10%; animation-delay:1.4s; }
.jo-pricing-particles span:nth-child(3){ left:58%; bottom:30%; animation-delay:2.8s; }
.jo-pricing-particles span:nth-child(4){ left:78%; bottom:15%; animation-delay:4.2s; }
.jo-pricing-particles span:nth-child(5){ left:48%; bottom:45%; animation-delay:5.6s; }
@keyframes jo-particle-float{
  0%{ transform:translateY(0); opacity:0; }
  15%{ opacity:.8; }
  50%{ transform:translateY(-26px); opacity:.35; }
  85%{ opacity:0; }
  100%{ transform:translateY(-46px); opacity:0; }
}

/* Entrance: fade + rise, staggered per card, played once via IntersectionObserver */
.jo-pricing-card.jo-anim-init{ opacity:0; transform:translateY(15px); }
.jo-pricing-card.jo-anim-in{
  opacity:1; transform:translateY(0);
  transition:opacity .5s ease var(--jo-stagger,0ms), transform .5s cubic-bezier(.22,1,.36,1) var(--jo-stagger,0ms);
}

.jo-pricing-card .jo-premium-badge, .jo-pricing-card .jo-pricing-featured-tag{ animation:jo-badge-fade-in .5s ease both .2s; }
@keyframes jo-badge-fade-in{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:translateY(0); } }

.jo-pricing-card .cta{ transition:transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.jo-pricing-card .cta:hover{ transform:scale(1.015); filter:brightness(1.06); box-shadow:0 6px 20px rgba(var(--accent-rgb),.25); }
.jo-pricing-card .cta:active{ transform:scale(.99); }

@media (prefers-reduced-motion: reduce){
  .jo-pricing-card, .jo-pricing-card::after, .jo-pricing-border-glow::before, .jo-pricing-particles span, .jo-pricing-grid::before,
  .jo-pricing-card .jo-premium-badge, .jo-pricing-card .jo-pricing-featured-tag{ animation:none !important; transition:none !important; }
  .jo-pricing-card.jo-anim-init{ opacity:1; transform:none; }
}
@media (hover:none){ .jo-pricing-card::after{ display:none; } }

.jo-pricing-card .badge-row{ display:flex; justify-content:space-between; align-items:center; }
.jo-pricing-card h3{ font-family:var(--font-display); font-size:20px; margin:0; }
.jo-pricing-card .price{ font-size:34px; font-weight:800; font-family:var(--font-display); }
.jo-pricing-card .price small{ font-size:13px; color:var(--text-2); font-weight:500; }
.jo-pricing-card ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; font-size:13px; color:var(--text-1); }
.jo-pricing-card ul li{ display:flex; gap:8px; align-items:flex-start; }
.jo-pricing-card ul li::before{ content:"✓"; color:var(--accent-2); flex:0 0 auto; font-weight:800; }
.jo-pricing-card .cta{ margin-top:auto; }
.jo-pricing-savings{ font-size:11px; color:var(--success); font-weight:700; }
.jo-pricing-benefit{ font-size:12.5px; color:var(--text-1); margin:0; line-height:1.5; }
.jo-pricing-featured-tag{
  display:inline-flex; align-items:center; font-size:9.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase;
  padding:0 8px; border-radius:999px; background:rgba(var(--accent-rgb),.18); color:var(--accent-2); border:1px solid rgba(var(--accent-rgb),.35);
}
.jo-pricing-current{
  text-align:center; font-size:12px; color:var(--text-2); padding:8px; border:1px dashed var(--border); border-radius:8px; margin-bottom:24px; max-width:840px; margin-left:auto; margin-right:auto;
}

/* --------------------------------------------------------------- ai tools hub */
.jo-aitools-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.jo-aitools-card{
  border:1px solid var(--border); border-radius:14px; padding:22px; background:var(--bg-1); display:flex; flex-direction:column; gap:10px;
  transition:border-color .15s, transform .15s;
}
.jo-aitools-card:hover{ border-color:var(--border-hi); transform:translateY(-2px); }
.jo-aitools-card.locked{ opacity:.85; }
.jo-aitools-card .icon{ font-size:26px; }
.jo-aitools-card h3{ font-family:var(--font-display); margin:0; font-size:17px; display:flex; align-items:center; gap:8px; }
.jo-aitools-card p{ color:var(--text-1); font-size:12.5px; line-height:1.55; margin:0; flex:1 1 auto; }
.jo-aitools-card .perks{ list-style:none; margin:0; padding:0; font-size:11.5px; color:var(--text-2); display:flex; flex-direction:column; gap:4px; }
.jo-aitools-card .perks li::before{ content:"💎 "; }
.jo-aitools-card.coming-soon{ opacity:.55; }

/* -------------------------------------------------------------- upgrade modal */
.jo-upgrade-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:99995; display:flex; align-items:center; justify-content:center; padding:20px;
}
.jo-upgrade-modal{
  width:100%; max-width:420px; background:var(--bg-1); border:1px solid rgba(var(--accent-rgb),.35); border-radius:16px; padding:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(var(--accent-rgb),.12); position:relative;
}
.jo-upgrade-modal .close{ position:absolute; top:14px; right:14px; background:none; border:none; color:var(--text-2); font-size:18px; cursor:pointer; }
.jo-upgrade-modal .glow-icon{ width:52px; height:52px; border-radius:14px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:14px; box-shadow:0 0 30px rgba(var(--accent-rgb),.4); }
.jo-upgrade-modal h3{ font-family:var(--font-display); font-size:19px; margin:0 0 6px; }
.jo-upgrade-modal p{ color:var(--text-1); font-size:13px; line-height:1.55; margin:0 0 14px; }
.jo-upgrade-modal .credits-note{ font-size:12px; background:rgba(var(--accent-rgb),.08); border:1px solid rgba(var(--accent-rgb),.25); border-radius:8px; padding:8px 10px; margin-bottom:14px; }
.jo-upgrade-modal .benefits{ list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:6px; font-size:12.5px; color:var(--text-1); }
.jo-upgrade-modal .benefits li::before{ content:"✓ "; color:var(--accent-2); font-weight:800; }

/* --------------------------------------------------------- dashboard section */
.jo-premium-status-card{
  border-radius:14px; padding:20px; display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between;
  border:1px solid var(--border); background:var(--bg-2);
}
.jo-premium-status-card.active{ border-color:rgba(var(--accent-rgb),.4); background:linear-gradient(135deg,rgba(var(--accent-rgb),.1),var(--bg-2)); }
.jo-credits-bar{ height:8px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; margin:6px 0; }
.jo-credits-bar-fill{ height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:999px; }
.jo-premium-feature-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); font-size:13px; }
.jo-premium-feature-row:last-child{ border-bottom:none; }
.jo-premium-feature-row .status-ok{ color:var(--success); }
.jo-premium-feature-row .status-lock{ color:var(--text-2); }

/* ------------------------------------------------------------------ checkout */
.pc-layout{ display:grid; grid-template-columns:1fr 340px; gap:20px; align-items:start; }
.pc-main{ display:flex; flex-direction:column; gap:16px; }
.pc-card{ border:1px solid var(--border); border-radius:12px; padding:18px; background:var(--bg-1); }
.pc-card h3{ font-family:var(--font-display); font-size:15px; margin:0 0 12px; }
.pc-cycle-toggle{ display:flex; gap:10px; flex-wrap:wrap; }
.pc-cycle-btn{ flex:1 1 200px; padding:14px; border-radius:10px; border:2px solid var(--border); background:var(--bg-0); color:var(--text-1); cursor:pointer; font-size:13px; font-weight:600; transition:border-color .15s, color .15s; }
.pc-cycle-btn:hover{ border-color:var(--border-hi); }
.pc-cycle-btn.active{ border-color:var(--accent); color:var(--text-0); background:rgba(var(--accent-rgb),.08); }
.pc-trust-row{ display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text-1); margin-top:10px; }
.pc-summary{ position:sticky; top:20px; border:1px solid rgba(var(--accent-rgb),.3); border-radius:12px; padding:20px; background:linear-gradient(180deg,rgba(var(--accent-rgb),.06),var(--bg-1) 40%); align-self:start; }
.pc-summary h3{ font-family:var(--font-display); font-size:15px; margin:0 0 14px; }
.pc-row{ display:flex; justify-content:space-between; font-size:13px; color:var(--text-1); padding:6px 0; gap:10px; }
.pc-row span:last-child{ color:var(--text-0); text-align:right; }
.pc-divider{ height:1px; background:var(--border); margin:8px 0; }
.pc-total{ font-size:17px; font-weight:800; color:var(--text-0); }
.pc-total span{ color:var(--text-0) !important; }
.pc-cta{ transition:transform .15s, box-shadow .15s; }
.pc-cta:hover:not(:disabled){ transform:translateY(-1px); }
.pc-cta:disabled{ opacity:.6; cursor:default; }

@media (max-width:860px){
  .pc-layout{ grid-template-columns:1fr; }
  .pc-summary{ position:static; }
}

/* ------------------------------------------------------------- success/fail */
.pc-result{ max-width:520px; margin:40px auto; text-align:center; border:1px solid var(--border); border-radius:16px; padding:36px 28px; background:var(--bg-1); }
.pc-result.success{ border-color:rgba(61,255,160,.4); }
.pc-result.error{ border-color:rgba(255,92,122,.4); }
.pc-result .icon{ font-size:52px; margin-bottom:12px; }
.pc-result h1{ font-family:var(--font-display); font-size:24px; margin:0 0 8px; }
.pc-result p{ color:var(--text-1); font-size:13.5px; line-height:1.6; }
.pc-result-details{ text-align:left; background:var(--bg-0); border:1px solid var(--border); border-radius:10px; padding:14px 16px; margin:18px 0; font-size:13px; }
.pc-result-details .row{ display:flex; justify-content:space-between; padding:4px 0; color:var(--text-1); }
.pc-result-details .row b{ color:var(--text-0); }
.pc-result-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:10px; }

/* ---------------------------------------------------------------- footer */
.jo-site-footer{ border-top:1px solid var(--border); margin-top:48px; padding:44px 28px 22px; }
.jo-footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px; max-width:1200px; margin:0 auto 32px;
}
.jo-footer-brand{ display:flex; flex-direction:column; gap:10px; }
.jo-footer-brand-name{ display:flex; align-items:center; gap:8px; font-family:var(--font-display); font-size:19px; font-weight:700; }
.jo-footer-brand-name img{ width:26px; height:26px; border-radius:6px; }
.jo-footer-tagline{ color:var(--text-1); font-size:12.5px; line-height:1.6; max-width:280px; margin:0; }
.jo-footer-support-btn{ align-self:flex-start; margin-top:4px; }
.jo-footer-col h4{ font-family:var(--font-display); font-size:12px; color:var(--text-2); text-transform:uppercase; letter-spacing:.5px; margin:0 0 12px; }
.jo-footer-col{ display:flex; flex-direction:column; gap:9px; }
.jo-footer-col a{ color:var(--text-1); font-size:13px; text-decoration:none; }
.jo-footer-col a:hover{ color:var(--accent); }
.jo-footer-bottom{ border-top:1px solid var(--border); padding-top:16px; max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.jo-footer-copy{ color:var(--text-2); font-size:11px; margin:0; }
.jo-footer-disclaimer{ color:var(--text-2); font-size:11px; margin:0; }
@media (max-width:760px){
  .jo-footer-grid{ grid-template-columns:1fr 1fr; }
  .jo-footer-brand{ grid-column:1 / -1; }
  .jo-footer-bottom{ flex-direction:column; text-align:center; }
}
/* Legacy single-row footer markup (still used by a couple of older pages) */
.jo-footer-links{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-bottom:10px; }
.jo-footer-links a{ color:var(--text-1); font-size:12.5px; text-decoration:none; }
.jo-footer-links a:hover{ color:var(--accent); }

/* ------------------------------------------------------- homepage preview */
.jo-pricing-preview{ margin:48px 0; }
.jo-pricing-preview-head{ text-align:center; margin-bottom:20px; }
.jo-pricing-preview-head h2{ font-family:var(--font-display); font-size:26px; margin:0 0 6px; }
.jo-pricing-preview-head p{ color:var(--text-1); font-size:13px; }
.jo-hero-pricing-cta{ display:inline-flex; align-items:center; gap:6px; }

/* ------------------------------------------------------------- nav pricing */
.site-nav a[href="pricing.html"]{ color:var(--accent-2); font-weight:700; }
.site-nav a[href="pricing.html"]:hover{ color:var(--accent); }
