/* Sections below the hero, then every small-screen rule for the page. */

.section {
  padding-top: 112px;
}

.head {
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

.head h2,
.dark-copy h2 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.head p {
  margin-top: 14px;
  color: var(--pencil);
  font-size: 17px;
}

.legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Two or four panels sit as a 2 x 2 instead of leaving a row of three half empty. */
@media (min-width: 881px) {
  .legend:has(> :nth-child(2):last-child),
  .legend:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legend .panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.legend .panel p:last-child {
  color: var(--pencil);
}

.legend .mono {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.legend .mono .sticker {
  font-size: 10px;
  padding: 1px 7px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.plan,
.price-card {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 32px;
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan h3,
.price-card h3 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.plan .tag {
  background: var(--paper);
  color: var(--pencil);
}

.card.butter {
  background: var(--butter);
  color: var(--on-pastel);
}

.card.violet {
  background: var(--violet);
  color: #fff;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  flex: none;
  margin-top: 3px;
}

.dark-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 48px 56px 24px;
  border-radius: var(--radius);
  background: #1e221c;
  color: #e2ead9;
  overflow: hidden;
}

.dark-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-bottom: 24px;
}

.dark-copy p {
  max-width: 40ch;
  font-size: 17px;
  color: #9aa391;
}

.dark-card .tag {
  background: rgb(255 255 255 / 0.08);
  color: #e2ead9;
}

.dark-card .bar {
  color: #a898ff;
}

.dark-card .watch {
  justify-self: center;
  margin-bottom: -80px;
}

.price {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.price span {
  margin-left: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.price-body {
  min-height: 3.2em;
  opacity: 0.8;
}

.price-card form,
.price-card .btn {
  width: 100%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
}

.step-number {
  font: 700 40px/1 var(--mono);
  font-stretch: 112.5%;
  letter-spacing: -0.06em;
  color: var(--stamp);
}

.step h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 750;
}

.step p {
  color: var(--pencil);
}

.devices {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.devices ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* .tag text is --on-pastel (always dark); the card is dark in dark mode, so set the ink too. */
.devices .tag {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  padding: 8px 14px;
}

.narrow-faq {
  max-width: 760px;
}

.faq {
  padding: 8px 28px;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 650;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font: 500 18px/1 var(--mono);
  color: var(--pencil);
  transition: rotate 0.2s var(--ease);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  max-width: 60ch;
  padding-bottom: 22px;
  color: var(--pencil);
}

/* Smaller screens */

@media (max-width: 1180px) {
  .objs {
    display: none;
  }
}

@media (max-width: 880px) {
  .legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .dark-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 28px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .lede {
    font-size: 17px;
  }

  .section {
    padding-top: 88px;
  }

  .pair,
  .legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend .panel {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
  }

  .legend .panel .legend-icon {
    grid-row: span 2;
  }

  .legend .mono {
    margin-top: 0;
  }

  .ctas .btn,
  .ctas form {
    width: 100%;
  }

  .plan,
  .price-card {
    padding: 24px;
  }

  .faq {
    padding: 4px 20px;
  }

  .hero h1 .stuck > .sticker {
    font-size: 11px;
    transform: translateX(2px) rotate(9deg);
  }

  .dark-card .watch {
    width: 240px;
    margin-top: -48px;
  }
}

/* The index: one card per released face. */

/* Centered wrap: three columns on desktop, so five cards read 3 + 2 with the last row centered. */
.face-grid {
  --face-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--face-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.face-grid > li {
  display: flex;
  flex: 0 0 calc((100% - 2 * var(--face-gap)) / 3);
}

.face-card {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.face-card:hover {
  box-shadow:
    0 1px 0 rgb(30 34 28 / 0.04),
    0 20px 40px -18px rgb(30 34 28 / 0.28);
}

.face-card:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.face-card img {
  width: 70%;
  max-width: 240px;
  height: auto;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
}

.face-card h2 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.face-card p {
  color: var(--pencil);
}

/* The studio nav has no face links, so the Find your key button takes the right edge. */
.nav-studio .btn {
  margin-left: auto;
}

@media (max-width: 880px) {
  .face-grid > li {
    flex-basis: calc((100% - var(--face-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .face-grid > li {
    flex-basis: 100%;
  }
}

.face-price {
  font: 500 13px/1.4 var(--mono);
  color: var(--stamp);
}
