/* ============================================================
   Nexus site-wide visual polish layer
   Loaded after each page's inline styles so it can refine them.
   Safe to remove: all effects are additive.
   ============================================================ */

/* Selection + scrollbar */
::selection { background: rgba(56,189,248,.35); color: #fff; }
html { scrollbar-color: #334155 #0a0a0a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 8px; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: #38bdf8; }

/* Scroll progress bar (injected by polish.js, sits above sticky header) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #38bdf8, #818cf8, #22d3ee); z-index: 60; pointer-events: none; }

/* Aurora backdrop (injected by polish.js into the first main section) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; will-change: transform; }
.aurora span:nth-child(1) { width: 560px; height: 560px; top: -180px; left: -120px; background: radial-gradient(circle, #0ea5e9, transparent 65%); animation: aurora-drift 16s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 480px; height: 480px; bottom: -160px; right: 6%; background: radial-gradient(circle, #6366f1, transparent 65%); animation: aurora-drift 22s ease-in-out infinite alternate-reverse; }
.aurora span:nth-child(3) { width: 380px; height: 380px; top: 28%; left: 36%; background: radial-gradient(circle, #14b8a6, transparent 65%); opacity: .15; animation: aurora-drift 26s ease-in-out infinite alternate; }
@keyframes aurora-drift {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(60px,40px,0) scale(1.15); }
}

/* Headline gradient — slow living shimmer */
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #22d3ee, #38bdf8);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-pan 9s linear infinite;
}
@keyframes gradient-pan { to { background-position: 300% 0; } }

/* CTA buttons — gradient body + light sweep on hover */
.cta-button { position: relative; overflow: hidden; }
a.cta-button.bg-sky-600 { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); }
a.cta-button.bg-sky-600:hover { background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%); }
.cta-button::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.cta-button:hover::after { left: 160%; }

/* Cards — cursor-tracking spotlight (driven by --mx/--my from polish.js) */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
    content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
    transition: opacity .4s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56,189,248,.12), transparent 65%);
}
.feature-card:hover::before { opacity: 1; }

/* Desktop nav links — gradient underline grow */
header nav.md\:flex > a:not(.cta-button):not([aria-label]) { position: relative; }
header nav.md\:flex > a:not(.cta-button):not([aria-label])::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
header nav.md\:flex > a:not(.cta-button):not([aria-label]):hover::after { transform: scaleX(1); }

/* Benefit pills — lift + glow on hover */
.benefit-pill { transition: border-color .3s ease, background-color .3s ease, transform .3s ease; }
.benefit-pill:hover { border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.06); transform: translateY(-2px); }

/* ============================================================
   Tablet header fix (768–1023px): the desktop nav doesn't fit
   and wraps/clips, so keep the hamburger menu until 1024px.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023.98px) {
    header nav.md\:flex { display: none !important; }
    header #paid-indicators-dropdown-container,
    header #free-indicators-dropdown-container { display: none !important; }
    header div.md\:hidden { display: block !important; }
    #mobile-menu { display: block !important; }
    #mobile-menu.hidden { display: none !important; }
}

/* ============================================================
   Pricing cards (.nxp-*) — same component as the homepage
   ============================================================ */
