/* home.css */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --spice-box-shadow:                 rgba(201, 095, 046, 0.3);
    --locked-feature-background:        rgba(255, 243, 205, 0.3);
    --yellow:      rgba(255, 193, 7, 0.9);
    --white:       #fff;
    --cream:       #FAF7F2;
    --red:         #C0392B;
    --cream-dark:  #F0EBE1;
    --charcoal:    #1C1B19;
    --warm-mid:    #6B6560;
    --spice:       #C95F2E;       /* primary CTA accent */
    --spice-deep:  #A34820;
    --spice-pale:  #FCEEE7;
    --sage:        #4A6741;
    --sage-pale:   #EBF1E8;
    --radius-card: 1.25rem;
    --radius-sm:   0.5rem;
    --transition:  1.2s cubic-bezier(0.22, 1, 0.36, 1);
    --translateY-hover: translateY(-3px);
    --box-shadow-hover: 0 8px 28px var(--charcoal);
    --box-shadow-spice-hover: 0 8px 28px var(--spice-box-shadow);
}

/* Bootstrap light-mode override for this page */
body {
    background-color: var(--cream) !important;
    color: var(--charcoal);
}

/* ── Utility overrides ────────────────────────────────────── */
.text-spice         { color: var(--spice); }
.bg-spice           { background-color: var(--spice); }
.bg-cream           { background-color: var(--cream); }
.bg-cream-dark      { background-color: var(--cream-dark); }
.text-warm-mid      { color: var(--warm-mid); }
.border-spice       { border-color: var(--spice) !important; }

/* ── Reveal animations ────────────────────────────────────── */
.reveal            { opacity: 0; transform: translateY(28px); transition: opacity var(--transition), transform var(--transition); }
.reveal-visible    { opacity: 1; transform: translateY(0); }
.reveal-left       { opacity: 0; transform: translateX(-40px); transition: opacity var(--transition), transform var(--transition); }
.reveal-right      { opacity: 0; transform: translateX(40px);  transition: opacity var(--transition), transform var(--transition); }
.reveal-visible-side { opacity: 1; transform: translate(0); }
.reveal-pop        { opacity: 0; transform: scale(0.88); transition: opacity 0.55s cubic-bezier(0.34,1.56,0.64,1), transform 0.55s cubic-bezier(0.34,1.56,0.64,1); }
.reveal-pop-visible { opacity: 1; transform: scale(1); }


/* ── CTA buttons ──────────────────────────────────────────── */
.btn-spice {
    background: var(--spice);
    color: var(--white);
    border: none;
    border-radius: 3rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-spice:hover {
    background: var(--spice-deep);
    color: var(--white);
    transform: var(--translateY-hover);
    box-shadow: var(--box-shadow-spice-hover);
}
.btn-spice-outline {
    background: transparent;
    color: var(--spice);
    border: 1.5px solid var(--spice);
    border-radius: 3rem;
    transition: background 0.25s ease, color 0.25s ease;
}
.btn-spice-outline:hover {
    background: var(--spice);
    color: var(--white);
    transform: var(--translateY-hover);
    box-shadow: var(--box-shadow-spice-hover);
}
.btn-bright {
    background: var(--white);
    color: var(--spice);
    border: none;
    border-radius: 3rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-bright:hover {
    background: var(--spice-deep);
    color: var(--white);
    transform: var(--translateY-hover);
    box-shadow: var(--box-shadow-hover);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge-spice {
    background: var(--spice);
    color: var(--white);
}

/* ── Links ───────────────────────────────────────────────── */
/* Base class for the link */
.link-spice {
    text-decoration: none;
    color: var(--spice);
    /* link-underline-opacity-0: Hide the underline initially */
    text-decoration-color: var(--spice);
    
    /* Smooth transition for the underline opacity and offset */
    transition: text-decoration-color 0.15s ease-in-out, text-underline-offset 0.15s ease-in-out;
}
/* Hover state behavior */
.link-spice:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--spice);
}

/* ── Cards ───────────────────────────────────────────────── */
.card-spice {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--cream-dark);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-spice:hover {
    box-shadow: var(--box-shadow-spice-hover);
    transform: var(--translateY-hover);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.55); }
.site-footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.social-btn:hover { background: var(--spice); color: #fff; border-color: var(--spice); }

/* ── Divider ornament ─────────────────────────────────────── */
.ornament {
    text-align: center;
    color: var(--cream-dark);
    letter-spacing: 0.5rem;
    margin: 0;
    padding: 2rem 0;
}

/* Social link in base (keep compatible) */
.social-link {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6); text-decoration: none;
    transition: all 0.2s ease;
}
.social-link:hover { background: var(--spice); color: #fff; }

/* Subtle pulse keyframe */
@keyframes softPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-once {
    animation: softPulse 0.8s ease-in-out;
    animation-iteration-count: 1;
    animation-delay: 3s; /* Starts right after it reveals */
}

/* Apply this to cards when trial is ended */
.locked-feature-bg {
    background: var(--locked-feature-background);
    backdrop-filter: blur(4px);
    border: 1px solid var(--yellow);
}

/* Apply this to the very last data row when trial is ended */
.trial-cutoff {
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    opacity: 0.6;
}