:root {
  color-scheme: light;
  --landing-button-text: #fff;
  --landing-band: #172c2a;
  --landing-band-text: #f7f5ef;
  --landing-band-accent: #cad8c8;
  --landing-video: #172c2a;
  --landing-selection: #d2e3d6;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --compound-paper: #172522;
  --compound-ink: #f3f4ec;
  --compound-green: #a3dabd;
  --compound-green-hover: #bee8cf;
  --compound-muted: #bac9c2;
  --compound-clay: #f0b19d;
  --compound-clay-hover: #ffd0c2;
  --compound-surface: #1d2e29;
  --compound-soft: #253b32;
  --compound-border: #476257;
  --compound-control-border: #799387;
  --compound-focus: #f0b19d;
  --compound-error: #ffb4a9;
  --compound-error-surface: #3c2524;
  --compound-success: #a3dabd;
  --compound-success-surface: #253b32;
  --landing-button-text: #172522;
  --landing-band: #223830;
  --landing-band-text: #f3f4ec;
  --landing-band-accent: #a3dabd;
  --landing-video: #111c19;
  --landing-selection: #476257;
}

::selection {
  background: var(--landing-selection);
  color: var(--compound-ink);
}

.landing-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 3vw, 36px);
  height: auto;
  min-height: 88px;
}

.landing-header nav {
  justify-content: flex-end;
  gap: clamp(15px, 2.1vw, 30px);
}

.landing-header .nav-detail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.landing-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-login,
.landing-theme {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--compound-border);
  border-radius: var(--compound-radius-control);
  color: var(--compound-ink);
  background: transparent;
}

.landing-login {
  padding-inline: 13px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.landing-theme {
  width: 44px;
  flex: none;
  cursor: pointer;
}

.landing-theme[hidden],
.landing-theme .theme-sun,
:root[data-theme="dark"] .landing-theme .theme-moon {
  display: none;
}

:root[data-theme="dark"] .landing-theme .theme-sun {
  display: block;
}

.landing-theme svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.landing-theme:hover,
.landing-login:hover {
  background: var(--compound-soft);
}

.button {
  color: var(--landing-button-text);
}

.hero.landing-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) 35px;
}

.landing-hero h1 {
  font-size: clamp(45px, 5.4vw, 76px);
  letter-spacing: -.063em;
  line-height: 1.04;
  margin-bottom: 16px;
}

.landing-hero .eyebrow {
  color: var(--compound-green);
  margin-bottom: 15px;
}

.landing-hero .small-note {
  margin: 0;
}

.landing-hero .intro,
.landing-hero .hero-description {
  margin-bottom: 13px;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.landing-actions .button {
  min-height: 46px;
  gap: 16px;
  padding: 8px 14px;
}

.landing-actions .text-link {
  padding-block: 8px 4px;
}

.landing-example {
  margin-bottom: clamp(40px, 7vw, 80px);
  padding: clamp(18px, 3.25vw, 34px);
  background: var(--compound-soft);
  border: 1px solid var(--compound-border);
  border-radius: var(--compound-radius-panel);
}

.landing-example-head,
.landing-calculation {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.landing-example h2,
.landing-example p {
  margin: 0;
}

.landing-example h2 {
  font-size: clamp(27px, 3.3vw, 42px);
}

.landing-example .small-note,
.landing-example p {
  color: var(--compound-muted);
}

.landing-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 25px 0 18px;
  list-style: none;
}

.landing-stages li {
  position: relative;
  padding-right: 22px;
}

.landing-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto 12px;
  border-top: 1px solid var(--compound-control-border);
}

.landing-stage-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 11px;
  border: 1px solid var(--compound-green);
  border-radius: 50%;
  background: var(--compound-soft);
}

.landing-stages h3 {
  margin: 0 0 4px;
  font: 600 15px/1.4 var(--compound-font-body);
  letter-spacing: normal;
}

.landing-stages p,
.landing-example details p {
  font-size: 13px;
  line-height: 1.55;
}

.landing-stages p {
  max-width: 25ch;
}

.landing-calculation {
  justify-content: start;
  align-items: start;
  border-top: 1px solid var(--compound-border);
  padding-top: 15px;
}

.landing-figure {
  display: grid;
}

.landing-figure strong {
  font: 400 24px/1.2 var(--compound-font-display);
  font-variant-numeric: tabular-nums;
}

.landing-figure-projected strong,
.landing-example summary {
  color: var(--compound-green);
}

.landing-example details {
  flex: 1;
  min-width: min(100%, 200px);
  max-width: 36rem;
  padding-top: 4px;
}

.landing-example summary {
  justify-content: start;
  gap: 9px;
  width: fit-content;
  font-size: 13px;
}

.landing-example details p {
  margin-top: 5px;
}

.promise-band {
  background: var(--landing-band);
  color: var(--landing-band-text);
}

.promise-band span {
  color: var(--landing-band-accent);
}

.intro-video {
  background: var(--landing-video);
}

.steps article {
  border: 1px solid var(--compound-border);
  border-radius: var(--compound-radius-panel);
  background: var(--compound-surface);
  padding: clamp(18px, 2.5vw, 28px);
}

.partner-panel,
.waitlist-section {
  border-block: 1px solid var(--compound-border);
}

.stage-note {
  border-color: var(--compound-border);
}

.waitlist-section,
.signup-card {
  color: var(--compound-ink);
}

.waitlist-section {
  background: var(--compound-soft);
}

.waitlist-grid > div > p:not(.eyebrow) {
  color: var(--compound-muted);
}

.waitlist-section :focus-visible {
  outline-color: var(--compound-focus);
}

.signup-card {
  background: var(--compound-surface);
  border: 1px solid var(--compound-border);
}

.signup-card input[type="email"],
.skip {
  background: var(--compound-paper);
}

.signup-card input[type="email"]::placeholder {
  color: var(--compound-muted);
  opacity: 1;
}

.faq summary::after {
  color: var(--compound-green);
}

@media (max-width: 900px) {
  .landing-header {
    grid-template-columns: 1fr auto;
    gap: 6px 15px;
    padding-block: 13px;
  }

  .landing-header nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
    gap: 3px 16px;
  }
}

@media (max-width: 720px) {
  .hero.landing-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 36px 26px;
  }

  .landing-hero h1 {
    font-size: clamp(38px, 9vw, 60px);
  }

  .landing-stages {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-stages li {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 2px 12px;
    padding: 0;
  }

  .landing-stage-dot {
    grid-row: span 2;
    margin: 3px 0 0;
  }

  .landing-stages li h3 {
    margin: 0;
  }

  .landing-stages li p {
    grid-column: 2;
    max-width: none;
  }

  .landing-stages li:not(:last-child)::after {
    inset: 16px auto -17px 6px;
    border: 0;
    border-left: 1px solid var(--compound-control-border);
  }

  .landing-calculation details {
    flex-basis: 100%;
  }
}
