/* Home page */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

/* Fine engraved lines, like the background of a bank note. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 85% 30%, transparent 0 14px, color-mix(in srgb, var(--red) 7%, transparent) 14px 15px),
    repeating-radial-gradient(circle at 10% 120%, transparent 0 18px, color-mix(in srgb, var(--note-5) 6%, transparent) 18px 19px);
  mask-image: linear-gradient(to right, transparent, black 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }

.track-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 4px 0 var(--red), var(--shadow);
}
.track-card__label { display: block; font-weight: 700; margin-bottom: 10px; }
.track-card__row { display: flex; gap: 10px; }
.track-card__hint { margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); }
.track-card__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; margin-top: 14px; }

/* Serial numbers set like they're printed on a note. */
.serial-input {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.serial-input::placeholder { color: var(--ink-3); opacity: 0.6; }

.stats-strip {
  border-bottom: 1px solid var(--line);
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: grid;
  gap: 2px;
  padding: 22px 16px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat__label { color: var(--ink-3); font-size: 0.875rem; }

/* Denomination colours along the top of each stat, like the edge of a stack of notes. */
.stat:nth-child(1) .stat__value { color: var(--note-5); }
.stat:nth-child(2) .stat__value { color: var(--note-20); }
.stat:nth-child(3) .stat__value { color: var(--note-10); }
.stat:nth-child(4) .stat__value { color: var(--note-100); }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 48px;
  padding-top: 48px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__number {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}
.step__title { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: 0.95rem; }

.login-list { list-style: none; padding: 0; margin: 0; }
.login-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.925rem;
}
.login-list li:last-child { border-bottom: 0; }
.login-list__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.login-list time { color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 12px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .track-card__row { flex-direction: column; }
}
