/* ---------------------------------------------------------------------------
   Seasonal promotional skins (INVA-368).

   PAINT-ONLY SHEET. Every box-model rule for the banner, its actions and the
   seasonal toggle lives in the render-blocking theme.css. This sheet is
   deferred, so a size rule here would resize the banner after first paint and
   shift the navbar and hero below it (the mobile CLS bug). Only colour,
   background, border-colour, shadow, opacity, mask and blend mode belong here.

   Colour contract, one row per skin and mode. Every pair was measured, and the
   comment beside each value is the WCAG ratio it must keep:

     text on the surface          >= 4.5:1
     pill label on the pill       >= 4.5:1
     CTA label on the CTA         >= 4.5:1  (every skin clears 5:1)
     control border on surface    >= 3:1    (non-text contrast)
     focus ring on surface        >= 3:1

   The CTA label is NEVER pinned to white. Each skin declares the ink that was
   checked against its own CTA fill, and the hero-card buttons read that token
   (--event-cta-fg), which is what fixes the white-on-white Black Friday button.

   Material, not decoration: obsidian-plum, carbon with a platinum hairline,
   midnight navy with champagne, botanical evergreen, and the signature brand
   navy. No neon gradients, no purple-to-cyan, no glossy placeholder blocks.
   --------------------------------------------------------------------------- */

/* Halloween: deep obsidian-plum, burnt-orange pill, amber CTA. */
.promo-banner--halloween {
    --promo-bg: #181124;
    --promo-fg: #fef3c7;              /* 16.48:1 on #181124 */
    --promo-border: #d97706;          /* 5.76:1, amber hairline */
    --promo-tag-bg: #b45309;
    --promo-tag-fg: #fff7ed;          /* 4.73:1 on #b45309 */
    --promo-tag-border: #f59e0b;      /* 6.9:1 on #181124 */
    --promo-accent: #fbbf24;          /* 10.99:1 focus ring */
    --promo-cta-bg: #fbbf24;
    --promo-cta-fg: #181124;          /* 10.99:1 */
    --promo-cta-border: #fbbf24;
    --promo-cta-hover-bg: #fde68a;
    --promo-cta-hover-fg: #181124;    /* 14.73:1 */
    --promo-dismiss-filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme=light] .promo-banner--halloween {
    --promo-bg: #fff7ed;
    --promo-fg: #431407;              /* 14.74:1 on #fff7ed */
    --promo-border: #d97706;          /* 3.00:1, non-text hairline */
    --promo-tag-bg: #b45309;
    --promo-tag-fg: #fff7ed;          /* 4.73:1 */
    --promo-tag-border: #9a3412;      /* 6.88:1 */
    --promo-accent: #9a3412;          /* 6.88:1 focus ring */
    --promo-cta-bg: #fbbf24;
    --promo-cta-fg: #1a1200;          /* 12.88:1, dark ink on amber */
    --promo-cta-border: #b45309;      /* 4.73:1 button edge */
    --promo-cta-hover-bg: #fcd34d;
    --promo-cta-hover-fg: #1a1200;    /* 15.06:1 */
    --promo-dismiss-filter: none;
}

/* Black Friday: carbon-black surface, platinum/ice-blue pill, inverted
   monochrome CTA (white on carbon in dark mode, carbon on white in light). */
.promo-banner--black_friday {
    --promo-bg: #090d16;
    --promo-fg: #f8fafc;              /* 18.57:1 on #090d16 */
    --promo-border: #334155;          /* decorative platinum hairline */
    --promo-tag-bg: #38bdf8;
    --promo-tag-fg: #090d16;          /* 9.07:1 ice-blue pill, carbon label */
    --promo-tag-border: #7dd3fc;      /* 11.19:1 */
    --promo-accent: #38bdf8;          /* 9.07:1 focus ring */
    --promo-cta-bg: #ffffff;
    --promo-cta-fg: #090d16;          /* 19.43:1 */
    --promo-cta-border: #ffffff;
    --promo-cta-hover-bg: #e2e8f0;
    --promo-cta-hover-fg: #090d16;    /* 15.76:1 */
    --promo-dismiss-filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme=light] .promo-banner--black_friday {
    --promo-bg: #f8fafc;
    --promo-fg: #0f172a;              /* 17.06:1 on #f8fafc */
    --promo-border: #334155;          /* 9.90:1 platinum hairline */
    --promo-tag-bg: #0369a1;
    --promo-tag-fg: #ffffff;          /* 5.93:1, sky-blue pill with white ink */
    --promo-tag-border: #0369a1;      /* 5.67:1 */
    --promo-accent: #0369a1;          /* 5.67:1 focus ring */
    --promo-cta-bg: #090d16;
    --promo-cta-fg: #ffffff;          /* 19.43:1, inverted in light mode */
    --promo-cta-border: #090d16;
    --promo-cta-hover-bg: #1e293b;
    --promo-cta-hover-fg: #ffffff;    /* 14.63:1 */
    --promo-dismiss-filter: none;
}

