/* BP C (BP-362): BP x's type, buttons, calm and smooth scroll, laid over the main site v2 (r118-munim2).
   Linked LAST in index.html so it wins. Sections, copy, numbers, pictures, the pirate, order and layout are untouched.
   Undo: remove the <link> to this file and the two <script> tags for /assets/bpc/ from index.html.
   Source of every value: work-all/bp-x-2/tokens.css (BP x 2). */

/* 1. Fonts: BP x uses Roobert 400 and 600 only. The main site asks for 300 to 900 in about 50 stylesheets, so the
   heavier and lighter weights are pointed at the same two files here. Same descriptors as the site's own faces,
   declared later, so these win: every weight from 550 up draws Roobert SemiBold (600), every lighter one Roobert
   Regular (400). No element's markup or size changes for this. */
@font-face { font-family: "Roobert"; src: url("/assets/r87/a0/fonts/roobert-regular.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("/assets/r87/a0/fonts/roobert-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("/assets/r87/a0/fonts/roobert-regular.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("/assets/r87/a0/fonts/roobert-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roobert"; src: url("/assets/r87/a0/fonts/roobert-semibold.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --bpc-lime: #c2f542; --bpc-lime-hover: #abd839; --bpc-olive: #445a00; --bpc-olive-deep: #2a3600;
  --bpc-paper: #fbfaf6; --bpc-ink: #151518; --bpc-muted: #4a4c44;
  /* the main site zooms the whole page 1.2 times on laptops and desktops (html zoom = --bpz). Every BP x size below
     is divided by that zoom, so it shows on screen at exactly BP x's size. On phones --bpz is 1. */
  --bpc-u: calc(1px / var(--bpz, 1));
  --bpc-fs-t: calc(clamp(34px, 3.9vw, 60px) / var(--bpz, 1));
  --bpc-fs-b: calc(21 * var(--bpc-u));
  --bpc-fs-s: calc(17 * var(--bpc-u));
  --bpc-spring: cubic-bezier(.34, 1.56, .64, 1);
  --bpc-dither: conic-gradient(var(--bpc-olive-deep) 25%, transparent 0 50%, var(--bpc-olive-deep) 0 75%, transparent 0) 0 0 / calc(4 * var(--bpc-u)) calc(4 * var(--bpc-u));
}
@media (max-width: 600px) { :root { --bpc-fs-b: calc(19 * var(--bpc-u)); --bpc-fs-s: calc(16 * var(--bpc-u)); } }

/* 2. Smooth scroll (Lenis, BP x lines). bpc.js turns it on; reduced motion leaves it off. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* BP x's ".lenis.lenis-stopped { overflow: clip }" is left out on purpose: the main site locks the page itself
   (html overflow hidden while the booking or claim dialog is open), and bpc.js stops Lenis only while that lock is on. */
html { scroll-padding-top: 104px; }
@media (max-width: 899px) { html { scroll-padding-top: 82px; } }

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 3. Type scale. h1 keeps the site's own size: BP x's 100 px display size would push the hero headline under the
   phone and the pirate (layout must not change). It takes BP x's weight, tracking and leading. */
html body main #top.hero .hero__copy .hero__title.c1-title,
html body main #top.hero .hero__copy .hero__title.c1-title :is(.hl, .m216-l) {
  font-weight: 600 !important; letter-spacing: -.038em !important; word-spacing: normal !important;
}
html body main #top.hero .hero__copy .hero__title.c1-title { line-height: 1.0 !important; }

/* every section title: BP x's one title size */
html body :is(#main h2[id$="-title"], .r77f__line) {
  font-size: var(--bpc-fs-t) !important; font-weight: 600 !important;
  line-height: 1.06 !important; letter-spacing: -.028em !important; text-wrap: balance;
}
/* the big "Every one of these has a fix" line in the pains section is a title too */
html body #sound .m271-end-h { font-size: var(--bpc-fs-t) !important; font-weight: 600 !important; line-height: 1.06 !important; letter-spacing: -.028em !important; }

/* the line under each section title: BP x body size */
html body :is(#top .hero__what, #sound .m271-sub, #cases .sub, #founder-videos .tm-sub, #route .m63-lede,
  #impressions .m215-lede, #sponsors .m202-lede, #gift .r73-gift__line, #research .m205-sub, #how .r73-how__lede,
  #founders .m242-lede, #niches .r73-nc__lede, #book .finale__lede) {
  font-size: var(--bpc-fs-b) !important; line-height: 1.5 !important; letter-spacing: 0 !important;
}

/* the "No time to post" scene pins only when its whole stage fits the phone screen; the bigger line would unpin it,
   so on phones and tablets that one line keeps the site's own size */
@media (min-width: 960px) {
  html body #time .m207-sub { font-size: var(--bpc-fs-b) !important; line-height: 1.5 !important; letter-spacing: 0 !important; }
}

/* phones: the "You do 3 things" title is one line shorter at BP x's size, so its line would run under the pirate
   at the top right; it stops short of him instead */
@media (max-width: 600px) {
  html body #how .r73-how__lede { max-width: calc(100% - 104px) !important; }
}

/* 4. Buttons: BP x .btn. Face on ::after with the 2px olive outline, dithered shadow on ::before offset 4px,
   hover lifts 2px and the shadow grows to 6px, press sinks 1px. Lime = primary, paper = secondary.
   The site's magnetic pull (transform) still works: the lift uses the separate translate property. */
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next,
  .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back) {
  --bpc-bg: var(--bpc-lime);
  isolation: isolate; overflow: visible !important;
  background: transparent !important; box-shadow: none !important; border: 0 !important;
  border-radius: 999px !important; color: var(--bpc-ink) !important;
  font-family: "Roobert", system-ui, sans-serif !important; font-weight: 600 !important; letter-spacing: -.01em !important;
  text-decoration: none !important; -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, translate 250ms var(--bpc-spring), transform 0.6s var(--bpc-spring) !important;
}
html body :is(.btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back) { --bpc-bg: var(--bpc-paper); }
/* the face and shadow need a positioned button; "Tap to reveal" is already placed absolutely on the scratch card */
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next, .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .cd .cd-back) { position: relative; }
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next,
  .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back)::before,
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next,
  .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back)::after {
  content: "" !important; position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important;
  border-radius: inherit !important; opacity: 1 !important; transform: none !important; filter: none !important;
  pointer-events: none !important; transition: translate 250ms var(--bpc-spring), background-color 180ms ease !important;
}
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next,
  .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back)::before {
  z-index: -2 !important; background: var(--bpc-dither) !important; translate: calc(4 * var(--bpc-u)) calc(4 * var(--bpc-u));
}
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next,
  .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back)::after {
  z-index: -1 !important; background: var(--bpc-bg) !important; box-shadow: inset 0 0 0 calc(2 * var(--bpc-u)) var(--bpc-olive-deep) !important;
}
/* the icons inside take the ink colour too (some were lime on the old dark-glass buttons) */
html body :is(.c1-fclaim, .r77f__mail, .btn-ghost) svg { color: var(--bpc-ink) !important; }
html body .r77f__mail small { color: var(--bpc-muted) !important; }

