/* ================================================================
   ANIMAL PAGE — FUNNEL ELEMENTS
   Load after animal-page-enhanced.css.

   Two exit-ramp affordances to convert animal-page readers into
   users of the deeper tools on the site:

     1. Hero CTA — small calm "next step" link under the years strip
     2. Inline exit ramps — placed mid-article at moments of peak
        user receptivity (after personality, after love, after
        compatibility)

   No floating chart anchor is included here because the page already
   has a .ap-secnav section navigator pinned to the bottom-right.
   Adding a second floating element would create UI clutter.

   The visual treatment is deliberately quiet — these should feel
   like editorial guidance, not advertising banners.
   ================================================================ */


/* ════════════════════════════════════════════════════════════════
   1. HERO CTA
   Sits just below the years strip in the hero. Reads as a quiet
   invitation. Uses a hairline border + accent color on hover so
   it feels deliberate rather than promotional.
   ════════════════════════════════════════════════════════════════ */

.ap-hero-cta {
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.ap-hero-cta-question {
    font-size: 0.92rem;
    color: rgba(232, 224, 212, 0.65);
    font-style: italic;
}

.ap-hero-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(232, 224, 212, 0.92);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(232, 197, 71, 0.25);
    border-radius: 999px;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.ap-hero-cta-link:hover {
    border-color: rgba(232, 197, 71, 0.55);
    background: rgba(232, 197, 71, 0.06);
    color: #E8C547;
}

.ap-hero-cta-link::after {
    content: '→';
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.18s ease;
}

.ap-hero-cta-link:hover::after {
    transform: translateX(3px);
    opacity: 1;
}

@media (max-width: 600px) {
    .ap-hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .ap-hero-cta-question {
        font-size: 0.86rem;
    }
}


/* ════════════════════════════════════════════════════════════════
   2. INLINE EXIT RAMPS
   Mid-article CTAs at moments of peak user curiosity.
   Three placements in the template:
     B1: after personality (→ /four-pillars)
     B2: after love & relationships (→ /bazi/compatibility)
     B3: after compatibility section (→ /bazi/compatibility)
   ════════════════════════════════════════════════════════════════ */

.ap-exit-ramp {
    margin: 3rem auto;
    padding: 1.75rem 1.5rem;
    max-width: 920px;
    background: linear-gradient(
        135deg,
        rgba(232, 197, 71, 0.04) 0%,
        rgba(199, 125, 255, 0.04) 100%
    );
    border: 1px solid rgba(232, 197, 71, 0.18);
    border-radius: 14px;
    text-align: center;
    position: relative;
}

.ap-exit-ramp-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(232, 197, 71, 0.75);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.ap-exit-ramp-prompt {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(232, 224, 212, 0.95);
    line-height: 1.5;
    margin: 0 auto 1.1rem;
    max-width: 640px;
    font-family: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino', Georgia, serif;
    font-style: italic;
}

.ap-exit-ramp-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(180deg, #E8C547 0%, #d4b53b 100%);
    color: #1a1a2e;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 197, 71, 0.22);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.ap-exit-ramp-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 197, 71, 0.32);
}

.ap-exit-ramp-action::after {
    content: '→';
    font-size: 1.05rem;
    transition: transform 0.15s ease;
}

.ap-exit-ramp-action:hover::after {
    transform: translateX(3px);
}

.ap-exit-ramp-secondary {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: rgba(232, 224, 212, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ap-exit-ramp-secondary:hover {
    color: rgba(232, 197, 71, 0.9);
}

@media (max-width: 600px) {
    .ap-exit-ramp {
        margin: 2rem 0;
        padding: 1.4rem 1rem;
        border-radius: 12px;
    }
    .ap-exit-ramp-prompt {
        font-size: 1.02rem;
    }
    .ap-exit-ramp-action {
        padding: 0.65rem 1.2rem;
        font-size: 0.88rem;
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-exit-ramp-action,
    .ap-hero-cta-link {
        transition: none !important;
    }
}