/* New Year: midnight royal navy, champagne-gold pill, warm gold CTA. */
.promo-banner--new_year {
    --promo-bg: #0f172a;
    --promo-fg: #fefce8;              /* 17.26:1 on #0f172a */
    --promo-border: #d97706;          /* 5.60:1 gold hairline */
    --promo-tag-bg: #fbbf24;
    --promo-tag-fg: #231603;          /* 10.59:1 */
    --promo-tag-border: #fcd34d;      /* 11.7:1 */
    --promo-accent: #fbbf24;          /* 10.69:1 focus ring */
    --promo-cta-bg: #f59e0b;
    --promo-cta-fg: #0f172a;          /* 8.31:1 */
    --promo-cta-border: #f59e0b;
    --promo-cta-hover-bg: #fbbf24;
    --promo-cta-hover-fg: #0f172a;    /* 10.69:1 */
    --promo-dismiss-filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme=light] .promo-banner--new_year {
    --promo-bg: #fefce8;
    --promo-fg: #422006;              /* 14.09:1 on #fefce8 */
    --promo-border: #b45309;          /* 4.86:1 */
    --promo-tag-bg: #d97706;          /* champagne-gold, not Halloween's orange */
    --promo-tag-fg: #231603;          /* 5.55:1 */
    --promo-tag-border: #92400e;      /* 6.85:1 */
    --promo-accent: #92400e;          /* 6.85:1 focus ring */
    --promo-cta-bg: #f59e0b;
    --promo-cta-fg: #1a1200;          /* 8.65:1, dark ink on gold */
    --promo-cta-border: #b45309;      /* 4.86:1 button edge */
    --promo-cta-hover-bg: #fbbf24;
    --promo-cta-hover-fg: #1a1200;    /* 11.13:1 */
    --promo-dismiss-filter: none;
}

/* Spring Boost: deep botanical evergreen, fresh emerald pill.
   The pill is a bright emerald chip with deep-evergreen ink, not a deep fill
   with white type. #059669 cannot hold any plausible ink at 4.5:1 (its best
   pairing is 5.0:1 against near-black, and white reaches only 3.8:1), and the
   old #047857 fill measured 2.69:1 against its own #062e22 surface, so the chip
   disappeared into the banner it sat on. */
.promo-banner--spring_boost {
    --promo-bg: #062e22;
    --promo-fg: #ecfdf5;              /* 14.02:1 on #062e22 */
    --promo-border: #10b981;          /* 5.82:1 emerald hairline */
    --promo-tag-bg: #059669;
    --promo-tag-fg: #04140f;          /* 5.01:1, deep-evergreen chip ink */
    --promo-tag-border: #10b981;      /* 5.82:1 */
    --promo-accent: #34d399;          /* 7.68:1 focus ring */
    --promo-cta-bg: #34d399;
    --promo-cta-fg: #062e22;          /* 7.68:1 emerald-on-evergreen */
    --promo-cta-border: #34d399;
    --promo-cta-hover-bg: #10b981;
    --promo-cta-hover-fg: #04140f;    /* 7.44:1 */
    --promo-dismiss-filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme=light] .promo-banner--spring_boost {
    --promo-bg: #ecfdf5;
    --promo-fg: #064e3b;              /* 9.23:1 on #ecfdf5 */
    --promo-border: #047857;          /* 5.21:1 */
    --promo-tag-bg: #059669;
    --promo-tag-fg: #04140f;          /* 5.01:1, and 3.58:1 off the light surface */
    --promo-tag-border: #047857;      /* 5.21:1 */
    --promo-accent: #047857;          /* 5.21:1 focus ring */
    --promo-cta-bg: #047857;
    --promo-cta-fg: #ffffff;          /* 5.48:1 */
    --promo-cta-border: #047857;
    --promo-cta-hover-bg: #065f46;
    --promo-cta-hover-fg: #ffffff;    /* 7.68:1 */
    --promo-dismiss-filter: none;
}

