/* Self-contained campaign styles — no theme stylesheet on the marketing page.
   Brand fonts + colours copied from bravestar (variables.scss / brand.scss). */
@font-face {
  font-family: "Wulkan Display Regular";
  src: url("/wp-content/themes/bravestar/fonts/wulkan/Wulkan-Display-Regular.woff2") format("woff2");
  font-display: swap; font-style: normal;
}
@font-face {
  font-family: "neue-haas-grotesk-text";
  src: url("/wp-content/themes/bravestar/fonts/neue-haas/NeueHaasGroteskText-55Roman-Web.woff2") format("woff2");
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "neue-haas-grotesk-text";
  src: url("/wp-content/themes/bravestar/fonts/neue-haas/NeueHaasGroteskText-75Bold-Web.woff2") format("woff2");
  font-weight: 700; font-display: swap; font-style: normal;
}

:root {
  --cr-black: #1D1D1B;
  --cr-grey: #EAE9E5;
  --cr-pink: #F9C5D7;
  --cr-blue: #006CFF;
}

body.cr-campaign {
  margin: 0;
  font-family: "neue-haas-grotesk-text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--cr-black);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.cr-campaign *, body.cr-campaign *::before, body.cr-campaign *::after { box-sizing: border-box; }

.cr-campaign__wrap { max-width: 620px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.cr-campaign--checkout .cr-campaign__wrap { max-width: 960px; }
body.cr-campaign:not(.cr-campaign--checkout) .cr-campaign__wrap { padding-top: 2.5rem; }

/* Full-width background-image hero (marketing state) */
.cr-campaign__videohero {
  position: relative; width: 100%;
  min-height: clamp(360px, 62vh, 680px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #1d1d1b; text-align: center;
}
.cr-campaign__videohero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.cr-campaign__videohero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.55) 100%);
}
.cr-campaign__videohero-inner { position: relative; z-index: 2; color: #fff; padding: 3rem 1.25rem; max-width: 760px; }
.cr-campaign__videohero-logo { height: 28px; width: auto; margin: 0 0 1.75rem; display: inline-block; }
.cr-campaign__videohero-inner h1 {
  font-family: "Wulkan Display Regular", Georgia, serif; font-weight: 400; color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem;
  text-shadow: 0 1px 20px rgba(0,0,0,.35);
}
.cr-campaign__videohero-sub {
  color: #fff; margin: 0 auto; max-width: 30em; font-size: 1.15rem;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.cr-campaign__videohero-sub strong { color: #fff; }

/* Logo — reliably centred */
.cr-campaign__logo { text-align: center; margin: 0 0 2.5rem; }
.cr-campaign__logo a { display: inline-block; }
.cr-campaign__logo img { height: 26px; width: auto; display: block; }

/* Hero */
.cr-campaign__hero { text-align: center; }
.cr-campaign__hero h1 {
  font-family: "Wulkan Display Regular", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
}
.cr-campaign__sub { font-size: 1.125rem; margin: 0 auto 2.5rem; max-width: 30em; }

/* Preferences — legend on its own centred line, options in a grid below it */
.cr-campaign__form { text-align: left; }
.cr-campaign__prefs { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.cr-campaign__prefs-title {
  display: block; width: 100%; float: none;
  text-align: center; font-weight: 700; font-size: 1.05rem;
  margin: 0 0 1rem; padding: 0;
}
.cr-campaign__pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.cr-campaign__pref input { position: absolute; opacity: 0; pointer-events: none; }
.cr-campaign__pref span {
  display: block; padding: 1rem; text-align: center; cursor: pointer;
  border: 2px solid var(--cr-grey); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.cr-campaign__pref span:hover { border-color: var(--cr-black); }
.cr-campaign__pref input:checked + span { border-color: var(--cr-blue); background: var(--cr-pink); font-weight: 700; }
.cr-campaign__pref input:focus-visible + span { outline: 2px solid var(--cr-blue); outline-offset: 2px; }

/* Zero-JS reveal: the email step appears only once a preference is chosen */
.cr-campaign__email { display: none; margin-top: 1.75rem; }
.cr-campaign__prefs:has(input:checked) ~ .cr-campaign__email { display: block; }
.cr-campaign__email > label { display: block; font-weight: 700; margin-bottom: .4rem; text-align: center; }
.cr-campaign__email input[type="email"] {
  width: 100%; padding: .9rem 1rem; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--cr-grey); border-radius: 12px;
}
.cr-campaign__email input[type="email"]:focus-visible { outline: 2px solid var(--cr-blue); outline-offset: 1px; border-color: var(--cr-blue); }

/* CTA — own visible button (no theme .button-primary dependency) */
.cr-campaign__cta {
  display: block; width: 100%; margin-top: 1rem; padding: 1rem 1.25rem;
  font-family: inherit; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: var(--cr-blue); border: 0; border-radius: 999px; cursor: pointer;
  transition: opacity .15s;
}
.cr-campaign__cta:hover { opacity: .88; }
/* Loading state: hide the label, show a spinner, block re-clicks while the POST is in flight */
.cr-campaign__cta.is-loading { color: transparent; pointer-events: none; position: relative; }
.cr-campaign__cta.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
  animation: cr-spin .6s linear infinite;
}
@keyframes cr-spin { to { transform: rotate(360deg); } }

.cr-campaign__disclaimer { margin: .9rem 0 0; font-size: .8rem; text-align: center; color: #555; }
.cr-campaign__disclaimer a { color: var(--cr-blue); }

/* Honeypot — off-screen (not display:none, which some bots skip) */
.cr-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Keep Klaviyo onsite TRACKING, but suppress any Klaviyo form/popup on this page.
   Tracking + forms share one script, so we hide the form container rather than drop the
   script. All Klaviyo forms (popup/flyout/embed) render into a .klaviyo-form-<id> element.
   Paired with a klaviyoForms scroll-lock release in the template. */
[class*="klaviyo-form-"] { display: none !important; }

/* Member benefits — mirrors the /cocoa-runners-club/ perk list (ul.none > li > h4.h5 + p):
   a plain divided list, no cards; item titles use the theme's .h5 type. */
.cr-campaign__benefits { margin: 3.5rem 0 0; }
.cr-campaign__benefits h2 {
  font-family: "Wulkan Display Regular", Georgia, serif; font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.12; text-align: center;
  margin: 0 auto 1.75rem; max-width: 18em;
}
.cr-campaign__benefit-list { list-style: none; margin: 0; padding: 0; }
.cr-campaign__benefit-list li { padding: 1.15rem 0; border-top: 1px solid #ddd; }
.cr-campaign__benefit-list li:first-child { border-top: 0; padding-top: 0; }
.cr-campaign__benefit-list h3 { /* .h5 */
  margin: 0 0 .3rem; font-size: 1.1rem; line-height: 1.19em; font-weight: 500;
}
.cr-campaign__benefit-list p { margin: 0; color: #333; }

/* Member testimonials — club page renders body-type quotes (.single-quote p, NOT serif)
   with a .cite author on a bg-mid (#eae9e5 = --cr-grey) row. Adapted to stacked cards
   for the narrow single-column landing layout. */
.cr-campaign__quotes { margin: 3.5rem 0 0; display: grid; gap: 1rem; }
.cr-campaign__quotes figure { margin: 0; padding: 1.5rem; background: var(--cr-grey); border-radius: 12px; }
.cr-campaign__quotes blockquote { margin: 0; font-size: 1rem; line-height: 1.5; } /* inherits neue-haas */
.cr-campaign__quotes figcaption { margin-top: .9rem; font-weight: 600; line-height: 1.5rem; } /* .cite */

/* "Featured by" press strip — mirrors the club page's row-type-logos, static (no ticker).
   Each logo is boxed in a fixed cell with object-fit:contain so any aspect ratio sits neatly. */
.cr-campaign__press { margin: 3rem 0 0; text-align: center; }
.cr-campaign__press-title {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: #777; font-weight: 700; margin: 0 0 1.25rem;
}
.cr-campaign__press-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.75rem;
}
.cr-campaign__press-logos li { display: flex; align-items: center; justify-content: center; width: 100px; height: 54px; }
.cr-campaign__press-logos img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: opacity .15s, filter .15s;
}
.cr-campaign__press-logos img:hover { filter: grayscale(0); opacity: 1; }

/* FAQ accordion — native <details>, closed by default, with a rotating +/− marker */
.cr-campaign__faq { margin: 3.5rem 0 0; }
.cr-campaign__faq h2 {
  font-family: "Wulkan Display Regular", Georgia, serif; font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.12; text-align: center; margin: 0 auto 1.75rem;
}
.cr-campaign__faq-item { border-top: 1px solid #ddd; }
.cr-campaign__faq-item:last-child { border-bottom: 1px solid #ddd; }
.cr-campaign__faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-weight: 500; font-size: 1.05rem; line-height: 1.3;
}
.cr-campaign__faq-item summary::-webkit-details-marker { display: none; }
.cr-campaign__faq-item summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--cr-blue); transition: transform .15s;
}
.cr-campaign__faq-item[open] summary::after { content: "\2212"; } /* minus */
.cr-campaign__faq-item summary:focus-visible { outline: 2px solid var(--cr-blue); outline-offset: 2px; }
.cr-campaign__faq-answer { padding: 0 0 1.2rem; color: #333; }
.cr-campaign__faq-answer a { color: var(--cr-blue); }

@media (max-width: 480px) { .cr-campaign__pref-grid { grid-template-columns: 1fr; } }
