/* =============================================================================
   Ostride Labs — Webinar landing page
   Tokens pulled from Figma variables. Mobile-first; desktop layer at >=768px.
   ============================================================================= */

/* ----------------------------------- Tokens ----------------------------------- */
:root {
  /* Brand colours (Figma "2025/..." variables) */
  --black: #000000;
  --white: #ffffff;
  --blue-800: #002780;
  --blue-700: #0037b3;
  --blue-600: #0047e5;
  --blue-500: #004fff; /* primary */
  --blue-400: #1961ff;
  --blue-300: #4c84ff;
  --blue-200: #80a7ff;
  --alabaster: #f4f2e4;
  --grey: #d9dada;
  --gray-400: #a4a7ae;
  --teal: #37fae0;
  --pink: #fc0d71;
  --yellow: #ffcc00;
  --muted: #757575;

  --bg: #000000;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Effects */
  --shadow-form: 0 8px 40px rgba(0, 79, 255, 0.6);
  --shadow-glow: 0 8px 20px rgba(0, 79, 255, 0.55);
  --shadow-soft: 0 12px 30px rgba(0, 79, 255, 0.28);

  /* Layout */
  --container: 1168px;
  --gutter: 24px;
  --radius: 16px;
  --header-h: 72px;

  /* Motion */
  --t-fast: 150ms ease-out;
  --t-med: 200ms ease-out;
}

/* ----------------------------------- Reset ----------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

/* Responsive amount text: "A$100,000" on desktop, shorter "A$100K" on mobile (matches Figma) */
.amt-short { display: none; }

body {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Top-of-page blue glow — sits behind the header AND the hero so the header reads as a blue gradient */
/* Exact Figma fill (node 12054:14828): radius = 69% of the frame both axes, reaching black only at 100%,
   so the ellipse extends past the frame edge and the sides stay dark-blue (not black). */
.page-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1024px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(69% 69% at 50% 21%,
    #004fff 0%,
    #003bbf 25%,
    #002880 50%,
    #001e60 62.5%,
    #001440 75%,
    #000a20 87.5%,
    #000510 93.75%,
    #000000 100%);
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

/* the [hidden] attribute must always win over component display rules */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue-200);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--blue-500);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* --------------------------------- Layout utils --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 56px; }

.section-head { margin-bottom: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head--center { align-items: center; text-align: center; }

/* --------------------------------- Typography --------------------------------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 5.4vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
/* Hosts is the only centred head; the Figma headline fills the card width (2 lines). */
.section-head--center .h2 { max-width: 100%; }

.lead {
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--white);
  max-width: 70ch;
}
.lead--wide { max-width: none; }

