/* ==========================================================================
   Pricing cards ("Enter the world of the tailored pricing")
   Shared by the home page (#why-choose-new) and the Engagement page (#pricing),
   so both show the same containers. Loaded by index.html and engagement.html.
   ========================================================================== */

:is(#why-choose-new, #pricing) {
    --hp-gold: #C9A438;
    --hp-gold-hi: #E7CF86;
    --hp-gold-deep: #A7832A;
    --hp-navy: #111A2E;
    --hp-ink: #111A2E;
    --hp-text: #475569;
    --hp-line: rgba(17, 26, 46, 0.08);
    --hp-card: #FFFFFF;
    --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hp-gold-grad: linear-gradient(135deg, #E7CF86 0%, #C9A438 55%, #A7832A 100%);
}

html.dark-mode :is(#why-choose-new, #pricing) {
    --hp-ink: #F1F5F9;
    --hp-text: #C2CDDB;
    --hp-line: rgba(255, 255, 255, 0.08);
    --hp-card: #121D33;
}
:is(#why-choose-new, #pricing) .life-slides-container {
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

:is(#why-choose-new, #pricing) .life-slide {
    isolation: isolate;
    padding: 2.6rem 1.9rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--hp-line);
    background:
        radial-gradient(220px 120px at 50% 0%, rgba(201, 164, 56, 0.09), transparent 70%),
        var(--hp-card);
    box-shadow:
        0 1px 2px rgba(17, 26, 46, 0.04),
        0 18px 40px -26px rgba(17, 26, 46, 0.35);
    transition: transform 0.5s var(--hp-ease), box-shadow 0.5s var(--hp-ease), border-color 0.35s ease;
}

/* gold hairline that draws across the top on hover */
:is(#why-choose-new, #pricing) .life-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 46%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--hp-gold-grad);
    transform: translateX(-50%) scaleX(0.35);
    transform-origin: center;
    opacity: 0.75;
    transition: transform 0.55s var(--hp-ease), opacity 0.35s ease, width 0.55s var(--hp-ease);
}

:is(#why-choose-new, #pricing) .life-slide:hover,
:is(#why-choose-new, #pricing) .life-slide:focus-within {
    transform: translateY(-8px);
    border-color: rgba(201, 164, 56, 0.55);
    box-shadow:
        0 2px 4px rgba(17, 26, 46, 0.05),
        0 30px 60px -28px rgba(17, 26, 46, 0.45),
        0 0 0 4px rgba(201, 164, 56, 0.08);
}

:is(#why-choose-new, #pricing) .life-slide:hover::before,
:is(#why-choose-new, #pricing) .life-slide:focus-within::before {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

:is(#why-choose-new, #pricing) .slide-content {
    margin-bottom: 1.6rem;
}

:is(#why-choose-new, #pricing) .slide-title {
    margin-bottom: 1.1rem;
    font-size: clamp(1.18rem, 1.35vw, 1.38rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hp-ink);
}

/* gold price with a fine rule underneath */
:is(#why-choose-new, #pricing) .slide-price {
    position: relative;
    display: inline-flex;
    align-self: center;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    font-size: clamp(2.4rem, 3vw, 2.9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--hp-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hp-gold);
}

:is(#why-choose-new, #pricing) .slide-price span {
    font-weight: 700;
    letter-spacing: 0.04em;
}

:is(#why-choose-new, #pricing) .slide-price::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--hp-gold), transparent);
    transition: width 0.5s var(--hp-ease);
}

:is(#why-choose-new, #pricing) .life-slide:hover .slide-price::after {
    width: 72px;
}

:is(#why-choose-new, #pricing) .slide-desc {
    margin-bottom: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--hp-text);
}

/* Buy Now: gold with a light sweep on hover (destination unchanged) */
:is(#why-choose-new, #pricing) .life-slide .btn-primary,
html body.dark-mode :is(#why-choose-new, #pricing) .life-slide .btn-primary {
    position: relative;
    overflow: hidden;
    padding: 0.95rem 1.5rem;
    border: 0 !important;
    border-radius: 14px;
    background-color: var(--hp-gold) !important;
    background-image: var(--hp-gold-grad) !important;
    color: var(--hp-navy) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 24px -14px rgba(167, 131, 42, 0.9);
    transition: transform 0.35s var(--hp-ease), box-shadow 0.35s var(--hp-ease), filter 0.35s ease;
}

:is(#why-choose-new, #pricing) .life-slide .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--hp-ease);
    pointer-events: none;
}

:is(#why-choose-new, #pricing) .life-slide .btn-primary:hover,
html body.dark-mode :is(#why-choose-new, #pricing) .life-slide .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 18px 30px -14px rgba(167, 131, 42, 1);
    color: var(--hp-navy) !important;
}

:is(#why-choose-new, #pricing) .life-slide .btn-primary:hover::after {
    left: 120%;
}

:is(#why-choose-new, #pricing) .life-slide .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

:is(#why-choose-new, #pricing) .life-slide .btn-primary:focus-visible {
    outline: 2px solid var(--hp-navy);
    outline-offset: 3px;
}

html.dark-mode :is(#why-choose-new, #pricing) .life-slide .btn-primary:focus-visible {
    outline-color: var(--hp-gold-hi);
}

html.dark-mode body.dark-mode :is(#why-choose-new, #pricing) .life-slide {
    background:
        radial-gradient(220px 120px at 50% 0%, rgba(201, 164, 56, 0.12), transparent 70%),
        linear-gradient(160deg, #15223B 0%, #0F192D 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

html.dark-mode body.dark-mode :is(#why-choose-new, #pricing) .life-slide:hover {
    border-color: rgba(201, 164, 56, 0.55);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(201, 164, 56, 0.1), 0 0 40px -12px rgba(201, 164, 56, 0.35);
}

html.dark-mode body.dark-mode :is(#why-choose-new, #pricing) .slide-title {
    color: #F1F5F9 !important;
}

html.dark-mode body.dark-mode :is(#why-choose-new, #pricing) .slide-desc {
    color: #C2CDDB !important;
}

@media (prefers-reduced-motion: reduce) {
    :is(#why-choose-new, #pricing) .life-slide,
    :is(#why-choose-new, #pricing) .life-slide::before,
    :is(#why-choose-new, #pricing) .life-slide .btn-primary,
    :is(#why-choose-new, #pricing) .life-slide .btn-primary::after {
        transition: none;
    }
}
/* ---------- Dark mode colour restore ----------
   style.css forces every span in dark mode to grey with !important (weight 0,5,2),
   which put a grey "+VAT" on the gold price chip. Let it follow the price colour
   again, as in light mode. ":not(#pc-x)" only adds selector weight. */
html.dark-mode .slide-price span:not(#pc-x) { color: inherit !important; }
