/* ===========================================================================
   LEAD GENERATION — popups, floating actions, sticky bars, capture forms,
   countdowns, age gate, cookie strip, quiz funnels
   ========================================================================= */

/* --- Capture form -------------------------------------------------------- */
.capture { display: grid; gap: .9rem; }
.capture__fields { display: flex; flex-wrap: wrap; gap: .75rem; }
.capture--compact .capture__fields { flex-wrap: nowrap; }
.capture--compact .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.capture--compact { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.capture--compact > * { min-width: 0; }
/* A nowrap field row plus a button has a min-content floor wider than a phone.
   Below the small breakpoint it stacks rather than pushing the page sideways. */
@media (max-width: 560px) {
  .capture--compact { grid-template-columns: minmax(0, 1fr); }
  .capture--compact .capture__fields { flex-wrap: wrap; }
  .capture--compact .btn { width: 100%; }
}
.capture__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.capture__consent { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; max-width: 52ch; }
.capture__consent a { color: inherit; text-decoration: underline; }
.capture__state { font-size: var(--fs-sm); font-weight: 700; min-height: 1.2em; }
.capture__state.is-ok  { color: var(--moss); }
.capture__state.is-bad { color: var(--claret); }
.capture.is-sent .capture__fields, .capture.is-sent .capture__actions, .capture.is-sent .capture__consent { display: none; }

.ground--ink .capture .field label,
.ground--petrol .capture .field label { color: rgba(237,230,214,.68); }
.ground--ink .capture input, .ground--ink .capture textarea,
.ground--petrol .capture input, .ground--petrol .capture textarea {
  background: rgba(237,230,214,.08); border-color: rgba(237,230,214,.24); color: var(--chalk);
}
.ground--ink .capture input::placeholder, .ground--petrol .capture input::placeholder { color: rgba(237,230,214,.4); }
.ground--ink .capture__consent, .ground--petrol .capture__consent { color: rgba(237,230,214,.55); }

/* --- Newsletter band ----------------------------------------------------- */
.news-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  background: var(--petrol); color: var(--chalk);
  /* A dark panel inside a chalk section: re-map the text tokens locally, the
     same way .ground--petrol does, so nested components inherit legible greys. */
  --text: var(--chalk);
  --text-soft:  rgba(237,230,214,.84);
  --text-faint: rgba(237,230,214,.72);
  --accent-deep: var(--corn-lift);
  --line: rgba(237,230,214,.20);
  --line-strong: rgba(237,230,214,.38);
}
.news-band__inner { position: relative; z-index: 2; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: center; }
.news-band__beast { position: absolute; right: -4%; bottom: -30%; width: 20rem; opacity: .12; color: var(--chalk); pointer-events: none; }
@media (max-width: 850px) { .news-band__inner { grid-template-columns: 1fr; } }

/* --- Popups -------------------------------------------------------------- */
.pop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 1.25rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.pop.is-open { opacity: 1; visibility: visible; }
.pop__scrim { position: absolute; inset: 0; background: rgba(35,33,30,.62); backdrop-filter: blur(4px); }
.pop__panel {
  position: relative; z-index: 2;
  width: min(52rem, 100%); max-height: min(90vh, 44rem); overflow: hidden;
  display: grid; grid-template-columns: .85fr 1.15fr;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  transform: translateY(24px) scale(.97);
  transition: transform var(--t-slow) var(--ease-gate);
}
.pop.is-open .pop__panel { transform: none; }
.pop__art { position: relative; background: var(--accent); overflow: hidden; min-height: 15rem; }
.pop__art img { width: 100%; height: 100%; object-fit: cover; }
.pop__art .dse-beast { position: absolute; inset: auto 0 -14% 0; width: 100%; color: var(--accent-ink); opacity: .22; }
.pop__body { padding: clamp(1.5rem, 3vw, 2.5rem); overflow-y: auto; display: grid; gap: 1rem; align-content: center; }
.pop__title { font-family: var(--font-display); font-size: var(--fs-l); font-weight: 700; line-height: 1.1; }
.pop__lead { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.6; }
.pop__decline { justify-self: start; font-size: var(--fs-xs); color: var(--text-faint); text-decoration: underline; background: none; }
.pop__decline:hover { color: var(--text); }
.pop__close { position: absolute; top: .75rem; right: .75rem; z-index: 3; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.pop__close:hover { background: var(--ink); color: var(--chalk); }
@media (max-width: 760px) { .pop__panel { grid-template-columns: 1fr; } .pop__art { min-height: 9rem; } }

/* --- Floating action cluster --------------------------------------------- */
.float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-float);
  display: grid; gap: .55rem; justify-items: end;
}
.float__items { display: grid; gap: .5rem; justify-items: end; }
.float__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .55rem .55rem .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--sh-md); text-decoration: none;
  opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none;
  transition: opacity var(--t-quick), transform var(--t-quick) var(--ease-gate), background var(--t-quick);
}
.float.is-open .float__item { opacity: 1; transform: none; pointer-events: auto; }
.float.is-open .float__item:nth-child(1) { transition-delay: 0ms; }
.float.is-open .float__item:nth-child(2) { transition-delay: 40ms; }
.float.is-open .float__item:nth-child(3) { transition-delay: 80ms; }
.float.is-open .float__item:nth-child(4) { transition-delay: 120ms; }
.float.is-open .float__item:nth-child(5) { transition-delay: 160ms; }
.float__item:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.float__item span { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.float__item i { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.float__item:hover i { background: var(--ochre); color: var(--ink); }
.float__toggle {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--ochre); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform var(--t-base) var(--ease-gate), background var(--t-quick);
  position: relative;
}
.float__toggle:hover { transform: scale(1.06); }
.float.is-open .float__toggle { transform: rotate(135deg); background: var(--ink); color: var(--chalk); }
.float__toggle .dse-icon { width: 1.4rem; height: 1.4rem; }
.float__dot { position: absolute; top: .15rem; right: .15rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--claret); border: 2px solid var(--surface); }
@media (max-width: 640px) { .float { right: .75rem; bottom: .75rem; } .float__item span { display: none; } .float__item { padding: .5rem; } }

