/* ==========================================================================
   SUBSCRIPTION LANDING PAGE STYLES
   ========================================================================== */

/* Hero Section */
.sub-hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    overflow: hidden;
    background: var(--bg-color);
    /* Beige */
}

.sub-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.sub-text {
    flex: 1;
    max-width: 600px;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    /* Gold */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.sub-text h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.sub-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

/* Abstract Delivery Box Animation */
.sub-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.delivery-box-anim {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-box {
    position: relative;
    width: 200px;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.tea-box-svg {
    width: 100%;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.box-shadow {
    width: 140px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    animation: shadow 4s ease-in-out infinite;
}

/* Sparkles */
.sparkle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
}

.s1 {
    top: -20px;
    left: 20px;
    animation: twinkle 3s infinite 0.5s;
}

.s2 {
    top: 40px;
    right: -20px;
    animation: twinkle 3s infinite 1.5s;
}

.s3 {
    bottom: 20px;
    left: -10px;
    animation: twinkle 3s infinite 2.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes shadow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes twinkle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(-20px) rotate(45deg);
        opacity: 0;
    }
}

/* Background Leaf */
.bg-leaf {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    animation: sway 20s infinite ease-in-out alternate;
}

@keyframes sway {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}


/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-num {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
    font-weight: 600;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Connector Line */
@media (min-width: 851px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 60%;
        width: 80%;
        height: 1px;
        border-top: 2px dashed #ccc;
        z-index: -1;
    }
}


/* Pricing Section */
.highlight-bg {
    background: #ebe9e2;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tier-card {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem;
    border: 1px solid #e0dfd9;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tier-card.featured {
    border: 2px solid var(--primary);
    padding: 4rem 2rem;
    /* Taller */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.tier-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tier-price .currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.tier-price .period {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #888;
    align-self: flex-end;
    margin-bottom: 0.8rem;
    margin-left: 0.2rem;
}

.tier-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.tier-features li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: #444;
    font-size: 0.95rem;
}

.tier-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    /* Gold checkmarks */
    font-weight: bold;
}

.tier-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}


/* Responsive */
@media (max-width: 950px) {
    .sub-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .tier-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tier-card.featured {
        padding: 3rem 2rem;
        /* Reset height */
    }
}

@media (max-width: 850px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}