.amount-gradient {
  font-family: var(--font-head);
  font-weight: 600;
  color: #eafdf8; /* solid fallback where background-clip:text is unsupported */
  filter: drop-shadow(0 4px 24px rgba(0, 79, 255, 0.75));
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .amount-gradient {
    background: linear-gradient(180deg, #ffffff 26%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ----------------------------------- Buttons ----------------------------------- */
.btn {
  --btn-bg: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  background: var(--btn-bg);
  border: 2px solid var(--blue-200);
  border-radius: 8px;
  padding: 10px 24px;
  min-height: 48px;
  min-width: 200px;
  transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.btn--xl { font-size: clamp(18px, 2.4vw, 24px); min-height: 60px; padding: 12px 24px; }
.btn--block { width: 100%; display: flex; }
/* hero / template / footer CTAs match the 504px Figma component width */
.btn--wide { width: 100%; max-width: 504px; display: flex; }
.btn--ghost {
  background: transparent;
  border-color: var(--blue-300);
  color: var(--blue-200);
  min-width: 0;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 18px;
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
  .btn--ghost:hover { background: rgba(0, 79, 255, 0.12); color: var(--white); transform: translateY(-1px); }
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.75; cursor: progress; transform: none; box-shadow: none; }

/* button loading spinner */
.btn__spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
}
.btn[aria-busy="true"] .btn__spinner { display: block; animation: spin 0.7s linear infinite; }
.btn[aria-busy="true"] .btn__label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(0, 6, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(128, 167, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.site-header__logo img { width: clamp(120px, 30vw, 190px); height: auto; }
.site-header__cta { min-width: 0; }
@media (max-width: 519px) {
  .site-header__cta { font-size: 14px; padding: 8px 14px; min-height: 40px; }
}

/* --------------------------- Notebook card (hero + footer) --------------------------- */
/* Black "sheet" with spiral binding, shown on the page glow */
.nbk { position: relative; width: 100%; max-width: 860px; margin-inline: auto; }
.nbk__rings { display: flex; justify-content: space-between; padding: 0 11%; position: relative; z-index: 1; }
.nbk__rings i { width: clamp(14px, 1.7vw, 24px); height: clamp(28px, 3.6vw, 50px); background: #000; border-radius: 999px 999px 0 0; }
.nbk__body { position: relative; margin-top: -1px; background: #000; border-radius: clamp(24px, 2.8vw, 38px); padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px); }

/* ------------------------------------ Hero ------------------------------------ */
.hero { position: relative; padding-top: 28px; padding-bottom: 72px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero__card { margin-top: 8px; }
.hero__card .nbk__body { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
}
.hero__line { font-size: clamp(28px, 6vw, 64px); line-height: 1.18; max-width: 18ch; }
.hero__amount { font-size: clamp(46px, 15.5vw, 140px); line-height: 1.15; }

/* width:100% so the .btn--wide child can grow to its 504px cap (the notebook body centres, it doesn't stretch) */
.hero__cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.hero__plus { color: var(--blue-200); font-size: 14px; }

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  border: 1px solid var(--blue-400);
  border-radius: 100px;
  padding: 7px 20px;
  color: var(--blue-200);
  font-size: 16px;
  width: max-content;
}
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 8px 1px rgba(0, 79, 255, 0.9); flex: none; }

/* Date/time line — teal underline squiggle (default + mobile), teal oval on hero/footer desktop */
.datetime { position: relative; display: inline-block; width: max-content; max-width: 100%; }
.datetime__text { position: relative; z-index: 1; font-size: clamp(13px, 2.4vw, 16px); color: var(--white); white-space: nowrap; }
.datetime__zone { color: var(--teal); font-size: 0.78em; }
.datetime__hl {
  position: absolute;
  pointer-events: none;
  left: 0; right: 0; bottom: -7px;
  height: 10px;
  background: url("../assets/squiggle.svg") no-repeat center / 100% 100%;
}

/* Social proof */
.social-proof {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  text-align: left;
}
.social-proof__icon {
  width: 76px; height: 58px; flex: none;
  background: url("../assets/social-icon.svg") no-repeat center / contain;
}
.social-proof__text { font-size: clamp(15px, 2.2vw, 18px); color: var(--white); }
.social-proof__dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-800); }
.dot--on { background: var(--teal); }

/* ----------------------------------- Eyebrow ----------------------------------- */
.eyebrow { display: inline-flex; align-items: stretch; }
/* icon is the exact Figma badge artwork (blue box + black glyph), pulled as SVG */
.eyebrow__icon { width: 44px; height: 44px; flex: none; display: block; }
.eyebrow__label {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  border: 1px solid var(--blue-400);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  padding: 6px 20px;
  font-family: var(--font-head);
  font-size: clamp(16px, 2.6vw, 24px);
  color: var(--blue-200);
}

/* --------------------------------- Problem + drip --------------------------------- */
.problem__inner { display: grid; gap: 24px; align-items: start; }
.problem__text { display: flex; flex-direction: column; gap: 20px; }
.problem__drip { width: clamp(140px, 42vw, 268px); height: auto; justify-self: center; }

/* --------------------------------- Budget callout --------------------------------- */
.budget { padding-top: 0; }
.budget__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-form);
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px);
}
.budget__heading { display: flex; flex-direction: column; gap: 8px; padding-right: clamp(24px, 5vw, 56px); }
.budget__question { font-family: var(--font-head); font-size: clamp(18px, 3vw, 24px); color: var(--alabaster); }
.budget__answer { font-family: var(--font-head); font-size: clamp(18px, 3vw, 24px); color: var(--white); }
.budget__answer strong { font-weight: 600; }
.budget__rows { display: flex; flex-direction: column; gap: 16px; }
.budget__row { display: flex; flex-direction: column; gap: 8px; }
.budget__label { color: var(--grey); font-size: clamp(14px, 2.2vw, 18px); }
.bar { display: flex; align-items: stretch; min-height: 48px; }
.bar__main { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 10px; }
.bar__end { flex: 0 0 18%; }
.bar__value { font-family: var(--font-head); font-size: clamp(16px, 2.6vw, 24px); }
.bar--planned .bar__main { background: var(--alabaster); }
.bar--planned .bar__value { color: var(--black); }
.bar__end--ghost { background: transparent; }
.bar--realistic .bar__main { background: var(--yellow); }
.bar--realistic .bar__value { color: var(--black); }
.bar__end--yellow { background: var(--yellow); }
.bar--gap .bar__main { background: rgba(244, 242, 228, 0.1); }
.bar--gap .bar__value { color: var(--pink); }
.bar__end--pink { background: var(--pink); }
.budget__caption { margin-top: 20px; color: var(--blue-700); font-size: 14px; max-width: 900px; margin-inline: auto; }

/* --------------------------------- Feature grid (tickable) --------------------------------- */
.walk-away__hint { color: var(--blue-200); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { position: relative; display: flex; }
.feature-card__cb { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.feature-card__box {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--blue-700);
  border-radius: var(--radius);
  padding: 12px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.feature-card__top { display: flex; align-items: center; justify-content: space-between; }
/* blue-500 (not the design's blue-700) so the large numbers clear WCAG AA contrast on black */
.feature-card__num { font-family: var(--font-head); font-weight: 600; font-size: clamp(32px, 6vw, 48px); color: var(--blue-500); line-height: 1; transition: color var(--t-med); }
.feature-card__mark { position: relative; width: 28px; height: 28px; background: var(--white); border: 1px solid var(--blue-300); border-radius: 4px; flex: none; }
.feature-card__mark::after {
  content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 12px;
  border: solid var(--blue-500); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0); transform-origin: center; transition: transform var(--t-fast);
}
.feature-card__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(15px, 2.4vw, 24px); color: var(--white); }
/* ticked state — whole card turns blue with a checkmark */
.feature-card__cb:checked + .feature-card__box { background: var(--blue-500); border-color: var(--blue-200); }
.feature-card__cb:checked + .feature-card__box .feature-card__num { color: var(--white); }
.feature-card__cb:checked + .feature-card__box .feature-card__mark::after { transform: rotate(45deg) scale(1); }
.feature-card__cb:focus-visible + .feature-card__box { outline: 3px solid var(--blue-200); outline-offset: 3px; }
@media (hover: hover) {
  .feature-card__box:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--blue-500); }
  .feature-card__cb:checked + .feature-card__box:hover { border-color: var(--blue-200); }
}