/* Custom / Early Access: signature InvoiceHelm navy, brand-blue pill. */
.promo-banner--custom,
.promo-banner--pilot_special {
    --promo-bg: #0f172a;
    --promo-fg: #f8fafc;              /* 17.06:1 on #0f172a */
    --promo-border: #2563eb;          /* 3.45:1 brand hairline */
    --promo-tag-bg: #2563eb;
    --promo-tag-fg: #ffffff;          /* 5.17:1 */
    --promo-tag-border: #60a5fa;      /* 7.02:1 */
    --promo-accent: #60a5fa;          /* 7.02:1 focus ring */
    --promo-cta-bg: #2563eb;
    --promo-cta-fg: #ffffff;          /* 5.17:1 */
    --promo-cta-border: #60a5fa;
    --promo-cta-hover-bg: #1d4ed8;
    --promo-cta-hover-fg: #ffffff;    /* 6.70:1 */
    --promo-dismiss-filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme=light] .promo-banner--custom,
[data-bs-theme=light] .promo-banner--pilot_special {
    --promo-bg: #eff6ff;
    --promo-fg: #0b1220;              /* 17.20:1 on #eff6ff */
    --promo-border: #2563eb;          /* 4.75:1 */
    --promo-tag-bg: #1d4ed8;
    --promo-tag-fg: #eff6ff;          /* 6.16:1 */
    --promo-tag-border: #1e40af;      /* 8.01:1 */
    --promo-accent: #1e40af;          /* 8.01:1 focus ring */
    --promo-cta-bg: #1d4ed8;
    --promo-cta-fg: #ffffff;          /* 6.70:1 */
    --promo-cta-border: #1e40af;
    --promo-cta-hover-bg: #1e40af;
    --promo-cta-hover-fg: #ffffff;    /* 8.01:1 */
    --promo-dismiss-filter: none;
}

/* The dismiss glyph is a background image, so it cannot inherit a token
   colour: each skin declares the filter that puts it on its own surface.
   Previously only spring_boost's light mode overrode Bootstrap's inverted
   glyph, leaving a white cross on the other four light surfaces. */
.promo-banner .promo-banner__dismiss {
    filter: var(--promo-dismiss-filter, invert(1) grayscale(100%) brightness(200%));
}

/* The inline event mark inherits the pill's foreground, so the pill's own
   contrast pairing covers the icon in every skin. */
.promo-banner__event-mark {
    color: inherit;
}

/* ---------------------------------------------------------------- hero art
   Each preset paints its own motif behind the hero. The motif is a background
   layer on .hero-section::before (absolutely positioned, so no layout impact)
   and is gated on the preset, so switching season replaces the art instead of
   stacking two motifs on one pseudo-element.

   The pseudo-element spans the WHOLE hero. While it was a smaller centred box,
   the motif's own rectangular boundary stayed visible wherever the mask had not
   yet reached zero: the carbon weave cut off along its bottom and side edges,
   and the conic rays ended on straight lines. One shared mask, wide enough to
   reach transparent inside the box on every axis, dissolves each watermark into
   the hero surface so no straight edge is ever painted. Presets now carry only
   their motif (background, opacity, blend mode). */

[data-event-theme] .hero-section {
    position: relative;
    isolation: isolate;
}

[data-event-theme] .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    transform: none;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 56% 50% at 52% 36%, #000 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.1) 55%, transparent 72%);
    mask-image: radial-gradient(ellipse 56% 50% at 52% 36%, #000 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.1) 55%, transparent 72%);
}

[data-event-theme] .hero-section > * {
    position: relative;
    z-index: 1;
}

/* Halloween: the carved pumpkin sits inside the amber glow, feathered so its
   edges dissolve. Screen against the obsidian surface, multiply against the
   light one. */