/* --- Sticky bottom bar --------------------------------------------------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: var(--ink); color: var(--chalk);
  transform: translateY(100%); transition: transform var(--t-slow) var(--ease-paper);
}
.sticky-bar.is-up { transform: none; }
.sticky-bar__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: .85rem; }
.sticky-bar__text { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.sticky-bar__ico { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--corn); color: var(--ink); display: grid; place-items: center; flex: none; }
.sticky-bar__t { font-weight: 800; font-size: .93rem; }
.sticky-bar__x { font-size: var(--fs-xs); color: rgba(237,230,214,.62); }
.sticky-bar__close { color: rgba(237,230,214,.55); }
.sticky-bar__close:hover { color: var(--chalk); }
@media (max-width: 640px) { .sticky-bar__x { display: none; } .float { bottom: 4.5rem; } }

/* --- Countdown ----------------------------------------------------------- */
.countdown { display: flex; gap: .5rem; }
.countdown__unit { display: grid; gap: .2rem; justify-items: center; min-width: 3.4rem; padding: .55rem .4rem; background: var(--ink); color: var(--chalk); border-radius: var(--r-sm); }
.countdown__n { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.countdown__l { font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.ground--ink .countdown__unit { background: rgba(237,230,214,.1); }

/* --- Scarcity bar -------------------------------------------------------- */
.scarcity { display: grid; gap: .35rem; }
.scarcity__track { height: .45rem; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.scarcity__fill { height: 100%; background: var(--grad-ember); border-radius: var(--r-pill); }
.scarcity__label { font-size: var(--fs-xs); font-weight: 700; color: var(--claret); }

/* --- Age gate ------------------------------------------------------------ */
.agegate { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: var(--ink); color: var(--chalk); padding: 1.5rem; }
.agegate__panel { max-width: 30rem; text-align: center; display: grid; gap: 1.15rem; justify-items: center; }
.agegate__panel .dse-beast { width: 9rem; color: var(--corn); opacity: .8; }
.agegate__title { font-family: var(--font-display); font-size: var(--fs-l); }
.agegate__lead { font-size: var(--fs-sm); color: rgba(237,230,214,.7); line-height: 1.6; }
.agegate__row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.agegate__note { font-size: var(--fs-xs); color: rgba(237,230,214,.45); }

/* --- Cookie strip -------------------------------------------------------- */
.cookies {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: var(--z-toast);
  max-width: 34rem; padding: 1.15rem 1.35rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  display: grid; gap: .85rem;
  transform: translateY(140%); transition: transform var(--t-slow) var(--ease-paper);
}
.cookies.is-up { transform: none; }
.cookies__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.cookies__text { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.55; }
.cookies__row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- Quiz / finder funnel ------------------------------------------------ */
.quiz { max-width: 40rem; margin-inline: auto; }
.quiz__progress { display: flex; gap: .3rem; margin-bottom: 1.75rem; }
.quiz__progress i { flex: 1; height: .28rem; border-radius: var(--r-pill); background: var(--line); }
.quiz__progress i.on { background: var(--accent); }
.quiz__step { display: none; }
.quiz__step.is-on { display: grid; gap: 1.25rem; animation: quiz-in 380ms var(--ease-paper) both; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.quiz__q { font-family: var(--font-display); font-size: var(--fs-l); text-align: center; }
.quiz__options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.quiz__opt {
  display: grid; gap: .4rem; justify-items: center; text-align: center;
  padding: 1.35rem 1rem; border: 2px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-raised); transition: all var(--t-quick) var(--ease-paper);
}
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--sh-md); }
.quiz__opt.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.quiz__opt .dse-icon { width: 1.6rem; height: 1.6rem; color: var(--accent-deep); }
.quiz__opt b { font-size: .95rem; }
.quiz__opt span { font-size: var(--fs-xs); color: var(--text-faint); }
.quiz__nav { display: flex; justify-content: space-between; gap: .75rem; }

/* --- Referral / share ---------------------------------------------------- */
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share__btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text-soft); transition: all var(--t-quick); }
.share__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.refcode { display: flex; gap: .5rem; align-items: center; padding: .6rem .6rem .6rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-raised); }
.refcode code { flex: 1; font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em; }

/* --- Inline offer / banner ----------------------------------------------- */
.offer {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1.15rem 1.5rem; border-radius: var(--r-lg);
  background: var(--grad-harvest); color: var(--ink);
}
.offer__t { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.offer__x { font-size: var(--fs-sm); opacity: .82; }

/* --- Announcement strip -------------------------------------------------- */
/* Fixed above the navigation. leadgen.js keeps --announce-h in step with the
   real height (the copy wraps on a phone) and zeroes it on dismissal, so the
   nav and the first hero move up with it. */
.announce {
  position: fixed; inset: 0 0 auto 0; z-index: calc(var(--z-nav) + 2);
  background: var(--ink); color: var(--chalk); font-size: var(--fs-xs);
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding-block: .6rem; text-align: center; }
.announce a { color: var(--corn); font-weight: 700; }
.announce__close { margin-left: auto; color: rgba(237,230,214,.5); }
