/* ============ PRICING PAGE STYLES ============ */

/* Desktop/Mobile visibility */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Plan section for mobile */
.plan-section {
    text-align: center;
    padding: 0 20px;
}
.plan-section .pricing-card {
    margin: 0 auto;
}

/* Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Section tag */
.section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--soft-purple);
    margin-bottom: 25px;
}

/* Nav active state */
.nav a.active { opacity: 1; color: var(--soft-purple); }

/* ============ HERO SECTION ============ */
.pricing-hero-section {
    text-align: center;
    padding: 0 20px;
}

.pricing-title {
    font-family: var(--font-main);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    color: var(--ghost-white);
    line-height: 1.1;
    margin-bottom: 25px;
}
.pricing-title span {
    color: var(--soft-purple);
}

.pricing-subtitle {
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
}

/* ============ PRICING CARDS SECTION ============ */
.pricing-cards-section {
    text-align: center;
    padding: 0 20px;
}

.pricing-cards {
    display: flex;
    gap: 16px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

/* Individual Card */
.pricing-card {
    background: var(--soft-linen);
    border: 3px solid var(--carbon-black);
    padding: 24px 20px;
    width: 270px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px 0 var(--carbon-black);
}

/* Popular Badge */
.popular {
    border-color: var(--soft-purple);
    transform: scale(1.03);
}
.popular:hover {
    transform: scale(1.03) translateY(-6px);
}
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--soft-purple);
    color: var(--carbon-black);
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border: 2px solid var(--carbon-black);
}

/* Plan Header */
.plan-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--carbon-black);
    margin-bottom: 20px;
}

.plan-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border: 2px solid var(--carbon-black);
    margin-bottom: 10px;
}
.free-badge {
    background: var(--alabaster-grey);
    color: var(--carbon-black);
}
.high-badge {
    background: #ff9500;
    color: var(--carbon-black);
}
.critical-badge {
    background: #ff3b30;
    color: white;
}
.exceptional-badge {
    background: #edf67d;
    color: var(--carbon-black);
}

.plan-name {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 800;
    color: var(--carbon-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}
.price-amount {
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 800;
    color: var(--carbon-black);
    line-height: 1;
}
.price-period {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-monthly {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--soft-purple);
    margin-bottom: 6px;
}

.plan-desc {
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    flex-grow: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 12px;
    color: var(--carbon-black);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.plan-features li:last-child {
    border-bottom: none;
}
.plan-features svg {
    width: 16px;
    height: 16px;
    stroke: var(--soft-purple);
    flex-shrink: 0;
    margin-top: 1px;
}
.feature-highlight {
    font-weight: 700;
    color: var(--soft-purple) !important;
}

/* Plan Buttons */
.plan-button {
    display: block;
    text-align: center;
    padding: 14px 20px;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: 2px solid var(--carbon-black);
    margin-top: 20px;
    transition: all 0.2s ease;
}
.free-button {
    background: var(--alabaster-grey);
    color: var(--carbon-black);
}
.free-button:hover {
    background: var(--carbon-black);
    color: var(--ghost-white);
}
.high-button {
    background: var(--soft-purple);
    color: var(--carbon-black);
}
.high-button:hover {
    background: var(--lime-accent);
    box-shadow: 4px 4px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}
.critical-button {
    background: var(--carbon-black);
    color: var(--ghost-white);
}
.critical-button:hover {
    background: var(--soft-purple);
    color: var(--carbon-black);
    box-shadow: 4px 4px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}
.exceptional-button {
    background: var(--carbon-black);
    color: #edf67d;
    border: 2px solid var(--carbon-black);
}
.exceptional-button:hover {
    background: var(--soft-purple);
    color: var(--carbon-black);
    box-shadow: 4px 4px 0 var(--carbon-black);
    transform: translate(-2px, -2px);
}

/* ============ GUARANTEE SECTION ============ */
.guarantee-section {
    text-align: center;
    padding: 0 20px;
}

.guarantee-content {
    max-width: 500px;
}

.guarantee-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.guarantee-title {
    font-family: var(--font-main);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--ghost-white);
    margin-bottom: 15px;
}

.guarantee-text {
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 15px;
}

.guarantee-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-bottom: 20px;
}

