/* Phase J final public website design. Keep the eventual Shea-approved font swap centralised here. */

body.straight-frontpage {
  --frontpage-display-font: "Montserrat", Arial, sans-serif;
  --frontpage-ui-font: "Montserrat", Arial, sans-serif;
  --phase-j-ink: #111915;
  --phase-j-forest: #16231c;
  --phase-j-olive: #505942;
  --phase-j-sage: #89927b;
  --phase-j-sand: #d6ccb5;
  --phase-j-cream: #f7f4ee;
  --phase-j-clay: #c47a5a;
  background: var(--phase-j-cream);
  color: var(--phase-j-ink);
  font-family: var(--frontpage-ui-font) !important;
}

body.straight-frontpage :where(h1, h2, h3, h4, blockquote),
body.straight-frontpage .about-story-carousel .about-story-card :where(h3, p),
body.straight-frontpage .testimonial-card blockquote {
  font-family: var(--frontpage-display-font) !important;
}

body.straight-frontpage :where(section[id]) {
  scroll-margin-top: 92px;
}

body.straight-frontpage :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #efaa85;
  outline-offset: 4px;
}

body.straight-frontpage .test-frontpage-header {
  border-bottom: 1px solid rgba(247, 244, 238, 0.1) !important;
  background: rgba(12, 20, 16, 0.84) !important;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(125%);
}

body.straight-frontpage .brand-lockup small {
  color: rgba(247, 244, 238, 0.67) !important;
}

body.straight-frontpage .test-frontpage-header .brand-lockup strong {
  color: var(--phase-j-cream) !important;
}

body.straight-frontpage .nav-links > a:not(.nav-cta):not(.nav-app-cta) {
  color: rgba(247, 244, 238, 0.78) !important;
}

body.straight-frontpage .nav-app-cta {
  border-color: rgba(247, 244, 238, 0.24) !important;
  background: rgba(247, 244, 238, 0.07) !important;
  color: var(--phase-j-cream) !important;
}

body.straight-frontpage .test-front-hero--minimal {
  min-height: min(900px, calc(100svh - var(--header-height, 70px))) !important;
  background: var(--phase-j-forest);
}

body.straight-frontpage .test-front-hero--minimal .test-front-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 54%;
  transform: none !important;
}

body.straight-frontpage .test-front-hero--minimal .test-front-hero__photo::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 14, 0.86) 0%, rgba(10, 18, 14, 0.6) 32%, rgba(10, 18, 14, 0.12) 64%, rgba(10, 18, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 12, 9, 0.08) 35%, rgba(7, 12, 9, 0.48) 100%) !important;
}

body.straight-frontpage .test-front-hero--minimal .test-front-hero__content {
  z-index: 2;
  justify-items: start !important;
  padding: clamp(34px, 7vw, 112px) !important;
}

body.straight-frontpage .test-front-hero--minimal .test-front-hero__box {
  width: min(700px, 51vw) !important;
  padding: clamp(24px, 3.6vw, 52px) !important;
  border-color: rgba(247, 244, 238, 0.16) !important;
  border-radius: 32px !important;
  background: rgba(14, 24, 20, 0.52) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
}

body.straight-frontpage .hero-eyebrow {
  margin: 0 0 14px !important;
  color: var(--phase-j-sand) !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

body.straight-frontpage .test-front-hero--minimal h1 {
  max-width: 11ch;
  color: var(--phase-j-cream) !important;
  font-size: clamp(3rem, 5.2vw, 5.7rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.065em !important;
  line-height: 0.96 !important;
  text-wrap: balance;
}

body.straight-frontpage .test-front-hero--minimal .test-front-hero__box > p:not(.hero-eyebrow) {
  max-width: 44ch !important;
  margin-top: 24px !important;
  color: rgba(247, 244, 238, 0.8) !important;
  font-size: clamp(1rem, 1.25vw, 1.2rem) !important;
  line-height: 1.65 !important;
}

body.straight-frontpage .test-front-hero__actions {
  margin-top: 34px !important;
}

body.straight-frontpage .test-front-hero__actions .button {
  min-height: 58px !important;
  border-radius: 999px !important;
}

body.straight-frontpage .test-about-section {
  padding-top: clamp(78px, 10vw, 148px) !important;
  padding-bottom: clamp(78px, 10vw, 148px) !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(196, 122, 90, 0.15), transparent 25%),
    var(--phase-j-forest) !important;
}

body.straight-frontpage .test-about-section > .section-heading {
  display: grid !important;
  width: min(1480px, 100%) !important;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr) !important;
  gap: clamp(36px, 6vw, 100px) !important;
  align-items: start !important;
}

body.straight-frontpage .test-about-section > .section-heading > .eyebrow {
  grid-column: 1 !important;
  margin-bottom: 14px !important;
  color: var(--phase-j-clay) !important;
}

