/* Avocado funnel — async-loaded full styles. Section-by-section. */

.av-funnel { color: var(--av-ink, #1F2A1A); }
.av-funnel section { padding: clamp(56px, 10vw, 120px) clamp(20px, 6vw, 80px); }
.av-funnel section + section { border-top: none; }

/* Eyebrow with playful Caveat script */
.av-eyebrow {
    display: inline-block;
    font-family: var(--av-script, "Caveat", cursive);
    font-size: 26px;
    color: var(--av-leaf-deep, #2C5530);
    transform: rotate(-3deg);
    margin-bottom: 8px;
}

/* Section heading */
.av-h2 {
    font-family: var(--av-serif, "DM Serif Display", Georgia, serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--av-ink, #1F2A1A);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.av-section__intro {
    color: var(--av-stone, #6B7065);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 540px;
    margin: 0 auto 40px;
    text-align: center;
}

/* ===== Tabbed summary ============================================ */
.av-tabs-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--av-cream-alt, #F2F0DA);
    padding: 32px;
    border-radius: var(--av-radius-lg, 28px);
}
.av-tabs-nav { display: flex; gap: 6px; background: rgba(255,255,255,0.6); padding: 6px; border-radius: var(--av-radius-pill, 999px); margin-bottom: 20px; }
.av-tabs-nav button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: var(--av-radius-pill, 999px);
    font-weight: 600;
    color: var(--av-stone, #6B7065);
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.av-tabs-nav button.is-active { background: var(--av-leaf-deep, #2C5530); color: var(--av-cream, #FBFAE3); }
.av-tab-panel { display: none; }
.av-tab-panel.is-active { display: block; color: var(--av-ink); }
.av-tab-panel ul { list-style: none; padding: 0; margin: 0; }
.av-tab-panel li { padding: 8px 0 8px 28px; position: relative; }
.av-tab-panel li::before { content: "🥑"; position: absolute; left: 0; top: 8px; }

/* ===== Problem — 2x2 bento ====================================== */
.av-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}
.av-bento__card {
    background: var(--av-cream-alt, #F2F0DA);
    padding: 28px;
    border-radius: var(--av-radius-lg, 28px);
    border: 1px solid var(--av-hairline, #E2E5D6);
    transition: transform .15s;
}
.av-bento__card:hover { transform: translateY(-2px); }
.av-bento__card:nth-child(1) { background: var(--av-leaf-light, #B8D976); }
.av-bento__card:nth-child(4) { background: var(--av-coral-soft, #FFE2DD); }
.av-bento__card h3 { font-family: var(--av-serif, "DM Serif Display", serif); font-size: 22px; color: var(--av-ink); margin-bottom: 10px; }
.av-bento__card p { color: var(--av-stone, #6B7065); font-size: 14px; line-height: 1.55; }
@media (max-width: 640px) {
    .av-bento { grid-template-columns: 1fr; }
}

/* ===== Ingredient story — full-bleed image + floating card ======= */
.av-ingredient {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}
.av-ingredient__image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--av-leaf-light, #B8D976);
    background-size: cover;
    background-position: center;
    border-radius: var(--av-radius-lg, 28px);
    position: relative;
    overflow: hidden;
}
.av-ingredient__card {
    background: var(--av-cream, #FBFAE3);
    padding: 32px;
    border-radius: var(--av-radius-lg, 28px);
    box-shadow: var(--av-shadow-pop, 0 16px 40px rgba(0,0,0,.12));
    max-width: 480px;
    margin: -80px auto 0;
    position: relative;
    z-index: 2;
}
.av-ingredient__card h3 { font-family: var(--av-serif); font-size: 22px; color: var(--av-leaf-deep, #2C5530); margin-bottom: 12px; }
.av-ingredient__card p { color: var(--av-stone, #6B7065); margin-bottom: 14px; line-height: 1.65; font-size: 15px; }
.av-ingredient__card p strong { color: var(--av-ink); }
@media (min-width: 880px) {
    .av-ingredient__card {
        position: absolute;
        bottom: 32px;
        left: 40px;
        margin: 0;
        max-width: 440px;
    }
}

/* ===== Product reveal — ingredient pill cloud ==================== */
.av-reveal {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.av-pills-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 32px; }
.av-pill {
    background: var(--av-leaf-light, #B8D976);
    color: var(--av-leaf-deep, #2C5530);
    padding: 8px 16px;
    border-radius: var(--av-radius-pill);
    font-size: 14px;
    font-weight: 600;
}
.av-pill--neg {
    background: transparent;
    color: var(--av-stone);
    border: 1.5px dashed var(--av-stone);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* ===== Video ===================================================== */
.av-video-wrap {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--av-radius-lg);
    overflow: hidden;
    box-shadow: var(--av-shadow-pop, 0 16px 40px rgba(0,0,0,.12));
    background: #000;
}
.av-video-wrap video { width: 100%; height: auto; display: block; }

/* ===== How to use — vertical timeline ============================ */
.av-timeline {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    padding-left: 56px;
}
.av-timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: repeating-linear-gradient(180deg, var(--av-leaf-deep) 0 8px, transparent 8px 16px);
    border-radius: 2px;
}
.av-timeline__step {
    position: relative;
    padding: 16px 0 32px;
}
.av-timeline__num {
    position: absolute;
    left: -56px;
    top: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--av-leaf-deep);
    color: var(--av-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--av-serif);
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}
.av-timeline__step h3 { font-family: var(--av-serif); font-size: 20px; margin-bottom: 4px; color: var(--av-ink); }
.av-timeline__step p { color: var(--av-stone); font-size: 14px; }

/* ===== Results — carousel of circular cards ====================== */
.av-results-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.av-result-card {
    background: var(--av-cream-alt);
    padding: 32px 24px;
    border-radius: var(--av-radius-lg);
    text-align: center;
}
.av-result-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--av-leaf-light);
    color: var(--av-leaf-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--av-serif);
    font-size: 28px;
    margin: 0 auto 16px;
    overflow: hidden;
}
.av-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-result-quote { color: var(--av-ink); font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.av-result-name { font-weight: 600; font-size: 13px; color: var(--av-ink); }
.av-result-meta { font-size: 12px; color: var(--av-stone); margin-top: 2px; }

/* Results photo grid (uploaded gallery) */
.av-results-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto 40px; }
.av-results-photos figure { aspect-ratio: 1; border-radius: var(--av-radius); overflow: hidden; margin: 0; border: 1px solid var(--av-hairline); }
.av-results-photos img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Trust band — emoji icons ================================== */
.av-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.av-trust-item { text-align: center; }
.av-trust-emoji { font-size: 38px; margin-bottom: 10px; line-height: 1; }
.av-trust-item strong { display: block; color: var(--av-ink); font-family: var(--av-serif); font-size: 18px; margin-bottom: 4px; font-weight: 500; }
.av-trust-item span { color: var(--av-stone); font-size: 13px; }

/* ===== Offer — coral panel with pill CTA ========================= */
.av-offer {
    background: var(--av-coral);
    color: #fff;
    text-align: center;
    border-radius: var(--av-radius-lg);
    padding: clamp(40px, 8vw, 80px) clamp(20px, 6vw, 60px);
    max-width: 920px;
    margin: 0 auto;
}
.av-offer .av-h2 { color: #fff; }
.av-offer p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 24px; font-size: 16px; }
.av-offer .av-cta { background: #fff; color: var(--av-coral); }
.av-offer .av-cta:hover { background: var(--av-ink); color: #fff; }

/* ===== FAQ — rounded cards ======================================= */
.av-faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.av-faq-card {
    background: var(--av-cream-alt);
    border-radius: var(--av-radius);
    padding: 20px 24px;
    transition: background .15s;
}
.av-faq-card[open] { background: var(--av-leaf-light); }
.av-faq-card summary {
    cursor: pointer;
    font-family: var(--av-serif);
    font-size: 17px;
    color: var(--av-ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.av-faq-card summary::-webkit-details-marker { display: none; }
.av-faq-card summary::after { content: "+"; font-family: var(--av-sans); font-size: 24px; color: var(--av-leaf-deep); transition: transform .2s; }
.av-faq-card[open] summary::after { transform: rotate(45deg); }
.av-faq-card p { color: var(--av-stone); margin-top: 12px; font-size: 14.5px; line-height: 1.6; }

/* ===== Final CTA — deep panel with overlap card ================== */
.av-final {
    background: var(--av-leaf-deep);
    color: var(--av-cream);
    text-align: center;
    border-radius: var(--av-radius-lg);
    padding: clamp(48px, 9vw, 96px) clamp(20px, 6vw, 60px);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.av-final .av-h2 { color: var(--av-cream); margin-bottom: 12px; }
.av-final p { color: rgba(255,255,255,0.75); max-width: 460px; margin: 0 auto 28px; font-size: 16px; }
.av-final .av-cta { background: var(--av-coral); color: #fff; }
.av-final .av-cta:hover { background: #fff; color: var(--av-coral); }

/* ===== Related (Complete your routine) =========================== */
.av-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.av-related-card {
    background: var(--av-cream);
    border-radius: var(--av-radius-lg);
    overflow: hidden;
    border: 1px solid var(--av-hairline);
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.av-related-card:hover { transform: translateY(-2px); box-shadow: var(--av-shadow-pop); }
.av-related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.av-related-card__body { padding: 16px 20px 20px; }
.av-related-card__name { font-family: var(--av-serif); font-size: 18px; margin-bottom: 6px; }
.av-related-card__price { color: var(--av-leaf-deep); font-weight: 600; }
