/* ==========================================================
   Breakthrough Performance: one-page site
   Plain CSS, no build step, system fonts only.
   ========================================================== */

/* ----- Tokens ----- */
:root {
  --navy: #0D1B2A;
  --slate: #233D63;
  --gold: #C9A227;
  --bg: #F3F5F8;
  --white: #FFFFFF;
  --border: #D5DAE3;
  --navy-raised: #14273B; /* tint of navy, panels on dark sections */
  --mist: #C9D3E0;        /* tint of slate, body text on navy */
  --rule-dark: rgb(201 211 224 / 0.2);

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --max: 1120px;
  --radius: 4px;
  --section-pad: clamp(3.5rem, 9vw, 7rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 4.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.svg-defs {
  position: absolute;
}

[id] {
  scroll-margin-top: 1rem;
}

/* ----- Focus ----- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.error-page :focus-visible {
  outline-color: var(--gold);
}

main:focus {
  outline: none;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section-light {
  background: var(--bg);
}

.section-white {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Short gold rule above every section heading */
.section-head h2::before,
.cta h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 1.25rem;
  background: var(--gold);
}

.lead {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--slate);
}

.section-dark .lead,
.cta .lead {
  color: var(--mist);
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-small {
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ----- Header ----- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
}

.mark-line {
  fill: var(--gold);
}

.mark-step {
  fill: var(--white);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-name-top {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.brand-name-bottom {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.245em;
  color: var(--mist);
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--mist);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* On narrow phones the header button wraps to two lines */
.site-header .btn-small {
  flex: 0 1 auto;
  max-width: 9.5em;
}

/* Smallest phones and 200% zoom: tighten the lockup so the button stays two lines */
@media (max-width: 359px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name-top,
  .brand-name-bottom {
    font-size: 0.75rem;
  }

  .site-header .btn-small {
    flex: none;
    padding-inline: 0.6rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 480px) {
  .site-header .btn-small {
    max-width: none;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .site-nav {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    gap: 20px;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(4rem, 10vw, 7.5rem);
}

.hero-text {
  max-width: 44rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 3px;
  background: var(--gold);
}

.hero-sub {
  max-width: 38rem;
  margin-block: 1.5rem 2.25rem;
  color: var(--mist);
  font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
}

.hero-art {
  display: none;
}

.art-sheet {
  fill: var(--navy-raised);
  stroke: var(--slate);
  stroke-width: 2;
}

.art-gold {
  fill: var(--gold);
}

.art-bar {
  fill: var(--mist);
}

.art-bar-dim {
  fill: var(--mist);
  opacity: 0.45;
}

.art-bar-faint {
  fill: var(--mist);
  opacity: 0.2;
}

.art-rule {
  stroke: var(--slate);
  stroke-width: 2;
}

.art-box {
  fill: none;
  stroke: var(--mist);
  stroke-width: 2;
  opacity: 0.6;
}

.art-box-done {
  fill: var(--gold);
}

.art-check {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: square;
}

.art-sign {
  stroke: var(--gold);
  stroke-width: 2;
}

/* Tape-measure tick strip along the bottom edge of the hero */
.ruler {
  position: absolute;
  inset: auto 0 0 0;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 80px) left bottom / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, rgb(201 211 224 / 0.4) 0 1px, transparent 1px 16px) left bottom / 100% 9px no-repeat;
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
  }

  .hero-art {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* ----- The problem ----- */
.problem-grid {
  display: grid;
  gap: 16px;
}

.problem-card {
  padding: 1.5rem 1.375rem 1.625rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
}

.card-num {
  display: block;
  margin-bottom: 0.875rem;
  color: var(--slate);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.problem-card h3 {
  margin-bottom: 0.625rem;
  font-size: 1.3125rem;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.problem-card p {
  color: var(--slate);
}

.callout {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--navy);
  color: var(--white);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .problem-card {
    padding: 2rem 2rem 2.25rem;
  }
}

/* ----- The system: timeline diagram ----- */
.timeline {
  padding: 1.25rem 1rem 1rem;
  background: var(--navy-raised);
  border: 1px solid var(--slate);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
}

.tl-row + .tl-row {
  margin-top: 0.875rem;
}

.tl-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.tl-num,
.part-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 2px;
}

.tl-track {
  position: relative;
  height: 40px;
  padding-inline: 12px;
  background: var(--navy);
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
}

/* Centre guide line in each track */
.tl-track::before {
  content: "";
  position: absolute;
  inset: 50% 12px auto 12px;
  height: 1px;
  background: var(--rule-dark);
}

.tl-inner {
  position: relative;
  height: 100%;
}

/* 1. Baseline: day 1 to day 30 of 182 */
.tl-bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: 16.48%;
  height: 16px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* 2. Huddles: 26 equal weeks, one tick per week */
.tl-weeks {
  display: flex;
}

.tl-weeks i {
  position: relative;
  flex: 1 1 0;
}

.tl-weeks i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 18px;
  background: var(--white);
  transform: translate(-50%, -50%);
}

/* 3. Check-offs: one per month */
.tl-check {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--navy);
  border: 2px solid var(--gold);
  transform: translate(-50%, -50%);
}

.tl-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* 4. Reviews: day 90 and day 180 */
.tl-review {
  position: absolute;
  left: var(--x);
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 5. Coaching: runs the whole six months */
.tl-span {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 6px;
  background: var(--mist);
  transform: translateY(-50%);
}

/* Day axis */
.tl-label-axis {
  color: var(--mist);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-axis {
  height: 34px;
  background: none;
  border: 0;
  border-top: 1px solid var(--mist);
  border-radius: 0;
}

.tl-axis::before {
  content: none;
}

.tl-tick {
  position: absolute;
  left: var(--x);
  top: 0;
  padding-top: 10px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.tl-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 7px;
  background: var(--mist);
  transform: translateX(-50%);
}

@media (min-width: 860px) {
  .timeline {
    padding: 2rem 2rem 1.5rem;
  }

  .tl-row {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }

  .tl-row + .tl-row {
    margin-top: 0.625rem;
  }

  .tl-label {
    margin-bottom: 0;
    font-size: 1rem;
  }

  .tl-label-axis {
    justify-content: flex-end;
    align-self: start;
    padding-top: 9px;
    font-size: 0.8125rem;
  }

  .tl-track {
    height: 44px;
  }

  .tl-axis {
    height: 34px;
  }
}

/* ----- The system: five parts ----- */
.parts {
  display: grid;
  gap: 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.part {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-dark);
}

.part:last-child {
  padding-bottom: 0;
}

.part-num {
  margin-bottom: 0.875rem;
}

.part h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3125rem;
}

.part p {
  color: var(--mist);
}

@media (min-width: 720px) {
  .parts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 40px;
  }

  .part {
    grid-column: span 3;
    padding-block: 1.75rem;
  }

  .part:last-child {
    grid-column: span 6;
    max-width: calc(50% - 20px);
  }
}

@media (min-width: 1000px) {
  .part,
  .part:last-child {
    grid-column: span 2;
    max-width: none;
    padding-bottom: 1.75rem;
  }

  .part:nth-child(n + 4) {
    grid-column: span 3;
    padding-bottom: 0;
  }
}

/* ----- How it runs ----- */
.steps {
  display: grid;
  gap: 0;
}

.step {
  position: relative;
  padding: 0 0 2rem 64px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Connector between step numbers */
.step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step:last-child::before {
  content: none;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  border-bottom: 4px solid var(--gold);
  border-radius: 2px;
}

.step h3 {
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
  font-size: 1.25rem;
}

.step p {
  color: var(--slate);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .step {
    padding: 68px 0 0;
  }

  .step::before {
    left: 44px;
    right: -32px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .step h3 {
    padding-top: 0;
  }
}

/* ----- Who it is for ----- */
.fit-grid {
  display: grid;
  gap: 16px;
}

.fit {
  padding: 1.75rem 1.375rem 2rem;
  border-radius: var(--radius);
}

.fit-yes {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
}

.fit-no {
  background: transparent;
  border: 2px solid var(--slate);
  border-top-width: 4px;
}

.fit-icon {
  margin-bottom: 1.25rem;
  fill: none;
  stroke-width: 3;
  stroke-linecap: square;
}

.fit-yes .fit-icon rect {
  fill: var(--navy);
  stroke: var(--navy);
}

.fit-yes .fit-icon path {
  stroke: var(--gold);
}

.fit-no .fit-icon {
  stroke: var(--slate);
}

.fit h2,
.fit h3 {
  margin-bottom: 0.875rem;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.fit p {
  color: var(--slate);
  font-size: 1.125rem;
}

@media (min-width: 860px) {
  .fit-grid {
    grid-template-columns: 7fr 5fr;
    gap: 24px;
  }

  .fit {
    padding: 2.5rem 2.5rem 2.75rem;
  }
}

/* ----- FAQ ----- */
.faq-list {
  border-top: 2px solid var(--navy);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 1.125rem 48px 1.125rem 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Plus sign that becomes a minus when open */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 3px;
  background: var(--navy);
  transform: translateY(-50%);
}

.faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-list details[open] summary::after {
  content: none;
}

.faq-list details p {
  max-width: 44rem;
  padding: 0 0 1.5rem;
  color: var(--slate);
}

@media (min-width: 900px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
  }

  .faq-layout .section-head {
    margin-bottom: 0;
  }
}

/* ----- Closing call to action ----- */
.cta {
  background: var(--navy);
  color: var(--white);
}

.cta h2,
.cta .lead {
  max-width: 44rem;
}

.cta .btn {
  margin-top: 2rem;
}

.cta-email {
  margin-top: 1rem;
}

.cta-email a,
.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  border-top: 1px solid var(--rule-dark);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-meta {
    text-align: right;
  }
}

/* ----- 404 page ----- */
.error-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  background: var(--navy);
  color: var(--white);
}

.error-inner {
  padding-block: 3rem;
}

.error-inner .brand {
  margin-bottom: 3rem;
}

.error-code {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.error-inner h1 {
  margin-block: 0.75rem 2rem;
}

/* ----- Wider gutters ----- */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}
