/* The Failure School — additions for the vision + Schools/Corporates paths.
   Kept separate from the generated Webflow CSS. Uses the site's own tokens. */

/* Full-width helper for cards dropped straight into .main-grid (6-col grid). */
.fs-full {
  /* 1 / -1 = every explicit column: six on desktop, one on phones. A fixed
     'span 6' forced six columns on phones and blew the page out sideways. */
  grid-column: 1 / -1;
  min-width: 0;
}

/* Small eyebrow label above section headings. */
.fs-eyebrow {
  color: var(--royal-blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 1vw;
  margin-bottom: 1.2vw;
}

/* "Certified Failure" badge — playful, shareable. */
.fs-badge {
  display: inline-block;
  background-color: var(--black);
  color: #fff;
  border-radius: 999px;
  padding: .5em 1.1em;
  font-size: .9vw;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Who-it's-for: three audience cards. */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 1.6vw;
  grid-row-gap: 1.6vw;
  margin-top: 2.4vw;
}

.audience-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white-smoke);
  border-radius: 1.2vw;
  padding: 2.4vw;
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2vw 3.2vw rgba(29, 29, 31, .08);
}

.audience-card .audience-kicker {
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 1vw;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .8vw;
}

.audience-card .audience-title {
  color: var(--black);
  font-size: 1.8vw;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1vw;
}

.audience-card .audience-copy {
  color: var(--black);
  font-size: 1.2vw;
  line-height: 1.5;
  flex: 1 1 auto;
  margin: 0 0 1.6vw;
}

.audience-card .audience-link {
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 1.2vw;
  text-decoration: none;
  transition: color .3s ease-out;
}

.audience-card .audience-link:hover {
  color: var(--royal-blue-2);
}

/* Tablet */
@media screen and (max-width: 991px) {
  .fs-eyebrow { font-size: 12px; }
  .fs-badge { font-size: 12px; }
  .audience-card .audience-kicker { font-size: 12px; }
  .audience-card .audience-title { font-size: 22px; }
  .audience-card .audience-copy,
  .audience-card .audience-link { font-size: 16px; }
}

/* Mobile — stack the audience cards. */
@media screen and (max-width: 767px) {
  .audience-grid {
    grid-template-columns: 1fr;
    grid-row-gap: 16px;
    margin-top: 24px;
  }
  .audience-card {
    border-radius: 14px;
    padding: 24px;
  }
}

/* --- Mobile hardening: prevent horizontal overflow on phones/tablets --- */
/* Long strings (e.g. the contact email) must never force the page wider. */
.footer-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* The generated CSS keeps .footer-grid at 4 columns until 479px, which
   overflows in the 480–767px band. Drop it to 2 columns there. */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-column {
    margin-right: 0;
  }
}

