/* =====================================================================
   webinar-register.css — Free Live Webinar funnel (webinar-register.html
   and webinar-register-b.html).

   Scope: every rule below is either (a) prefixed `.wr-` or (b) nested
   under the page's `.wr` wrapper, so nothing here can collide with or be
   overridden by the site's existing css/main.css — which already defines
   .btn, .field, .field-row and .hero for its own marketing pages. This
   file is meant to be linked ALONGSIDE main.css, never instead of it: it
   reuses main.css's color tokens (--paper, --orange, --forest-deep, ...),
   the shared --display/--sans fonts, and the shared --ease-brand-equivalent
   cubic-bezier curve, rather than redefining any of them, so a change to
   the site's palette or type only has to happen in one place.

   The one color this file DOES add is --wr-accent-text: a darkened
   version of the site's --orange for small/bold text on light
   backgrounds. --orange itself only measures ~3.1:1 on --paper (WCAG AA
   needs 4.5:1 for that text size) — see the comment below.
   ===================================================================== */

.wr {
  /* ---- Local tokens who don't have a same-purpose main.css equivalent ---- */
  /* Darkened --orange for small/bold text on light backgrounds (cream,
     cream-alt, white) — same hue, just deeper: clears AA on both
     var(--paper) (4.7:1) and white (5.1:1). On dark/forest sections the
     stock var(--orange) already passes (4.55:1) and is used unchanged. */
  --wr-accent-text: #AD551F;
  --wr-success: #3F7A56;
  --wr-error: #B3402B;

  /* Spacing scale — page-specific rhythm, main.css has no equivalent. */
  --wr-space-3xs: 4px;
  --wr-space-2xs: 8px;
  --wr-space-xs: 12px;
  --wr-space-sm: 16px;
  --wr-space-md: 24px;
  --wr-space-lg: 32px;
  --wr-space-xl: 48px;
  --wr-space-2xl: 72px;

  --wr-container-width: 1120px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .wr * { scroll-behavior: auto !important; }
}

.wr img, .wr picture, .wr svg { display: block; max-width: 100%; }
.wr button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wr input, .wr select { font: inherit; color: inherit; }
.wr ul { list-style: none; padding: 0; margin: 0; }

.wr h1, .wr h2, .wr h3, .wr h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.wr .wr-section--dark h1, .wr .wr-section--dark h2, .wr .wr-section--dark h3 { color: var(--paper); }

.wr :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout --------------------------------------------------------------- */
.wr-container {
  width: 100%;
  max-width: var(--wr-container-width);
  margin-inline: auto;
  padding-inline: var(--wr-space-md);
}
.wr-section { padding-block: var(--wr-space-2xl); }
.wr-section--alt { background: var(--paper-warm); }
.wr-section--dark { background: var(--forest-deep); color: var(--paper); }
.wr-section--narrow .wr-container { max-width: 760px; }
.wr-section--tight { padding-block: var(--wr-space-xl); }

.wr-stack { display: flex; flex-direction: column; }
.wr-center { text-align: center; }

.wr-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wr-accent-text);
  margin-bottom: var(--wr-space-2xs);
}
.wr-section--dark .wr-eyebrow { color: var(--orange); }

.wr h2.wr-section-title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  margin-bottom: var(--wr-space-sm);
}
.wr p.wr-section-lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}
.wr-section--dark p.wr-section-lede { color: var(--muted-on-dark); }
.wr-center p.wr-section-lede { margin-inline: auto; }

.wr-accent { color: var(--orange); }

/* ---- Buttons ---------------------------------------------------------------
   Deliberately its own class, not a reuse of main.css's .btn: this funnel
   needs a two-line stacked label (bold action + reassurance line) that
   .btn doesn't support, and font-size/padding here match this page's
   type scale. Same radius/orange/easing as the sitewide .btn.orange, so
   it reads as the same component family. */
.wr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wr-space-2xs);
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.3s ease;
}
.wr-btn:hover { transform: translateY(-2px); }
.wr-btn:active { transform: translateY(0); }

