/* Black Friday theme (marketing-site/sales/black-friday). Loaded only on the homepage, /pricing/ and /black-friday/
   while the campaign runs. Day = today's light site; body.bf-night = the storm (set by black-friday.js on the hit frame).
   Flat colours only, no gradients. Gold (#ffd23f) surfaces always carry black text (#0b0b12); blue (#0040ff) buttons
   always carry white text. */

/* ===== header deal link, immediately left of "Log in" ===== */
.bf-nav-deal{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:999px;background:#ffd23f;color:#0b0b12!important;font-weight:700;text-decoration:none;white-space:nowrap;transition:transform .15s}
.bf-nav-deal:hover{transform:translateY(-1px)}
.bf-nav-deal img{display:block;box-sizing:content-box;width:16px;height:16px;padding:3px;border-radius:50%;background:#0b0b12;margin-left:-6px}
.nav-actions .bf-nav-deal{margin-right:4px}
@media (max-width:700px){.nav-actions:has(.bf-nav-deal){flex-wrap:wrap;row-gap:12px}.nav-actions .bf-nav-deal{flex-basis:100%;justify-content:center;margin:0}}

/* ===== storm sky behind the whole page, the strike flash, the clay bolts ===== */
.bf-sky{position:fixed;inset:0;z-index:0;background:#06080d;opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s;pointer-events:none}
.bf-sky video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right top}
.bf-bolts{position:absolute;inset:0;z-index:3}
.bf-bolt{position:absolute;width:150px;height:150px;transform-origin:50% 0;animation:bf-strike .9s cubic-bezier(.2,.9,.3,1.2) forwards}
@keyframes bf-strike{0%{transform:translateY(-220px) scale(.6) rotate(var(--r));opacity:0}35%{transform:translateY(0) scale(1.15) rotate(var(--r));opacity:1}55%{transform:translateY(0) scale(1) rotate(var(--r))}85%{opacity:1}100%{transform:translateY(6px) scale(.9) rotate(var(--r));opacity:0}}
.bf-flash{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:0}
body.is-flashing .bf-flash{animation:bf-screen-flash .7s steps(1,end)}
@keyframes bf-screen-flash{0%{opacity:1;background:#fff}12%{opacity:.85;background:#ffd23f}24%{opacity:0}36%{opacity:.6;background:#fff}48%,100%{opacity:0}}
body.bf-night .bf-sky{opacity:1;visibility:visible;transition:opacity .5s}
body{transition:background-color .35s,color .35s}
body.bf-night{background:#06080d;color:#fff}
body.bf-night>:is(main,footer){position:relative;z-index:1}
body.bf-night .floating-calculators{display:none}

/* ===== homepage hero: copy left, strike right, the pair fits one screen below the header ===== */
.hero.bf-hero-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:center;text-align:left;min-height:calc(100svh - 92px);padding-top:16px;padding-bottom:16px}
.hero.bf-hero-split .eyebrow,.hero.bf-hero-split .hero-actions{justify-content:flex-start}
.hero.bf-hero-split h1{font-size:clamp(2.4rem,4.6vw,4rem);line-height:1.05}
.hero.bf-hero-split .hero-copy>p{margin-bottom:22px}
.hero.bf-hero-split .hero-copy .hero-note{margin:14px 0 0}
.hero.bf-hero-split .hero-product{background:none;padding:0;border-radius:0;overflow:visible;display:flex;align-items:center;justify-content:center}
.bf-home-strike{display:block;width:135%;max-width:none;height:auto;max-height:calc(100svh - 120px);aspect-ratio:793/448;object-fit:contain;margin:0 -12% 0 -23%}
@media (max-width:900px){
 .hero.bf-hero-split{grid-template-columns:1fr;text-align:center;min-height:0}
 .hero.bf-hero-split .eyebrow,.hero.bf-hero-split .hero-actions{justify-content:center}
 .bf-home-strike{width:100%;margin:0;max-height:none}
}

/* ===== pricing: billing toggle above the cards, strike over the hero, the Black Friday card ===== */
.bf-billing{display:flex;gap:4px;width:max-content;max-width:100%;margin:0 auto 14px;padding:5px;border-radius:999px;background:#eef1f8;border:1px solid #e1e5ef;position:relative;z-index:2}
.bf-billing button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:10px 20px;font:inherit;font-size:15px;font-weight:650;color:#3b4150;background:transparent;cursor:pointer;transition:background .2s,color .2s}
.bf-billing button img{display:none}
.bf-billing button[aria-pressed=true]{background:#fff;color:#0b0b12;box-shadow:0 1px 2px rgba(11,11,18,.12)}
.bf-billing button[data-bill=y][aria-pressed=true]{background:#06080d;color:#fff}
.bf-billing button[data-bill=y][aria-pressed=true] img{display:inline-block}
.bf-billing .bf-save{font-size:12px;font-weight:700;color:#0040ff;background:#e5ecff;border-radius:999px;padding:2px 8px}
.bf-billing button[aria-pressed=true] .bf-save{color:#0b0b12;background:#ffd23f}
@media (max-width:420px){.bf-billing button{padding:9px 12px;font-size:14px}.bf-billing .bf-save{font-size:11px;padding:2px 6px}}
.bf-plans{position:relative;isolation:isolate}
.pp-hero .bf-hero-strike{position:absolute;right:-40px;bottom:0;height:100%;width:auto;max-width:none;aspect-ratio:793/448;z-index:2;pointer-events:none}
.pp-hero.is-striking .pp-hero-mascot{visibility:hidden}
@media (max-width:820px){.pp-hero .bf-hero-strike{right:50%;transform:translateX(50%);height:auto;width:100%;top:auto}}
.pp-plan.bf-card{--bf-card-bg:#0b0b12;--bf-card-ink:#fff;--bf-card-accent:#ffd23f;background:var(--bf-card-bg)!important;color:var(--bf-card-ink)!important;border-color:#0b0b12!important;box-shadow:0 24px 60px -20px rgba(0,64,255,.55)!important}
.bf-card :is(h3,.pp-list-heading,.pp-list b,.pp-price strong,.pp-plan-lede,.pp-note,.pp-list span,.pp-price span,s){color:var(--bf-card-ink)!important}
.bf-card .pp-list svg{--payhr-icon-primary:var(--bf-card-accent)}
.bf-card .pp-tag{background:#ffd23f!important;color:#0b0b12!important}
.bf-card .pp-more{color:var(--bf-card-accent)!important}
.bf-card .pp-more svg{--payhr-icon-primary:var(--bf-card-accent)}
.bf-card .bf-was{display:block;font-size:14px;margin-top:2px}
.bf-card .button.pp-start{background:#ffd23f!important;color:#0b0b12!important;border-color:#ffd23f!important}
.bf-ends{font-size:12px;color:var(--bf-card-accent,#ffd23f)!important;font-weight:600;margin:6px 0 0}
.bf-card .pp-price strong{display:inline-block}
/* a bolt hitting the card: two hard gold frames (custom properties animate discretely, beating the !important colours) */
.bf-card.is-struck{animation:bf-card-flash .5s steps(2,end) 2}
@keyframes bf-card-flash{50%{--bf-card-bg:#ffd23f;--bf-card-ink:#0b0b12;--bf-card-accent:#0b0b12;box-shadow:0 0 0 3px #ffd23f}}
.bf-card.is-struck .pp-price strong{animation:bf-pop .5s ease}
@keyframes bf-pop{40%{transform:scale(1.18) rotate(-3deg);color:#ffd23f}}

/* ===== /black-friday/ landing ===== */
.bf-landing{padding-top:16px}
.bf-hero{background:#eef3ff;border:1px solid #e3e8f2;color:#232426;border-radius:28px;padding:56px 48px;display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:center;position:relative;overflow:hidden;isolation:isolate;min-height:560px}
.bf-hero .eyebrow{color:#0040ff}
.bf-hero h1{color:#232426;font-size:clamp(36px,6vw,64px);line-height:1.02;letter-spacing:-.04em;margin:8px 0 16px}
.bf-hero h1 em{font-style:normal;color:#0040ff}
.bf-hero p{color:#232426;font-size:18px;max-width:34em}
.bf-hero-copy{position:relative}
.bf-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px;margin:20px 0 6px}
.bf-price strong{font-size:56px;letter-spacing:-.04em;color:#232426}
.bf-price s{font-size:22px;color:#232426}
.bf-pill{background:#ffd23f;color:#0b0b12;border-radius:999px;padding:4px 12px;font-weight:700;font-size:14px}
.bf-hero .bf-sub{font-size:14px;margin:0}
.bf-hero-cta{margin:22px 0 0}
.bf-clock{display:flex;gap:10px;margin:22px 0 0}
.bf-clock div{background:#fff;border:1px solid #e3e8f2;border-radius:14px;padding:10px 14px;text-align:center;min-width:64px}
.bf-clock b{display:block;font-size:26px;font-variant-numeric:tabular-nums;color:#232426}
.bf-clock span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#232426}
.bf-landing-strike{width:115%;max-width:560px;height:auto;aspect-ratio:793/448;justify-self:center;align-self:end;margin-right:-8%}
.bf-cta{transition:transform .15s ease}
.bf-cta:hover{transform:translateY(-2px)}
.bf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:40px 0}
.bf-grid article{border:1px solid #e3e6ef;border-radius:20px;padding:24px;background:#fff}
.bf-grid h3{margin:0 0 8px;font-size:18px}
.bf-grid p{margin:0;font-size:15px}
.bf-compare{border:1px solid #e3e6ef;border-radius:20px;overflow:hidden;margin:0 0 40px;background:#fff}
.bf-compare table{width:100%;border-collapse:collapse;font-size:15px}
.bf-compare th,.bf-compare td{padding:14px 20px;text-align:left;border-bottom:1px solid #eef0f5}
.bf-compare thead th{background:#f6f8ff;font-weight:650}
.bf-compare tbody th{font-weight:500}
.bf-compare .bf-hl{background:#ffd23f;color:#0b0b12;font-weight:650}
.bf-claim{display:grid;grid-template-columns:320px 1fr;gap:32px;align-items:center;background:#06080d;color:#fff;border-radius:28px;padding:32px 40px;margin:0 0 40px}
.bf-claim h2{color:#fff;font-size:clamp(28px,4vw,40px);letter-spacing:-.03em;line-height:1.08;margin:6px 0 12px}
.bf-claim p{color:#fff}
.bf-claim .eyebrow{color:#ffd23f}
.bf-claim-mascot{width:100%;height:auto}
.bf-fine{font-size:13px;max-width:60em;margin:0 0 48px}
@media (max-width:820px){
 .bf-hero{grid-template-columns:1fr;padding:32px 20px;min-height:0}
 .bf-landing-strike{width:100%;margin:0}
 .bf-grid{grid-template-columns:1fr}
 .bf-compare th,.bf-compare td{padding:10px 12px;font-size:14px}
 .bf-claim{grid-template-columns:1fr;padding:24px 20px}
 .bf-claim-mascot{max-width:260px;justify-self:center}
 .bf-clock div{min-width:0;flex:1;padding:8px}
}
/* gold buttons on the landing and homepage hero */
.bf-gold,.bf-cta{background:#ffd23f!important;border-color:#ffd23f!important;color:#0b0b12!important}
.bf-gold:hover,.bf-cta:hover,.bf-gold:focus-visible,.bf-cta:focus-visible{background:#ffdf6b!important;box-shadow:0 0 0 4px #06080d,0 0 0 6px #ffd23f}
/* in the light (before the strike) the landing hero CTA and the homepage claim are blue with white text */
body:not(.bf-night) :is(.bf-hero .bf-cta,.hero .bf-gold){background:#0040ff!important;border-color:#0040ff!important;color:#fff!important}
body:not(.bf-night) :is(.bf-hero .bf-cta,.hero .bf-gold):is(:hover,:focus-visible){box-shadow:0 0 0 4px #fff,0 0 0 6px #0040ff}

/* ===================================== NIGHT ===================================== */
/* header: dark bar; logo mark + period stay blue, "PayHr" and links white, current page light blue */
body.bf-night .site-header{background:#06080d;border-bottom-color:#1c1f2b;color:#fff;transition:background-color .35s}
body.bf-night .site-header .brand>span{color:#fff}
body.bf-night .site-header :is(.brand svg,.brand-period){color:#0040ff}
body.bf-night :is(#primary-nav>a,.products-menu>summary,.nav-actions>a:not(.button):not(.bf-nav-deal),.menu-button){color:#fff}
body.bf-night #primary-nav>a[aria-current]{color:#6f94ff}
body.bf-night :is(.products-menu>summary,.menu-button) svg{--payhr-icon-primary:#fff}
body.bf-night .menu-button{background:#0f121b;border-color:#3a4566}
/* Products dropdown */
body.bf-night .products-panel{background:#0f121b!important;border-color:#232838!important;box-shadow:0 22px 50px #000a!important;color:#fff!important}
body.bf-night .products-eyebrow{color:#ffd23f!important}
body.bf-night :is(.products-option,.products-option strong,.products-option small){color:#fff!important}
body.bf-night .products-option:is(:hover,:focus-visible,[aria-current]){background:#1c2236!important}
body.bf-night .products-option-icon{background:#1c2236!important;color:#fff!important}
body.bf-night .products-option svg{--payhr-icon-primary:#fff;--payhr-icon-secondary:#3a4566}
body.bf-night .products-preview{background:#161a26!important}
body.bf-night .products-preview [data-products-title]{color:#fff!important}
body.bf-night .products-preview a{color:#ffd23f!important}
body.bf-night .products-preview a svg{--payhr-icon-primary:#ffd23f}
body.bf-night .products-current{color:#6f94ff!important}

/* all text white, eyebrows gold */
body.bf-night main :is(h1,h2,h3,h4,p,li,span,small,label,legend,dt,dd,strong,b,em,s,summary,output,td,th,figcaption,div,time),
body.bf-night footer :is(h2,h3,h4,p,li,span,small,a,strong,div){color:#fff!important}
body.bf-night main a:not(.button):not(.bf-nav-deal){color:#fff!important}
body.bf-night main :is(.text-link,.pp-more) svg,body.bf-night main .text-link{--payhr-icon-primary:#fff}
body.bf-night main .eyebrow,body.bf-night main .eyebrow *{color:#ffd23f!important}
body.bf-night .breadcrumbs :is(a,span){color:#fff!important}
body.bf-night .blue-text,body.bf-night .hero h1 span,body.bf-night .bf-hero h1 em{color:#ffd23f!important}
body.bf-night .payhr-icon{--payhr-icon-primary:#fff;--payhr-icon-secondary:#3a4566;--payhr-icon-surface:#0f121b}

/* panels and cards become flat night panels */
body.bf-night :is(.pp-hero,.pp-plan:not(.bf-card),.service-card,.estimate-summary,.pricing-calculator,.pp-faq details,.faq,.pp-news,.closing,
  .feature,.home-employee-app,.how-section,.how-section *,.home-tutorials article,.home-tutorial-card,.pricing-teaser,.pricing-teaser *,.blog-card,.faq-section details,.proof-strip,
  .bf-grid article,.bf-compare,.bf-claim,.hero-product:not(:has(.bf-strike))){background:#0f121b!important;background-image:none!important;border-color:#232838!important;box-shadow:none!important}
body.bf-night :is(.pp-blob,.pp-shape){display:none}
body.bf-night .bf-hero{background:transparent;border-color:transparent}
body.bf-night .bf-compare thead th:not(.bf-hl){background:#141824!important}
body.bf-night :is(.bf-compare th,.bf-compare td){border-bottom-color:#232838}
body.bf-night .bf-clock div{background:#0f121b;border-color:#232838}
body.bf-night :is(.pp-plan,.estimate-summary,.estimate-breakdown,.estimate-service,.pp-faq-list,hr){border-color:#232838!important}
body.bf-night .pp-plan :is(.pp-list,.pp-note)::before{border-color:#232838!important}
body.bf-night .pp-plan:not(.bf-card) .pp-list svg,body.bf-night .pp-fee svg{--payhr-icon-primary:#ffd23f}
body.bf-night .service-art{background:#161a26!important;border-radius:14px}
body.bf-night .service-badge{background:#1c2236!important;color:#fff!important;border-color:#2a3150!important}
body.bf-night .service-badge--optional{background:#ffd23f!important}

/* buttons: outline = white; blue = white text; gold = black text */
body.bf-night .button.outline{background:transparent!important;color:#fff!important;border-color:#fff!important}
body.bf-night .button.outline svg{--payhr-icon-primary:#fff}
body.bf-night .closing .button:not(.outline){background:#ffd23f!important;border-color:#ffd23f!important}

/* pricing billing toggle and calculator controls */
body.bf-night .bf-billing{background:#14161f;border-color:#262938}
body.bf-night .bf-billing button{color:#fff}
body.bf-night .bf-billing button[aria-pressed=true]:not([data-bill=y]){background:#fff;color:#0b0b12}
body.bf-night .pricing-calculator fieldset[data-estimate-controls]{background:#161a26!important;border-color:#232838!important}
body.bf-night .estimate-quantity input[type=number]{background:#06080d!important;color:#fff!important;border-color:#3a4566!important}
body.bf-night .estimate-quantity input[type=range]{accent-color:#ffd23f;color-scheme:dark}
body.bf-night .estimate-switch{background:#232838!important;border-color:#3a4566!important}
body.bf-night .estimate-switch:after{background:#fff;box-shadow:none}
body.bf-night .estimate-toggle input:checked+.estimate-switch{background:#ffd23f!important;border-color:#ffd23f!important}
body.bf-night .estimate-toggle input:checked+.estimate-switch:after{background:#0b0b12}
body.bf-night .estimate-reset{color:#ffd23f!important}

/* newsletter: dark pill, white text, gold focus */
body.bf-night .pp-news-row{background:#06080d!important;border-color:#3a4566!important}
body.bf-night .pp-news-row:focus-within{border-color:#ffd23f!important;box-shadow:0 0 0 3px #3a3210!important}
body.bf-night .pp-news-row input{background:transparent!important;color:#fff!important}
body.bf-night .pp-news-row input::placeholder{color:#fff;opacity:.7}
body.bf-night .pp-news-icon svg{--payhr-icon-primary:#fff}
body.bf-night :is(.pp-news,main) input[type=checkbox]{accent-color:#ffd23f}

/* homepage sections */
body.bf-night .feature-number{color:#ffd23f!important}
body.bf-night .workflow span{background:#161a26!important;border-color:#232838!important}
body.bf-night .workflow b{color:#ffd23f!important}
body.bf-night .workflow b svg{--payhr-icon-primary:#ffd23f}
body.bf-night .home-tutorial-art{background:#161a26!important}
body.bf-night .home-employee-visual{background:none!important}
body.bf-night .home-employee-visual img{filter:none}
body.bf-night .avatar{color:#0b0b12!important}
body.bf-night :is(.how-section,.home-tutorials,.pricing-teaser,.faq-section) :is(img,video){filter:none}

/* footer */
body.bf-night footer{background:#06080d!important;border-color:#1c1f2b!important}
body.bf-night footer :is(hr,.footer-bottom,.footer-comparisons){border-color:#1c1f2b!important}
body.bf-night footer .brand svg{color:#0040ff}

/* RULE: every gold surface carries black text — last, so it beats every white-text rule above. */
html body :is(.bf-nav-deal,.bf-pill,.bf-billing button[aria-pressed=true] .bf-save,.bf-card .pp-tag,.bf-card .button.pp-start,.bf-compare .bf-hl,.service-badge--optional),
html body :is(.bf-nav-deal,.bf-card .button.pp-start) *,
html body.bf-night :is(.bf-gold,.bf-cta,.closing .button:not(.outline)),html body.bf-night :is(.bf-gold,.bf-cta,.closing .button:not(.outline)) *,
html body .bf-claim .bf-cta,html body .bf-claim .bf-cta *{color:#0b0b12!important}
html body :is(.bf-card .button.pp-start,.bf-gold,.bf-cta,.closing .button:not(.outline)) svg{--payhr-icon-primary:#0b0b12}

@media (prefers-reduced-motion:reduce){
 .bf-nav-deal,.bf-cta,body,.bf-sky{transition:none}
 .bf-bolt,.bf-card.is-struck,.bf-card.is-struck .pp-price strong{animation:none}
}
