/* Home. Phone: pitch, live demo and the button all above the fold, the rest peeking
   in below. Wide screens: pitch left, demo right, the sections underneath. */

.landing {
  display: grid;
  gap: var(--space-36);
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--space-20) var(--space-16) var(--space-16);
}

.landing__hero {
  display: grid;
  gap: var(--space-20);
}

.landing__pitch {
  display: grid;
  gap: var(--space-14);
  align-content: start;
}

.landing__brand {
  font-weight: 700;
  font-size: var(--text-17);
}

/* 25px, the largest heading size: 46 is the score and 70 the live count. */
.landing__headline {
  margin-top: var(--space-16);
  font-size: var(--text-25);
  font-weight: 800;
  line-height: 1.1;
}

.landing__sub {
  font-size: var(--text-17);
  color: var(--muted);
  max-width: 34em;
}

.landing__actions {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  margin-top: var(--space-10);
}

/* The demo: the drill's own lane, counter and chip, playing silently. */
.landing__demo {
  display: grid;
  gap: var(--space-16);
  margin: 0;
}

.landing__demo-head {
  display: grid;
  gap: 2px;
}

.landing__demo-name {
  font-weight: 600;
  font-size: var(--text-17);
}

.landing__section {
  display: grid;
  gap: var(--space-14);
  padding-top: var(--space-20);
  border-top: 1px solid var(--line);
}

.landing__h2 {
  font-size: var(--text-19);
}

/* Why count: three parallel points, no numbering (they aren't a sequence). */
.landing__benefits {
  display: grid;
}

.landing__benefit {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-14) 0;
  border-bottom: 1px solid var(--line);
}

.landing__benefit:last-child { border-bottom: 0; }

.landing__benefit h3,
.landing__steps h3 {
  font-size: var(--text-17);
}

/* How a round works: a real sequence, so it is numbered. */
.landing__steps {
  display: grid;
  gap: var(--space-16);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.landing__steps li {
  display: grid;
  align-content: start;
  grid-template-columns: 32px 1fr;
  column-gap: var(--space-14);
  counter-increment: step;
}

.landing__steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--you);
  border-radius: 50%;
  color: var(--you);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* The numbers: each point led by the real number it's about. */
.landing__facts {
  display: grid;
  margin: 0;
}

.landing__fact {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--line);
}

.landing__fact:last-child { border-bottom: 0; }

.landing__fact dt {
  font-size: var(--text-19);
  font-weight: 500;
  line-height: 1.2;
}

.landing__fact dt {
  font-size: var(--text-25);
}

.landing__fact dt span {
  display: block;
  font-family: var(--font-text);
  font-size: var(--text-13);
  color: var(--muted);
}

.landing__fact dd {
  margin: 0;
}

/* About: small print at the end, not a feature. */
.landing__about {
  display: grid;
  gap: var(--space-10);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
  font-size: var(--text-13);
  color: var(--muted);
  scroll-margin-top: var(--space-16);
}

.landing__about-title {
  font-size: var(--text-15);
  color: var(--ink);
}

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

/* Where the numbers come from: a spec sheet (kept for reuse). */
.landing__sheet {
  display: grid;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.landing__sheet div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: var(--space-16);
  padding: var(--space-14) var(--space-16);
  border-bottom: 1px solid var(--line);
}

.landing__sheet div:last-child { border-bottom: 0; }

.landing__sheet dt {
  color: var(--muted);
}

.landing__sheet dd {
  margin: 0;
}

@media (min-width: 760px) {
  .landing {
    max-width: 920px;
    gap: var(--space-36);
    padding-top: var(--space-36);
  }

  .landing__hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-36);
    align-items: center;
  }

  .landing__actions {
    justify-items: start;
  }

  .landing__section {
    grid-template-columns: 14em 1fr;
    column-gap: var(--space-36);
  }

  .landing__section > :not(.landing__h2) {
    grid-column: 2;
  }

  .landing__section > .landing__h2 {
    grid-row: 1 / span 3;
  }

  .landing__benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-20);
  }

  .landing__benefit {
    align-content: start;
    border-bottom: 0;
    padding: 0;
  }

  .landing__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-20);
  }

  /* The footer lines up with the wider landing page. */
  body:has(.landing) .footer {
    max-width: 920px;
  }
}
