/* ========================================
   Buy Page Specific Styles
   ======================================== */

/* Buy Page Header */
.buy-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.page-title {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
    color: var(--navy);
}

.page-subtitle {
    font-size: 20px;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.quick-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.quick-nav a {
    padding: 12px 24px;
    background: var(--white);
    border-radius: 24px;
    font-weight: 600;
    color: var(--navy);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-nav a:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Product Detail Section */
.product-detail {
    padding: 80px 0;
}

.product-detail.alt-bg {
    background: var(--light-gray);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 64px;
}

.service-layout {
    grid-template-columns: 1fr;
}

.product-main {
    position: sticky;
    top: 120px;
}

.product-image-large {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.product-image-large img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-info.full-width {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.product-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--navy);
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 18px;
    color: var(--mid-gray);
    margin-bottom: 16px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.full-width .product-price {
    justify-content: center;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-heading);
}

.price-note {
    font-size: 16px;
    color: var(--mid-gray);
}

.product-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--dark-gray);
}

.buy-btn {
    align-self: flex-start;
    margin-top: 16px;
}

.full-width .buy-btn {
    align-self: center;
}

/* Product Details Grid */
.product-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.detail-section h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 8px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

/* Product Note */
.product-note {
    background: var(--light-gray);
    padding: 32px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--teal);
}

.product-detail.alt-bg .product-note {
    background: var(--white);
}

.product-note p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.product-note p:last-child {
    margin-bottom: 0;
}

.product-note strong {
    color: var(--navy);
}

.small-text {
    font-size: 14px;
    color: var(--mid-gray);
    font-style: italic;
}

/* HUB Plans Section */
.hub-plans-section {
    padding: 80px 0;
    background: var(--navy);
    color: var(--white);
}

.hub-intro {
    text-align: center;
    margin-bottom: 64px;
}

.hub-intro .section-title {
    color: var(--white);
}

.hub-description-large {
    font-size: 18px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

.hub-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.hub-feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hub-feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--teal);
}

.hub-feature-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-feature-card li {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    opacity: 0.9;
}

.hub-feature-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
}

.plans-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--white);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.pricing-card {
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* Default styling for non-glass cards */
.pricing-card:not(.glass):not(.glass-dark) {
    background: var(--white);
    color: var(--navy);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.pricing-card:not(.glass):not(.glass-dark):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* Glass card hover */
.pricing-card.glass:hover,
.pricing-card.glass-dark:hover {
    transform: translateY(-4px);
}

/* Ensure text is readable on glass-dark */
.pricing-card.glass-dark {
    color: var(--white);
}

.pricing-card.glass-dark .plan-name,
.pricing-card.glass-dark .price {
    color: var(--white);
}

.pricing-card.glass-dark .price-period,
.pricing-card.glass-dark .plan-vat {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card.featured {
    border: 3px solid var(--teal);
}

.plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.plan-price .price {
    font-size: 56px;
    color: var(--navy);
}

.price-period {
    font-size: 20px;
    color: var(--mid-gray);
}

.plan-vat {
    font-size: 14px;
    color: var(--mid-gray);
    margin-bottom: 32px;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 15px;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
    font-size: 18px;
}

.pricing-card .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* HUB CTA */
.hub-cta {
    text-align: center;
    padding: 64px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.hub-cta h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.hub-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Footer on Buy Page */
.footer .company-info {
    margin-top: 32px;
}

.footer .company-info h4 {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer .company-info p {
    margin-bottom: 8px;
    opacity: 0.8;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-badge:hover {
    transform: scale(1.05);
}

.app-badge img {
    height: 48px;
    width: auto;
    display: block;
}

/* Specifications Page Styles */
.spec-section {
    margin-bottom: 48px;
}

.spec-heading {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--teal);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.specs-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 16px 0;
    font-weight: 600;
    color: var(--navy);
    width: 40%;
    vertical-align: top;
}

.spec-value {
    padding: 16px 0;
    color: var(--dark-gray);
    line-height: 1.6;
}

.specs-quick-links {
    background: var(--light-gray);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-top: 24px;
}

.specs-quick-links h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--navy);
}

.specs-quick-links ul {
    list-style: none;
}

.specs-quick-links li {
    margin-bottom: 8px;
}

.specs-quick-links a {
    color: var(--teal);
    font-weight: 500;
    transition: var(--transition);
}

.specs-quick-links a:hover {
    color: var(--navy);
    padding-left: 4px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-main {
        position: static;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hub-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .buy-header {
        padding: 120px 0 40px;
    }

    .quick-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-nav a {
        text-align: center;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 36px;
    }

    .plan-price .price {
        font-size: 40px;
    }
}
