/* ==========================================================================
   NoLie Labs. home.css
   Home-only layout. Everything shared lives in base.css.
     .hero            hero proportions (no action in the hero)
     .shelf           the product shelf grid (12 columns; see index.html comment)
     .product-card    a product on the shelf
     .principles      "How we build": big ruled rows
     .closing         the quiet early-access section
   ========================================================================== */


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 48px;
  overflow: hidden;
}

.hero__sub {
  max-width: 34em;
  margin-top: 28px;
}

/* The right-hand side: the app's rings, and its own sentences taking turns. */
.hero__inner {
  display: grid;
  gap: 56px;
}

.hero__visual {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: 40px 0;
}

.hero__visual .rings {
  inset: 0 -20% 0 auto;
  width: 120%;
}

.verdicts__label {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.verdicts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.verdict {
  display: grid;
  gap: 8px;
}

/* Inactive lines drop to muted (still AA on ink); the pill keeps its colour. */
.verdict p {
  max-width: 16em;
  font-weight: 700;
  font-size: clamp(22px, 19.5px + .7vw, 30px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text-muted);
  transition: color 600ms ease;
}

.verdict.is-active p {
  color: var(--text);
}

@media (min-width: 720px) {
  .hero {
    padding-top: 96px;
  }
  .hero__sub {
    margin-top: 36px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 104px;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
  }
  .hero__sub {
    margin-top: 44px;
  }
  .hero__visual {
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verdict p {
    color: var(--text);
  }
}


/* --------------------------------------------------------------------------
   Product shelf. 12 columns. Documented in index.html next to the markup.
   -------------------------------------------------------------------------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelf__item {
  grid-column: span 12;
  display: flex;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.product-card .tag {
  margin-bottom: 14px;
}

.product-card__name {
  font-weight: 700;
  font-size: clamp(22px, 20.3px + .44vw, 26px);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
}

.product-card--large .product-card__name {
  font-size: clamp(30px, 25.9px + 1.1vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.product-card__line {
  max-width: 30em;
  margin-top: 14px;
}

.product-card__empty {
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* The action sits at the foot of the card. Cards in a row share a height. */
.product-card__action {
  margin-top: 32px;
}

@media (min-width: 720px) {
  .shelf {
    gap: 20px;
  }
  .shelf__item {
    grid-column: span 6;
  }
  .shelf__item--large {
    grid-column: span 12;
  }
  .product-card__line {
    margin-bottom: 40px;
  }
  .product-card__action {
    margin-top: auto;
  }
}

@media (min-width: 1024px) {
  .shelf__item {
    grid-column: span 4;
  }
  .shelf__item--large {
    grid-column: span 8;
  }
  .product-card--large {
    min-height: 360px;
  }
}


/* --------------------------------------------------------------------------
   How we build. Big type, ruled rows, whitespace.
   -------------------------------------------------------------------------- */

.principles .row {
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 14px;
  padding-block: 40px;
}

.principles .row__rank {
  padding-top: 6px;
}

.principles .row__title {
  font-size: clamp(28px, 21.4px + 1.77vw, 44px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.principles .row__body {
  max-width: 32em;
  font-weight: 400;
  font-size: clamp(17px, 15.8px + .33vw, 20px);
  line-height: 1.45;
}

@media (min-width: 720px) {
  .principles .row {
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 16px;
    padding-block: 56px;
  }
  .principles .row__rank {
    padding-top: 10px;
  }
}

@media (min-width: 1024px) {
  .principles .row {
    grid-template-columns: 96px minmax(0, 6fr) minmax(0, 5fr);
    column-gap: 48px;
    padding-block: 64px;
  }
  .principles .row__body {
    padding-top: 8px;
  }
}


/* --------------------------------------------------------------------------
   Closing. Text left, form right on the full layout. Stacked otherwise.
   -------------------------------------------------------------------------- */

.closing__inner {
  display: grid;
  gap: 40px;
}

.closing__text {
  max-width: 640px;
}

.closing__text .lede {
  margin-top: 20px;
}

@media (min-width: 720px) {
  .closing__inner {
    gap: 48px;
  }
  .closing__text .lede {
    margin-top: 24px;
  }
}

@media (min-width: 1024px) {
  .closing__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: 64px;
    align-items: end;
  }
}
