/* Working Strength waitlist. Strength After Fifty. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Bold.woff2") format("woff2");
}


:root {
  --navy: #1B2430;
  --cream: #F4EFE6;
  --oak: #A67C52;
  --steel: #5C6570;
  --white: #FFFFFF;
  --navy-2: #243040;
  --max: 1280px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  color: var(--white);
  display: block;
  min-height: 44px;
}

.brand__name {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand__class {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--oak);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 32rem;
}

.hero__copy {
  background: var(--cream);
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 1rem;
}

.hero h1,
.qualify-copy h1 {
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 700;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.lede p + p {
  margin-top: 0.85rem;
}

.lede {
  max-width: 38rem;
  color: var(--navy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
}

.btn:hover {
  background: var(--navy-2);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-on-navy {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-on-navy:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.hero__wells {
  background: var(--cream);
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad) clamp(2rem, 4vw, 3.5rem) 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.85rem;
}

.photo-well {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.photo-well--tall {
  min-height: 0;
}

.photo-well__frame {
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(92, 101, 112, 0.55);
  position: relative;
  overflow: hidden;
}

.photo-well__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-well--tall .photo-well__frame {
  flex: 1 1 auto;
  min-height: 22rem;
}

.photo-well--small .photo-well__frame {
  min-height: 6.5rem;
}

.photo-well figcaption {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* Enrolment strip */
.enrol {
  background: var(--navy);
  color: var(--cream);
}

.enrol__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem var(--pad) 2rem;
}

.enrol .eyebrow {
  color: var(--oak);
  margin-bottom: 0.5rem;
}

.enrol__line {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--white);
  max-width: 52rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label,
.radios legend {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
}

.field input[type="text"],
.field input[type="email"] {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid transparent;
}

.field input:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

.radios {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 13rem;
}

.radios legend {
  margin-bottom: 0.4rem;
}

.radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  min-height: 44px;
  align-items: center;
}

.radio-list label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  cursor: pointer;
}

.radio-list input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--steel);
}

.form-ok {
  display: none;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--cream);
}

form.is-sent .form-ok {
  display: block;
}

form.is-sent .form-fields {
  display: none;
}

.recut-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad) 0;
  font-size: 0.8125rem;
  color: var(--steel);
}

.closer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 2.5rem;
  font-size: 0.9375rem;
  color: var(--steel);
}

/* Qualify layout */
.qualify {
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(16rem, 0.95fr);
  max-width: none;
  background: var(--cream);
  align-items: stretch;
}

.qualify-copy {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(3rem, 6vw, 5.5rem);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.qualify-copy .lede {
  max-width: 36rem;
}

.qualify-panel {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qualify-panel__rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--oak) 0 60%, var(--steel) 60% 100%);
  margin-bottom: 1.35rem;
}

.qualify-panel h2 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 26rem;
}

.stack-form .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 1.35rem var(--pad);
  font-size: 0.875rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem var(--pad) 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .hero,
  .qualify {
    grid-template-columns: 1fr;
  }

  .hero__wells {
    padding: 0 var(--pad) 2rem;
  }

  .photo-well--tall .photo-well__frame {
    min-height: 14rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .qualify-copy {
    max-width: none;
    margin: 0;
  }

  .hero h1,
  .qualify-copy h1 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Inner pages: H2 in copy+well layout (class). Reuses .hero */
.hero__copy h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.85rem 0 0.55rem;
}

.lede a {
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.site-header { position: sticky; }
html { overflow-x: clip; }