.wr-btn--primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 26px;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}
.wr-btn--primary:hover { background: #c65f21; box-shadow: var(--shadow-lift); }

.wr-btn--primary.wr-btn--stacked { flex-direction: column; gap: 2px; padding: 16px 32px; }
.wr-btn--stacked .wr-btn-title { display: flex; align-items: center; gap: var(--wr-space-2xs); font-size: 1.0625rem; }
.wr-btn--stacked .wr-btn-subtitle { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }

.wr-btn--secondary {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  gap: var(--wr-space-3xs);
}
.wr-section--dark .wr-btn--secondary { color: var(--paper); border-color: var(--paper); }
.wr-btn--secondary:hover { color: var(--orange); border-color: var(--orange); gap: var(--wr-space-2xs); }

.wr-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---- Header: static, not sticky (deliberate exception to this file's
   .wr- scoping — it has to reach into main.css's .site-head) --------------
   main.css makes .site-head `position: sticky; top: 0` sitewide so the
   logo can dock into a floating pill once you scroll past it — see
   main.css's own comment above .site-head. On this page the client wants
   the opposite: the logo scrolls away with the page like normal content,
   and only .wr-urgency-strip (below) stays pinned to the top edge as the
   page's scarcity bar. Two independent `position: sticky; top: 0`
   siblings previously fought over that same slot ("logo gets mangled on
   scroll"); overriding .site-head back to static removes it from the
   sticky picture entirely, so there's nothing left to fight with. */
.site-head.logo-only { position: static; }

.wr-urgency-strip {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--forest-deep);
  color: var(--paper);
  text-align: center;
  padding: 10px var(--wr-space-sm);
  font-size: clamp(0.6875rem, 0.6rem + 0.4vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wr-urgency-strip .wr-dot { color: var(--orange); margin-inline: var(--wr-space-2xs); }

/* ---- Hero -------------------------------------------------------------------
   Padding tightened from the original --wr-space-2xl/xl (72px/48px) — the
   hero now carries the form directly (see webinar-register.html), so every
   extra pixel here pushes the fields further down the page. Reduced
   specifically as part of the "form above the fold" fix, not a general
   section-spacing change. */
/* #wr-register (this section's own id) is a same-page anchor target — the
   head script's page URL and any external links can land here directly.
   Native fragment scrolling puts the target's top flush at viewport y:0
   with no awareness that .wr-urgency-strip is sticky in that exact spot;
   without this the strip lands on top of the H1 the instant the page
   opens on the anchor. scroll-margin-top reserves that space so the
   browser's own fragment-scroll (and any in-page anchor click) stops
   below the strip instead of under it — 28px is the tallest measured
   strip height (~21px) plus a small buffer, not tied to a specific
   breakpoint. The logo header isn't sticky (see above), so it never
   competes for this space. */
.wr-hero { padding-block: var(--wr-space-lg) var(--wr-space-xl); text-align: center; scroll-margin-top: 28px; }
.wr-hero__inner { max-width: 800px; margin-inline: auto; }
.wr-hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); margin-bottom: var(--wr-space-sm); }
.wr-hero__subhead {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--wr-space-sm);
}

/* .wr-hero__variant / [data-wr-variant] toggle rules, .wr-stat-row and
   .wr-hero__cta were removed from here in the "70% shorter, form above the
   fold" rework — variant B is a redirect now (see the head script in
   webinar-register.html), so this page only ever renders variant A's
   single hero, and the form sits directly in the hero instead of behind a
   CTA button. */
.wr-event-date-line { font-weight: 700; margin-bottom: var(--wr-space-sm); }

.wr-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--wr-space-2xs);
  max-width: 420px;
  margin: 0 auto var(--wr-space-md);
}
.wr-countdown__label {
  grid-column: 1 / -1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--wr-space-2xs);
}
.wr-countdown__box {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 10px 4px;
  box-shadow: var(--shadow-soft);
}
.wr-countdown__digits {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.wr-countdown__unit {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wr-countdown--live .wr-countdown__digits { color: var(--wr-success); }
.wr-countdown-live-banner {
  display: none;
  font-family: var(--display);
  font-weight: 600;
  color: var(--wr-success);
  background: #E8F1EC;
  border-radius: 100px;
  padding: 10px 20px;
  margin: 0 auto var(--wr-space-md);
  max-width: fit-content;
}
.wr-is-live .wr-countdown { display: none; }
.wr-is-live .wr-countdown-live-banner { display: block; }

.wr-trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--wr-space-sm); }
.wr-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
}
.wr-trust-badge .wr-stars { color: var(--orange); letter-spacing: 1px; }