body.straight-frontpage .test-about-section > .section-heading > h2 {
  grid-column: 1 !important;
  max-width: 11ch !important;
  margin: 0 !important;
  color: var(--phase-j-cream) !important;
  font-size: clamp(2.7rem, 4.5vw, 5.1rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em !important;
  line-height: 0.98 !important;
}

body.straight-frontpage .about-story-carousel {
  grid-column: 2 !important;
  grid-row: 1 / span 2 !important;
}

body.straight-frontpage .about-story-carousel__viewport {
  height: var(--about-story-card-height, clamp(520px, 48vw, 690px)) !important;
  min-height: clamp(520px, 48vw, 690px) !important;
}

body.straight-frontpage .about-story-card {
  position: relative;
  display: flex;
  isolation: isolate;
  min-height: clamp(520px, 48vw, 690px) !important;
  padding: 0 !important;
  overflow: hidden;
  justify-content: flex-end !important;
  border: 1px solid rgba(247, 244, 238, 0.15) !important;
  border-radius: 34px !important;
  background: #263128 !important;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.28) !important;
}

body.straight-frontpage .about-story-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 10, 0.02) 18%, rgba(8, 13, 10, 0.34) 54%, rgba(8, 13, 10, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 13, 10, 0.3), transparent 55%);
  content: "";
}

body.straight-frontpage .about-story-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.straight-frontpage .about-story-card:nth-child(1) > img {
  object-position: 55% 36%;
}

body.straight-frontpage .about-story-card:nth-child(2) > img {
  object-position: 43% center;
}

body.straight-frontpage .about-story-card:nth-child(4) > img {
  object-position: 67% center;
}

body.straight-frontpage .about-story-card > div {
  width: min(700px, 100%);
  padding: clamp(28px, 5vw, 64px);
}