/* --------------------------------- Honest filter --------------------------------- */
.filter-grid { display: grid; gap: 16px; }
.filter-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
}
.filter-card--not { border-color: var(--pink); }
/* hover reveals a background texture (per Figma hover variant) */
.filter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
  z-index: 0;
}
.filter-card--for::before { background-image: url("../assets/hover-for.jpg"); }
.filter-card--not::before { background-image: url("../assets/hover-not.jpg"); }
.filter-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .filter-card--for:hover::before { opacity: 0.5; }
  .filter-card--not:hover::before { opacity: 0.85; }
}
.filter-card__head { display: flex; align-items: center; gap: 20px; }
.filter-card__avatar { width: 56px; height: 56px; object-fit: contain; flex: none; }
.filter-card__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 4vw, 32px); color: var(--white); }
.filter-list { display: flex; flex-direction: column; gap: 16px; }
.filter-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--alabaster); font-size: clamp(15px, 2.2vw, 18px); }
.chev { flex: none; width: 28px; height: 28px; display: grid; place-items: center; }
.chev svg { width: 24px; height: 24px; }
.chev--blue { color: var(--blue-300); }
.chev--pink { color: var(--pink); }

/* ------------------------------------ Hosts ------------------------------------ */
.hosts__card {
  background: var(--black);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  /* Figma "Frame 6355" card is 839px wide, centred. On mobile it nearly fills the
     width with a tight rim glow; on desktop it floats in a wide black field with a
     broad ambient halo (~280px reach) — see the desktop override below. */
  max-width: 839px;
  margin-inline: auto;
  box-shadow: var(--shadow-form);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hosts__grid { display: grid; gap: 24px; }
.host {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas: "photo name" "photo role" "bio bio";
  column-gap: 20px;
  row-gap: 4px;
  align-items: center;
}
.host__photo { grid-area: photo; width: 80px; height: 80px; border-radius: 12px; object-fit: cover; align-self: start; }
.host__name { grid-area: name; font-family: var(--font-head); font-weight: 400; font-size: 22px; align-self: end; }
.host__role { grid-area: role; color: var(--white); font-size: 16px; align-self: start; }
.host__bio { grid-area: bio; color: var(--grey); font-size: 16px; margin-top: 12px; }

/* ----------------------------- Template + notebook mock ----------------------------- */
.template__inner { display: grid; gap: 40px; align-items: center; }
.template__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.template__sheet { color: var(--white); font-size: clamp(15px, 2.2vw, 18px); }

.template__mock { width: 100%; position: relative; }
/* pink "high risk" badge — anchored to the bottom-left of the sheet, over the flagged row, sticking out left */
.risk-badge {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 14.9%;
  background: #000;
  border: 1px solid var(--pink);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 7px;
  color: var(--pink);
  box-shadow: 0 0 8px rgba(252, 13, 113, 0.6);
  white-space: nowrap;
  margin: 0;
}
@media (min-width: 768px) { .risk-badge { font-size: 12px; } }
.notebook {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 648 / 681;
  background: url("../assets/notebook.svg") no-repeat top center / 100% 100%;
  padding: 17% 2% 8.5% 12%;
  display: flex;
  flex-direction: column;
}
.notebook__tabs { display: flex; justify-content: space-between; gap: 4px; padding: 4px 0 14px; border-bottom: 1px solid var(--blue-800); margin-bottom: 0; }
.notebook__tab { font-size: clamp(9px, 1.5vw, 12px); color: var(--muted); white-space: nowrap; }
.notebook__tab.is-active { color: var(--white); }
.notebook__table { flex: 1; display: flex; flex-direction: column; border: 1px solid var(--blue-800); border-top: 0; }
.srow { display: grid; grid-template-columns: 1fr minmax(64px, 0.4fr); flex: 1; min-height: 0; }
.srow + .srow { border-top: 1px solid var(--blue-800); }
.srow > span { display: flex; align-items: center; font-size: clamp(10px, 1.8vw, 16px); color: var(--grey); padding: 6px 10px; min-width: 0; }
.srow > span:first-child { border-right: 1px solid var(--blue-800); padding-left: clamp(10px, 2vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow > span:last-child { justify-content: center; }
.srow--flag { border: 1px solid var(--pink); margin: -1px -1px 0; }
.srow--flag > span { color: var(--grey); font-weight: 600; }
.srow--flag > span:first-child { border-right-color: var(--pink); }

/* ----------------------------------- Agenda ----------------------------------- */
.agenda { display: grid; gap: 28px; position: relative; isolation: isolate; }
.agenda__item { display: flex; align-items: center; gap: 16px; position: relative; }
.agenda__num {
  flex: none;
  position: relative;
  z-index: 1;
  width: clamp(64px, 16vw, 126px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(28px, 7vw, 48px);
  color: var(--blue-500);
  box-shadow: var(--shadow-glow);
}
.agenda__text { font-family: var(--font-head); font-size: clamp(16px, 2.6vw, 24px); color: var(--white); }
/* connector lines */
.agenda__line { display: none; position: absolute; z-index: -1; background: rgba(76, 132, 255, 0.5); }
/* mobile: short vertical connector under each circle */
.agenda__item:not(:last-child) .agenda__num::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 1px; height: 28px; background: rgba(76, 132, 255, 0.5);
}

/* ------------------------------- Registration form ------------------------------- */
.register .section-head { align-items: flex-start; }
.reg-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-form);
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin-inline: auto;
}
.reg-card__head { display: flex; flex-direction: column; gap: 20px; }
.reg-card__title { font-family: var(--font-head); font-size: clamp(22px, 4vw, 32px); text-align: center; }
.reg-card__meta { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.reg-form { display: flex; flex-direction: column; gap: 24px; }
.reg-form__row { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.field label { font-size: 18px; color: var(--white); }
.field__opt { color: var(--grey); }
.field input {
  height: 60px;
  background: var(--white);
  border: 2px solid var(--grey);
  border-radius: 8px;
  padding: 8px 24px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--black);
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder { color: var(--grey); }
.field input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(25, 97, 255, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(252, 13, 113, 0.18); }
.field__error { color: var(--pink); font-size: 14px; }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { width: 18px; height: 18px; flex: none; margin-top: 2px; background: var(--black); border: 1px solid var(--gray-400); border-radius: 4px; display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); }
.consent__box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transform-origin: center; transition: transform var(--t-fast); margin-top: -2px; }
.consent input:checked + .consent__box { background: var(--blue-500); border-color: var(--blue-500); }
.consent input:checked + .consent__box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--blue-200); outline-offset: 2px; }
.consent__text { font-size: 12px; color: var(--white); }

