/* Landing page. Shared tokens, fonts and footer come from styles.css. */
.home { overflow-x: clip; }
.home .wrap { max-width: 1120px; padding-top: 24px; }
.home header.site { justify-content: space-between; padding-bottom: 8px; }
.home header.site .left { display: flex; align-items: center; gap: 12px; }
.home .get { margin: 0; padding: 10px 18px; font-size: 15px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: center;
  padding: 56px 0 40px;
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.032em;
  margin: 0 0 24px;
  max-width: 9.5em;
}
.hero .lead { font-size: 19px; line-height: 1.55; max-width: 34em; margin: 0 0 36px; color: #c9c6bf; }

/* The three steps, synced with the phone. */
.steps { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 4px; max-width: 32em; }
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.steps .n {
  grid-row: span 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  border: 1.5px solid var(--line);
  color: var(--muted);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.steps b { display: block; font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; line-height: 1.35; }
.steps span.d { font-size: 15px; line-height: 1.5; }
.steps li.on { background: var(--surface); border-color: var(--line); color: #c9c6bf; }
.steps li.on .n { background: var(--tag); border-color: var(--tag); color: var(--onyx); }

.store { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.store svg { width: 20px; height: 20px; }
.note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Phone */
.stage { position: relative; justify-self: center; width: 320px; }
.glow {
  position: absolute; inset: 12% -30% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 210, 63, .22), rgba(255, 210, 63, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  width: 320px; aspect-ratio: 1179 / 2556;
  border-radius: 52px;
  padding: 10px;
  background: #1d1d22;
  box-shadow: 0 0 0 1px #34343c, 0 40px 90px rgba(0, 0, 0, .65);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--onyx); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.screen img.on { opacity: 1; }

/* An iOS style notification that drops in over the phone when the draft is ready. */
.notif {
  position: absolute; z-index: 2; top: 44px; left: -18px; right: -18px;
  display: grid; grid-template-columns: 38px 1fr auto; column-gap: 11px; align-items: center;
  padding: 11px 14px 12px 11px;
  border-radius: 22px;
  background: rgba(44, 44, 50, .78);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 22px 50px rgba(0, 0, 0, .55);
  transform: translateY(-36px) scale(.96);
  opacity: 0;
  transition: transform .55s cubic-bezier(.2, 1.3, .4, 1), opacity .3s ease;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; grid-row: span 2; }
.notif b { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--text); letter-spacing: -0.01em; }
.notif time { font-size: 12px; color: rgba(245, 243, 238, .55); align-self: start; }
.notif span { grid-column: 2 / 4; font-size: 13.5px; line-height: 1.3; color: rgba(245, 243, 238, .82); }
.notif.on { transform: none; opacity: 1; }

/* Why section */
.why { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 48px; }
.why h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 32px; max-width: 14em; }
.why dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin: 0; }
.why dt { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--text); }
.why dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 30em; }

.home footer.site { margin-top: 72px; }
.home footer.site .fine { flex-basis: 100%; font-size: 13px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--tag); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .stage { order: 2; }
  .why dl { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .stage, .phone { width: 260px; }
  .phone { border-radius: 44px; padding: 8px; }
  .screen { border-radius: 36px; }
  .glow { inset: 12% -15% 0; }
  .notif { top: 36px; left: -10px; right: -10px; grid-template-columns: 32px 1fr auto; padding: 9px 12px 10px 9px; }
  .notif img { width: 32px; height: 32px; border-radius: 8px; }
  .notif b { font-size: 13px; }
  .notif span { font-size: 12.5px; }
  .home .get { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen img, .notif, .steps li, .steps .n { transition: none; }
}
