/* ============================================================
   HuntStart iFXPO Landing Page
   Palette sampled from huntstart.com
   ============================================================ */

:root {
  --pink: #f2dbec;
  --pink-lite: #f7e1ef; /* lighter blush for the hero */
  --pink-deep: #e7c4dc;
  --charcoal: #595858;
  --charcoal-dk: #3d3d3d;
  --black: #0a0a0a;
  --white: #ffffff;
  --grey: #6b6b6b; /* a11y: body-safe muted text (5.3:1 on white) */
  --grey-dk: #565656; /* a11y: stronger muted text (7.3:1 on white, 5.6:1 on pink) */
  --grey-soft: #8c8c8c; /* decoration only — NOT for text */
  --line: #ece6ea;

  /* action / status accents (tokenized) */
  --accent: #cc1e5c; /* primary CTA + required asterisk (deep rose) */
  --accent-dk: #a81049; /* CTA hover */
  --danger: #a10440; /* error text */
  --danger-soft: #d98bb4; /* invalid input border */

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, 0.25);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Visible keyboard focus on all interactive elements (currentColor works on light + dark bg) */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}
.field input:focus-visible {
  outline: none;
} /* inputs use their own focus ring */

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (width <= 620px) {
  .container {
    padding: 0 16px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px;
  --pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--charcoal-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--secondary {
  background: var(--pink);
  color: var(--black);
}
.btn--secondary:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn--block {
  width: 100%;
  margin-top: 6px;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 219, 236, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--pink-deep);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.nav__logo img {
  height: 70px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
} /* a11y: 44px tap target */
.nav__links a:hover {
  opacity: 0.6;
}
.nav__cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 11px 18px;
  border-radius: 999px;
}
.nav__cta:hover {
  opacity: 1 !important;
  background: var(--charcoal-dk);
}

/* Burger (mobile only) */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 60;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop behind the slide-in drawer */
.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: saturate(120%) blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.nav__backdrop[hidden] {
  display: block;
} /* keep it transition-able; visibility controls show/hide */
.nav__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero (light editorial) ---------- */
.hero {
  position: relative;
  color: var(--black);
  background: radial-gradient(
    80% 90% at 50% -10%,
    #fbeef6 0%,
    var(--pink-lite) 55%,
    var(--pink) 100%
  );
  overflow: hidden;
}
.hero__inner {
  position: relative;
  text-align: center;
  padding: 108px 24px 116px;
  max-width: 980px;
}
.hero__title {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__sub {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 1.18rem;
  color: var(--grey-dk);
}

.hero__selector {
  margin-top: 38px;
}
.hero__selector-label {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--charcoal-dk);
  margin: 0 0 16px;
}
.hero__selector-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* hero secondary = outlined (so the accent primary leads) */
.hero .btn--secondary {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--black);
}
.hero .btn--secondary:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: none;
}

/* ---------- Trust bar (card centered on the hero / section seam) ---------- */
/* .trust is a zero-height rail sitting on the seam; the container is shifted up
   by half its own height so the card straddles the line (½ over pink, ½ over white),
   independent of the card's actual height. */
.trust {
  background: transparent;
  position: relative;
  z-index: 3;
  height: 0;
}
.trust > .container {
  transform: translateY(-50%);
}
.trust__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line); /* the 1px gap shows as hairline dividers */
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(40, 10, 30, 0.35);
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  background: var(--white);
}
.trust__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--pink-lite);
  color: var(--black);
}
.trust__icon svg {
  width: 21px;
  height: 21px;
}
.trust__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust__copy strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--black);
}
.trust__copy span {
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--pink);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.split--reverse .split__text {
  order: 2;
}
.split--reverse .split__form {
  order: 1;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--grey-dk);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--alt .kicker {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--pink-deep);
}
.split__text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 1.1rem;
  color: var(--grey-dk);
  margin: 16px 0;
}
.quiethead {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 26px;
  color: var(--black);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--grey-dk);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center/72% no-repeat;
}

