/* =========================================================
   WyrdIT — Webinar registration page
   Design source: Figma "WyrdIT-event-page", node 60:10.
   Full value spec lives in ../figma-export/SPEC.md

   All classes are namespaced `ev-` so nothing collides with the site
   bundle (site-VUVInAUl.css already owns .hero, .h2, .eyebrow, .wrap…).

   Figma's numbers are the DESKTOP baseline only. No absolute geometry
   survives a reflow: widths are fractions, heights come from content.
   ========================================================= */

.ev-hdr, .ev-hero, .ev-agenda, .ev-speakers, .ev-academy, .ev-final {
  /* --- Figma variables (verbatim) --- */
  --pink: #e81a46;
  --dark: #1d0c17;
  --white: #ffffff;
  --off-white: #fcfbfc;
  --btn-radius: 12px;
  --btn-pad-x: 20px;
  --btn-pad-y: 12px;

  /* --- literals from the file --- */
  --input-border: #dbd9d9;
  --checkbox-border: #bfb8bd;
  --card-border: #e8e3e5;
  --portrait-bg: #f6f1f4;
  --portrait-text: #664d5c;

  /* --- fluid rhythm --- */
  --gutter: clamp(20px, 5vw, 120px);
  --section-y: clamp(48px, 7vw, 88px);

  --font-display: "Ubuntu", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-eyebrow: "Nunito", system-ui, sans-serif;
}

/* ---------- shell ---------- */

/* =========================================================
   Header — purpose-built for this single-page registration.
   The site's full nav + megamenu is deliberately not used here:
   a landing page should have one exit, the registration form.
   ========================================================= */

.ev-hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.ev-hdr.is-solid {
  background: color-mix(in srgb, var(--off-white) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 rgba(29, 12, 23, .08);
}

.ev-hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  transition: min-height .25s ease;
}
.ev-hdr.is-solid .ev-hdr__bar { min-height: 62px; }

.ev-hdr__logo { display: block; flex: 0 0 auto; }
.ev-hdr__logo img {
  display: block;
  height: 26px;
  width: auto;
  transition: height .25s ease;
}
.ev-hdr.is-solid .ev-hdr__logo img { height: 22px; }

/* the one piece of context worth repeating in the bar */
.ev-hdr__event {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #6b5c65;
  white-space: nowrap;
}
.ev-hdr__event span { color: var(--pink); padding: 0 4px; }

.ev-hdr__right { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }

.ev-hdr__cta {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
}

@media (max-width: 900px) { .ev-hdr__event { display: none; } }
@media (max-width: 420px) {
  .ev-hdr__cta { padding: 11px 16px; font-size: 14px; }
}

/* sticky header offset for anchor jumps */
html { scroll-padding-top: 90px; }
#regForm { scroll-margin-top: 96px; }

.ev-wrap {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ev-hero, .ev-agenda, .ev-speakers, .ev-academy, .ev-final {
  padding-block: var(--section-y);
  font-family: var(--font-body);
  color: var(--dark);
}

.ev-hero     { background: var(--off-white); }
.ev-agenda   { background: var(--white); }
.ev-speakers { background: var(--off-white); }
.ev-academy  { background: var(--off-white); }
.ev-final    { background: var(--dark); }

/* ---------- shared type ---------- */

.ev-eyebrow {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1.04px;
  color: var(--pink);
  text-transform: uppercase;
}
.ev-hero .ev-eyebrow { font-size: 14px; letter-spacing: 1.12px; }

.ev-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  color: var(--dark);
  text-wrap: balance;
}

/* ---------- buttons ---------- */

