/* NOW_JSS4S Aurora: effects + motion. Content is visible without any of this. */
@property --nj-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root { --nj-radius: 18px; --nj-border: rgba(255,255,255,.08); --nj-glass: rgba(255,255,255,.035); }
::selection { background: rgba(124,92,255,.45); color: #fff; }
:focus-visible { outline: 2px solid var(--wp--preset--color--cyan); outline-offset: 3px; }
html { scroll-padding-top: 5rem; } /* in-page anchors land below the sticky header */

/* Header / nav / footer */
.nj-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; isolation: isolate; border-bottom: 1px solid var(--nj-border); }
.nj-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(14px); background: rgba(7,8,13,.72); pointer-events: none; }
.nj-logo img { display: block; height: 32px; width: auto; }
.nj-nav a { color: var(--wp--preset--color--muted); text-decoration: none; transition: color .2s; }
.nj-nav a:hover, .nj-nav .current-menu-item a { color: var(--wp--preset--color--contrast); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; }
.nj-footer { border-top: 1px solid var(--nj-border); color: var(--wp--preset--color--muted); }
.nj-footer a { color: var(--wp--preset--color--muted); text-decoration: none; } .nj-footer a:hover { color: var(--wp--preset--color--contrast); }
.nj-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.nj-footer-links { list-style: none; margin: 0; padding: 0; }
.nj-footer-links a { display: inline-block; padding-block: .35rem; } /* tap targets of 24px or more */

/* Buttons */
.wp-element-button, .wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease; }
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,92,255,.45); }
.nj-btn-ghost .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid rgba(255,255,255,.18); }

/* Aurora section: two drifting blobs as pseudo-elements, a third as a static radial glow */
.is-style-aurora { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(600px 400px at 60% 110%, rgba(192,38,211,.18), transparent 70%); }
.is-style-aurora::before, .is-style-aurora::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none; animation: nj-drift 18s ease-in-out infinite alternate; will-change: transform; }
.is-style-aurora::before { background: #5b3df5; top: -180px; left: -120px; }
.is-style-aurora::after { background: #06b6d4; top: 0; right: -180px; opacity: .4; animation-duration: 23s; }
@keyframes nj-drift { to { transform: translate(90px, 70px) scale(1.18); } }

/* Gradient text */
.nj-grad { background: linear-gradient(90deg, #a78bfa, #22d3ee, #f0abfc, #a78bfa); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: nj-shimmer 2.4s ease-out 0.6s 1 both; }
@keyframes nj-shimmer { to { background-position: 300% 0; } }

/* Eyebrow pill + status dot */
.nj-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: #b9b9cc; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); padding: .375rem .75rem; border-radius: 999px; }
.nj-dot, .nj-badge::before { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--status); flex: none; }
.nj-dot::after, .nj-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wp--preset--color--status); animation: nj-ping 2s ease-out infinite; }
@keyframes nj-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.nj-badge { position: relative; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--wp--preset--font-family--geist-mono);
  font-size: .75rem; letter-spacing: .04em; color: var(--wp--preset--color--status); }
.nj-badge::before { content: ""; } .nj-badge::after { inset: auto; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; }

/* Glass cards with rotating outline on hover */
.is-style-glass { position: relative; border-radius: var(--nj-radius); background: var(--nj-glass); border: 1px solid var(--nj-border);
  backdrop-filter: blur(6px); transition: transform .3s ease; }
.is-style-glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--nj-angle), transparent 0 65%, #7c5cff, #22d3ee, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; }
.is-style-glass:hover { transform: translateY(-4px); }
@media (hover: hover) { .is-style-glass:hover::before { opacity: 1; animation: nj-spin 4s linear infinite; } }
@keyframes nj-spin { to { --nj-angle: 360deg; } }
/* A card whose title links is clickable as a whole; the focus ring stays on the title link. */
.is-style-glass:has(h3 a) { cursor: pointer; }
.is-style-glass h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* CTA banner: rounded aurora section that lifts as one; the glass card inside stays put. */
.nj-cta { border-radius: var(--nj-radius); transition: transform .3s ease; }
.nj-cta:hover { transform: translateY(-4px); } .nj-cta > .is-style-glass:hover { transform: none; }
.nj-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.nj-chips li { font-size: .78rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(124,92,255,.14); color: #c9bdff; }
.nj-step-num { font-family: var(--wp--preset--font-family--geist-mono); color: var(--wp--preset--color--violet); font-size: .8125rem; }

/* Section rhythm on canvas pages */
.nj-sections > * + * { margin-block-start: var(--wp--preset--spacing--60); }

/* FAQ (core Details) */
.nj-faq-item { border-bottom: 1px solid var(--nj-border); padding: 1.1rem 0; }
.nj-faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--wp--preset--color--contrast); font-weight: 500; }
.nj-faq-item summary::-webkit-details-marker { display: none; }
.nj-faq-item summary::after { content: "+"; transition: transform .25s; color: var(--wp--preset--color--violet); }
.nj-faq-item[open] summary::after { transform: rotate(45deg); }

/* Jetpack forms on dark */
.nj-waitlist input, .nj-waitlist textarea, .wp-block-jetpack-contact-form input, .wp-block-jetpack-contact-form textarea {
  background: rgba(255,255,255,.05) !important; color: var(--wp--preset--color--contrast) !important;
  border: 1px solid rgba(255,255,255,.16) !important; border-radius: 12px !important; padding: .75rem .9rem !important; }
.wp-block-jetpack-contact-form label { color: var(--wp--preset--color--muted); }
.nj-fineprint { font-size: .8125rem; }

/* Scroll reveal: screens only, and only where supported; elsewhere content is simply visible */
@media screen {
  @supports (animation-timeline: view()) {
    .nj-reveal { animation: nj-up linear backwards; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes nj-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Phones: lighter effects */
@media (max-width: 781px) {
  .is-style-aurora::before, .is-style-aurora::after { width: 300px; height: 300px; filter: blur(60px); }
  .is-style-aurora::after { display: none; }
  .is-style-glass { backdrop-filter: none; }
}

/* Print: every section visible, plain text colour, no blobs */
@media print {
  .nj-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .nj-grad { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
  .is-style-aurora::before, .is-style-aurora::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