/* ---- Live training / photo section 1 ------------------------------------------ */
.wr-host { display: grid; grid-template-columns: 340px 1fr; gap: var(--wr-space-xl); align-items: center; }
.wr-host__photo-group { display: grid; grid-template-columns: 1fr; gap: var(--wr-space-xs); }
.wr-host__photo-main, .wr-host__photo-secondary {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: cover;
}
.wr-host__photo-main { aspect-ratio: 4 / 3; }
.wr-host__photo-secondary { aspect-ratio: 16 / 9; }
.wr-host__bio .wr-section-title { color: var(--paper); margin-bottom: var(--wr-space-sm); }
.wr-host__bio p { margin-bottom: var(--wr-space-sm); color: var(--muted-on-dark); }
.wr-host__bio p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .wr-host { grid-template-columns: 1fr; text-align: center; }
  .wr-host__photo-group { max-width: 420px; margin-inline: auto; }
}

/* ---- Before / After ------------------------------------------------------------ */
.wr-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wr-space-lg); margin-top: var(--wr-space-lg); }
.wr-before-after__col { background: #fff; border-radius: var(--r); padding: var(--wr-space-lg); box-shadow: var(--shadow-soft); }
.wr-before-after__heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--wr-space-sm);
}
.wr-before-after__col--before .wr-before-after__heading { color: var(--muted); }
.wr-before-after__col--after .wr-before-after__heading { color: var(--orange); }
.wr-before-after__col li {
  display: flex;
  gap: var(--wr-space-xs);
  padding-block: var(--wr-space-xs);
  border-bottom: 1px solid var(--cream-line);
  font-size: 0.9375rem;
}
.wr-before-after__col li:last-child { border-bottom: 0; }
.wr-before-after__mark { flex-shrink: 0; font-weight: 700; }
.wr-before-after__col--before .wr-before-after__mark { color: var(--muted); }
.wr-before-after__col--after .wr-before-after__mark { color: var(--orange); }

@media (max-width: 720px) { .wr-before-after { grid-template-columns: 1fr; } }

/* ---- How it works ---------------------------------------------------------------- */
.wr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wr-space-lg); margin-top: var(--wr-space-lg); }
.wr-step { position: relative; padding-left: var(--wr-space-xl); }
.wr-step__number {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.wr-step h3 { font-size: 1.125rem; margin-bottom: var(--wr-space-2xs); }
.wr-step p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

@media (max-width: 820px) {
  .wr-steps { grid-template-columns: 1fr; gap: var(--wr-space-lg); position: relative; }
  .wr-steps::before {
    content: "";
    position: absolute;
    left: 19px; top: 20px; bottom: 20px;
    width: 1px;
    background: var(--cream-line);
  }
}

/* ---- Testimonials ------------------------------------------------------------------ */
.wr-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wr-space-md); margin-top: var(--wr-space-lg); }
.wr-testimonial-card {
  background: #fff;
  border-radius: var(--r);
  padding: var(--wr-space-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wr-testimonial-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.wr-testimonial-card__result { color: var(--wr-accent-text); font-family: var(--display); font-weight: 600; font-size: 1.0625rem; margin-bottom: var(--wr-space-2xs); }
.wr-testimonial-card__name { font-weight: 700; font-size: 0.9375rem; margin-bottom: var(--wr-space-2xs); }
.wr-testimonial-card__story { color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .wr-testimonial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--wr-space-sm);
    margin-inline: calc(var(--wr-space-md) * -1);
    padding-inline: var(--wr-space-md);
    padding-bottom: var(--wr-space-2xs);
    scrollbar-width: none;
  }
  .wr-testimonial-grid::-webkit-scrollbar { display: none; }
  .wr-testimonial-card { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---- Proof strip ---------------------------------------------------------------------- */
.wr-proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--wr-space-sm); }
.wr-proof-pill { background: #fff; border: 1px solid var(--cream-line); border-radius: 100px; padding: 10px 20px; font-weight: 700; font-size: 0.875rem; }
.wr-proof-pill .wr-accent { font-family: var(--display); }

/* ---- FAQ accordion ----------------------------------------------------------------------- */
.wr-faq { max-width: 760px; margin: var(--wr-space-lg) auto 0; }
.wr-faq-item { border-bottom: 1px solid var(--cream-line); }
.wr-faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wr-space-md);
  padding-block: var(--wr-space-sm);
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
}
.wr-faq-item__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wr-faq-item[data-open="true"] .wr-faq-item__icon { transform: rotate(45deg); }
.wr-faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.wr-faq-item[data-open="true"] .wr-faq-item__answer { grid-template-rows: 1fr; }
.wr-faq-item__answer-inner { overflow: hidden; }
.wr-faq-item__answer p { color: var(--muted); padding-bottom: var(--wr-space-sm); font-size: 0.9375rem; margin: 0; }