.reg-form__status { font-size: 14px; padding: 12px 16px; border-radius: 8px; }
.reg-form__status[data-state="error"] { background: rgba(252, 13, 113, 0.12); color: #ffb9d6; border: 1px solid var(--pink); }

.reg-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }
.reg-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-500); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.reg-success__icon svg { width: 32px; height: 32px; }
.reg-success__title { font-family: var(--font-head); font-size: 24px; }
.reg-success__text { color: var(--grey); max-width: 42ch; }

/* ------------------------------------- FAQ ------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq-item { border-bottom: 1px solid rgba(128, 167, 255, 0.18); }
.faq-item__h { margin: 0; font-weight: 400; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 16px 6px;
  text-align: left;
}
.faq-q__text { flex: 1; font-family: var(--font-head); font-size: clamp(16px, 2.4vw, 20px); color: var(--grey); transition: color var(--t-fast); }
.faq-icon { order: -1; position: relative; width: 28px; height: 28px; flex: none; border: 1.5px solid var(--blue-300); border-radius: 50%; }
.faq-icon__h, .faq-icon__v { position: absolute; background: var(--blue-200); border-radius: 2px; transition: transform var(--t-med), opacity var(--t-fast); }
.faq-icon__h { left: 7px; right: 7px; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-icon__v { top: 7px; bottom: 7px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item.is-open .faq-icon__v { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-item.is-open .faq-q__text { color: var(--white); }
@media (hover: hover) {
  .faq-q:hover .faq-q__text { color: var(--white); }
}
/* transition is class-independent so toggling is-open never cancels the max-height animation;
   visibility (for AT) is managed in JS so it doesn't interfere */
