/* ==========================================================================
   PRICING PAGE - ISOLATED CSS (No conflict with styles.css)
   ========================================================================== */

/* 1. Resets & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    /* Light gray background */
    color: #0F172A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Create the rounded app frame matching index.html */
    margin: 2rem;
    border-radius: 32px;
    overflow-x: hidden;
    min-height: calc(100vh - 4rem);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 2. Reusable Layout */
.p-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 3. Buttons */
.p-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    border: none;
}

.p-btn:active {
    transform: scale(0.97);
}

.p-btn-block {
    display: block;
    width: 100%;
}

.p-btn-primary {
    background-color: #00A4CC;
    color: #FFFFFF;
}

.p-btn-primary:hover {
    background-color: #0088AA;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 164, 204, 0.3);
}

.p-btn-dark {
    background-color: #111827;
    color: #FFFFFF;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.2);
}

.p-btn-dark:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.3);
}

/* 4. Navigation (Isolated) */
.p-nav {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.p-nav-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.p-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.p-logo img {
    height: 24px;
    width: auto;
}

.p-nav-links {
    display: flex;
    gap: 2rem;
}

.p-nav-links a {
    color: #4B5563;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.p-nav-links a:hover {
    color: #111827;
}

.p-nav-links a.p-active {
    color: #00A4CC;
}

.p-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00A4CC;
    transition: width 0.3s ease;
}

.p-nav-links a:not(.p-active):hover::after {
    width: 100%;
}

/* 5. Header Section */
.p-header {
    padding: 12rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.p-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #E0F2FE;
    color: #00A4CC;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.p-title {
    font-size: 4rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.p-subtext {
    font-size: 1.25rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 6. Pricing Grid */
.p-main {
    padding: 4rem 0 8rem;
    background: #FAFAFA;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: -6rem;
    /* Deliberate overlap with header border */
    position: relative;
    z-index: 10;
}

/* 7. Pricing Cards */
.p-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 164, 204, 0.12);
}

.p-card-title {
    font-size: 1.5rem;
    color: #1E293B;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.p-card-desc {
    color: #64748B;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    min-height: 50px;
}

.p-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    letter-spacing: -0.02em;
}

.p-price span {
    font-size: 1.125rem;
    color: #64748B;
    font-weight: 500;
}

/* Popular Card Override */
.p-popular {
    border: 2px solid #00A4CC;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 164, 204, 0.1);
}

.p-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00A4CC, #00F0FF);
    color: #111827;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 164, 204, 0.3);
}

/* Features List */
.p-features {
    flex: 1;
    margin-bottom: 3rem;
}

.p-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.5;
}

.p-features li strong {
    color: #111827;
    font-weight: 600;
}

.p-features li svg {
    color: #00A4CC;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

/* 8. Footer (Isolated) */
.p-footer {
    background-color: #0B1120;
    color: #94A3B8;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.p-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.p-footer-brand {
    flex: 2;
    max-width: 350px;
}

.p-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.p-footer-logo img {
    height: 24px;
}

.p-footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
}

.p-footer-links {
    flex: 1;
}

.p-footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.p-footer-links li {
    margin-bottom: 1rem;
}

.p-footer-links a {
    color: #94A3B8;
}

.p-footer-links a:hover {
    color: #00F0FF;
    padding-left: 8px;
}

.p-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0.875rem;
}

/* Responsive Overrides */
@media (max-width: 992px) {
    body {
        margin: 0;
        border-radius: 0;
    }

    .p-footer {
        border-radius: 0;
    }

    .p-footer-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .p-nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .p-title {
        font-size: 3rem;
    }

    .p-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* 9. Load Animations */
@keyframes pFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.p-animate-1 {
    opacity: 0;
    animation: pFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.p-animate-2 {
    opacity: 0;
    animation: pFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.p-animate-3 {
    opacity: 0;
    animation: pFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.p-animate-4 {
    opacity: 0;
    animation: pFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.p-animate-5 {
    opacity: 0;
    animation: pFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}