/* One 390 × 844 device blueprint, scaled as a whole for every full phone. */
.phone-stage {
  position: relative;
  width: 390px;
  max-width: 100%;
  aspect-ratio: 390/844;
}
.phone-stage > .iphone-device {
  position: absolute;
  inset: 0 auto auto 0;
  width: 390px;
  height: 844px;
  min-height: 0;
  padding: 6px;
  margin: 0;
  border: 2px solid #193824;
  border-radius: 46px;
  background: #25412c;
  color: var(--forest);
  transform: scale(var(--phone-scale, 1));
  transform-origin: top left;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px #ffffff24,
    0 22px 40px -22px #14301d66,
    5px 4px 0 -1px #1d3f2814;
}
.iphone-device .iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 37px;
  overflow: hidden;
  background: var(--cream);
}
.iphone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 41px;
  padding: 0 23px;
  font: 600 11px/1 var(--font-sans);
}
.iphone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 100px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #111c15;
  box-shadow: inset 0 0 0 1px #0006;
}
.iphone-island::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #35444e, #12202a 55%, #0b1114);
}
.iphone-device .iphone-status-icons {
  display: block;
  width: 53px;
  height: 15px;
}
.iphone-brand {
  display: flex;
  align-items: center;
  min-height: 48px;
  flex: none;
  padding: 9px 18px 12px;
  border-bottom: 1px solid #e5e3d5;
}
.iphone-device .phone-wordmark {
  display: block;
  width: 87px;
  height: auto;
}
.iphone-content {
  flex: 1;
  min-height: 0;
  padding: 15px 14px;
  overflow-y: auto;
  scrollbar-width: none;
}
.iphone-content::-webkit-scrollbar {
  display: none;
}
.iphone-device .app-dock {
  position: relative;
  z-index: 9;
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 7px 7px 5px;
  min-height: 58px;
  background: #fffefc;
  border-top: 1px solid #e5e3d5;
  box-shadow: 0 -4px 16px #14301d08;
}
.iphone-device .app-destination i {
  width: 43px;
  height: 28px;
}
.iphone-device .app-destination small {
  font-size: 10px;
}
.iphone-device .app-destination .app-icon {
  width: 20px;
  height: 20px;
}
.iphone-home-indicator {
  position: relative;
  flex: none;
  height: 15px;
  background: #fffefc;
}
.iphone-home-indicator::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 4px;
  border-radius: 99px;
  background: #173320;
}
.iphone-device .phone-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.iphone-device .app-reveal {
  margin: 0;
}
.iphone-device .app-reveal .app-party {
  display: block;
  width: 23px;
  height: 23px;
  margin-bottom: 5px;
  color: #497555;
}
.iphone-device .app-reveal > strong {
  display: block;
  margin: 0 0 4px;
  font: 600 28px/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.iphone-device .app-reveal > h3 {
  font: 600 22px/1.15 var(--font-display);
  letter-spacing: -0.015em;
  margin: 0;
}
.phone-reward-group {
  display: grid;
  gap: 13px;
  border: 2px solid var(--forest);
  border-radius: 16px;
  padding: 16px;
  background: #faf5ea;
}
.phone-offers {
  display: grid;
  gap: 12px;
}
.phone-offer {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e3e0cf;
  border-radius: 14px;
  background: #fffefc;
}
.phone-offer-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 23px;
  margin-bottom: 8px;
}
.phone-business {
  min-width: 0;
  color: #376745;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.phone-badge {
  display: inline-block;
  flex: none;
  padding: 3px 8px;
  border-radius: 99px;
  background: linear-gradient(165deg, #45634a, #1d3f28 55%, #193723);
  box-shadow:
    inset 0 1px 1px #ffffff60,
    0 2px 0 #14301d,
    0 3px 6px #14301d24;
  color: var(--lime);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
}
.phone-badge.is-new {
  background: linear-gradient(165deg, #ff9b7c, var(--clem) 55%, #e25f3c);
  color: var(--bark);
  box-shadow:
    inset 0 1px 1px #fff9,
    0 2px 0 #ba593c,
    0 3px 6px #14301d24;
}
.phone-offer h4 {
  margin: 0;
  font: 600 24px/1.14 var(--font-display);
  letter-spacing: -0.015em;
}
/* The marketing previews show no dated offer; each real reward shows its own deadline. */
.phone-offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}
.phone-save,
.phone-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #a6cbae;
  border-radius: 8px;
  background: transparent;
  color: #215332;
  font: 600 13px/1.2 var(--font-sans);
  text-decoration: none;
}
.phone-save {
  justify-content: space-between;
  border-color: var(--clem);
  background: var(--clem);
  color: var(--bark);
}
.phone-save > span {
  font-size: 19px;
  line-height: 1;
}
button.phone-save:hover:not(:disabled) {
  background: #ff805e;
}
button.phone-swap:hover:not(:disabled) {
  background: #f7f0e0;
}
.iphone-device button:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.iphone-device button:disabled {
  opacity: 0.55;
}
.iphone-device .phone-swap .phone-icon {
  width: 16px;
  height: 16px;
}
.phone-swaps-left {
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}
.phone-reward-status {
  margin: 0;
  font-size: 11px;
  color: #376745;
  text-align: center;
  line-height: 1.35;
}
.phone-reward-status:empty {
  display: none;
}
.phone-wallet-heading {
  margin: 4px 3px 20px;
  font: 600 29px/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.phone-loyalty-stack {
  display: grid;
  gap: 16px;
}
.phone-loyalty {
  padding: 20px;
  border-radius: 15px;
  background: var(--forest);
  color: #fff8e8;
}
.phone-loyalty.is-olive {
  background: #596b46;
}
.phone-loyalty h4 {
  margin: 0;
  font: 500 25px/1.15 var(--font-display);
  letter-spacing: -0.015em;
}
.phone-loyalty > p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #d6e2ce;
  line-height: 1.45;
}
.phone-loyalty-stamps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.phone-stamp {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed #a7c7ab;
  border-radius: 50%;
  color: #bfd6b4;
  font: 28px/1 var(--font-sans);
}
.phone-stamp.is-filled {
  border: 0;
}
.iphone-device .phone-stamp svg {
  display: block;
  width: 42px;
  height: 42px;
  fill: var(--clem);
  stroke: white;
  stroke-width: 6px;
}
.phone-loyalty-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid #ffffff25;
  font-size: 10px;
  color: #d6e2ce;
}
.phone-loyalty-progress b {
  font-weight: 600;
  color: #fff8e8;
}
.phone-saved-state {
  padding: 30px 15px;
  border: 2px solid var(--forest);
  border-radius: 16px;
  background: #faf5ea;
}
.phone-saved-state > .phone-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: #519766;
}
.phone-saved-state h3 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.phone-saved-state p {
  font-size: 14px;
  margin: 12px 0 24px;
  color: #66846d;
}
.phone-saved-state .phone-save {
  width: 100%;
  justify-content: center;
}
.phone-rewards-state > h3 {
  margin-bottom: 20px;
  font-size: 28px;
}
.phone-saved-reward {
  display: flex;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefc;
}
.phone-saved-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f0eb;
  font: 600 22px var(--font-display);
}
.phone-saved-reward small {
  color: #376745;
  font-size: 9px;
}
.phone-saved-reward h4 {
  margin: 8px 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.phone-back {
  margin-top: 20px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  font-size: 13px;
}
.hero-art.phone-showcase {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
.phone-showcase .hero-reward-stage {
  width: 350px;
  margin: 0 auto;
}
.phone-showcase .hero-wallet-stage {
  display: none;
}
.hero-figure {
  padding: 0;
  align-self: center;
}
.hero-orbit {
  inset: 9% 11%;
}
.main-reward-stage {
  justify-self: center;
}
#how-title {
  max-width: 830px;
  font-size: 46px;
  line-height: 1.08;
}
.iphone-screen .reward-confetti {
  border-radius: inherit;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .phone-showcase .hero-reward-stage {
    width: 330px;
  }
  #how-title {
    font-size: 41px;
    max-width: 730px;
  }
}
@media (max-width: 760px) {
  .phone-showcase .hero-reward-stage {
    display: none;
  }
  .phone-showcase .hero-wallet-stage {
    display: block;
    width: 330px;
    margin: 0 auto;
  }
  /* One complete stamp card at the same scale, with the dock right below it:
     6 + 2 frame, 41 status bar, 48 wordmark, 288 cards (15 + 4 + 33 + 20 +
     201 + 15), 60 dock and 15 home indicator, then 6 + 2 frame again. */
  .phone-showcase .hero-wallet-stage {
    aspect-ratio: 390 / 468;
  }
  .hero-wallet-stage > .iphone-device {
    height: 468px;
  }
  .hero-wallet-stage .phone-loyalty + .phone-loyalty {
    display: none;
  }
  .hero-figure {
    width: 100%;
    padding: 8px 0 0;
  }
  #how-title {
    font-size: 33px;
    line-height: 1.1;
    max-width: 440px;
  }
}
@media (max-width: 370px) {
  #how-title {
    font-size: 30px;
  }
}