[data-event-theme=halloween] .hero-section::before {
    background: url("../img/events/halloween.svg") no-repeat;
    background-position: 52% 36%;
    background-size: clamp(16rem, 38vw, 30rem) auto;
    opacity: .16;
    mix-blend-mode: screen;
}
[data-bs-theme=light][data-event-theme=halloween] .hero-section::before {
    mix-blend-mode: multiply;
    opacity: .14;
}

/* Black Friday: an architectural carbon weave washed with a cool bloom behind
   the recovery card. Straight 45-degree hairlines, not a gradient wash. */
[data-event-theme=black_friday] .hero-section::before {
    background-image:
        linear-gradient(135deg, rgba(148, 163, 184, .10) 25%, transparent 25%, transparent 50%, rgba(148, 163, 184, .10) 50%, rgba(148, 163, 184, .10) 75%, transparent 75%, transparent),
        radial-gradient(ellipse 58% 46% at 52% 32%, rgba(56, 189, 248, .14), transparent 70%);
    background-size: 14px 14px, 100% 100%;
    opacity: .9;
    mix-blend-mode: screen;
}
[data-bs-theme=light][data-event-theme=black_friday] .hero-section::before {
    /* The full-hero mask now carries the weave under the hero subtitle, so the
       light-mode multiply is held at 5% + 7%: any stronger and the muted #5f6b7e
       copy drops below 4.5:1 (measured 4.42:1 at 390px with 7% + 10%). */
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, .05) 25%, transparent 25%, transparent 50%, rgba(15, 23, 42, .05) 50%, rgba(15, 23, 42, .05) 75%, transparent 75%, transparent),
        radial-gradient(ellipse 58% 46% at 52% 32%, rgba(3, 105, 161, .07), transparent 70%);
    mix-blend-mode: multiply;
    opacity: 1;
}

/* New Year: champagne rays fanning from above the headline, drawn with a
   repeating conic gradient so the lines stay hairline-thin at every width.
   The shared mask turns the fan into a glow, never a sunburst sticker. */
[data-event-theme=new_year] .hero-section::before {
    background-image: repeating-conic-gradient(from 200deg at 50% 0%, rgba(251, 191, 36, .16) 0deg .35deg, transparent .35deg 9deg);
    background-size: 100% 100%;
    opacity: .8;
    mix-blend-mode: screen;
}
[data-bs-theme=light][data-event-theme=new_year] .hero-section::before {
    background-image: repeating-conic-gradient(from 200deg at 50% 0%, rgba(180, 83, 9, .16) 0deg .35deg, transparent .35deg 9deg);
    mix-blend-mode: multiply;
    opacity: .85;
}

/* Spring Boost: a seedling rising behind the headline. Centred low so the
   leaves read under the type rather than competing with it. */
[data-event-theme=spring_boost] .hero-section::before {
    background: url("../img/events/spring_boost.svg") no-repeat;
    background-position: 52% 40%;
    background-size: clamp(14rem, 32vw, 26rem) auto;
    opacity: .14;
    mix-blend-mode: screen;
}
[data-bs-theme=light][data-event-theme=spring_boost] .hero-section::before {
    mix-blend-mode: multiply;
    opacity: .13;
}

/* Custom / Early Access: a square blueprint grid in brand blue rather than the
   Black Friday diagonal, under the same feathered mask. */
