:root {
  --bg: #FFFFFF;
  --ink: #161823;
  --ink-2: #57585F;
  --muted: #8A8B91;
  --line: #EDEDEF;
  --panel: #F6F6F7;
  --coral: #EA4359;
  --coral-2: #D8334A;
  --teal: #8BDDD8;
  --teal-2: #63C9C2;
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  line-height: 1.4;
}
.wrap {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 18px calc(56px + var(--safe-b));
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: clamp(28px, 7.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 10px;
  text-align: center;
  text-wrap: balance;
}
h1 .amt {
  color: var(--coral);
  white-space: nowrap;
}
.lede {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--ink-2);
  text-align: center;
  text-wrap: pretty;
}
.lede a { color: var(--coral); font-weight: 600; text-decoration: none; }

.card {
  position: relative;
  aspect-ratio: 1.66 / 1;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(145deg, var(--teal) 0%, var(--teal-2) 100%);
  box-shadow: 0 16px 32px -20px rgba(22,24,35,.45);
  display: flex; flex-direction: column; justify-content: space-between;
  isolation: isolate;
  animation: float 5s ease-in-out infinite;
}
.card::after {
  content: ""; position: absolute; inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: sweep 3.8s ease-in-out 0.6s infinite;
  z-index: -1;
}
.confetti {
  position: absolute; right: 10px; top: 50%;
  width: 36%; max-width: 150px; height: auto;
  transform: translateY(-54%);
  z-index: -1;
  animation: bob 4s ease-in-out infinite;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-badge {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--coral); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.card-amt {
  font-size: clamp(64px, 20vw, 84px);
  font-weight: 800; letter-spacing: -0.04em; line-height: .9;
  font-variant-numeric: tabular-nums;
}
.card-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.card-sub { font-size: 15px; font-weight: 700; }
.chip {
  width: 40px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  position: relative; flex: none;
}
.chip::after { content: ""; position: absolute; inset: 8px 6px; border: 1.5px solid var(--ink); border-radius: 3px; }

.how { margin-top: 24px; }
.how h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li {
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px;
  background: var(--panel); border-radius: 12px; padding: 12px 14px;
  font-size: 15.5px; color: var(--ink-2);
}
.steps li b { color: var(--ink); font-weight: 600; }
.num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}

.cta-bar { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cta {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 60px; border-radius: 10px;
  background: var(--coral);
  color: #fff; text-decoration: none;
  font-size: 19px; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(234,67,89,.5);
  animation: pulse 2.2s ease-out infinite;
  transition: transform .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:active { transform: scale(.985); background: var(--coral-2); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--coral); font-size: 18px; font-weight: 800;
  animation: nudge 1.4s ease-in-out infinite;
}

@keyframes sweep { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bob { 0%, 100% { transform: translateY(-54%) rotate(0deg); } 50% { transform: translateY(-58%) rotate(-3deg); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(234,67,89,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(234,67,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(234,67,89,0); }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card::after, .confetti, .arrow, .cta { animation: none; }
}
@media (min-width: 700px) {
  .wrap { justify-content: center; padding-block: 40px; }
  .content { flex: none; }
}

@media (max-height: 720px) {
  .wrap { padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: calc(20px + var(--safe-b)); }
  .lede { margin-bottom: 14px; }
  .card { aspect-ratio: 2.05 / 1; padding: 14px 18px; }
  .card-amt { font-size: clamp(54px, 16vw, 68px); }
  .confetti { width: 30%; }
  .how { margin-top: 14px; }
  .steps li { padding: 9px 12px; }
  .cta-bar { margin-top: 16px; padding-top: 14px; }
}
