/* The home page (/), over site.css. */

.home h1 em {
  font-style: normal;
  color: var(--orange-text);
}

.lede {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
}

.lede strong { color: var(--ink); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 64px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
}

.platform-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-features {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-features li { position: relative; padding-left: 26px; }

.hero-features li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-features strong { color: var(--ink); }

/* An iPhone: the app's screenshot in a black bezel, with the Dynamic Island drawn over the top
   so every screenshot looks the same. */
.phone {
  position: relative;
  aspect-ratio: 644 / 1400;
  border: 9px solid #0b0b0f;
  border-radius: 46px;
  overflow: hidden;
  background: #0b0b0f;
  box-shadow: 0 0 0 1px #3a3d45, 0 30px 60px -20px rgba(15, 24, 48, 0.45);
}

.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

.phone::after {
  content: "";
  position: absolute;
  top: 1.4%;
  left: 50%;
  width: 31%;
  height: 4.1%;
  border-radius: 999px;
  background: #0b0b0f;
  transform: translateX(-50%);
}

.hero-phones {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px 0;
}

/* A blue disc behind the phone, the app icon's color. */
.hero-phones::before {
  content: "";
  position: absolute;
  width: min(460px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4d7bff, var(--blue) 70%);
}

.hero-phones .phone { width: 290px; }

/* Sections */

section { padding: 56px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards + .cards { margin-top: 16px; }

/* The two things Skipstop does better than other apps, given more room. */
.cards.primary { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.cards.primary li { padding: 32px; }
.cards.primary h3 { font-size: 24px; }
.cards.primary p { font-size: 17px; }
.cards.primary li { display: flex; flex-direction: column; }
.cards.primary .phone {
  width: min(260px, 80%);
  margin: 28px auto -120px;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}
.cards.primary li { overflow: hidden; }
.cards.primary li > p { flex: 1; }

.cards li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.cards li::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--orange);
}

.cards h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }

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

.steps li {
  position: relative;
  padding: 56px 20px 20px;
  border-top: 6px solid var(--blue);
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -21px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 6px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.steps strong { display: block; color: var(--ink); }

/* Waitlist */

.join {
  margin: 24px 0;
  padding: 48px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
}

.join > p { max-width: 40em; color: var(--muted); }

/* FAQ */

.faq details {
  max-width: 760px;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
}

.faq details p { margin: 0 0 18px; color: var(--muted); }

.city-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 18px; padding: 0; list-style: none; }
.section-lede { max-width: 40em; color: var(--muted); margin: 0 0 24px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 32px; }
  .hero-phones .phone { width: 240px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .join { padding: 28px 20px; }
}

/* The beta page (/beta), which the app's QR code opens (story #1158). */

.join h1 { margin-top: 0; }

.beta-steps { margin: 20px 0 28px; padding-left: 1.3em; max-width: 40em; }
.beta-steps li { margin-bottom: 8px; }