body.straight-frontpage .about-story-card > div > span {
  display: block;
  margin-bottom: 12px;
  color: #efaa85;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body.straight-frontpage .about-story-card h3 {
  max-width: 18ch;
  margin: 0;
  color: var(--phase-j-cream);
  font-size: clamp(2rem, 3.6vw, 4.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

body.straight-frontpage .about-story-carousel .about-story-card p,
body.straight-frontpage .about-story-carousel .about-story-card p:first-child {
  max-width: 52ch !important;
  margin: 18px 0 0 !important;
  color: rgba(247, 244, 238, 0.82) !important;
  font-size: clamp(0.96rem, 1.15vw, 1.12rem) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body.straight-frontpage .about-story-carousel__controls {
  margin-top: 22px !important;
}

body.straight-frontpage .about-story-carousel__arrow {
  min-height: 52px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: rgba(247, 244, 238, 0.08) !important;
}

body.straight-frontpage .about-story-carousel__dots {
  gap: 7px !important;
}

body.straight-frontpage .about-story-carousel__dots button {
  position: relative;
  display: grid;
  width: 28px !important;
  height: 28px !important;
  place-items: center;
  background: transparent !important;
}

body.straight-frontpage .about-story-carousel__dots button::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(214, 204, 181, 0.42);
  content: "";
  transition: width 160ms ease, background 160ms ease;
}

body.straight-frontpage .about-story-carousel__dots button[aria-current="true"] {
  width: 38px !important;
}

body.straight-frontpage .about-story-carousel__dots button[aria-current="true"]::before {
  width: 30px;
  background: var(--phase-j-terracotta);
}

body.straight-frontpage .training-focus,
body.straight-frontpage .test-about-feature {
  width: min(1480px, 100%) !important;
}

body.straight-frontpage .training-focus {
  margin-top: clamp(74px, 9vw, 138px) !important;
}

body.straight-frontpage .test-about-feature {
  margin-top: clamp(62px, 8vw, 116px) !important;
  border-radius: 34px !important;
}

body.straight-frontpage .test-about-feature figure {
  min-height: 520px;
}

body.straight-frontpage .test-about-feature figure img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

body.straight-frontpage .pricing-section {
  padding-top: clamp(78px, 10vw, 148px) !important;
  padding-bottom: clamp(78px, 10vw, 148px) !important;
}

body.straight-frontpage .pricing-section h2 {
  max-width: 13ch !important;
  font-size: clamp(2.9rem, 5.4vw, 5.8rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.06em;
}

body.straight-frontpage .coaching-app-section {
  padding-top: clamp(86px, 11vw, 160px) !important;
  padding-bottom: clamp(86px, 11vw, 160px) !important;
}

body.straight-frontpage .coaching-app-shell--final {
  display: block !important;
  width: min(1320px, 100%) !important;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-copy {
  width: 100%;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-copy h2 {
  max-width: 12ch;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-lead {
  max-width: 780px;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits {
  margin-top: clamp(38px, 5vw, 62px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits li {
  min-height: 196px;
  padding: 24px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 10px;
  border-radius: 24px;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits li > span {
  grid-row: auto;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits strong {
  font-size: 1rem;
}

body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits small {
  font-size: 0.8rem;
  line-height: 1.55;
}

body.straight-frontpage .coaching-app-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
}

body.straight-frontpage .coaching-app-actions .button {
  min-height: 54px;
  border-radius: 999px;
}

body.straight-frontpage .portal-login-link {
  color: var(--phase-j-cream);
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

body.straight-frontpage .testimonials-section {
  padding-top: clamp(78px, 10vw, 148px) !important;
  padding-bottom: clamp(78px, 10vw, 148px) !important;
}

body.straight-frontpage .testimonial-card::before,
body.straight-frontpage .testimonial-card::after,
body.straight-frontpage .testimonial-card blockquote::before {
  content: none !important;
  display: none !important;
}

body.straight-frontpage .testimonial-controls button {
  min-width: 52px !important;
  min-height: 52px !important;
  border-radius: 999px !important;
}

body.straight-frontpage .testimonial-dots button {
  position: relative;
  display: grid;
  width: 28px !important;
  height: 28px !important;
  place-items: center;
  background: transparent !important;
}

body.straight-frontpage .testimonial-dots button::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(214, 204, 181, 0.42);
  content: "";
}

body.straight-frontpage .testimonial-dots button[aria-current="true"]::before,
body.straight-frontpage .testimonial-dots button.is-active::before {
  background: var(--phase-j-terracotta);
}

body.straight-frontpage .site-footer span {
  color: #3b473f !important;
}

body.straight-frontpage .site-footer strong,
body.straight-frontpage .site-footer__meta a {
  color: #202d26 !important;
}

body.straight-frontpage .training-focus-panel span {
  color: #18241e !important;
}

@media (max-width: 1180px) {
  body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.straight-frontpage .test-front-hero--minimal {
    min-height: 820px !important;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__photo img {
    object-position: 58% center;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__photo::before {
    background:
      linear-gradient(180deg, rgba(9, 16, 12, 0.04) 12%, rgba(9, 16, 12, 0.35) 48%, rgba(9, 16, 12, 0.92) 100%),
      linear-gradient(90deg, rgba(9, 16, 12, 0.25), transparent 70%) !important;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__content {
    align-items: end !important;
    padding: 24px !important;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__box {
    width: 100% !important;
    padding: 28px !important;
  }

  body.straight-frontpage .test-about-section > .section-heading {
    grid-template-columns: 1fr !important;
  }

  body.straight-frontpage .about-story-carousel {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin-top: 16px;
  }

  body.straight-frontpage .about-story-carousel__viewport,
  body.straight-frontpage .about-story-card {
    min-height: 590px !important;
  }

  body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.straight-frontpage .test-front-hero--minimal {
    min-height: 760px !important;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__photo img {
    object-position: 61% center;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__content {
    padding: 16px !important;
  }

  body.straight-frontpage .test-front-hero--minimal .test-front-hero__box {
    padding: 24px 20px !important;
    border-radius: 24px !important;
  }

  body.straight-frontpage .test-front-hero__logo {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 20px !important;
  }

  body.straight-frontpage .test-front-hero--minimal h1 {
    max-width: 10ch;
    font-size: clamp(2.55rem, 13vw, 3.4rem) !important;
  }

  body.straight-frontpage .test-front-hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.straight-frontpage .test-front-hero__actions .button {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.straight-frontpage .test-about-section > .section-heading > h2 {
    font-size: clamp(2.6rem, 12vw, 3.7rem) !important;
  }

  body.straight-frontpage .about-story-carousel__viewport,
  body.straight-frontpage .about-story-card {
    min-height: 560px !important;
  }

  body.straight-frontpage .about-story-card > div {
    padding: 26px 22px;
  }

  body.straight-frontpage .about-story-card h3 {
    font-size: clamp(1.9rem, 8.7vw, 2.65rem) !important;
  }

  body.straight-frontpage .about-story-carousel .about-story-card p,
  body.straight-frontpage .about-story-carousel .about-story-card p:first-child {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }

  body.straight-frontpage .about-story-carousel__controls {
    grid-template-columns: 52px 1fr 52px !important;
    gap: 8px !important;
  }

  body.straight-frontpage .about-story-carousel__arrow {
    width: 52px;
    min-width: 52px !important;
    padding: 0 !important;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
  }

  body.straight-frontpage .about-story-carousel__arrow span {
    color: var(--phase-j-cream);
    font-size: 1rem;
  }

  body.straight-frontpage .test-about-feature figure {
    min-height: 390px;
  }

  body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits {
    grid-template-columns: 1fr;
  }

  body.straight-frontpage .coaching-app-shell--final .coaching-app-benefits li {
    min-height: 0;
  }

  body.straight-frontpage .testimonial-display {
    --testimonial-gutter: 18px !important;
    --testimonial-peek: 14px !important;
    min-height: 560px !important;
  }

  body.straight-frontpage .testimonial-card,
  body.straight-frontpage .testimonial-card.is-active {
    min-height: 560px !important;
    width: calc(100% - 36px) !important;
    padding: 32px 26px !important;
  }

  body.straight-frontpage .testimonial-card blockquote {
    font-size: clamp(1.05rem, 4.8vw, 1.3rem) !important;
    line-height: 1.35 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.straight-frontpage *,
  body.straight-frontpage *::before,
  body.straight-frontpage *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
