:root {
  --bg: #07090e;
  --bg-raised: #111925;
  --text: #f5f7fa;
  --muted: #c3cbd6;
  --faint: #93a0b3;
  --line: rgba(245, 247, 250, 0.12);
  --max: 1120px;
  --header: 84px;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

#top,
#work,
#why,
#fit {
  scroll-margin-top: 108px;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.kicker,
.button,
.nav-toggle,
.site-nav {
  font-family: var(--display);
}

h1,
h2,
h3 {
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-140%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 148px;
  height: auto;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 560;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.kicker {
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--text);
  margin-right: 8px;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.4vw, 5.4rem);
  max-width: 11ch;
}

.lead,
.section-head p,
.build p,
.fit-panel p,
.page-section p {
  color: var(--muted);
}

.lead {
  max-width: 40rem;
  font-size: 1.22rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #101218;
  text-decoration: none;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-align: center;
  overflow-wrap: anywhere;
}

.button:hover,
.button:focus-visible {
  background: #ffffff;
}

.text-link {
  color: var(--text);
  font-weight: 650;
  text-underline-offset: 4px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.band {
  padding: 88px 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-head h2,
.split h2,
.fit-panel h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin-bottom: 16px;
}

.section-head p,
.build p,
.fit-panel p,
.reasons p,
.card-grid p {
  font-size: 1.15rem;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-grid li,
.shell,
.fit-panel,
.reasons li {
  min-width: 0;
}

.card-grid li {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 22px;
  min-height: 168px;
}

.card-grid h3,
.reasons h3,
.build h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.card-grid h3 a {
  text-decoration: none;
}

.card-grid h3 a:hover,
.card-grid h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  padding: 72px 0 96px;
}

.page h1 {
  max-width: 22ch;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.page .lead {
  max-width: 40rem;
  margin-bottom: 28px;
}

.page-section {
  max-width: 40rem;
  margin-top: 36px;
}

.page-section h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.card-grid p,
.reasons p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.build {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.build h3 {
  font-size: 1.45rem;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: reason;
}

.reasons li {
  counter-increment: reason;
  padding: 22px 0 22px 72px;
  border-top: 1px solid var(--line);
  position: relative;
}

.reasons li:last-child {
  border-bottom: 1px solid var(--line);
}

.reasons li::before {
  content: counter(reason, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.fit {
  padding: 12px 0 96px;
}

.fit-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
}

.fit-panel p {
  max-width: 38rem;
  margin-bottom: 28px;
}

.fit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.email-link {
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--faint);
  font-size: 0.98rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-bar p {
  margin: 0;
}

.footer-bar a {
  color: var(--muted);
}

.copyright {
  margin-left: auto;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-grid {
    gap: 36px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    margin-left: 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 20px 18px;
    background: #0c121c;
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    width: 100%;
    padding: 12px 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--max), calc(100% - 32px));
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .brand img {
    width: 118px;
  }

  .band {
    padding: 64px 0;
  }

  .reasons li {
    padding-left: 0;
  }

  .reasons li::before {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}

.review-hero {
  align-items: center;
  margin-bottom: 28px;
}

.review-hero > * {
  min-width: 0;
}

.review-hero h1 {
  max-width: 14ch;
}

.month-figure {
  margin: 0;
  padding: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.month-head p:last-child {
  margin: 0 0 18px;
  color: var(--muted);
}

.month-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.month-col p {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.month-stack {
  display: flex;
  flex-direction: column;
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.slice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slice-work {
  background: #1b2636;
  color: #d7dee8;
}

.slice-leak {
  background: #3c2c28;
  color: #f2c8ba;
}

.slice-left {
  background: #f4f6f8;
  color: #12151b;
}

.month-arrow {
  width: 36px;
  height: 36px;
  margin-bottom: 132px;
  color: var(--faint);
}

.month-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.month-key li {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.swatch-work { background: #1b2636; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.swatch-leak { background: #3c2c28; }
.swatch-left { background: #f4f6f8; }

.month-figure figcaption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.9rem;
}

.dollar-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.dollar-path li {
  min-width: 0;
  padding: 22px 22px 8px 0;
}

.dollar-path li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.dollar-path span {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.dollar-path h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.dollar-path p {
  margin: 0;
  color: var(--muted);
}

.review-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-points li {
  min-width: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.review-points h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.review-points p {
  margin: 0;
  color: var(--muted);
}

.next-step {
  max-width: 520px;
  margin: 72px auto 0;
}

.review-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.review-form h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.form-lead,
.field-hint,
.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
}

.field-hint,
.form-note,
.form-status {
  font-size: 0.98rem;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 16px;
  background: #07090e;
}

.choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: center;
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.02em;
}

.choice input:checked + span,
.choice input:focus-visible + span {
  background: #f4f6f8;
  color: #12151b;
}

.form-body {
  display: grid;
  gap: 14px;
}

[hidden] {
  display: none !important;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 0.98rem;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c121c;
  color: var(--text);
  font: inherit;
}

.field input[type="file"] {
  padding: 11px 12px;
  color: var(--muted);
}

.field input::placeholder {
  color: #7d8796;
}

.field input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.review-form .button {
  width: 100%;
}

.form-status[data-state="error"] {
  color: #ffb4b4;
}

.form-status[data-state="success"] {
  color: var(--text);
}

.hp,
.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;
}

@media (max-width: 900px) {
  .review-points,
  .dollar-path,
  .month-board {
    grid-template-columns: 1fr;
  }

  .dollar-path li,
  .dollar-path li + li {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .dollar-path li:first-child {
    border-top: 0;
    padding-top: 18px;
  }

  .month-arrow {
    display: none;
  }

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

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