.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 0;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, filter .15s ease;
}
.ev-btn--primary { background: var(--pink); color: #fff; }
.ev-btn--primary:hover { filter: brightness(.92); }
.ev-btn--secondary {
  background: var(--off-white);
  color: var(--dark);
  border: 1.5px solid var(--pink);
}
.ev-btn--secondary:hover { background: #fff0f3; }

.ev-btn:focus-visible,
.ev-field__input:focus-visible,
.ev-consent__box:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.ev-final .ev-btn:focus-visible { outline-color: #fff; }

/* =========================================================
   01 Hero + Registration
   ========================================================= */

.ev-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.ev-hero__copy { display: grid; gap: 24px; justify-items: start; }

.ev-hero__headline {
  margin: 0;
  max-width: min(100%, 640px);   /* Figma 60:20 */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.05;
  text-wrap: balance;
}

.ev-hero__sub {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
}

.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-meta li {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* --- registration form --- */

.ev-form {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.ev-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.15;
}

.ev-form__intro { margin: 0; font-size: 14px; line-height: 1.35; }

.ev-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

/* align-content:start is load-bearing. Fields in .ev-form__row stretch to the
   tallest sibling; without it their `auto` rows absorb that extra height and
   the neighbouring input drifts down when the other field shows an error. */
.ev-field {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.ev-field__label { font-size: 13px; font-weight: 700; line-height: 1.2; }

.ev-req { color: var(--pink); text-decoration: none; border: 0; }

.ev-field__input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
}
.ev-field__input::placeholder { color: #8b8189; }
.ev-field__input[aria-invalid="true"] { border-color: var(--pink); }

/* The consent rows are what produced the extra white space before:
   they had a hard 44px height from the Figma frame. Now the row is
   exactly as tall as its label. */
.ev-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  align-content: start;
}

.ev-consent__box {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--checkbox-border);
  border-radius: 4px;
  background: var(--off-white);
  cursor: pointer;
  translate: 0 1px;   /* onto the label's first-line optical centre */
}
.ev-consent__box:checked {
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--pink);
}

.ev-consent__text { font-size: 13px; line-height: 1.35; cursor: pointer; }
.ev-consent__text a { color: var(--dark); }

.ev-error {
  grid-column: 1 / -1;
  grid-row: auto;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--pink);
}

.ev-form__status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--pink);
  background: #fdeef1;
}
.ev-form__status--ok { color: #17603a; background: #e8f6ee; }

/* error summary shown after a failed submit */
.ev-summary {
  padding: 14px 16px;
  border: 1px solid var(--pink);
  border-left-width: 4px;
  border-radius: 10px;
  background: #fdeef1;
}
.ev-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ev-summary ul { margin: 0; padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.ev-summary li { font-size: 13px; line-height: 1.4; color: var(--dark); }
.ev-summary a { color: var(--pink); font-weight: 700; }

.ev-consent__box[aria-invalid="true"] { border-color: var(--pink); border-width: 2px; }

/* honeypot — off-screen, never focusable, invisible to real users */
.ev-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ev-form__submit { width: 100%; margin-top: 2px; }
.ev-form__submit[disabled] { opacity: .75; cursor: progress; }

.ev-form__note { margin: 0; font-size: 12px; line-height: 1.35; color: #5c4f57; }

/* =========================================================
   03 Webinar Agenda
   ========================================================= */

.ev-agenda__intro {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 360px);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  margin-bottom: 32px;
}

.ev-agenda__heading { display: grid; gap: 12px; }

.ev-agenda__lead { margin: 0; font-size: 17px; line-height: 1.45; }

/* Subgrid keeps number / title / bullet-list on the same baseline across
   all three cards, whatever the title length. */
.ev-agenda__modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  grid-template-rows: auto auto auto;
  gap: 18px;
}

.ev-module {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  gap: 20px;
  min-width: 0;
  background: var(--off-white);
  border-radius: 18px;
  padding: 28px;
}

.ev-module__num {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
}

.ev-module__title {
  margin: 0;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.1vw, 27px);
  line-height: 1.15;
  text-wrap: balance;
}

.ev-points {
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: start;
  display: grid;
  gap: 13px;
}
.ev-points li {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}
.ev-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

/* =========================================================
   04 Speakers
   ========================================================= */

.ev-speakers__heading { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 42px); }
/* Figma 65:18 — this heading is 760px wide and sits on two lines.
   A ch-based cap was breaking it into three cramped lines. */
.ev-speakers__heading .ev-h2 { max-width: min(100%, 760px); line-height: 1.15; }

/* auto-fit + min(100%, …) collapses to one column on its own —
   no media query, and no align-self axis trap. */
.ev-speakers__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.ev-speaker {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 28px;
}

.ev-speaker__portrait {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 240px;
  padding: 18px;
  background: var(--portrait-bg);
  border-radius: 16px;
}

.ev-speaker__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ebe1e6;
}

.ev-speaker__placeholder {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  color: var(--portrait-text);
}

.ev-speaker__copy { display: grid; gap: 12px; align-content: start; min-width: 0; }

.ev-speaker__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}

.ev-speaker__role { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ev-speaker__bio  { margin: 0; font-size: 15px; line-height: 1.45; }

@media (max-width: 560px) {
  .ev-speaker { grid-template-columns: minmax(0, 1fr); }
  .ev-speaker__portrait { min-height: 200px; }
}

/* =========================================================
   02 WyrdIT Academy Access
   ========================================================= */

.ev-academy__heading { display: grid; gap: 12px; margin-bottom: clamp(24px, 3vw, 42px); }
.ev-academy__heading .ev-h2 { max-width: min(100%, 760px); }   /* Figma 60:83 */

.ev-academy__content {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(0, 420px);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.ev-outcomes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.ev-outcome {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 14px;
}

.ev-outcome__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ev-outcome__text { font-size: 16px; font-weight: 600; line-height: 1.3; }

.ev-highlight {
  display: grid;
  gap: 20px;
  justify-items: start;
  align-content: start;
  padding: 32px;
  border-radius: 20px;
  background: var(--pink);
  color: #fff;
}

.ev-highlight__eyebrow {
  margin: 0;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.ev-highlight__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
}

.ev-highlight__body { margin: 0; font-size: 16px; line-height: 1.4; }

.ev-highlight__cta { min-width: min(100%, 260px); }

@media (max-width: 900px) {
  .ev-agenda__intro,
  .ev-academy__content { grid-template-columns: minmax(0, 1fr); }
  .ev-agenda__intro { align-items: start; }
}

/* =========================================================
   05 Final CTA
   ========================================================= */

.ev-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(28px, 4vw, 40px);
  align-items: center;
}

.ev-final__copy { display: grid; gap: 18px; }

.ev-final__title {
  margin: 0;
  max-width: min(100%, 700px);   /* Figma 66:17 */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.ev-final__body {
  margin: 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.45;
  color: #fff;
}

.ev-final__card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
  background: var(--white);
  border-radius: 20px;
}

.ev-final__cardTitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
}

.ev-final__cardBody { margin: 0; font-size: 15px; line-height: 1.4; }

.ev-final__cta { width: 100%; }

@media (max-width: 900px) {
  .ev-hero__inner,
  .ev-final__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ev-btn { transition: none; }
}
