:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17291d;
  background: #f8faf3;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 620px 420px at 50% 0, rgb(202 255 112 / 0.42), transparent 76%),
    linear-gradient(180deg, #fbfcf7 0%, #f4f8e9 60%, #fbfcf7 100%);
}

.page-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 16px 42px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 22px;
}

.hero {
  padding: 4px 4px 24px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #28583b;
  font-size: clamp(2rem, 9vw, 2.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero p {
  margin: 10px 0 0;
  color: #62725e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  display: flex;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid rgb(69 104 46 / 0.14);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.88);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgb(47 77 31 / 0.05);
}

a.step-card { transition: transform 150ms ease, filter 150ms ease; }
a.step-card:active { transform: scale(0.985); filter: brightness(1.02); }
a.step-card:focus-visible { outline: 3px solid rgb(103 173 25 / 0.4); outline-offset: 3px; }

.step-number {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe8cd;
  border-radius: 50%;
  background: #edf5e5;
  color: #31533d;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-heading {
  margin: 0;
  color: #17291d;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

.step-copy {
  margin: -7px 0 0;
  color: #62705f;
  font-size: 0.875rem;
  line-height: 1.5;
}

.testflight-row,
.install-preview {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.action-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(100deg, #315b3f 0%, #a8ec14 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

.chevron { font-size: 1.375rem; }
.referral-step { padding-block: 22px; }
.referral-step .step-copy { margin-top: -5px; }

@media (max-width: 360px) {
  .page-shell { padding-inline: 12px; }
  .step-card { gap: 10px; padding: 16px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  a.step-card { transition: none; }
}
