/* ==========================================================================
   CR8 Capacity — global styles
   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop).
   ========================================================================== */

:root {
  /* Color */
  --ink: #1f2639;          /* headings on light backgrounds */
  --ink-deep: #0d1019;     /* dark bands, hero, footer */
  --body: #4b5565;         /* body copy on light backgrounds */
  --body-dark: #9aa3b2;    /* body copy on dark backgrounds */
  --muted: #b9babf;        /* de-emphasised list items */
  --line: #e4e6ea;
  --line-dark: rgba(255, 255, 255, 0.13);
  --surface: #ffffff;
  --surface-tint: #f9fafc;
  --accent: #1a4bd8;
  --accent-mid: #a6b7fd;
  --accent-soft: #e2e9fc;

  /* Layout — border-box, so these include the side padding */
  --w-narrow: 1244px;
  --w-wide: 1440px;
  --pad: 24px;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--w-narrow);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--wide {
  max-width: var(--w-wide);
}

/* Line break that only applies once there is room for it */
.brk {
  display: none;
}

.section {
  padding-block: 84px;
}

.section--tint {
  background: var(--surface-tint);
}

.section--dark {
  background: var(--ink-deep);
  color: var(--body-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark .eyebrow {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Buttons — one style, used on every page
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: #e9ebef;
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1rem;
}

/* For light backgrounds */
.btn--dark {
  background: var(--ink-deep);
  color: #ffffff;
}

.btn--dark:hover {
  background: #232a3a;
}

/* --------------------------------------------------------------------------
   Eyebrow — three squares in descending tints, plus a label
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}

.eyebrow__marks {
  display: flex;
  gap: 4px;
}

.eyebrow__marks span {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.eyebrow__marks span:nth-child(2) {
  background: var(--accent-mid);
}

.eyebrow__marks span:nth-child(3) {
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Section head — eyebrow left, headline set right of centre
   -------------------------------------------------------------------------- */

.sec-head {
  margin-bottom: 56px;
}

.sec-title {
  margin-top: 28px;
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  line-height: 1.04;
}

.sec-head__note {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Site header — sits over the hero
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  padding-block: 18px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; /* tight on phones so logo, menu and button fit on one line */
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.875rem; /* kept small so the name stays on one line on phones */
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-nav {
  display: none; /* shown from 1024px up */
  gap: 34px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
}

.site-nav a:hover {
  color: #ffffff;
}

.site-header .btn {
  padding: 11px 14px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phone and tablet menu — a <details> element, so it opens without JavaScript */
.mobile-nav {
  position: relative;
}

.mobile-nav__toggle {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] .mobile-nav__toggle {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--ink-deep);
  font-size: 0.9375rem;
}

.mobile-nav__panel a {
  padding: 12px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-nav__panel a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding-block: 140px 56px;
  background:
    radial-gradient(90% 120% at 78% 12%, rgba(86, 112, 168, 0.38) 0%, rgba(13, 16, 25, 0) 62%),
    radial-gradient(70% 90% at 12% 90%, rgba(24, 38, 70, 0.55) 0%, rgba(13, 16, 25, 0) 70%),
    linear-gradient(160deg, #1a2338 0%, #10151f 45%, #0d1019 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero__title {
  max-width: 14ch;
  color: #ffffff;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__lede {
  max-width: 80ch;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.hero__cta {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Numbered steps — the week-breakdown method
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.step__num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step__title {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step__body {
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Rows — shared by the problem list, the process, and the FAQ
   -------------------------------------------------------------------------- */

.rows {
  border-top: 1px solid var(--line);
}

.section--dark .rows {
  border-top-color: var(--line-dark);
}

.row {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.section--dark .row {
  border-bottom-color: var(--line-dark);
}

.row__num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.row__title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.section--dark .row__title {
  color: #ffffff;
}

.row__body {
  margin-top: 12px;
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.rows__note {
  margin-top: 36px;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */

.story__body p + p {
  margin-top: 22px;
}

.story__body p {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Scoped to beat the `.story__body p` size and margin rules above */
.story__body .story__quote {
  margin: 44px 0;
  padding-left: 26px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section--dark .story__body .story__quote {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about__body p + p {
  margin-top: 22px;
}

.about__body p {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Partner band — dark, faint grid, centred
   -------------------------------------------------------------------------- */

.partner {
  position: relative;
  padding-block: 96px;
  background: var(--ink-deep);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

/* Faint grid, drawn with gradients rather than an image */
.partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 110px 110px;
  pointer-events: none;
}

.partner > .container {
  position: relative;
  z-index: 1;
}

.partner__pill {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.partner__title {
  max-width: 22ch;
  margin: 28px auto 0;
  color: #ffffff;
  font-size: clamp(2.125rem, 4.8vw, 4.25rem);
  line-height: 1.04;
}

.partner__lede {
  max-width: 52ch;
  margin: 22px auto 0;
  color: var(--body-dark);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.partner__cta {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding-block: 96px;
  background: radial-gradient(120% 90% at 50% 0%, #edf0ff 0%, #c3cce6 100%);
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}

/* Fine dot field, as in the reference */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(31, 38, 57, 0.14) 1px, transparent 1px);
  background-size: 9px 9px;
  pointer-events: none;
}

.cta > .container {
  position: relative;
  z-index: 1;
}

.cta__title {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2.125rem, 4.8vw, 4.25rem);
  line-height: 1.04;
}

.cta__lede {
  max-width: 48ch;
  margin: 22px auto 0;
  color: #3c4658;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.cta__btn {
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-top: 72px;
  background: var(--ink-deep);
  color: var(--body-dark);
  overflow: hidden;
}

.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 56px;
}

.site-footer .logo {
  font-size: 1rem;
}

.site-footer__blurb {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.site-footer__heading {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer__links {
  display: grid;
  gap: 12px;
  font-size: 0.9375rem;
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

/* Oversized wordmark, clipped by the footer edge */
.site-footer__mark {
  position: relative;
  margin-bottom: -0.22em;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: clamp(2rem, 10.8vw, 9.6rem); /* sized so the name fits the width */
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-align: center;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  :root {
    --pad: 40px;
  }

  .logo {
    font-size: 1.0625rem;
    letter-spacing: 0.14em;
  }

  .section {
    padding-block: 110px;
  }

  .hero {
    min-height: 700px;
    padding-block: 160px 72px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .partner,
  .cta {
    padding-block: 130px;
  }

  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
  }

  .site-footer__bottom {
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .brk {
    display: inline;
  }

  .site-header {
    padding-block: 26px;
  }

  .site-header__inner {
    gap: 24px;
  }

  .site-header .btn {
    padding: 11px 20px;
  }

  .site-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-block: 200px 84px;
  }

  .hero__lede {
    font-size: 1.125rem;
  }

  .section {
    padding-block: 140px;
  }

  /* Eyebrow left, headline set right of centre — as in the reference */
  .sec-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 84px;
  }

  .sec-title {
    margin-top: 0;
  }

  .row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
    padding-block: 38px;
  }

  .row__body {
    margin-top: 0;
  }

  /* The number sits with the title, not above the whole row */
  .row__num {
    margin-bottom: 12px;
  }

  .story__body,
  .about__body {
    padding-left: calc(33.33% + 13px); /* line up with the section headline */
  }

  .partner,
  .cta {
    padding-block: 150px;
  }

  .partner__title {
    max-width: none;
  }

  .partner__lede,
  .cta__lede {
    font-size: 1.125rem;
  }

  .site-footer {
    padding-top: 96px;
  }

  .site-footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
