/* The landing page's sections: features with phones, friends, sign-in, the closing eye, the footer. */

.feature, .friends, .trust, .closing { margin-top: clamp(5.5rem, 15vw, 10rem); }

.landing h2 + .pitch { margin: 1.25rem 0 0; }
.pitch + p { margin: 1rem 0 0; }

/* A feature: words, then one phone or two. */
.feature { display: grid; gap: 3.25rem; }
.feature .solo { justify-self: center; --phone: min(70vw, 19rem); }

/* Two phones, the second a step down and half behind the first. */
.duo {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  max-width: 30rem;
  margin-inline: calc(var(--gutter) * -.25);
  padding-bottom: 1rem;
}
.duo .shot { --phone: auto; grid-row: 1; }
.duo .shot:first-child { grid-column: 1 / span 13; z-index: 1; }
.duo .shot:last-child { grid-column: 12 / span 13; margin-top: 30%; }
.duo .shot::before { inset: -4% -22%; }
.duo .phone::after { content: none; }

/* Friends: no capture yet, so a small legend of the states a friend's row can show, in the app's own colours. */
.friends {
  padding: clamp(2rem, 6vw, 4rem) 0;
  border-block: 1px solid var(--line);
}
.friends-copy { max-width: 40rem; }
.presence {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.presence li {
  --state: var(--muted);
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.3;
}
.presence li::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  background: color-mix(in srgb, var(--state) var(--state-mix), #0F1419);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.presence li:last-child { color: var(--muted); }

/* Sign-in: one statement, three plain lines. */
.trust h2 { max-width: 15em; }
.trust ul { max-width: 40rem; margin: 2.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.trust li {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.45;
}
.trust li::before { content: "//"; flex: none; color: var(--red-display); font-weight: 700; font-style: italic; }
.trust ul + p { margin: 1.5rem 0 0; }

/* Closing: the icon's eye, at size. */
.closing { display: grid; justify-items: start; }
.eye { display: block; width: min(64vw, 22rem); height: auto; }
.eye-lid { fill: var(--ink); }
.eye-ground { fill: var(--page); }
.eye-pupil { fill: var(--red); }
.closing h2 { margin-top: 2.25rem; }
.closing .get { margin-top: 2.25rem; }

.landing footer { margin-top: clamp(4.5rem, 12vw, 7.5rem); }

@media (min-width: 60rem) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
  .feature.flip .feature-copy { order: 2; }
  .feature .solo { --phone: 19rem; justify-self: center; }
  .duo { margin-inline: 0; max-width: 31rem; justify-self: end; width: 100%; }
  .feature.flip .duo { justify-self: start; }

  .trust { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 4rem; align-items: start; }
  .trust h2 { grid-row: span 2; }
  .trust ul { margin-top: .5rem; }

  .closing { grid-template-columns: auto minmax(0, 1fr); column-gap: 4.5rem; align-items: center; }
  .eye { grid-row: span 2; width: 27rem; }
  .closing h2 { margin-top: 0; align-self: end; }
  .closing .get { align-self: start; }
}
