/* ==========================================================
   Pricing Page — premium dark theme with motion
   ========================================================== */

@property --pr-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.pr-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 640px) { .pr-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .pr-container { padding: 0 2rem; } }

/* ---------- Hero ---------- */
.pr-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #1e1b4b 0%, #0b1023 55%, #070a18 100%);
    color: #e5e7eb;
    padding: 6rem 0 5rem;
    isolation: isolate;
}

.pr-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pr-blob {
    position: absolute;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    will-change: transform;
}
.pr-blob--1 { background: #4f46e5; top: -18rem; left: -10rem; animation: pr-float-a 18s ease-in-out infinite; }
.pr-blob--2 { background: #0ea5e9; top: -12rem; right: -14rem; opacity: .32; animation: pr-float-b 22s ease-in-out infinite; }
.pr-blob--3 { background: #a855f7; bottom: -26rem; left: 30%; opacity: .3; animation: pr-float-c 26s ease-in-out infinite; }

@keyframes pr-float-a { 50% { transform: translate(8rem, 6rem) scale(1.1); } }
@keyframes pr-float-b { 50% { transform: translate(-6rem, 8rem) scale(.9); } }
@keyframes pr-float-c { 50% { transform: translate(-10rem, -4rem) scale(1.15); } }

.pr-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    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: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
    pointer-events: none;
}

.pr-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }

.pr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(253, 230, 138, .08);
    border: 1px solid rgba(253, 230, 138, .25);
    margin-bottom: 1.5rem;
}

.pr-title {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.pr-gradient-text {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9, #f0abfc, #a5b4fc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: pr-shine 8s linear infinite;
}
@keyframes pr-shine { to { background-position: 300% 0; } }

.pr-lead { font-size: 1.15rem; color: #a5b4cb; line-height: 1.7; }

/* ---------- Plan cards ---------- */
.pr-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
    max-width: 26rem;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .pr-plans { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 1.5rem; }
}

.pr-card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
    transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
.pr-card__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem 2rem;
    border-radius: calc(1.5rem - 1px);
    background:
        radial-gradient(28rem circle at var(--mx) var(--my), rgba(var(--accent), .13), transparent 45%),
        linear-gradient(180deg, rgba(17, 24, 51, .92), rgba(10, 14, 32, .96));
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    overflow: hidden;
}
.pr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(var(--accent), .35);
}