[data-event-theme=custom] .hero-section::before,
[data-event-theme=pilot_special] .hero-section::before {
    background-image:
        linear-gradient(90deg, rgba(96, 165, 250, .10) 1px, transparent 1px),
        linear-gradient(0deg, rgba(96, 165, 250, .10) 1px, transparent 1px),
        radial-gradient(ellipse 58% 46% at 52% 32%, rgba(37, 99, 235, .16), transparent 70%);
    background-size: 44px 44px, 44px 44px, 100% 100%;
    opacity: .85;
    mix-blend-mode: screen;
}
[data-bs-theme=light][data-event-theme=custom] .hero-section::before,
[data-bs-theme=light][data-event-theme=pilot_special] .hero-section::before {
    background-image:
        linear-gradient(90deg, rgba(30, 64, 175, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(30, 64, 175, .08) 1px, transparent 1px),
        radial-gradient(ellipse 58% 46% at 52% 32%, rgba(37, 99, 235, .10), transparent 70%);
    mix-blend-mode: multiply;
    opacity: 1;
}

@media (max-width: 767.98px) {
    [data-event-theme=halloween] .hero-section::before {
        background-position: 52% 30%;
        background-size: clamp(13rem, 58vw, 18rem) auto;
        opacity: .10;
    }
    [data-event-theme=black_friday] .hero-section::before {
        background-size: 11px 11px, 100% 100%;
    }
    [data-event-theme=new_year] .hero-section::before {
        opacity: .7;
    }
    [data-event-theme=spring_boost] .hero-section::before {
        background-position: 52% 34%;
        background-size: clamp(12rem, 50vw, 17rem) auto;
        opacity: .10;
    }
    [data-event-theme=custom] .hero-section::before,
    [data-event-theme=pilot_special] .hero-section::before {
        background-size: 34px 34px, 34px 34px, 100% 100%;
    }
}

/* ------------------------------------------------------ banner / nav seam
   The banner, the glass navbar and the hero are three stacked bands. Ramp the
   nav's glass down into the hero's own base colour and hand the boundary a
   low-alpha seasonal hairline, so the hero surface appears to rise through the
   nav instead of meeting it at a lighter slab. The ramp stays under 26% until
   the nav copy's baseline, so link contrast is untouched. */
[data-event-theme] .marketing-nav {
    background-image: linear-gradient(180deg,
        transparent 0%,
        color-mix(in srgb, var(--ic-body-bg) 26%, transparent) 52%,
        color-mix(in srgb, var(--ic-body-bg) 92%, transparent) 100%);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 100% 100%;
    border-bottom-color: color-mix(in srgb, var(--event-accent) 30%, transparent);
    box-shadow: 0 12px 26px -24px color-mix(in srgb, var(--event-accent) 60%, transparent);
}

/* The landing hero painted a brand-indigo wash of its own. Under a live event
   that hue competes with every seasonal accent at the seam, so the seasonal
   glow is the only wash left behind the hero. */
[data-event-theme] .lp-hero-wrap {
    background: none;
}

/* ------------------------------------------------- site-wide theme tokens
   These drive the hero eyebrow, the pricing cards, the popular badge and the
   CTA band. They are colour-only, so they stay in this deferred sheet.

   `--event-cta-fg` is the ink measured against `--event-cta-bg`. Anything that
   paints `--event-cta-bg` must also set its label from `--event-cta-fg`;
   pinning white here is what produced the white-on-white hero button. */
[data-event-theme] {
    --event-accent: #2563eb;
    --event-accent-strong: #60a5fa;
    --event-badge-bg: #1e293b;
    --event-badge-fg: #dbeafe;
    --event-card-border: rgba(37, 99, 235, 0.55);
    --event-ring: rgba(37, 99, 235, 0.22);
    --event-cta-bg: #2563eb;
    --event-cta-fg: #ffffff;
    --event-cta-hover-bg: #1d4ed8;
    --event-cta-hover-fg: #ffffff;
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 70%);
}

[data-event-theme=halloween] {
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(217, 119, 6, 0.14), transparent 70%);
    --event-accent: #d97706;
    --event-accent-strong: #fbbf24;
    --event-badge-bg: #b45309;
    --event-badge-fg: #fff7ed;
    --event-card-border: rgba(217, 119, 6, 0.75);
    --event-ring: rgba(217, 119, 6, 0.22);
    --event-cta-bg: #fbbf24;
    --event-cta-fg: #181124;
    --event-cta-hover-bg: #fde68a;
    --event-cta-hover-fg: #181124;
}

/* One page can paint two pills: the banner tag and the hero eyebrow. The
   eyebrow is the same announcement's larger echo, so a preset that names one
   accent pill in the banner must name the same one here. Previously
   black_friday, new_year and custom kept their own bespoke badge fills, so the
   banner announced platinum/champagne/brand-blue while the hero showed a
   different, unrelated chip two bands below it. */
[data-event-theme=black_friday] {
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(226, 232, 240, 0.12), transparent 70%);
    --event-accent: #38bdf8;
    --event-accent-strong: #bae6fd;
    --event-badge-bg: #38bdf8;
    --event-badge-fg: #090d16;        /* 9.07:1, the same ice-blue pill as the banner */
    --event-card-border: rgba(56, 189, 248, 0.5);
    --event-ring: rgba(56, 189, 248, 0.24);
    --event-cta-bg: #ffffff;
    --event-cta-fg: #090d16;
    --event-cta-hover-bg: #e2e8f0;
    --event-cta-hover-fg: #090d16;
}