/* Insurance: let all display type wrap rather than clip on narrow screens. */
@media screen and (max-width: 767px) {
  .h1-title,
  .h2-title,
  .h3-title,
  .h5-title,
  .large-paragraph,
  .nft-story,
  .paragraph,
  .extra-large-paragraph,
  .audience-title,
  .audience-copy {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ============================================================
   Launch funnel: First Fail Challenge, The Failure Gym, Oct 24.
   Sizes use clamp() so they hold up from phone to desktop.
   ============================================================ */

/* Small reassurance line under the hero CTA. */
.fs-cta-note {
  color: var(--grey);
  font-size: clamp(14px, 1.1vw, 18px);
  margin: 14px 0 0;
  text-align: center;
  position: relative;
}

/* Quiet text link (secondary actions, never competes with the primary CTA). */
.fs-text-link {
  color: var(--royal-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease-out;
}
.fs-text-link:hover { border-bottom-color: var(--royal-blue); }

/* Visible keyboard focus everywhere we add interactive things. */
.fs-text-link:focus-visible,
.fs-door:focus-visible,
.fs-form input:focus-visible,
.fs-form button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.purchase-button:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--royal-blue);
  outline-offset: 3px;
}

/* Three doors: numbered cards joined by a dotted connector. */
.fs-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(24px, 2.4vw, 44px);
  position: relative;
}
.fs-doors::before {
  content: "";
  position: absolute;
  top: clamp(44px, 4.2vw, 70px);
  left: 12%;
  right: 12%;
  border-top: 3px dotted rgba(29, 29, 31, .18);
}
.fs-door {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white-smoke);
  border-radius: 16px;
  padding: clamp(22px, 2.2vw, 40px);
  color: var(--black);
  text-decoration: none;
  transition: transform .3s ease-out, box-shadow .3s ease-out;
}
.fs-door:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29, 29, 31, .08);
}
.fs-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(40px, 3.4vw, 56px);
  height: clamp(40px, 3.4vw, 56px);
  border-radius: 50%;
  background-color: var(--royal-blue);
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 22px);
  margin-bottom: clamp(14px, 1.2vw, 22px);
}
.fs-door-kicker {
  color: var(--royal-blue);
  font-weight: 700;
  font-size: clamp(12px, .95vw, 15px);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fs-door-title {
  font-size: clamp(21px, 1.8vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.fs-door-copy {
  color: var(--black);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.5;
  flex: 1 1 auto;
  margin: 0 0 16px;
}
.fs-door-go {
  color: var(--royal-blue);
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 19px);
}

/* Narrow single-column page body (challenge, thanks, gym). */
.fs-narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Challenge signup form. */
.fs-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: clamp(20px, 2vw, 32px) auto 0;
  text-align: left;
  position: relative;
}
.fs-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
}
.fs-form label span {
  color: var(--grey);
  font-weight: 400;
}
.fs-form input[type="text"],
.fs-form input[type="email"] {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(29, 29, 31, .18);
  border-radius: 100px;
  background: #fff;
  padding: 0 22px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  color: var(--black);
}
.fs-form input[aria-invalid="true"] { border-color: var(--red); }
.fs-form button {
  height: 56px;
  border: 0;
  border-radius: 100px;
  background-color: var(--royal-blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s ease-out;
}
.fs-form button:hover { background-color: var(--royal-blue-2); }
.fs-form button[disabled] { opacity: .7; cursor: progress; }
.fs-form-error {
  color: var(--red);
  font-size: 14px;
  margin: 0;
}
.fs-form-error:empty { display: none; }
.fs-hp { position: absolute; left: -9999px; }

/* Day-by-day list on the challenge page and the session format on the gym page. */
.fs-steps {
  list-style: none;
  margin: clamp(20px, 2vw, 36px) auto 0;
  padding: 0;
  max-width: 640px;
  text-align: left;
}
.fs-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 22px;
}
.fs-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 2px;
  border-left: 3px dotted rgba(29, 29, 31, .18);
}
.fs-steps .fs-num {
  width: 40px;
  height: 40px;
  font-size: 15px;
  margin: 0;
}
.fs-steps h3 {
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 7px 0 2px;
}
.fs-steps p {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}
.fs-steps .fs-mins {
  color: var(--grey);
  font-weight: 500;
  font-size: .8em;
  margin-left: 6px;
  white-space: nowrap;
}

/* "When" pill on the gym page. */
.fs-when {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  background: #e4edfd;
  color: var(--black);
  border-radius: 100px;
  padding: 10px 22px;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 700;
  position: relative;
}
.fs-when span { font-weight: 400; }

@media screen and (max-width: 767px) {
  .fs-doors { grid-template-columns: 1fr; }
  .fs-doors::before { display: none; }
  .fs-when { border-radius: 20px; }
  /* Keep the hero CTA above the fold on phones. */
  .fs-hero-tight.fullscreen-card { padding-top: 104px; padding-bottom: 36px; }
}

/* The generated nav doesn't fit five items on a phone: keep brand + the one CTA. */
@media screen and (max-width: 479px) {
  .nav-container .nav-link { display: none; }
  .nav-container .purchase-button { white-space: nowrap; font-size: 14px; padding: 8px 14px; }
  .nav-container h4.heading { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-door, .audience-card { transition: none; }
  .fs-door:hover, .audience-card:hover { transform: none; }
}

/* "Sound familiar?" : first-person quotes visitors recognise themselves in. */
.fs-quotes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  max-width: 960px;
  margin: clamp(24px, 2.4vw, 44px) auto 0;
  padding: 0;
}
.fs-quotes li {
  background-color: var(--white-smoke);
  border-radius: 16px;
  padding: clamp(18px, 1.8vw, 30px) clamp(20px, 2vw, 34px);
  color: var(--black);
  font-size: clamp(17px, 1.5vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
/* An odd one out spans the full row so the grid never ends on a gap. */
.fs-quotes li:last-child:nth-child(odd) { grid-column: 1 / -1; text-align: center; }
.fs-payoff {
  max-width: 760px;
  margin: clamp(22px, 2.2vw, 40px) auto 0;
  text-align: center;
  color: var(--black);
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.5;
}
.fs-payoff strong { color: var(--royal-blue); }

/* Certification page: two paths side by side. */
.fs-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(24px, 2.4vw, 44px);
}
.fs-paths .fs-door { cursor: default; }
.fs-paths .fs-door:hover { transform: none; box-shadow: none; }
.fs-paths .fs-badge { align-self: flex-start; font-size: clamp(12px, .9vw, 14px); margin-bottom: 14px; }
.fs-path-action { margin-top: 8px; align-self: flex-start; }

@media screen and (max-width: 767px) {
  .fs-quotes, .fs-paths { grid-template-columns: 1fr; }
  .fs-quotes li:last-child:nth-child(odd) { text-align: left; }
}
