/* The landing page: hero with the home-screen preview, modes, the game, accounts, stores. */

/* Hero */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 8vw, 88px) clamp(56px, 9vw, 96px);
  background: radial-gradient(min(640px, 100vw) 420px at 78% 45%, rgb(94 234 212 / 9%), transparent 70%);
}

.home-hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }
}

.home-hero__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.home-hero__heading {
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.home-hero__lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* The faint pieces drifting down behind the hero, as on the game's home screen. */

.home-hero__drift {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.home-hero__lane {
  position: absolute;
  top: 0;
  height: 100%;
  animation: home-drift 44s linear infinite;
}

.home-hero__piece {
  --cell: 18px;
}

.home-hero__lane--1 {
  left: 5%;
  transform: translateY(14%);
  animation-delay: -7.6s;
}

.home-hero__lane--2 {
  left: 77%;
  transform: translateY(24%);
  animation-delay: -11.6s;
}

.home-hero__lane--3 {
  left: 85%;
  transform: translateY(73%);
  animation-delay: -31.2s;
}

.home-hero__lane--4 {
  left: 1%;
  transform: translateY(66%);
  animation-delay: -28.4s;
}

.home-hero__lane--5 {
  left: 70%;
  transform: translateY(8%);
  animation-delay: -6.4s;
}

@keyframes home-drift {
  from {
    transform: translateY(-5%);
  }

  to {
    transform: translateY(105%);
  }
}

/* The home-screen preview (sample content) */

.home-hero__preview {
  display: flex;
  justify-content: center;
}

.home-phone {
  display: grid;
  gap: 12px;
  width: min(330px, 84vw);
  padding: 22px 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 44px;
  box-shadow: 0 0 0 8px var(--surface), 0 40px 80px rgb(0 0 0 / 55%);
  user-select: none;
}

.home-phone__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-phone__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--avatar-from), var(--avatar-to));
}

.home-phone__player {
  display: grid;
  flex: 1;
}

.home-phone__name {
  font: 600 13px/1.3 var(--text);
}

.home-phone__rank {
  font: 500 11px/1.3 var(--text);
  color: var(--muted);
}

.home-phone__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.home-phone__tile .icon {
  width: 18px;
  height: 18px;
}

.home-phone__brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-block: 30px 22px;
}

.home-phone__logo {
  --cell: 17px;
  margin-bottom: 10px;
}

.home-phone__wordmark {
  font: 700 30px/1.1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-phone__tagline {
  font-size: 12px;
  color: var(--muted);
}

.home-phone__card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.home-phone__labels {
  display: flex;
  justify-content: space-between;
}

.home-phone__label {
  font: 600 9px/1.4 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-phone__label--accent {
  color: var(--primary-text);
}

.home-phone__score {
  font: 700 24px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}

.home-phone__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 13px;
  box-shadow: var(--shadow-primary);
  font: 600 15px/1 var(--text);
}

.home-phone__play-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.home-phone__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-phone__ghost {
  display: grid;
  place-items: center;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  font: 600 14px/1 var(--text);
}

.home-phone__daily {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--amber) 33%, transparent);
  border-radius: 14px;
}

.home-phone__day {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: color-mix(in srgb, var(--amber) 13%, transparent);
  color: var(--amber);
  border-radius: 9px;
  font: 700 12px/1 var(--display);
}

.home-phone__daily-text {
  display: grid;
  flex: 1;
}

.home-phone__daily-title {
  font: 600 12px/1.3 var(--text);
}

.home-phone__daily-info {
  font-size: 10px;
  line-height: 1.3;
  color: var(--muted);
}

.home-phone__chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* Sections */

.home-section {
  padding-block: clamp(56px, 9vw, 96px);
}

.home-section--band {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  border-block: 1px solid var(--line);
}

.home-section__intro {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 36px;
}

.home-section__heading {
  font-size: clamp(28px, 4.5vw, 40px);
}

.home-section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* Modes: like the game's mode list */

.home-modes,
.home-features,
.home-accounts {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.home-modes {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.home-mode {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
}

@media (min-width: 640px) {
  .home-mode {
    flex-direction: column;
    padding: 22px;
  }
}

.home-mode__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-tile);
  background: color-mix(in srgb, var(--block-tint) 12%, transparent);
}

.home-mode__icon--i {
  --block-tint: var(--piece-i);
}

.home-mode__icon--s {
  --block-tint: var(--piece-s);
}

.home-mode__icon--z {
  --block-tint: var(--piece-z);
}

.home-mode__icon--t {
  --block-tint: var(--piece-t);
}

.home-mode__icon--o {
  --block-tint: var(--piece-o);
}

.home-mode__piece {
  --cell: 11px;
}

.home-mode__body {
  display: grid;
  gap: 4px;
}

.home-mode__title {
  font-size: 19px;
}

.home-mode__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* The game's features */

.home-features {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.home-feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.home-feature__icon,
.home-account__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--primary-text);
}

.home-feature__icon .icon,
.home-account__icon .icon {
  width: 22px;
  height: 22px;
}

.home-feature__icon {
  margin-bottom: 6px;
}

.home-feature__title,
.home-account__title {
  font-size: 19px;
}

.home-feature__text,
.home-account__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Accounts */

@media (min-width: 720px) {
  .home-accounts {
    grid-template-columns: 1fr 1fr;
  }
}

.home-account {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.home-account__body {
  display: grid;
  gap: 4px;
}

.home-accounts__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.home-accounts__note-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary-text);
}

/* Closing: where to get the app */

.home-closing {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: radial-gradient(min(560px, 90vw) 260px at 50% 0%, rgb(94 234 212 / 10%), transparent 75%), var(--surface);
  box-shadow: var(--shadow);
}

.home-closing__logo {
  --cell: 16px;
  margin-bottom: 14px;
}

.home-closing__lead {
  max-width: 48ch;
  margin-bottom: 10px;
}

.home-closing__contact {
  margin-top: 12px;
  color: var(--muted);
}

.home-closing__link {
  font-weight: 600;
}