[data-event-theme=new_year] {
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(251, 191, 36, 0.12), transparent 70%);
    --event-accent: #f59e0b;
    --event-accent-strong: #fbbf24;
    --event-badge-bg: #fbbf24;
    --event-badge-fg: #231603;        /* 10.59:1, champagne-gold like the banner */
    --event-card-border: rgba(245, 158, 11, 0.6);
    --event-ring: rgba(251, 191, 36, 0.22);
    --event-cta-bg: #f59e0b;
    --event-cta-fg: #0f172a;
    --event-cta-hover-bg: #fbbf24;
    --event-cta-hover-fg: #0f172a;
}

[data-event-theme=spring_boost] {
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(16, 185, 129, 0.12), transparent 70%);
    --event-accent: #10b981;
    --event-accent-strong: #34d399;
    --event-badge-bg: #059669;
    --event-badge-fg: #04140f;        /* 5.01:1, the banner's emerald chip */
    --event-card-border: rgba(16, 185, 129, 0.75);
    --event-ring: rgba(16, 185, 129, 0.22);
    --event-cta-bg: #34d399;
    --event-cta-fg: #062e22;
    --event-cta-hover-bg: #10b981;
    --event-cta-hover-fg: #04140f;
}

[data-event-theme=custom],
[data-event-theme=pilot_special] {
    --event-hero-glow: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 70%);
    --event-accent: #2563eb;
    --event-accent-strong: #60a5fa;
    /* Deep brand blue, not the slate new_year uses: the two presets share the
       signature navy surface, so the badge has to carry the difference. */
    --event-badge-bg: #1e3a8a;
    --event-badge-fg: #dbeafe;        /* 8.49:1 */
    --event-card-border: rgba(37, 99, 235, 0.55);
    --event-ring: rgba(37, 99, 235, 0.22);
    --event-cta-bg: #2563eb;
    --event-cta-fg: #ffffff;
    --event-cta-hover-bg: #1d4ed8;
    --event-cta-hover-fg: #ffffff;
}

/* Light-mode card/ring/accent overrides. The badge pair is re-declared here as
   well: the banner chip is mode-specific, and the eyebrow paints the same chip,
   so the two must move together. `test_badge_pair_matches_the_banner_chip`
   pins each mode's badge pair to that mode's banner skin. */
[data-bs-theme=light][data-event-theme=halloween] {
    --event-accent: #b45309;
    --event-badge-bg: #b45309;
    --event-badge-fg: #fff7ed;
    --event-card-border: rgba(180, 83, 9, 0.7);
    --event-ring: rgba(180, 83, 9, 0.18);
}
[data-bs-theme=light][data-event-theme=black_friday] {
    --event-accent: #0369a1;
    --event-badge-bg: #0369a1;
    --event-badge-fg: #ffffff;
    --event-card-border: rgba(3, 105, 161, 0.7);
    --event-ring: rgba(3, 105, 161, 0.18);
    --event-cta-bg: #090d16;
    --event-cta-fg: #ffffff;
    --event-cta-hover-bg: #1e293b;
    --event-cta-hover-fg: #ffffff;
}
[data-bs-theme=light][data-event-theme=new_year] {
    --event-accent: #b45309;
    --event-badge-bg: #d97706;
    --event-badge-fg: #231603;
    --event-card-border: rgba(180, 83, 9, 0.7);
    --event-ring: rgba(180, 83, 9, 0.18);
}
[data-bs-theme=light][data-event-theme=spring_boost] {
    --event-accent: #047857;
    --event-badge-bg: #059669;
    --event-badge-fg: #04140f;
    --event-card-border: rgba(4, 120, 87, 0.7);
    --event-ring: rgba(4, 120, 87, 0.2);
}
[data-bs-theme=light][data-event-theme=custom],
[data-bs-theme=light][data-event-theme=pilot_special] {
    --event-badge-bg: #1d4ed8;
    --event-badge-fg: #eff6ff;
}
[data-bs-theme=dark][data-event-theme=halloween] {
    --event-accent: #fbbf24;
}
[data-bs-theme=dark][data-event-theme=black_friday] {
    --event-accent: #7dd3fc;
}
[data-bs-theme=dark][data-event-theme=new_year] {
    --event-accent: #fbbf24;
}
[data-bs-theme=dark][data-event-theme=spring_boost] {
    --event-accent: #34d399;
    --event-accent-strong: #6ee7b7;
    --event-card-border: rgba(52, 211, 153, 0.5);
}
[data-bs-theme=dark][data-event-theme=custom],
[data-bs-theme=dark][data-event-theme=pilot_special] {
    --event-accent: #60a5fa;
}