/* Featured card: rotating gradient border */
.pr-card--featured {
    padding: 2px;
    background: conic-gradient(from var(--pr-angle), #6366f1, #22d3ee, #34d399, #f0abfc, #6366f1);
    animation: pr-spin 6s linear infinite;
    box-shadow: 0 30px 80px -25px rgba(52, 211, 153, .45);
}
@media (min-width: 900px) {
    .pr-card--featured { transform: scale(1.04); }
    .pr-card--featured:hover { transform: scale(1.04) translateY(-8px); }
}
@keyframes pr-spin { to { --pr-angle: 360deg; } }

.pr-badge {
    position: absolute;
    top: -.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #052e2b;
    background: linear-gradient(90deg, #6ee7b7, #67e8f9);
    box-shadow: 0 8px 24px -6px rgba(52, 211, 153, .6);
    white-space: nowrap;
}

.pr-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: rgb(var(--accent));
    background: rgba(var(--accent), .12);
    border: 1px solid rgba(var(--accent), .3);
    margin-bottom: 1.5rem;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.pr-card:hover .pr-card__icon { transform: rotate(-8deg) scale(1.08); }

.pr-card__name { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.pr-card__meta { color: #8b98b8; font-size: .95rem; margin-top: .25rem; }

.pr-price {
    margin: 1.75rem 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.pr-price__from {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8b98b8;
}
.pr-price__row { display: flex; align-items: baseline; gap: .2rem; margin-top: .35rem; }
.pr-price__cur { font-size: 1.6rem; font-weight: 600; color: rgb(var(--accent)); }
.pr-price__num {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.pr-price__per { color: #8b98b8; font-size: 1rem; margin-left: .25rem; }

.pr-features { list-style: none; display: grid; gap: .9rem; margin-bottom: 2rem; flex: 1; }
.pr-features li { display: flex; align-items: flex-start; gap: .75rem; color: #cbd5e1; font-size: .98rem; }
.pr-features i {
    flex: none;
    width: 1.3rem;
    height: 1.3rem;
    margin-top: .1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .62rem;
    color: rgb(var(--accent));
    background: rgba(var(--accent), .15);
}

/* ---------- Buttons ---------- */
.pr-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    border-radius: .85rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    overflow: hidden;
    transition: transform .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pr-btn i { transition: transform .3s ease; }
.pr-btn:hover i.fa-arrow-right { transform: translateX(4px); }
.pr-btn:active { transform: scale(.98); }

.pr-btn--ghost {
    color: #fff;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
}
.pr-btn--ghost:hover { background: rgba(var(--accent), .14); border-color: rgba(var(--accent), .5); }

.pr-btn--primary {
    color: #04201c;
    background: linear-gradient(90deg, #6ee7b7, #67e8f9);
    box-shadow: 0 12px 30px -10px rgba(52, 211, 153, .7);
}
.pr-btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(52, 211, 153, .9); }

/* Shimmer sweep on primary/light buttons */
.pr-btn--primary::after,
.pr-btn--light::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: pr-sweep 3.8s ease-in-out infinite;
}
@keyframes pr-sweep { 60%, 100% { transform: translateX(120%); } }

.pr-btn--light { color: #312e81; background: #fff; }
.pr-btn--light:hover { box-shadow: 0 14px 36px -12px rgba(255,255,255,.7); }

.pr-btn--outline { color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.pr-btn--outline:hover { background: #fff; color: #312e81; border-color: #fff; }

.pr-note { text-align: center; margin-top: 3.5rem; color: #a5b4cb; font-size: 1.05rem; }
.pr-note a { color: #a5b4fc; font-weight: 600; text-decoration: none; margin-left: .35rem; white-space: nowrap; }
.pr-note a i { font-size: .8em; transition: transform .3s ease; }
.pr-note a:hover { color: #fff; }
.pr-note a:hover i { transform: translateX(4px); }

/* ---------- Benefits ---------- */
.pr-benefits {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    padding: 5rem 0 6rem;
}
.pr-benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 4.5rem;
}
@media (min-width: 640px) { .pr-benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pr-benefits__grid { grid-template-columns: repeat(4, 1fr); } }

.pr-benefit {
    background: #fff;
    border: 1px solid #e5e7f0;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.pr-benefit:hover {
    transform: translateY(-6px);
    border-color: #c7d2fe;
    box-shadow: 0 24px 40px -24px rgba(79, 70, 229, .45);
}
.pr-benefit__icon {
    width: 3rem;
    height: 3rem;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    margin-bottom: 1.1rem;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, .8);
}
.pr-benefit h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: .35rem; }
.pr-benefit p { color: #64748b; font-size: .95rem; }

/* ---------- CTA ---------- */
.pr-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    border-radius: 1.75rem;
    padding: 4rem 1.5rem;
    background: linear-gradient(120deg, #312e81, #4f46e5 45%, #7c3aed);
    box-shadow: 0 40px 80px -40px rgba(79, 70, 229, .8);
}
.pr-cta__glow {
    position: absolute;
    width: 36rem;
    height: 36rem;
    top: -18rem;
    right: -10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 232, 249, .45), transparent 65%);
    animation: pr-float-b 14s ease-in-out infinite;
    pointer-events: none;
}
.pr-cta h2 {
    position: relative;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1rem;
}
.pr-cta p {
    position: relative;
    color: #c7d2fe;
    font-size: 1.15rem;
    max-width: 38rem;
    margin: 0 auto 2.25rem;
}
.pr-cta__actions {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
@media (min-width: 640px) { .pr-cta__actions { flex-direction: row; } }
.pr-cta__actions .pr-btn { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Scroll reveal ---------- */
/* Rules apply only until the entrance finishes (.is-settled), so the
   cards' own hover lift and transitions take over afterwards. */
.pr-js .pr-reveal:not(.is-settled) {
    transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--d, 0ms);
}
.pr-js .pr-reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .pr-blob, .pr-gradient-text, .pr-card--featured, .pr-cta__glow,
    .pr-btn--primary::after, .pr-btn--light::after { animation: none !important; }
    .pr-js .pr-reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
    .pr-card, .pr-benefit, .pr-card__icon { transition: none; }
}
