/* andAndrea — post-purchase install gate. One job: get the app onto the
 * buyer's home screen. Giant type, one step at a time, phone-first. */

html:has(body.gate-body) { height: auto; }
body.gate-body {
  height: auto;
  min-height: 100dvh;
  /* Paper underneath the wash, not just the wash — a gradient that fades to
     transparent otherwise lets the browser canvas show through. */
  background: linear-gradient(180deg, rgba(218, 24, 132, 0.07) 0%, rgba(218, 24, 132, 0) 40%), var(--paper);
}

.gate {
  max-width: 480px;
  margin: 0 auto;
  padding: max(1.6rem, env(safe-area-inset-top)) 1.25rem calc(2.5rem + env(safe-area-inset-bottom));
}

/* Cheat strip: fixed to the top of the screen so the step order stays
   visible above the iOS share sheet / Android browser menu, which cover the
   rest of the page mid-install. */
.gate-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: var(--magenta);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 0.5rem) 0.5rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.strip-chip b {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
}
.strip-chip.on {
  background: #fff;
  color: var(--magenta);
  transform: scale(1.07);
}
.strip-chip.on b { background: var(--magenta); color: #fff; }
.strip-icon { width: 1em; height: 1em; vertical-align: -0.12em; }
.strip-arrow { opacity: 0.75; font-weight: 400; }
body.has-strip .gate { padding-top: calc(3.6rem + env(safe-area-inset-top)); }
/* Narrow phones: keep all three chips fully on screen. */
@media (max-width: 400px) {
  .gate-strip { gap: 0.2rem; font-size: 0.74rem; padding-left: 0.3rem; padding-right: 0.3rem; }
  .strip-chip { padding: 0.26rem 0.45rem; gap: 0.22rem; }
  .strip-chip b { width: 1rem; height: 1rem; font-size: 0.66rem; }
}

.gate-hero { text-align: center; padding-bottom: 1.2rem; }
.gate-avatar { border-radius: 50%; }
.gate-hero h1 {
  font-size: clamp(1.7rem, 7.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0.7rem 0 0.3rem;
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 65, 'WONK' 1;
  font-weight: 900;
}
.gate-sub { font-size: 1.05rem; color: var(--muted); margin: 0; line-height: 1.5; }

.gate-card {
  background: var(--paper);
  border: 1px solid rgba(127, 127, 127, 0.22);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 1.4rem 1.2rem;
}

.gate-why { font-size: 1.05rem; line-height: 1.55; margin: 0 0 1rem; }

.gate-steps { list-style: none; margin: 0; padding: 0; }
.gate-steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
}
.gate-steps li + li { border-top: 1px solid rgba(127, 127, 127, 0.16); }
.gate-n {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}
.gate-step-text { font-size: 1.12rem; line-height: 1.5; padding-top: 0.35rem; }
.gate-small { font-size: 0.9rem; color: var(--muted); }
.gate-icon {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.35em;
  margin-left: 0.2em;
}
.gate-mini-icon {
  width: 1.6em;
  height: 1.6em;
  border-radius: 22%;
  vertical-align: -0.45em;
  margin-left: 0.15em;
}

.gate-hint { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin: 1rem 0 0; }

.gate-copy { width: 100%; margin-top: 1rem; font-size: 0.92rem; min-height: 46px; }
.gate-install { width: 100%; margin-bottom: 1rem; }

.gate-qr { display: flex; justify-content: center; padding: 0.6rem 0; }
.gate-qr svg, .gate-qr img { width: 220px; height: 220px; }

.gate-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1.4rem 0 0;
}