[data-event-theme] .hero-section {
    background-image: var(--event-hero-glow);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 560px;
}
/* The hero eyebrow. The wrapper only reserves the row height, so the seasonal
   skin has to land on the Bootstrap `.badge` inside it - that is the element
   that actually paints a pill with its own bg-primary-subtle / text-emphasis
   tokens. Styling only the wrapper left every preset showing brand indigo.

   The eyebrow reads the skin's root --event-badge-* pair, which is also what
   the banner's tag paints, so the two chips on one page can never describe
   different seasons. */
[data-event-theme] .hero-eyebrow .badge,
[data-event-theme] .hero-eyebrow > .badge {
    border-color: var(--event-accent) !important;
    background-color: var(--event-badge-bg) !important;
    color: var(--event-badge-fg) !important;
}
[data-event-theme] .hero-preview {
    border-color: var(--event-accent) !important;
    box-shadow: 0 0 0 4px var(--event-ring), var(--ic-card-shadow) !important;
}
[data-event-theme] .popular-badge {
    border: 1px solid var(--event-accent);
    background-color: var(--event-badge-bg);
    color: var(--event-badge-fg);
}
[data-event-theme] .price-card {
    border-color: var(--event-card-border);
}
[data-event-theme] .price-card.popular {
    border-color: var(--event-accent);
}

/* Bootstrap primary inside a seasonal page. The label comes from the same ink
   token as the background, so no skin can paint a light fill under a white
   label. `--bs-primary` is pinned in this scope as well so Bootstrap's own
   primary utilities agree with the skin instead of showing brand indigo beside
   a seasonal button. */
[data-event-theme] .btn-primary {
    --bs-btn-bg: var(--event-cta-bg);
    --bs-btn-border-color: var(--event-cta-bg);
    --bs-btn-color: var(--event-cta-fg);
    --bs-btn-hover-bg: var(--event-cta-hover-bg);
    --bs-btn-hover-border-color: var(--event-cta-hover-bg);
    --bs-btn-hover-color: var(--event-cta-hover-fg);
    --bs-btn-active-bg: var(--event-cta-hover-bg);
    --bs-btn-active-border-color: var(--event-cta-hover-bg);
    --bs-btn-active-color: var(--event-cta-hover-fg);
    --bs-btn-disabled-bg: var(--event-cta-bg);
    --bs-btn-disabled-border-color: var(--event-cta-bg);
    --bs-btn-disabled-color: var(--event-cta-fg);
    color: var(--event-cta-fg);
}

[data-event-theme] .cta-band {
    background: linear-gradient(135deg, var(--event-cta-bg) 0, var(--event-cta-hover-bg) 100%);
}
[data-event-theme] .cta-band h2,
[data-event-theme] .cta-band p {
    color: var(--event-cta-fg) !important;
}

/* Inverted buttons on a seasonal band. A light/white button must ALWAYS carry
   the same dark ink - #090d16, which is 19.43:1 on white - so an inverted
   button can never inherit the band's own light foreground and vanish into its
   own fill. This is the other half of the white-on-white fix: one shared ink
   guarantees >= 12:1 for every preset instead of a per-skin value that can be
   forgotten when a new season is added. */
[data-event-theme] .cta-band .btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #090d16;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .28);
}
[data-event-theme] .cta-band .btn-light:hover,
[data-event-theme] .cta-band .btn-light:focus-visible {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: #090d16;
}
[data-event-theme] .cta-band .btn-outline-light {
    border-color: currentColor;
    color: var(--event-cta-fg);
}
[data-event-theme] .cta-band .btn-outline-light:focus-visible,
[data-event-theme] .cta-band .btn-outline-light:hover {
    background-color: var(--event-cta-fg);
    border-color: var(--event-cta-fg);
    color: var(--event-cta-bg);
}
