/* =====================================================================
   Ecommerce Packages page — dark full-height video hero + light body.
   Pairs with Tailwind utilities (layout) and global.css (buttons, the
   comparison table). All critical theme/typography is explicit here so
   the page renders correctly regardless of utility purging.
   ===================================================================== */

:root {
    --epk-bg: #ffffff;
    --epk-bg-alt: #f6f6f4;
    --epk-ink: #16161a;
    --epk-body: #52525b;
    --epk-muted: #71717a;
    --epk-hair: #e8e8e4;
    --epk-red: #e21e26;
}

/* Force the light theme and beat main.js's scroll-driven inline body bg */
html,
body.ecommerce-packages-page {
    background-color: var(--epk-bg) !important;
}
body.ecommerce-packages-page {
    color: var(--epk-body);
    -webkit-font-smoothing: antialiased;
}

/* ---- Shared atoms ---------------------------------------------------- */
.epk-label {
    color: var(--epk-red);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
}
.epk-h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--epk-ink);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    font-weight: 600;
}
.epk-lead {
    color: var(--epk-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 42rem;
    font-weight: 300;
}
.epk-section {
    padding: clamp(4rem, 9vw, 7rem) 0;
    border-top: 1px solid var(--epk-hair);
}

/* ---- HERO (dark, video background) ---------------------------------- */
.epk-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}
.epk-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.epk-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.68) 55%, rgba(0, 0, 0, 0.9));
}
.epk-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    padding: 8rem 0 6rem;
}
.epk-hero-title {
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    text-transform: uppercase;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0.5rem 0 1.5rem;
}
.epk-hero-title .epk-italic { font-style: italic; font-weight: 300; color: #a1a1aa; }
.epk-hero-sub {
    color: #d4d4d8;
    font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.6;
    max-width: 40rem;
}
.epk-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2.25rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a1a1aa;
}
.epk-meta em { color: #fff; font-style: normal; font-weight: 500; }
.epk-meta-sep { width: 26px; height: 1px; background: rgba(255, 255, 255, 0.25); }
.epk-hero-cta { margin-top: 2.5rem; }
.epk-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 1px;
    height: 46px;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6));
}

/* ---- USP ------------------------------------------------------------ */
.epk-usp { background: var(--epk-bg); }
.epk-usp-item { border-top: 2px solid var(--epk-red); padding-top: 1.5rem; }
.epk-usp-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--epk-ink);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.75rem;
}
.epk-usp-desc { color: var(--epk-body); font-size: 1.05rem; line-height: 1.7; font-weight: 300; }

/* ---- The 4 points --------------------------------------------------- */
.epk-foundation { background: var(--epk-bg-alt); }
.epk-found-card { text-align: center; }
.epk-found-icon { width: 48px; height: 48px; margin: 0 auto 1rem; }
.epk-found-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--epk-ink);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.epk-found-desc { color: var(--epk-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- Pricing cards -------------------------------------------------- */
.epk-pricing { background: var(--epk-bg); }
.epk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--epk-hair);
    padding: 2.25rem 2rem;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.epk-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.3); }
.epk-card--featured {
    border-color: var(--epk-red);
    box-shadow: 0 0 0 1px var(--epk-red), 0 40px 80px -50px rgba(226, 30, 38, 0.5);
}
.epk-card--featured::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--epk-red);
}
@media (min-width: 1024px) {
    .epk-card--featured { transform: translateY(-12px); }
    .epk-card--featured:hover { transform: translateY(-18px); }
}
.epk-badge {
    position: absolute;
    top: 0; right: 1.5rem;
    transform: translateY(-50%);
    background: var(--epk-red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
}
.epk-tier-name { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--epk-muted); }
.epk-card--featured .epk-tier-name { color: var(--epk-red); }
.epk-price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.85rem; }
.epk-price {
    font-family: 'Cormorant Garamond', serif;
    color: var(--epk-ink);
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    line-height: 1;
    font-weight: 600;
}
.epk-price-suffix { color: var(--epk-muted); font-size: 0.8rem; }
.epk-tagline { color: var(--epk-muted); font-size: 0.9rem; margin-top: 0.65rem; }
.epk-features {
    list-style: none;
    margin: 1.6rem 0 2rem;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--epk-hair);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1 1 auto;
}
.epk-features li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.875rem; color: var(--epk-body); line-height: 1.45; }
.epk-features li.is-key { color: var(--epk-ink); }
.epk-features strong { color: var(--epk-ink); font-weight: 600; }
.epk-mark { color: var(--epk-red); font-weight: 700; flex: none; }
.epk-card-cta { width: 100%; margin-top: auto; }

/* ---- Receipt transition (contained 3D flying receipts) -------------- */
.epk-receipt {
    position: relative;
    overflow: clip;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--epk-bg-alt);
    border-top: 1px solid var(--epk-hair);
}
.epk-receipt-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.epk-receipt-content { position: relative; z-index: 1; width: 100%; padding: 5rem 0; }
.epk-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--epk-ink);
    font-size: clamp(1.8rem, 4.5vw, 3.25rem);
    line-height: 1.15;
}

/* ---- FAQ ------------------------------------------------------------ */
.epk-faq { background: var(--epk-bg); }
.epk-faq-heading { margin-bottom: 3rem; }
.epk-faq-list { border-top: 1px solid var(--epk-hair); }
.epk-faq-item { border-bottom: 1px solid var(--epk-hair); }
.epk-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.epk-faq-item summary::-webkit-details-marker { display: none; }
.epk-faq-item summary h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--epk-ink);
    font-weight: 500;
    line-height: 1.35;
}
.epk-faq-icon { color: var(--epk-red); font-size: 1.4rem; line-height: 1; flex: none; transition: transform 0.3s ease; }
.epk-faq-item[open] .epk-faq-icon { transform: rotate(45deg); }
.epk-faq-body { padding: 0 0 1.6rem; max-width: 48rem; animation: epkFade 0.35s ease; }
.epk-faq-body p { color: var(--epk-body); font-size: 0.92rem; line-height: 1.65; }
@keyframes epkFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- CTA ------------------------------------------------------------ */
.epk-cta { background: var(--epk-bg-alt); }
.epk-link-secondary {
    color: var(--epk-muted);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}
.epk-link-secondary:hover { color: var(--epk-ink); }

/* ---- Comparison table sits in light context (global.css styles it) --- */
.ecommerce-packages-page #pricing { border-top: 1px solid var(--epk-hair); }

@media (prefers-reduced-motion: reduce) {
    .epk-card, .epk-faq-icon, .epk-faq-body { transition: none; animation: none; }
}
