/* ============================================================
   Snapshot CRO — landing page

   One page, three jobs in order: teach PACE, show what the app
   measures, sell the Strategy Call. The call is the primary
   conversion, so it gets the only filled buttons on the page.

   Tokens below are the whole design system — the black, the green
   from the wordmark, and Space Grotesk at every size.
   ============================================================ */

:root {
  --bg: #000;
  --bg-raised: #0b0b0b;       /* cards sitting on the page */
  --fg: #fff;
  --accent: #85ff97;          /* the green from the wordmark's "n" */
  --accent-ink: #000;         /* text on a filled accent button */

  --muted: #8a8a8a;
  --muted-bright: #b4b4b4;    /* body copy — a step up from --muted */

  --line: #2a2a2a;

  /* Logo and buttons share this so they stay the same height at
     every breakpoint instead of drifting apart. */
  --control-height: 52px;

  --gutter: 24px;
  --maxw: 1180px;
  --measure: 68ch;            /* cap on anything that reads as prose */

  --radius: 16px;
  --radius-pill: 999px;

  /* One family at every size. Swap these two to change the whole
     site's type; nothing else references a font name. */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- review aid ----
   The version switcher. Delete with the markup before launch. */

.switch {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.switch a {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted-bright);
  text-decoration: none;
}

.switch a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---- shared layout ---- */

.site-header,
.hero,
.band,
.closing,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Inset by the gutter rather than set as a border on the section, so
   the line ends where the content does instead of running out to the
   padding edge. */
.rule {
  width: 100%;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  height: 0;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---- header ---- */

/* Normal flow rather than fixed, so it never overlaps content on
   short screens. */
.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  line-height: 0;
  flex: none;
}

/* Derived from the control height rather than set independently, so
   the logo and the buttons stay in step at every breakpoint. */
.brand img {
  display: block;
  height: calc(var(--control-height) - 10px);
  width: auto;
}

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

.nav-link {
  padding: 0 14px;
  color: var(--muted-bright);
  text-decoration: none;
  font-size: .98rem;
  transition: color .15s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--fg); }

/* ---- buttons ----
   Filled green is reserved for the Strategy Call, the page's one
   conversion. Everything else is a ghost button, so the hierarchy
   is visible rather than just intended. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease,
              border-color .15s ease;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  border-color: #fff;
}

.btn-ghost {
  background: none;
  border-color: var(--line);
  color: var(--fg);
}

.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--fg); }

.btn-lg {
  height: calc(var(--control-height) + 6px);
  padding: 0 30px;
  font-size: 1.05rem;
}

.btn-block { display: flex; width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---- hero ---- */

.hero { padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 92px); }

.hero-title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.6vw, 5.9rem);
  font-weight: 700;
  /* Under 1 on purpose — at display size the default gap stops the
     headline reading as a single block. */
  line-height: .99;
  letter-spacing: -.035em;
}

.hero-sub {
  max-width: var(--measure);
  margin: 28px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.58;
}

.hero-sub strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---- bands ---- */

.band { padding-block: clamp(56px, 8vw, 96px); }

.band-head { margin-bottom: clamp(36px, 5vw, 60px); }

.band-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.band-sub {
  max-width: var(--measure);
  margin: 18px 0 0;
  color: var(--muted-bright);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* The section opens with a statement rather than a small label, and
   it has to outrank the section title underneath it. */
.lead-title {
  max-width: 22ch;
  margin: 0 0 clamp(36px, 5vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

/* ---- PACE stages ---- */

.stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Decorative — the letter is already in the heading beside it, so
   it's aria-hidden in the markup and purely a visual anchor here. */
.stage-letter {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}

.stage-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.stage-line {
  margin: 6px 0 14px;
  color: var(--accent);
  font-size: 1rem;
}

.stage-body {
  margin: 0;
  color: var(--muted-bright);
  font-size: .98rem;
}

.stage-list {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: .94rem;
}

.stage-list li + li { margin-top: 6px; }
.stage-list span { color: var(--fg); }

/* ---- the hand-off out of PACE ---- */

.pace-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.pace-cta-text {
  max-width: 28ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.pace-cta .btn { flex: 0 0 auto; }

/* ---- the four questions ---- */

.maps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.map-num { margin: 0 0 14px; }

.map-num span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: .86rem;
  font-weight: 700;
}

.map-what {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.map-body {
  margin: 0;
  color: var(--muted-bright);
  font-size: .98rem;
}

/* ---- the snapshot method ---- */

.method {
  max-width: var(--measure);
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  color: var(--muted-bright);
}

.method-title {
  margin: 0 0 12px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.pricing-line {
  margin: 0;
  color: var(--muted-bright);
  font-size: 1.02rem;
}

.pricing-line strong { color: var(--fg); }

/* ---- the offer ---- */

.offer-h {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.offer-h + p { color: var(--muted-bright); }

.offer-steps {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.offer-steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 18px 44px;
  color: var(--muted-bright);
}

.offer-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 500;
}

.offer-steps strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
}

/* The offer's call to action, now that it is no longer parked in a
   sticky card beside the steps. */
.offer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---- closing ---- */

.closing {
  padding-block: clamp(64px, 9vw, 110px);
  text-align: center;
}

.closing-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.closing .cta-row { justify-content: center; }

/* ---- footer ---- */

.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.site-footer p { max-width: var(--measure); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
}

.footer-links a {
  color: var(--muted-bright);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

/* ---- responsive ---- */

@media (max-width: 760px) {
  :root { --control-height: 46px; --gutter: 18px; }

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

  /* The nav links fall away before the button does — the Strategy
     Call is the one thing that has to survive to the smallest
     screen. */
  .nav-link { display: none; }

  .stages,
  .maps { grid-template-columns: 1fr; }

  .stage,
  .map,
  .method { padding: 22px; }

  /* Side by side there is no room for both. */
  .pace-cta { display: block; }
  .pace-cta-text { max-width: none; margin-bottom: 18px; }
  .pace-cta .btn { display: flex; width: 100%; }

  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