/* ---- Registration form ------------------------------------------------------------------ */
.wr-form-panel {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  padding: var(--wr-space-lg);
  max-width: 460px;
  margin-inline: auto;
  text-align: left;
}
.wr-form-panel__event-line {
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--paper-warm);
  border-radius: 10px;
  padding: var(--wr-space-xs);
  margin-bottom: var(--wr-space-md);
  text-align: center;
  font-weight: 600;
}
.wr-field { margin-bottom: var(--wr-space-sm); }
.wr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wr-space-sm); }
.wr-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.wr-field input, .wr-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-line);
  border-radius: 10px;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  background: #fff;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wr-field input:focus, .wr-field select:focus { border-color: var(--orange); outline: none; }
.wr-field.wr-has-error input, .wr-field.wr-has-error select { border-color: var(--wr-error); }
.wr-field-error { color: var(--wr-error); font-size: 0.75rem; margin-top: 4px; min-height: 1em; }
.wr-phone-field { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.wr-honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wr-form-panel .wr-btn--primary { width: 100%; margin-top: var(--wr-space-2xs); }
.wr-form-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: var(--wr-space-sm); text-align: center; }
.wr-form-banner {
  background: #FBE9E3;
  color: var(--wr-error);
  border-radius: 10px;
  padding: var(--wr-space-xs);
  font-size: 0.8125rem;
  margin-bottom: var(--wr-space-sm);
  text-align: center;
}
.wr-form-success { text-align: center; padding: var(--wr-space-md) 0; }
.wr-form-success__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--wr-success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--wr-space-sm);
  font-size: 1.5rem;
}
.wr-form-success h3 { margin-bottom: var(--wr-space-2xs); }
.wr-form-success p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* ---- Final CTA band ---------------------------------------------------------------------- */
.wr-final-cta { text-align: center; }
.wr-final-cta h2 { color: var(--paper); margin-bottom: var(--wr-space-sm); }
.wr-final-cta .wr-event-date-line { color: var(--muted-on-dark); font-weight: 600; margin-top: var(--wr-space-sm); }

/* ---- Section-specific spacing on small screens --------------------------------------------- */
@media (max-width: 640px) {
  .wr-section { padding-block: var(--wr-space-xl); }
  .wr-steps, .wr-before-after { gap: var(--wr-space-md); }
  .wr-testimonial-card { flex-basis: 88%; }
}

/* ---- Scroll-reveal (progressive enhancement) -------------------------------------------------
   JS itself adds .wr-reveal-pending right before it starts observing (see
   webinar-register.js), so content is fully visible by default and only
   ever hidden once JS has already proven it can un-hide it again. */
.wr-reveal.wr-reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.wr-reveal.wr-reveal-pending.wr-is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .wr-reveal.wr-reveal-pending { opacity: 1; transform: none; transition: none; }
}

/* ---- Footer tap targets --------------------------------------------------------------------
   Fix carried over from the earlier standalone build's audit: main.css's
   .foot-col a links already have real padding (6px 0) and are fine; this
   page only needs the fix if it ever adds its own inline footer nav
   instead of reusing .site-foot verbatim (see webinar-register.html). */