.guarantee-contact {
    font-family: var(--font-main);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.guarantee-contact a {
    color: var(--soft-purple);
    text-decoration: none;
}
.guarantee-contact a:hover {
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */

/* Progress bar moves to bottom center on smaller screens */
@media (max-width: 1145px) {
    .progress-container {
        position: fixed;
        right: auto;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        width: 200px;
        height: 40px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    .progress-track {
        width: 100%;
        height: 3px;
        position: relative;
    }
    .progress-bar {
        position: absolute;
        bottom: auto;
        left: 0;
        width: 0%;
        height: 3px;
        transition: width 0.1s ease-out;
    }
    .progress-dot {
        position: absolute;
        left: 0%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: left 0.1s ease-out;
    }
    .progress-label {
        position: absolute;
        right: auto;
        left: 50%;
        bottom: auto;
        top: -12px;
        transform: translateX(-50%);
        font-size: 10px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    /* Switch to mobile sections */
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .logo { top: 20px; left: 20px; }
    .nav-logo-img { height: 35px; }
    .nav { top: 20px; right: 20px; gap: 15px; height: 35px; }
    .nav a { font-size: 11px; }
    .menu-toggle { top: 20px; right: 20px; }
    .section-label { left: 20px; bottom: 20px; font-size: 10px; }
    .copyright { right: 20px; bottom: 20px; font-size: 10px; }
    
    .pricing-card {
        width: 320px;
        max-width: 90vw;
        padding: 24px 20px;
    }
    .popular {
        transform: scale(1);
    }
    .price-amount {
        font-size: 38px;
    }
    .plan-name {
        font-size: 16px;
    }
    .plan-features li {
        font-size: 12px;
        padding: 8px 0;
    }
    .plan-button {
        padding: 14px 20px;
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Show hamburger, convert nav to mobile menu */
    .menu-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(3, 3, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 60px 20px;
        transition: right 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
        border-left: 2px solid var(--soft-purple);
    }
    .nav.visible { opacity: 1; transform: translateY(0); }
    .nav.open { right: 0; }
    .nav a { font-size: 14px; opacity: 0.7; }
    .nav a:hover { opacity: 1; }
    
    .logo { top: 20px; left: 20px; }
    .nav-logo-img { height: 32px; }
    .menu-toggle { top: 20px; right: 20px; height: 32px; }
    
    .progress-container { display: none; }
    .section-label { left: 15px; bottom: 15px; }
    .copyright { right: 15px; bottom: 15px; font-size: 9px; }
    
    .pricing-title {
        font-size: clamp(26px, 6vw, 36px);
    }
    .pricing-subtitle {
        font-size: 13px;
    }
    
    .pricing-card {
        width: 300px;
        max-width: 85vw;
        padding: 20px 16px;
    }
    .popular-badge {
        font-size: 9px;
        padding: 4px 12px;
    }
    .plan-badge {
        font-size: 8px;
        padding: 3px 8px;
    }
    .plan-name {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .price-amount {
        font-size: 34px;
    }
    .price-period {
        font-size: 12px;
    }
    .price-monthly {
        font-size: 10px;
    }
    .plan-desc {
        font-size: 11px;
    }
    .plan-features li {
        font-size: 11px;
        padding: 6px 0;
    }
    .plan-features svg {
        width: 14px;
        height: 14px;
    }
    .plan-button {
        padding: 12px 16px;
        font-size: 11px;
    }
    
    .guarantee-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .guarantee-title {
        font-size: clamp(18px, 5vw, 24px);
    }
    .guarantee-text {
        font-size: 13px;
    }
    .guarantee-contact {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo { top: 15px; left: 15px; }
    .nav-logo-img { height: 28px; }
    .menu-toggle { top: 15px; right: 15px; height: 28px; }
    
    .pricing-title {
        font-size: clamp(22px, 6vw, 28px);
    }
    .pricing-subtitle {
        font-size: 12px;
    }
    .section-tag {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .pricing-card {
        padding: 18px 14px;
        max-width: 280px;
    }
    .plan-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .plan-name {
        font-size: 13px;
    }
    .price-amount {
        font-size: 28px;
    }
    .plan-features li {
        font-size: 10px;
        padding: 5px 0;
        gap: 6px;
    }
    .plan-features svg {
        width: 12px;
        height: 12px;
    }
    .plan-button {
        padding: 10px 14px;
        font-size: 10px;
        margin-top: 16px;
    }
    
    .guarantee-icon {
        font-size: 32px;
    }
    .guarantee-title {
        font-size: clamp(16px, 5vw, 22px);
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .logo { top: 12px; left: 12px; }
    .nav-logo-img { height: 22px; }
    .menu-toggle { top: 12px; right: 12px; width: 30px; height: 22px; }
    .menu-toggle span { width: 20px; }
    
    .pricing-title {
        font-size: 20px;
    }
    .pricing-card {
        padding: 16px 12px;
        max-width: 260px;
    }
    .plan-name {
        font-size: 12px;
    }
    .price-amount {
        font-size: 26px;
    }
    .plan-features li {
        font-size: 9px;
    }
    .plan-button {
        padding: 10px 12px;
        font-size: 9px;
    }
}
