/* ============================================
   Costco Wholesale — Brand Design System
   Colors: Red #E31837 · Blue #005DAA · Navy #003B5C
   ============================================ */

:root {
    /* Costco Wholesale Official Brand Colors */
    --costco-red: #E31837;
    --costco-red-dark: #C41230;
    --costco-blue: #005DAA;
    --costco-blue-dark: #004A8C;
    --costco-blue-light: #0070CC;
    --costco-navy: #003B5C;

    /* Neutrals */
    --dark-text: #1B2537;
    --body-text: #3D4F5F;
    --muted-text: #6B7B8D;
    --border-color: #E1E8EF;
    --bg-light: #F6F8FB;
    --bg-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 59, 92, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 59, 92, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 59, 92, 0.12);
    --shadow-card: 0 20px 50px rgba(0, 93, 170, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
    opacity: 0;
}

.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
.animate-in.delay-5 { animation-delay: 0.5s; }

/* ============================================
   Typography
   ============================================ */
.eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--costco-red);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    text-align: center;
}

.main-heading, .section-heading {
    font-family: var(--font-heading);
    color: var(--dark-text);
    text-align: center;
    font-weight: 800;
}

.main-heading {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.75px;
    line-height: 1.1;
}

.section-heading {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.sub-heading {
    text-align: center;
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   Header — Session Timer Bar
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--costco-blue) 0%, var(--costco-navy) 100%);
    color: white;
    padding: 0.85rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 59, 92, 0.15);
}

.timer-container {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.timer-text {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Costco Brand Bar (red strip)
   ============================================ */
.brand-strip {
    background: var(--costco-red);
    height: 4px;
    width: 100%;
}

/* ============================================
   Main Layout
   ============================================ */
main {
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 3rem 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    position: relative;
}

/* ============================================
   Reward Card
   ============================================ */
.reward-card-container {
    width: 100%;
    max-width: 380px;
    margin-bottom: 2rem;
    perspective: 1200px;
}

.reward-card {
    background: linear-gradient(145deg, var(--costco-blue) 0%, var(--costco-navy) 60%, #002D47 100%);
    border-radius: 16px;
    padding: 1.75rem;
    color: white;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.reward-card:hover {
    transform: translateY(-4px) rotateX(2deg);
    box-shadow: 0 28px 60px rgba(0, 93, 170, 0.28);
}

/* Card shimmer effect */
.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Decorative circle on card */
.reward-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Red accent stripe on card */
.card-accent-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--costco-red);
    border-radius: 0 0 16px 16px;
}

.card-header {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.card-type {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-center h2 {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 2.4rem;
    opacity: 0.08;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    letter-spacing: 8px;
    pointer-events: none;
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.points {
    text-align: right;
}

.points-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.points-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: -2px;
    letter-spacing: -0.5px;
}

/* ============================================
   Primary CTA Button
   ============================================ */
.btn-primary {
    background: var(--costco-red);
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.3);
    transition: all 0.25s var(--ease-out);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--costco-red-dark);
    box-shadow: 0 8px 24px rgba(227, 24, 55, 0.35);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.3);
}

/* ============================================
   Social Proof
   ============================================ */
.social-proof {
    margin-top: 1.2rem;
    font-size: 0.82rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-proof .live-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease-out);
}

.step:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 93, 170, 0.15);
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.step-number.step-1 {
    background: var(--costco-blue);
}

.step-number.step-2 {
    background: var(--costco-red);
}

.step-number.step-3 {
    background: #10B981;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.step-icon.dark-blue {
    background-color: rgba(0, 93, 170, 0.08);
    color: var(--costco-blue);
}

.step-icon.bright-blue {
    background-color: rgba(227, 24, 55, 0.06);
    color: var(--costco-red);
}

.step-icon.green {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10B981;
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.15rem;
}

.step-content p {
    font-size: 0.82rem;
    color: var(--muted-text);
    line-height: 1.45;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}

.faq-list {
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    border-top: 1px solid var(--border-color);
}

.faq-item.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 0.25rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: color 0.2s;
    gap: 1rem;
}

.faq-toggle:hover {
    color: var(--costco-blue);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out);
}

.faq-content p {
    padding: 0 0.25rem 1.25rem;
    font-size: 0.92rem;
    color: var(--body-text);
    line-height: 1.7;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.chevron {
    transition: transform 0.35s var(--ease-out), color 0.3s;
    flex-shrink: 0;
    color: var(--costco-blue);
}

.faq-item.active .chevron {
    transform: rotate(45deg);
    color: var(--costco-red);
}

/* ============================================
   Bottom CTA Section
   ============================================ */
.bottom-cta-section {
    padding-top: 1rem;
    padding-bottom: 4rem;
}

.bottom-cta-card {
    background: linear-gradient(145deg, var(--costco-blue) 0%, var(--costco-navy) 100%);
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.bottom-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.bottom-cta-card h2 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.bottom-cta-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.bottom-cta-card .btn-primary {
    background: var(--costco-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.bottom-cta-card .btn-primary:hover {
    background: var(--costco-red-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--costco-navy);
    color: white;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--costco-red);
}

.site-footer h3 {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-family: var(--font-body);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.brand-sub-footer {
    color: var(--costco-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links span {
    opacity: 0.25;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 480px) {
    .main-heading { font-size: 2rem; }
    .section-heading { font-size: 1.5rem; }
    .card-center h2 { font-size: 1.8rem; letter-spacing: 4px; }
    .reward-card { height: 190px; padding: 1.5rem; }
    .points-value { font-size: 1.7rem; }
    .timer-text { font-size: 0.9rem; }
    .timer-container { font-size: 0.82rem; }
    .btn-primary { font-size: 0.95rem; padding: 1rem 1.5rem; border-radius: 10px; }
    .faq-toggle { font-size: 0.95rem; padding: 1.2rem 0.25rem; }
    .bottom-cta-card { padding: 2.5rem 1.25rem; border-radius: 16px; }
    .bottom-cta-card h2 { font-size: 1.4rem; }
    section { padding: 2.5rem 1.25rem; }
}

@media (max-width: 360px) {
    .card-center h2 { font-size: 1.5rem; letter-spacing: 2px; }
    .main-heading { font-size: 1.7rem; }
    .reward-card { height: 175px; padding: 1.25rem; }
}
