/* ============================================
   VelaroCar - Packs Page (page-specific styles)
   Reuses the global design system tokens.
   ============================================ */

/* --- Full-screen hero (uses .hero from style.css) --- */
.pack-hero .hero-content {
    max-width: 780px;
}

.pack-hero .hero-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold);
}

.pack-hero p {
    max-width: 640px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollPulse 2s ease-in-out infinite;
    z-index: 5;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator .mouse .dot {
    width: 4px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gold);
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Intro perks --- */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.perks-grid .why-card-icon {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

/* --- Premium pack cards --- */
.pack-card {
    display: flex;
    flex-direction: column;
}

.pack-card .product-card-image {
    height: 230px;
}

.pack-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
    background-size: 200% 100%;
    animation: packShimmer 4s linear infinite;
    z-index: 2;
}

@keyframes packShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.pack-card .product-card-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.pack-card .product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pack-card .pack-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.pack-card .pack-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.pack-card .pack-includes li i {
    width: 18px;
    text-align: center;
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.pack-card .pack-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin: 0 0 var(--space-4);
}

.pack-card .product-card-actions {
    margin-top: auto;
    display: flex;
    gap: var(--space-3);
}

.pack-card .product-card-actions .btn {
    flex: 1;
}

.pack-price-from {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-weight: 400;
    display: block;
    line-height: 1;
}

/* --- Comparison table --- */
.packs-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.packs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    font-size: 0.9rem;
}

.packs-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.packs-table thead th:first-child {
    border-left: 4px solid var(--gold);
}

.packs-table tbody td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    vertical-align: top;
}

.packs-table tbody tr:nth-child(even) td {
    background: var(--gray-50);
}

.packs-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.packs-table tbody td:first-child {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.packs-table .td-check {
    color: var(--success);
}

.packs-table .td-price {
    font-weight: 800;
    color: var(--accent);
    white-space: nowrap;
}

.packs-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- How it works timeline --- */
.how-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-8);
    position: relative;
    counter-reset: step;
}

.how-steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--gray-200), var(--gold), var(--gray-200));
    z-index: 0;
}

.how-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.how-step-num {
    width: 68px;
    height: 68px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-size: var(--font-size-xl);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
    border: 3px solid var(--white);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-base);
}

.how-step:hover .how-step-num {
    transform: scale(1.1);
}

.how-step h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--primary);
}

.how-step p {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Detail modal gallery --- */
.detail-gallery img {
    box-shadow: var(--shadow-sm);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .perks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .how-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .how-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .pack-card .product-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .perks-grid {
        grid-template-columns: 1fr;
    }
    .how-steps {
        grid-template-columns: 1fr;
    }
}
