/* ============================================================================
   FuelYourDNA – "Roots to Plate" Launch Announcement Popup
   Self-contained styles. Auto-disables itself one month after launch via JS.
   CSS is harmless if left in production after that date.
   Pattern mirrors flash-popup.css for consistency, recolored to the Roots to
   Plate report's own dark-green/purple/teal palette instead of the flash-sale
   orange, so the popup reads as "new report" not "discount".
   ============================================================================ */

.rtp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.rtp-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.rtp-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background:
        radial-gradient(circle at 0% 0%, #f0fdfa 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, #f3e8ff 0%, transparent 55%),
        #ffffff;
    border-radius: 22px;
    box-shadow:
        0 24px 60px -12px rgba(13, 148, 136, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 2.25rem 1.75rem 1.75rem;
    text-align: center;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.8,.25,1), opacity .35s ease;
    overflow: hidden;
}

.rtp-backdrop.is-open .rtp-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.rtp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0d9488, #7c3aed, #0d9488);
    background-size: 200% 100%;
    animation: rtp-shimmer 4s linear infinite;
}

@keyframes rtp-shimmer {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

.rtp-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.rtp-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    font-size: 1.05rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 2;
}
.rtp-close:hover {
    background: #fff;
    color: #111;
    transform: rotate(90deg);
}

.rtp-badge {
    display: inline-block;
    padding: .35rem .9rem;
    background: linear-gradient(135deg, #ccfbf1, #ede9fe);
    color: #0f766e;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: .85rem;
}

.rtp-emoji {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: .4rem;
    filter: drop-shadow(0 4px 8px rgba(13, 148, 136, 0.35));
}

.rtp-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a2e1a;
    margin: 0 0 .55rem;
}
.rtp-title em {
    font-style: normal;
    background: linear-gradient(135deg, #0d9488, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rtp-subtitle {
    font-size: .95rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

.rtp-price {
    font-size: .95rem;
    color: #0f766e;
    margin: 0 0 1.25rem;
}
.rtp-price strong { font-size: 1.15rem; }

.rtp-cta {
    display: inline-block;
    width: 100%;
    padding: .95rem 1.5rem;
    background: linear-gradient(135deg, #0d9488, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.55);
}
.rtp-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -6px rgba(124, 58, 237, 0.55);
    color: #fff;
}

.rtp-skip {
    display: block;
    margin-top: .65rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: underline;
}
.rtp-skip:hover { color: #6b7280; }

@media (max-width: 480px) {
    .rtp-card { padding: 2rem 1.25rem 1.4rem; }
    .rtp-title { font-size: 1.25rem; }
    .rtp-subtitle { font-size: .9rem; }
}