.nxp-grid { display: grid; gap: 1.5rem; max-width: 52rem; margin: 0 auto; align-items: stretch; }
@media (min-width: 768px) { .nxp-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.nxp-grid--single { max-width: 26rem; }
@media (min-width: 768px) { .nxp-grid--single { grid-template-columns: 1fr; } }
.nxp-card { position: relative; display: flex; flex-direction: column; padding: 2.25rem 1.75rem 1.75rem; border-radius: 1.5rem; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.nxp-card:hover { transform: translateY(-4px); }
.nxp-card--sky { border-color: rgba(56,189,248,.45); box-shadow: 0 0 50px -18px rgba(56,189,248,.35); }
.nxp-card--sky:hover { border-color: rgba(56,189,248,.85); box-shadow: 0 0 60px -10px rgba(56,189,248,.55); }
.nxp-card--amber { border-color: rgba(245,158,11,.3); }
.nxp-card--amber:hover { border-color: rgba(251,191,36,.6); box-shadow: 0 0 50px -14px rgba(251,191,36,.35); }
.nxp-card--emerald { border-color: rgba(52,211,153,.3); }
.nxp-card--emerald:hover { border-color: rgba(52,211,153,.6); box-shadow: 0 0 50px -14px rgba(52,211,153,.3); }
.nxp-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: .35rem 1rem; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.nxp-badge--sky { background: #0ea5e9; color: #fff; box-shadow: 0 4px 18px rgba(14,165,233,.45); }
.nxp-badge--amber { background: #1c1407; color: #fbbf24; border: 1px solid rgba(245,158,11,.45); }
.nxp-badge--emerald { background: #04170f; color: #34d399; border: 1px solid rgba(52,211,153,.45); }
.nxp-name { font-size: .72rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: #38bdf8; margin: .5rem 0 1.1rem; }
.nxp-card--amber .nxp-name { color: #fbbf24; }
.nxp-card--emerald .nxp-name { color: #34d399; }
.nxp-save { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .85rem; margin-bottom: .2rem; min-height: 1.3rem; }
.nxp-strike { color: #64748b; text-decoration: line-through; font-weight: 600; }
.nxp-off { background: rgba(245,158,11,.18); color: #fbbf24; font-size: .6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; padding: .15rem .55rem; border-radius: 999px; }
.nxp-price { display: flex; align-items: baseline; justify-content: center; gap: .3rem; color: #fff; font-weight: 900; font-size: 3.5rem; line-height: 1; letter-spacing: -.02em; margin-bottom: .45rem; }
.nxp-price .nxp-cur { font-size: 1.5rem; align-self: flex-start; margin-top: .45rem; }
.nxp-price .nxp-per { font-size: 1.05rem; color: #94a3b8; font-weight: 600; }
.nxp-card--amber .nxp-price { color: #fbbf24; }
.nxp-card--emerald .nxp-price { color: #34d399; }
.nxp-sub { color: #94a3b8; font-size: .78rem; margin-bottom: 1.4rem; }
.nxp-list { display: flex; flex-direction: column; gap: .55rem; margin: 0 auto 1.6rem; padding: 0; list-style: none; text-align: left; font-size: .85rem; color: #cbd5e1; }
.nxp-list li { display: flex; gap: .55rem; align-items: center; }
.nxp-list i, .nxp-list svg.nxp-check { color: #38bdf8; flex-shrink: 0; }
.nxp-card--amber .nxp-list i, .nxp-card--amber .nxp-list svg.nxp-check { color: #fbbf24; }
.nxp-card--emerald .nxp-list i, .nxp-card--emerald .nxp-list svg.nxp-check { color: #34d399; }
.nxp-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: 1rem 1.5rem; border-radius: .85rem; font-weight: 900; font-size: 1.02rem; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease; }
.nxp-cta--sky { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff !important; box-shadow: 0 10px 28px -8px rgba(14,165,233,.5); }
.nxp-cta--sky:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(14,165,233,.65); }
.nxp-cta--amber { background: rgba(245,158,11,.12); color: #fbbf24 !important; border: 1px solid rgba(245,158,11,.35); }
.nxp-cta--amber:hover { background: rgba(245,158,11,.22); border-color: rgba(251,191,36,.7); box-shadow: 0 0 24px rgba(251,191,36,.35); transform: translateY(-2px); }
.nxp-cta--emerald { background: rgba(52,211,153,.12); color: #34d399 !important; border: 1px solid rgba(52,211,153,.35); }
.nxp-cta--emerald:hover { background: rgba(52,211,153,.22); border-color: rgba(52,211,153,.7); box-shadow: 0 0 24px rgba(52,211,153,.3); transform: translateY(-2px); }
.nxp-foot { font-size: .68rem; color: #64748b; margin-top: .85rem; }
a.nxp-trust { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .7rem; color: #64748b; margin-top: .85rem; text-decoration: none; }
a.nxp-trust:hover { color: #cbd5e1; }
.nxp-head { text-align: center; margin-bottom: 2.6rem; }
.nxp-head h2 { font-size: 2.25rem; line-height: 1.15; font-weight: 900; color: #fff; margin: 0 0 .6rem; letter-spacing: -.025em; }
.nxp-head p { color: #94a3b8; font-size: 1rem; margin: 0; }
.nxp-section { padding: 5rem 1rem; }

/* ============================================================
   FAQ component (.nx-faq) — self-contained, no Tailwind needed
   ============================================================ */
.nx-faq { padding: 4rem 1rem; border-top: 1px solid rgba(255,255,255,.05); }
.nx-faq-inner { max-width: 48rem; margin: 0 auto; }
.nx-faq h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 2.5rem; letter-spacing: -.025em; }
.nx-faq details { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; margin-bottom: .75rem; overflow: hidden; }
.nx-faq details[open] { border-color: rgba(56,189,248,.3); }
.nx-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: #e2e8f0; list-style: none; transition: background-color .2s ease; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary:hover { background: rgba(255,255,255,.02); }
.nx-faq summary svg { flex-shrink: 0; color: #38bdf8; transition: transform .25s ease; }
.nx-faq details[open] summary svg { transform: rotate(180deg); }
.nx-faq .nx-faq-a { padding: 0 1.25rem 1.25rem; }
.nx-faq .nx-faq-a p { color: #94a3b8; font-size: .9rem; line-height: 1.65; margin: 0; }
.nx-faq .nx-faq-a a { color: #38bdf8; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .aurora span, .gradient-text { animation: none; }
    .cta-button::after { display: none; }
    .benefit-pill, .benefit-pill:hover { transform: none; }
}
