/* Black Friday × Cyber Monday pages (/blackfriday/ and /blackfriday/beginners/). Builds on base.css (same cards, pills, type);
   adds a dark BF hero, promo-code chips and the step list. Mobile first.
   Ported from the approved Astro pages: the hand-built HTML blocks keep their class names. The last part of this file
   ("WordPress build") fits them into Elementor. Loaded with 'assets' => ['bf'] together with bf.js. */

/* hero: always dark so it reads "Black Friday" in both themes */
.bfhero { position: relative; overflow: hidden; text-align: center; color: #fff; background: #07020d; padding: 26px 0 28px; }
.bfhero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 55% at 100% 0, rgba(212, 35, 122, .55), transparent 65%), radial-gradient(90% 60% at 0 100%, rgba(123, 44, 191, .6), transparent 65%); }
.bfhero .w { position: relative; z-index: 2; }
.bfhero::before { z-index: 1; }

/* hero dance clip (only for visitors in the video group): phone = 9:16 file, desktop = 16:9 file */
.bfvid { display: none; position: absolute; inset: 0; z-index: 0; background: #07020d url(../video/hero-mobile.jpg) center / cover no-repeat; }
html[data-vid='on'] .bfvid { display: block; }
.bfvid video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.bfvid video.on { opacity: 1; }
/* dark veil so the headline, countdown and prices stay easy to read */
.bfvid::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 58% at 50% 42%, rgba(7, 2, 13, .55), rgba(7, 2, 13, 0) 100%), linear-gradient(180deg, rgba(7, 2, 13, .5) 0%, rgba(7, 2, 13, .38) 40%, rgba(7, 2, 13, .55) 75%, #07020d 100%); }
html[data-vid='on'] .bfhero::before { opacity: .5; }
html[data-vid='on'] .bfhero .bfsub { color: rgba(255, 255, 255, .9); }
html[data-vid='on'] .bfhero .bfsub, html[data-vid='on'] .bfkick { text-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 2px 22px rgba(0, 0, 0, .55); }
/* the gradient words can't take a text-shadow (it shows through the clipped fill), so the whole headline gets a drop-shadow */
html[data-vid='on'] .bfhero h1 { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)) drop-shadow(0 3px 16px rgba(0, 0, 0, .5)); }
@media (min-width: 760px) { html[data-vid='on'] .bfvid::after { background: radial-gradient(ellipse 46% 62% at 50% 44%, rgba(7, 2, 13, .7), rgba(7, 2, 13, 0) 100%), linear-gradient(180deg, rgba(7, 2, 13, .45) 0%, rgba(7, 2, 13, .35) 45%, rgba(7, 2, 13, .6) 80%, #07020d 100%); } }
html[data-vid='on'] .bfchip, html[data-vid='on'] .bfvalid { background-color: rgba(20, 8, 32, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-vid='on'] .bftiles a, html[data-vid='on'] .bfloc { background: rgba(20, 8, 32, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 760px) { .bfvid { background-image: url(../video/hero-desktop.jpg); } }
.bfchip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .12); border-radius: 980px; padding: 7px 13px; }
.bfchip i { width: 7px; height: 7px; border-radius: 50%; background: #ff4f9a; animation: ojpulse 1.6s infinite; }
.bfchip b { color: #fff; font-variant-numeric: tabular-nums; }
.bfkick { margin: 16px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd166; }
.bfkick span { color: #ff9f7a; margin: 0 2px; }
.bfhero h1 { font-size: clamp(40px, 11.5vw, 72px); color: #fff; }
.bfg { background: linear-gradient(90deg, #ffb0d4, #ff4f9a 45%, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfsub { font-size: clamp(17px, 4.4vw, 21px); line-height: 1.3; color: rgba(255, 255, 255, .8); margin: 12px auto 0; max-width: 520px; }
.bfvalid { display: block; margin: 18px auto 0; max-width: 420px; border: 1.5px solid rgba(255, 209, 102, .55); background: rgba(255, 209, 102, .1); border-radius: 16px; padding: 11px 14px; }
.bfvalid b { display: block; font-size: 16px; color: #ffd166; letter-spacing: -.01em; }
.bfvalid span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-top: 2px; }
.bfvalid [data-bf-days] { display: inline; font-weight: 700; color: #fff; margin: 0; }
.bfvalid a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.bftiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.bftiles a { display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px 4px 11px; color: #fff; }
.bftiles a:active { transform: scale(.97); }
.bftiles small { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #ffb0d4; }
.bftiles b { white-space: nowrap; font-size: clamp(22px, 7vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bftiles span { font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.25; }
.bfloc { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 16px auto 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-align: left; font-size: 13.5px; line-height: 1.35; }
.bfloc svg { flex: none; color: #ff4f9a; }
.bfloc span { flex: 1; color: rgba(255, 255, 255, .78); }
.bfloc b { color: #fff; font-weight: 600; }
.bfloc em { flex: none; font-style: normal; font-weight: 700; font-size: 13px; color: #ffd166; }
.bfloc:active { transform: scale(.98); }

/* courses / try-outs switch (state on <html data-tab>) */
.bftabwrap { padding: 18px 0 0; }
.bftabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg2); border-radius: 18px; padding: 4px; max-width: 420px; margin: 0 auto; }
.bftabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--ink2); font: inherit; padding: 10px 6px; border-radius: 14px; cursor: pointer; min-height: 52px; }
.bftabs b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bftabs span { font-size: 12.5px; font-variant-numeric: tabular-nums; }
html:not([data-tab='tryouts']) .bftabs [data-tab='courses'], html[data-tab='tryouts'] .bftabs [data-tab='tryouts'] {
  background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .1), 0 0 0 1.5px var(--accent-text) inset; }
html:not([data-tab='tryouts']) .bftabs [data-tab='courses'] span, html[data-tab='tryouts'] .bftabs [data-tab='tryouts'] span { color: var(--accent-text); font-weight: 600; }
html[data-tab='tryouts'] [data-for='courses'], html[data-tab='courses'] [data-for='tryouts'] { display: none !important; }
/* (the two panels themselves are Elementor sections: see "WordPress build" at the end of this file) */

/* course deals: class times + spots */
.bftimes { display: flex; justify-content: center; gap: 8px; margin: -4px 0 10px; }
.bftimes span { display: inline-flex; align-items: baseline; gap: 6px; background: var(--bg2); border-radius: 980px; padding: 7px 14px; font-size: 14.5px; color: var(--ink2); font-weight: 600; }
.bftimes b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bfspots { text-align: center; margin: 0 0 16px; }

/* deal cards */
.bfcard .rch .save { font-size: 13px; }
.bfsave { display: block; color: var(--accent-text) !important; font-weight: 700; font-size: 13.5px !important; margin-top: 2px; }
.rr .who > span:not(.bfsave) { display: block; }
.bfcard .rr { cursor: default; }

/* promo code chip (tap to copy) */
.code { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 12px; padding: 10px 10px 10px 14px; border: 1.5px dashed var(--accent-text); border-radius: 14px; background: var(--tint); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.code-l { font-size: 12px; font-weight: 600; color: var(--ink2); flex: none; }
.code b { flex: 1; min-width: 0; font: 700 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; white-space: nowrap; color: var(--accent-text); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.code-btn { flex: none; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(95deg, var(--accent), var(--accent2)); border-radius: 980px; padding: 8px 12px; }
.code.copied { border-style: solid; }
.code.copied .code-btn { background: #1f9d55; }
.code.sm { margin: 0 0 8px; }
.tryrc .code.sm { margin: -4px 0 10px; }

.codes { display: grid; gap: 0; }
.codes + .rcards { margin-top: 12px; }
.cbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cbtns .pill { padding-left: 8px; padding-right: 8px; font-size: 16px; }
.cbtns .pill.two { flex-direction: column; gap: 3px; padding-top: 10px; padding-bottom: 10px; min-height: 58px; }
.cbtns .pill.two small { font-size: 12px; font-weight: 600; opacity: .85; letter-spacing: .01em; }
.bfnote { margin-top: 12px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
.bfnote b { color: var(--ink); }
.ctas .bfshare { margin-top: 0; color: var(--accent-text); padding: 10px 14px; font-size: 14px; }
.bfnote .bfshare, .bflist .bfshare { display: flex; width: fit-content; margin-top: 10px; color: var(--accent-text); padding: 8px 14px; font-size: 14px; }
.bffine a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bfreg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.bfreg li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink2); line-height: 1.4; }
.bfreg li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
.bfreg b { color: var(--ink); }
.bffine { font-size: 13px; color: var(--ink3); line-height: 1.45; margin-top: 12px; text-align: center; }
.bfswitch { text-align: center; margin-top: 22px; font-size: 15.5px; color: var(--ink2); }
.bfswitch a { color: var(--accent-text); font-weight: 700; white-space: nowrap; }
.wa-pill { display: flex; width: 100%; margin-top: 12px; background: #25d366; color: #062b12; }
#questions .wa-pill { max-width: 360px; margin: 0 auto; }

/* try-outs */
.bflist { margin: 14px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bflist li { background: var(--bg2); border-radius: 14px; padding: 11px 14px; font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
.bflist b { color: var(--ink); }
.trynote { margin-top: 16px; }
.bfpartner { text-align: center; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 18px; padding: 14px 16px; margin: 0 0 14px; }
.bfpartner b { display: block; font-size: 17px; letter-spacing: -.01em; color: var(--accent-text); }
.bfpartner p { font-size: 14.5px; color: var(--ink2); line-height: 1.45; margin-top: 4px; }

/* cultural credit */
.cclogos { width: 100%; max-width: 420px; height: auto; margin: 0 auto 14px; border-radius: 12px; }
.ccsteps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.ccsteps b { color: var(--ink); }
.ccsteps a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

#deals, #how, #tryouts, #trydates, #culture, #questions, #faq, #reviews { scroll-margin-top: 64px; }

/* hub page: two paths */
.paths { display: grid; gap: 12px; }
@media (min-width: 760px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; border-radius: 24px; padding: 18px; color: var(--ink);
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--accent), var(--accent2), #ff8a3d) border-box; }
.path.soon { background: var(--bg2); border-color: var(--line2); }
.path .ptag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); background: var(--tint); border-radius: 980px; padding: 5px 10px; }
.path h2 { font-size: clamp(28px, 7.5vw, 36px); }
.path > p { color: var(--ink2); font-size: 15.5px; line-height: 1.4; }
.path ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.path li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 15px; }
.path li span { color: var(--ink2); }
.path li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.path .pill { margin-top: 4px; }

@media (min-width: 760px) {
  .bfhero { padding: 48px 0 52px; }
  .bftiles { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 360px) {
  .bftiles span { font-size: 11px; }
  .code-l { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bfchip i { animation: none; } }

/* course deals: numbered step headings, price rows with Pay now / Pay later buttons */
.bstep { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.bstep .sn { flex: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.bstep h3 { font-size: 21px; letter-spacing: -.02em; margin: 0; }
.bstep-p { font-size: 15px; color: var(--ink2); line-height: 1.45; margin: -2px 0 12px; }
.bstep-p b { color: var(--ink); }
.rr2 { padding: 14px 0; border-top: 1px solid var(--line2); }
.rr2h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rr2 .who b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rr2 .who span { font-size: 13px; color: var(--ink3); }
.rr2s { text-align: right; font-size: 13px; }
.rr2s s { display: block; color: var(--ink3); font-size: 14px; }
.rr2s .bfsave { margin-top: 1px; }
.rr2 .cbtns { margin-top: 10px; }
.rr2 .cbtns .pill.two { font-size: 20px; font-weight: 700; letter-spacing: -.02em; min-height: 62px; }
.rr2 .cbtns .pill.two small { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.rr2 .planbtn { font-size: 16px !important; font-weight: 700; }
.rr2 .passbtn { min-height: 62px; }
#deals .bfreg { margin: 0 0 12px; }

/* ====================================================================================================
   WordPress build: how the blocks above sit inside Elementor
   ==================================================================================================== */

/* ---------- deal live / ended ----------
   <html class="bf-over"> = after the end date (set by the settings block and bf.js),
   <html class="bf-edit"> = inside the Elementor editor, where every state stays visible.
   Native sections use the site's own classes oj-offer-live / oj-offer-over (bf.js also sets html.oj-offer-ended). */
html.bf-over [data-bf-live], html:not(.bf-over):not(.bf-edit) [data-bf-over] { display: none !important; }
/* numbers that bf.js fills in from the settings block always look like the text around them */
span[data-bf] { display: inline !important; margin: 0 !important; padding: 0 !important; background: none !important; color: inherit !important; font: inherit !important; letter-spacing: inherit !important; }

/* ---------- the settings block is the first thing in the page and takes no room ---------- */
[data-elementor-type='wp-page'] > .elementor-widget-template:first-child { margin: 0; }

/* ---------- hero: edge to edge, in a container without padding ---------- */
.e-con.bf-bleed { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --row-gap: 0px; --column-gap: 0px; gap: 0; }
.elementor-widget-html .bfhero .w { padding: 0 22px; }
/* "Black Friday × Cyber Monday" is the first line of the h1 (better for search and link previews), styled as the small kicker */
.bfhero h1 { font-weight: 700; letter-spacing: -.028em; line-height: 1.05; margin: 0; }
.bfhero h1 .bfkick { display: block; line-height: 1.47; }
html[data-vid='on'] .bfhero h1 .bfkick { text-shadow: none; }

/* ---------- Courses / Try-outs switch + the two panels (Elementor sections "bfpanel bfp-courses" / "bfpanel bfp-tryouts") ---------- */
/* (padding 0 on the section itself: base.css gives every <section> 36px, which here would come on top of Elementor's own padding) */
.e-con.bf-tabsec, .e-con.bfpanel { padding-top: 0; padding-bottom: 0; }
.e-con.bf-tabsec { --padding-top: 18px; --padding-bottom: 0px; }
.e-con.bf-narrow > .e-con-inner { max-width: 560px; }
.e-con.bfpanel { --padding-top: 24px; --row-gap: 0px; } /* no gap between the blocks: they bring their own margins, as on the approved page */
.e-con.bfpanel .e-con.oj-sh { margin-bottom: 18px; }
.e-con.bfpanel .e-con.oj-card { margin-bottom: 14px; }
.e-con.bf-tabsec > .e-con-inner > .elementor-widget, .e-con.bfpanel > .e-con-inner > .elementor-widget { width: 100%; }
.elementor-widget-text-editor.bf-center { text-align: center; }
html:not(.bf-edit)[data-tab='tryouts'] .bfp-courses, html:not(.bf-edit)[data-tab='courses'] .bfp-tryouts { display: none !important; }
/* after Cyber Monday: no switch, the try-out dates stay (the course deals are an oj-offer-live section, so they go) */
html.bf-over .e-con.bfpanel:not(.oj-offer-live) { display: flex !important; }

/* ---------- the theme's reset paints every <button> and link pink on hover: keep ours as designed ---------- */
.bstep h3 { font-weight: 700; line-height: 1.25; }
.rch h3 { line-height: 1.25; }
.code:hover, .code:focus { background: var(--tint); color: var(--ink); }
.bftabs button:hover, .bftabs button:focus { background: transparent; color: var(--ink2); }
.bfshare:hover, .bfshare:focus { background: none; color: var(--accent-text); }
.sharemenu button:hover, .sharemenu button:focus { background: var(--bg2); color: var(--ink); }
.bfloc:hover, .bftiles a:hover, .bfvalid a:hover { color: #fff; }
.buy .wa-btn:hover { color: #062b12; }
.buy .pill.grad:hover, .cbtns .pill.grad:hover { color: #fff; }
.cbtns .pill.ghost:hover { color: var(--ink); }

/* ---------- native widgets that carry a Black Friday look ---------- */
.trynote.elementor-widget-text-editor { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.trynote.elementor-widget-text-editor b, .trynote.elementor-widget-text-editor strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.elementor-widget-image.bf-cclogos { text-align: center; }
.elementor-widget-image.bf-cclogos img { width: 100%; max-width: 420px; height: auto; border-radius: 12px; }
.elementor-widget-text-editor.bf-terms { font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.elementor-widget-text-editor.bf-terms li { margin: .35em 0; }

/* ---------- hub (/blackfriday/): the beginner card and its list of deals ---------- */
.e-con.bf-first { padding-top: 0; --padding-top: 28px; } /* the cards come right after the hero */
.e-con.oj-card.bf-path { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--accent), var(--accent2), #ff8a3d) border-box; }
.e-con.oj-card.bf-path, .e-con.oj-card.bf-soon { --padding-top: 18px; --padding-bottom: 18px; --padding-left: 18px; --padding-right: 18px; --row-gap: 10px; border-radius: 24px; }
.e-con.oj-card.bf-path h2.elementor-heading-title, .e-con.oj-card.bf-soon h2.elementor-heading-title { font-size: clamp(28px, 7.5vw, 36px); }
.bfrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bfrows li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 15px; }
.bfrows li > span { color: var(--ink2); }
.bfrows li b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* "Buying a pass is not a confirmed registration": the notice under step 1 (same as on the beginner pages) */
.bstep-note { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.bstep-note b { display: block; margin-bottom: 2px; font-size: 16px; letter-spacing: -.01em; }