.faq-a {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height var(--t-med);
}
.faq-a > p {
  background: var(--white);
  color: var(--black);
  border-radius: 12px;
  padding: 16px 24px;
  margin: 0 0 12px;
  font-size: clamp(13px, 2vw, 14px);
}

/* ------------------------------------ Footer ------------------------------------ */
.footer { position: relative; overflow: hidden; padding-block: 72px 48px; }
.footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* exact Figma footer fill (node 12054:15013): wide radial, vivid blue centre, black only at 100% */
  background: radial-gradient(72% 72% at 50% 58%,
    #004fff 0%,
    #003bbf 25%,
    #002880 50%,
    #001e60 62.5%,
    #001440 75%,
    #000a20 87.5%,
    #000510 93.75%,
    #000000 100%);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.footer__card { max-width: 900px; }
.footer__cardbody { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.footer__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 4.4vw, 48px); line-height: 1.25; max-width: 720px; }
.footer__title .amount-gradient { display: block; font-size: clamp(48px, 11vw, 140px); line-height: 1.1; }
.footer__meta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; margin-top: clamp(20px, 3vw, 36px); }
.replay-badge {
  width: clamp(96px, 24vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-500);
  display: grid;
  place-items: center;
  padding: 14px;
  box-shadow: var(--shadow-glow);
}
.replay-badge span { font-size: clamp(12px, 2.4vw, 14px); color: #fff; text-align: center; line-height: 1.3; }

.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; padding-top: 16px; }
.footer__logo img { width: 124px; }
.footer__copy { color: var(--blue-200); font-size: 12px; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--blue-200); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; transition: color var(--t-fast); }
@media (hover: hover) { .footer__links a:hover { color: var(--white); } }

/* --------------------------------- Cookie banner --------------------------------- */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(0, 8, 32, 0.96);
  border-top: 1px solid rgba(128, 167, 255, 0.3);
  padding: 10px 20px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.cookie__text { font-size: 13px; color: var(--grey); flex: 1 1 360px; }
.cookie__text a { color: var(--blue-200); text-decoration: underline; }
@media (hover: hover) { .cookie__text a:hover { color: var(--white); } }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; margin-left: auto; }
/* compact, equal-size buttons inside the banner only */
.cookie .btn {
  font-size: 14px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 18px;
}

/* Mobile shows the short amount; everything >=768px shows the full figure */
@media (max-width: 767px) {
  .amt-full { display: none; }
  .amt-short { display: inline; }
}