/* ---------- Card / Forms ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

@media (width <=620px) {
  .card {
    padding: 20px;
  }
}
.card__title {
  font-size: 1.4rem;
  font-weight: 700;
}
.card__sub {
  color: var(--grey);
  margin: 8px 0 22px;
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field > span {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--charcoal-dk);
}
.field em {
  color: var(--black);
  font-style: normal;
}
.field small {
  color: var(--grey);
  font-weight: 400;
}
.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fcfafb;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  width: 100%;
}
.field input:focus {
  outline: none;
  border-color: var(--charcoal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89, 88, 88, 0.1);
}
.field.is-invalid input {
  border-color: var(--danger-soft);
}
.field__msg {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
}
.field.is-invalid .field__msg {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field.is-invalid .field__msg::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2 1 21h22zm0 6 6.9 12H5.1zM11 10v5h2v-5zm0 6v2h2v-2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2 1 21h22zm0 6 6.9 12H5.1zM11 10v5h2v-5zm0 6v2h2v-2z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.field--file input {
  padding: 11px 14px;
  cursor: pointer;
}
.field--file input::file-selector-button {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--black);
  cursor: pointer;
}

/* honeypot — visually hidden but present in DOM (clip pattern, no horizontal scroll) */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 4px 0 0;
}
.form__success {
  text-align: center;
  padding: 18px 6px;
  animation: fade 0.5s var(--ease);
}
.form__success h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
.form__success p {
  color: var(--grey-dk);
  margin: 10px 0 22px;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Success modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] {
  display: none;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: saturate(120%) blur(3px);
  animation: fade 0.25s var(--ease);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 32px 32px;
  text-align: center;
  animation: modal-pop 0.32s var(--ease);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--grey-dk);
  cursor: pointer;
  border-radius: 999px;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.modal__close:hover {
  background: var(--line);
  color: var(--black);
}
.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pink);
  color: var(--accent);
}
.modal__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.modal__body {
  color: var(--grey-dk);
  margin: 0 0 24px;
  line-height: 1.55;
}
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal__overlay,
  .modal__dialog {
    animation: none;
  }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta__inner {
  display: grid;
  justify-items: center;
  gap: 2rem;
}
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
}
.cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 12px 0 28px;
}
.cta .btn--primary {
  background: var(--black);
  color: var(--white);
  font-size: 1.05rem;
}
.cta .btn--primary:hover {
  background: var(--charcoal-dk);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--pink);
  color: var(--charcoal-dk);
  padding-top: 56px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand img {
  height: 44px;
  margin-bottom: 14px;
}
.footer__brand p {
  color: var(--grey-dk);
  max-width: 280px;
}
.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.footer__col a {
  text-decoration: none;
  color: var(--charcoal-dk);
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
} /* larger tap target */
.footer__col a:hover {
  opacity: 0.6;
}
.footer__base {
  border-top: 1px solid var(--pink-deep);
  padding: 22px 24px;
  font-size: 0.85rem;
  color: var(--grey-dk);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}
.footer__recaptcha {
  font-size: 0.76rem;
  color: var(--grey-dk);
  max-width: 520px;
} /* a11y: darker for contrast on pink */
.footer__recaptcha a {
  color: var(--charcoal-dk);
}

/* ---------- Reveal on scroll (below-the-fold only; hero is not gated) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* taller 2-row floating card — keep it centered on the seam, but give the hero
     and the second section enough room that it never overlaps their content */
  .trust__card {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__inner {
    padding-bottom: 172px;
  }
  #employers {
    padding-top: 156px;
  }
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split__text,
  .split--reverse .split__form {
    order: initial;
  }
  .card {
    position: static;
  }
}
/* ---------- Mobile nav drawer ---------- */
@media (max-width: 768px) {
  .nav__burger {
    display: flex;
  }
  /* nav links become a drawer that slides in from the right */
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 55;
    height: 100dvh;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 100px 28px 32px;
    background: var(--pink-lite);
    box-shadow: -22px 0 55px -25px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.32s var(--ease),
      visibility 0.32s var(--ease);
    overflow-y: auto;
  }
  .nav__links.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav__links a {
    min-height: 0;
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--pink-deep);
  }
  .nav__links a:hover {
    opacity: 1;
  }
  .nav__cta {
    margin-top: 22px;
    justify-content: center;
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  /* trust becomes a dedicated black section — flat, full-width, no card */
  .trust {
    height: auto;
    padding: 16px 0;
    background: var(--black);
  }
  .trust > .container {
    transform: none;
  }
  .trust__card {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .trust__item {
    background: transparent;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .trust__item:first-child {
    border-top: 0;
  }
  .trust__copy strong {
    color: var(--white);
  }
  .trust__copy span {
    color: var(--pink);
  }
  .hero__inner {
    padding-top: 72px;
    padding-bottom: 84px;
  }
  /* reset the floating-card breathing room from the 1024px rule */
  #employers {
    padding-top: 64px;
  }
  .section {
    padding: 64px 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
  .nav__links,
  .nav__burger span,
  .nav__backdrop {
    transition: none;
  }
}

/* hide recaptcha badge (we show notice in form instead — see README) */
.grecaptcha-badge {
  visibility: hidden;
}
