/* Early Black Friday 2026 (Nov 13 - Nov 30): the homepage hero ribbon and the once-a-day pop-up (assets/bf-sale.js).
   Our greens and gold; shown only while html.bf-sale. */
.bf-hero{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 12px;padding:8px 14px;border-radius:14px;background:#17643F;color:#fff;
  text-decoration:none;font-size:15px;line-height:1.3;box-shadow:inset 0 0 0 2px #FDD782,0 6px 16px rgba(10,40,25,.18)}
.bf-hero b{padding:2px 10px;border-radius:999px;background:#FDD782;color:#4a3300;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
.bf-hero span{font-weight:700}.bf-hero .bf-hero-end{font-weight:600;color:#d9f3e2;font-size:13.5px}
.bf-hero:hover,.bf-hero:focus-visible{background:#12512f}
.pv2-price s{color:#7a877e;font-weight:600;text-decoration-thickness:2px;margin-right:6px}

/* The once-a-day pop-up. 2026-11-15 redesign (Isaiah): the explorer art fills the whole card (tall Codex art, kid at the
   top, deep green below) and the words sit on it in white; old prices red and crossed out, sale prices big and gold;
   Lifetime is the first button. The card's width follows the window's height so the whole card fits without scrolling. */
.bf-pop{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(8,30,18,.66);animation:bfIn .22s ease-out;
  padding:max(20px,calc(env(safe-area-inset-top) + 14px)) 16px max(20px,calc(env(safe-area-inset-bottom) + 14px))}
.bf-pop.is-leaving{opacity:0;transition:opacity .18s}
.bf-pop-card{--w:min(430px,100%,calc((100svh - 56px) * .57));position:relative;box-sizing:border-box;width:var(--w);max-height:calc(100svh - 40px);overflow:auto;
  overscroll-behavior:contain;border-radius:24px;color:#fff;box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 0 0 2px rgba(253,215,130,.55);
  background:linear-gradient(180deg,rgba(6,38,22,0) 30%,rgba(6,38,22,.55) 46%,rgba(6,38,22,.9) 60%,#06261a 100%),
    url(/assets/bf-sale-art-tall.webp) center top/100% auto no-repeat local,#06261a}
.bf-pop-x{position:sticky;top:10px;float:right;z-index:3;margin:10px 10px -54px 0;width:44px;height:44px;border:0;border-radius:50%;
  background:rgba(255,255,255,.92);color:#17463d;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.3)}
.bf-pop-badge{position:absolute;left:14px;top:14px;z-index:2;margin:0;padding:6px 14px;border-radius:999px;background:#FDD782;color:#4a3300;
  font-weight:800;font-size:13.5px;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 4px 10px rgba(0,0,0,.3)}
/* the empty top of the card is the kid; the words start over the book */
.bf-pop-body{display:grid;gap:12px;padding:calc(var(--w) * .64) 20px 12px;text-shadow:0 2px 6px rgba(0,0,0,.55)}
.bf-pop h2{margin:0;font-size:clamp(22px,6.2vw,27px);line-height:1.12;color:#fff;text-align:center;text-wrap:balance}
.bf-pop h2 em{font-style:normal;color:#FDD782;white-space:nowrap}
.bf-pop-deals{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bf-pop-deals li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;border-radius:16px;
  background:rgba(4,30,17,.55);box-shadow:inset 0 0 0 1.5px rgba(253,215,130,.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.bf-pop-deals span{font-weight:800;font-size:18px;line-height:1.2}
.bf-pop-deals small{display:block;margin-top:3px;font-size:13px;font-weight:700;color:#d9f3e2;line-height:1.3}
.bf-pop-deals b{display:flex;align-items:baseline;gap:8px;font-size:36px;line-height:1;color:#FDD782;white-space:nowrap;font-weight:900}
.bf-pop-deals s{font-size:19px;font-weight:800;color:#ff6b6b;text-decoration:line-through 2.5px #ff4d4d}
.bf-pop-actions{display:grid;gap:10px;margin-top:2px}
.bf-pop-trial{column-gap:.35em}
.bf-pop-claim,.bf-pop-trial{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:56px;padding:9px 14px;border-radius:16px;
  font-weight:800;line-height:1.2;text-align:center;text-decoration:none;text-shadow:none;transition:transform .12s,box-shadow .12s,background .12s}
.bf-pop-claim{flex-direction:column;gap:2px;font-size:19px;background:#FDD782;color:#2b1d00;box-shadow:0 6px 0 #b8892a,0 16px 30px -10px rgba(0,0,0,.6)}
.bf-pop-claim-sub{font-size:13px;font-weight:700;color:#5b4100}
.bf-pop-trial{font-size:17px;background:#fff;color:#17643F;box-shadow:0 5px 0 #b9cfc1,0 14px 26px -12px rgba(0,0,0,.6)}
.bf-pop-claim:hover,.bf-pop-claim:focus-visible{background:#ffe29b;color:#2b1d00;transform:translateY(-2px)}
.bf-pop-trial:hover,.bf-pop-trial:focus-visible{background:#f2fbf5;color:#17643F;transform:translateY(-2px)}
.bf-pop-claim:active,.bf-pop-trial:active{transform:translateY(4px);box-shadow:0 1px 0 rgba(0,0,0,.3)}
.bf-pop-later{justify-self:center;border:0;background:none;color:rgba(255,255,255,.78);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;padding:6px 10px;min-height:40px}
.bf-pop-later:hover{color:#fff}
@keyframes bfIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.bf-pop{animation:none}}
/* small phones (iPhone SE and the like): smaller type so a plan stays on one line, and less art above on short screens */
@media (max-width:380px){.bf-pop-badge{font-size:12px;letter-spacing:.03em;padding:6px 10px}.bf-pop-body{padding-left:13px;padding-right:13px}
  .bf-pop h2{font-size:21px}.bf-pop-deals li{padding:8px 11px;gap:6px}.bf-pop-deals span{font-size:15.5px}.bf-pop-deals small{font-size:12px}
  .bf-pop-deals b{font-size:28px;gap:5px}.bf-pop-deals s{font-size:15px}.bf-pop-claim{font-size:17px}.bf-pop-claim-sub{font-size:12px}.bf-pop-trial{font-size:15.5px}}
@media (max-height:620px){.bf-pop-body{padding-top:calc(var(--w) * .56);gap:9px}.bf-pop-claim,.bf-pop-trial{min-height:48px}}

/* hero bullets (Isaiah 2026-11-13): "Then only $9.99 a month" + a 4th bullet for the Black Friday special, in the sale's
   green with a gold-ringed check. Phones keep the other bullets on one line each (white-space: nowrap, list sized to its
   widest bullet), so this long one wraps inside the list instead of widening it: width 0 + min-width 100% = fill the
   list's width, never stretch it (no sideways page scroll). */
.hero-trust .hero-perks li.bf-perk{color:#17643F;text-wrap:balance}
.hero-trust .hero-perks li.bf-perk b{color:#17643F}
.hero-trust .hero-perks li.bf-perk::before{background-color:#17643F;box-shadow:0 0 0 2px #FDD782}
@media (max-width:860px){.hero-trust .hero-perks li.bf-perk{white-space:normal;width:0;min-width:100%}}

/* 2026-11-15 mobile hunt: a phone held SIDEWAYS made the card ~150-190 px wide (its width follows the window's height),
   words cut off and every button below the fold. Sideways phones now get a wide card: the explorer on the left (the
   wide painting), the words and buttons on the right. */
@media (orientation: landscape) and (max-height: 520px) {
  .bf-pop { padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .bf-pop-card { --w: min(760px, 100%); width: var(--w); max-height: calc(100svh - 20px); border-radius: 20px;
    background: linear-gradient(90deg, rgba(6,38,22,0) 0%, rgba(6,38,22,0) 30%, rgba(6,38,22,.92) 44%, #06261a 56%), url(/assets/bf-sale-art.webp) 0% 50% / auto 100% no-repeat, #06261a; }
  .bf-pop-body { margin-left: 42%; padding: 12px 18px 8px 4px; gap: 7px; }
  .bf-pop-badge { left: 12px; top: 10px; font-size: 11.5px; padding: 5px 11px; }
  .bf-pop h2 { font-size: 19px; text-align: left; min-height: 46px; padding-right: 52px; box-sizing: border-box; }
  .bf-pop-deals li { padding: 5px 12px; }
  .bf-pop-deals span { font-size: 15px; } .bf-pop-deals small { font-size: 11.5px; }
  .bf-pop-deals b { font-size: 26px; } .bf-pop-deals s { font-size: 15px; }
  .bf-pop-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bf-pop-claim, .bf-pop-trial { min-height: 46px; font-size: 14.5px; padding: 6px 8px; border-radius: 14px; }
  .bf-pop-claim-sub { font-size: 11px; }
  .bf-pop-later { min-height: 32px; padding: 2px 8px; font-size: 13px; }
}
/* upright phones a little short for the whole card (iPhone 14 with Safari's bars, ~664 px): less painting above the words */
@media (orientation: portrait) and (max-height: 700px) and (min-height: 600px) {
  .bf-pop-body { padding-top: calc(var(--w) * .56); gap: 9px; }
  .bf-pop-claim, .bf-pop-trial { min-height: 50px; }
}

/* 2026-11-15 "50% off everything": Monthly joins the pop-up as a smaller third line (its first month $4.99), and the hero
   bullet shows $9.99 crossed out */
.bf-pop-deals li.bf-pop-month{padding-top:6px;padding-bottom:6px}
.bf-pop-deals li.bf-pop-month b{font-size:28px}
.bf-pop-deals li.bf-pop-month s{font-size:16px}
@media (max-width:380px){.bf-pop-deals li.bf-pop-month b{font-size:23px}.bf-pop-deals li.bf-pop-month s{font-size:13px}}
@media (orientation: landscape) and (max-height: 520px){.bf-pop-deals li.bf-pop-month{padding-top:3px;padding-bottom:3px}.bf-pop-deals li.bf-pop-month b{font-size:21px}}
.hero-trust .hero-perks li s{color:#c0392b;text-decoration:line-through 2px #e74c3c;font-weight:700}
/* with three plan lines the buttons must still fit on a phone screen (iPhone 13: 664 px tall in Safari, SE: 568): less
   art above the words on shorter portrait screens, tighter rows */
@media (orientation: portrait) and (max-height:780px){.bf-pop-body{padding-top:calc(var(--w) * .4);gap:9px}.bf-pop-deals{gap:6px}
  .bf-pop-deals li{padding-top:6px;padding-bottom:6px}.bf-pop-claim,.bf-pop-trial{min-height:50px}.bf-pop-later{min-height:34px;padding:2px 10px}}
@media (orientation: portrait) and (max-height:620px){.bf-pop-body{padding-top:calc(var(--w) * .36);gap:7px}.bf-pop h2{font-size:20px}
  .bf-pop-claim,.bf-pop-trial{min-height:44px}.bf-pop-claim{font-size:16px}.bf-pop-trial{font-size:15px}}
@media (orientation: landscape) and (max-height: 520px){.bf-pop-body{gap:5px;padding-top:8px}.bf-pop h2{font-size:18px}.bf-pop-deals{gap:4px}.bf-pop-later{min-height:28px}}