/* ============================== DESKTOP ( >= 768px ) ============================== */
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 120px; }
  .hero__amount { font-size: clamp(72px, 9.7vw, 140px); }
  .section { padding-block: 88px; }
  .section-head { gap: 20px; margin-bottom: 40px; }

  .hero { padding-top: 56px; padding-bottom: 96px; }
  .hero__inner { gap: 28px; }

  .eyebrow__icon { width: 52px; height: 52px; }
  .eyebrow__label { padding: 8px 24px; border-radius: 0 16px 16px 0; }

  /* hero + footer date gets the hand-drawn teal oval on desktop (mobile keeps the underline) */
  /* sits BEHIND the text (.datetime__text has z-index:1); padding keeps the native oval aspect so strokes wrap, not cross */
  .datetime--oval { padding: 0 22px; margin-bottom: 30px; }
  .datetime--oval .datetime__hl {
    left: -26px; right: -26px; top: -22px; bottom: -22px; height: auto;
    background-image: url("../assets/date-oval.svg");
  }

  /* problem: text left, drip right */
  .problem__inner { grid-template-columns: 1fr auto; gap: 48px; }
  .problem__drip { justify-self: end; align-self: start; }

  /* budget bars taller, end block fixed-ish */
  .bar { min-height: 56px; }
  .bar__end { flex: 0 0 200px; }

  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card { padding: 4px 4px 4px; }

  .filter-grid { grid-template-columns: 1.55fr 1fr; align-items: stretch; }
  .filter-card__avatar { width: 60px; height: 60px; }

  .hosts__grid { grid-template-columns: 1fr 1fr; gap: 17px; }
  .host {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "name" "role" "bio";
    justify-items: center;
    text-align: center;
    gap: 0;
  }
  .host__photo { width: 200px; height: 200px; border-radius: var(--radius); margin-bottom: 20px; }
  .host__name { font-size: 24px; }
  .host__role { font-size: 18px; margin-bottom: 0; }
  .host__bio { font-size: 18px; margin-top: 0; }

  .template__text { gap: 24px; }

  .agenda__item { gap: 24px; }

  .reg-form__row { flex-direction: row; }
  .register .section-head { align-items: flex-start; }

  .footer__inner { gap: 40px; }
  .footer__meta { flex-direction: row; justify-content: space-between; width: 100%; }
  .footer__action { position: relative; }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero__line { max-width: 20ch; }
  /* template goes 2-up only when the notebook has room to breathe */
  .template__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .notebook { margin-inline: 0; margin-left: auto; }

  /* Agenda: 2-column serpentine (01,02 / 04,03 / 05,06) with connector lines */
  .agenda { grid-template-columns: 1fr 1fr; gap: 64px 56px; }
  .agenda__item { gap: 24px; min-height: 126px; }
  .agenda__item:not(:last-child) .agenda__num::after { display: none; }
  .agenda__item:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .agenda__item:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .agenda__item:nth-of-type(3) { grid-column: 2; grid-row: 2; }
  .agenda__item:nth-of-type(4) { grid-column: 1; grid-row: 2; }
  .agenda__item:nth-of-type(5) { grid-column: 1; grid-row: 3; }
  .agenda__item:nth-of-type(6) { grid-column: 2; grid-row: 3; }
  .agenda__line { display: block; height: 1px; }
  .agenda__line--h1 { top: 63px; left: 63px; width: calc(50% + 28px); }
  .agenda__line--h2 { top: 253px; left: 63px; width: calc(50% + 28px); }
  .agenda__line--h3 { top: 443px; left: 63px; width: calc(50% + 28px); }
  .agenda__line--vr { top: 63px; left: calc(50% + 91px); width: 1px; height: 190px; }
  .agenda__line--vl { top: 253px; left: 63px; width: 1px; height: 190px; }

  /* footer: replay badge floats to the right of the centred CTA, clear of the button + pill */
  .replay-badge { position: absolute; right: -100px; top: 40%; transform: translateY(-50%); }

  /* Hosts card floats in a wide black field — broad ambient blue halo (~280px reach,
     measured off the Figma 1440 frame) instead of the tight mobile rim. */
  .hosts__card {
    box-shadow:
      0 0 50px 0 rgba(0, 79, 255, 0.5),
      0 0 160px 40px rgba(0, 79, 255, 0.4),
      0 0 380px 150px rgba(0, 79, 255, 0.3);
  }
}

/* ============================== Reduced motion ============================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn--primary:hover, .feature-card:hover { transform: none; }
}