/* BP x sizes: 60 px tall, 21 px words, pill padding 30 px (56 / 19 / 24 on phones) */
html body :is(#top .hero__actions > a, #sound .m271-btn, #gift .btn-lime, #book .finale__actions > a, .r77f__ctas > a, .c1-menu-ctas > a) {
  height: auto !important; min-height: calc(60 * var(--bpc-u)) !important; padding: 0 calc(30 * var(--bpc-u)) !important; font-size: var(--bpc-fs-b) !important;
}
html body #sound .m271-me { height: auto !important; min-height: calc(60 * var(--bpc-u)) !important; font-size: var(--bpc-fs-b) !important; }
html body .cd :is(.cd-next, .cd-back) { height: auto !important; min-height: calc(56 * var(--bpc-u)) !important; padding: 0 calc(24 * var(--bpc-u)) !important; font-size: calc(19 * var(--bpc-u)) !important; }
html body .r77f__ctas .r77f__mail { min-height: calc(60 * var(--bpc-u)) !important; padding-inline: calc(24 * var(--bpc-u)) !important; }
@media (max-width: 600px) {
  html body :is(#sound .m271-btn, #gift .btn-lime, #book .finale__actions > a, .r77f__ctas > a, .c1-menu-ctas > a) { min-height: 56px !important; padding: 0 24px !important; }
}
/* the hero's two buttons share one row on phones and tablets, so they keep the site's own compact size there and
   take only BP x's look (BP x's 56 px / 19 px buttons would not fit side by side under 960 px) */
@media (max-width: 959px) {
  html body #top .hero__actions > a { min-height: 48px !important; height: 48px !important; padding: 0 14px !important; font-size: min(13px, calc(3.3vw / var(--bpz, 1))) !important; }
}
/* header buttons: BP x small button (48 px, 17 px words) on laptops; the site's own compact size on smaller screens */
html body .nav .nav__right > :is(.nav__cta, .nav__book) { height: calc(48 * var(--bpc-u)) !important; padding: 0 calc(22 * var(--bpc-u)) !important; font-size: var(--bpc-fs-s) !important; }
@media (max-width: 1199px) { html body .nav .nav__right > :is(.nav__cta, .nav__book) { height: 44px !important; padding: 0 14px !important; font-size: 14px !important; } }

/* states */
html body .m271-me[aria-pressed="true"] { --bpc-bg: var(--bpc-lime); }
html body .scratch.is-revealed .scratch__reveal { --bpc-bg: #eef9d9; }
@media (hover: hover) and (pointer: fine) {
  html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next):hover { --bpc-bg: var(--bpc-lime-hover); translate: calc(-2 * var(--bpc-u)) calc(-2 * var(--bpc-u)); }
  html body :is(.btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .cd .cd-back):hover { --bpc-bg: var(--bpc-ink); color: var(--bpc-paper) !important; translate: calc(-2 * var(--bpc-u)) calc(-2 * var(--bpc-u)); }
  html body :is(.btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .cd .cd-back):hover :is(svg, small) { color: var(--bpc-paper) !important; }
  html body .m271-me[aria-pressed="true"]:hover { --bpc-bg: var(--bpc-lime-hover); color: var(--bpc-ink) !important; }
  html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next, .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .cd .cd-back):hover::before { translate: calc(6 * var(--bpc-u)) calc(6 * var(--bpc-u)); }
}
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next, .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back):active {
  translate: var(--bpc-u) var(--bpc-u); transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) !important;
}
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next, .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back):active::before { translate: calc(2 * var(--bpc-u)) calc(2 * var(--bpc-u)); }
html body :is(.btn-lime, .m271-btn-lime, .nav__cta, .r77f__book, .cd .cd-next, .btn-ghost, .m271-btn-ghost, .nav__book, .c1-fclaim, .r77f__mail, .m271-me, .scratch__reveal, .cd .cd-back):focus-visible {
  outline: 3px solid var(--bpc-olive) !important; outline-offset: 6px !important;
}
