:root {
  color-scheme: light;
  --purple: #7535d5;
  --text: #292d34;
  --muted: #747d92;
  --line: #c6cbd5;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: #e9ebef;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(130% 44% at 3% 76%, #fff 0 57%, transparent 58%),
    linear-gradient(135deg, #f5f6f8 0%, #f9fafb 62%, #f0f2f5 100%);
}

.top-curve {
  position: absolute;
  z-index: 0;
  top: -270px;
  right: -120px;
  width: 760px;
  height: 570px;
  border-radius: 0 0 50% 50%;
  background: #fff;
  transform: rotate(-8deg);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-top: clamp(54px, 8.4vh, 72px);
  white-space: nowrap;
}

.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand--tom { gap: 2px; letter-spacing: -2px; }
.tom { color: var(--purple); font-size: 27px; font-weight: 900; }
.diamond { display: inline-block; margin-left: 1px; font-size: 13px; vertical-align: 5px; }
.bank { color: #030303; font-size: 27px; font-weight: 700; }
.brand-divider { width: 1.5px; height: 34px; background: #111; }

.brand--hadi {
  position: relative;
  padding-bottom: 4px;
  color: var(--purple);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -2px;
}

.hadi-smile {
  position: absolute;
  left: 23px;
  bottom: -5px;
  width: 17px;
  height: 9px;
  border-bottom: 5px solid var(--purple);
  border-radius: 0 0 18px 18px;
  transform: rotate(-7deg);
}

.welcome {
  position: relative;
  z-index: 1;
  padding: clamp(180px, 31vh, 278px) 32px 0;
}

.welcome h1 {
  margin: 0;
  color: #30343b;
  font-size: clamp(31px, 7.2vw, 38px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -1.6px;
}

.wave {
  display: inline-block;
  margin-left: 4px;
  font-size: 30px;
  transform: rotate(-8deg);
  transform-origin: 70% 70%;
  animation: wave 1.8s ease-in-out .45s 2;
}

@keyframes wave {
  0%, 100% { transform: rotate(-8deg); }
  40% { transform: rotate(15deg); }
  70% { transform: rotate(-15deg); }
}

.welcome > p {
  max-width: 370px;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: clamp(17px, 4vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.45px;
}

.phone-form { margin-top: 12px; }

.phone-control {
  display: flex;
  align-items: center;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.phone-control:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(117,53,213,.12);
}

.phone-control.has-error { border-color: #d94164; }

.phone-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 6px 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #555e70;
  caret-color: var(--purple);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .6px;
}

.phone-control input::placeholder { color: #727b90; opacity: 1; }

.continue-button {
  display: grid;
  flex: 0 0 54px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  place-items: center;
  transition: transform 150ms ease, color 150ms ease;
}

.continue-button:disabled { color: #dcdde1; cursor: default; }
.continue-button:not(:disabled):active { transform: translateX(3px); }
.continue-button svg { width: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.phone-error { min-height: 15px; margin: 5px 2px 0; color: #c32b4b; font-size: 12px; }

.number-changed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--purple);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.number-changed svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.campaigns {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(56px, 7.3vh, 72px);
  left: 0;
}

.campaign-track {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 0 8px 32px;
  scroll-padding-left: 32px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.campaign-track::-webkit-scrollbar { display: none; }

.campaign-card {
  position: relative;
  flex: 0 0 116px;
  height: 140px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  outline: none;
  scroll-snap-align: start;
}

.campaign-card:focus-visible { box-shadow: 0 0 0 3px rgba(117,53,213,.28); }

.campaign-card--club {
  padding: 22px 4px 7px;
  border-color: #f3c534;
  background: linear-gradient(135deg,#5713bc 0%,#7d19d1 48%,#a919b0 100%);
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
  text-align: center;
}

.campaign-card--club::before {
  position: absolute;
  inset: -20% 28% -20% auto;
  width: 16px;
  background: rgba(255,255,255,.14);
  content: "";
  transform: rotate(18deg);
}

.card-kicker { position: relative; display: block; font-size: 12px; font-weight: 800; }
.campaign-card--club strong { position: relative; display: block; margin-top: 5px; font-size: 13px; font-weight: 900; line-height: .94; text-shadow: 0 1px 1px rgba(0,0,0,.22); }
.campaign-card--club em { display: block; margin-bottom: 8px; color: #aaff00; font-size: 14px; font-style: normal; line-height: 1; }

.favorite {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #df2b78;
  color: #fff;
  font-size: 15px;
  place-items: center;
}

.coin { position: absolute; color: #d8a914; font-size: 14px; text-shadow: 1px 1px #7c4c00; }
.coin--one { left: 25px; bottom: 34px; transform: rotate(24deg); }
.coin--two { right: 22px; bottom: 45px; transform: rotate(-18deg); }

.campaign-card--pegasus {
  border-color: #f0be2f;
  background: #eddcff;
  box-shadow: inset 0 0 0 2px #fff;
  text-align: center;
}

.campaign-card--pegasus:nth-child(3) { border-color: #dfa52b #e23cae #e23cae #dfa52b; }
.pegasus-logo { position: relative; z-index: 3; display: block; margin-top: 17px; color: #dc001b; font-family: Georgia,serif; font-size: 16px; font-style: italic; font-weight: 900; letter-spacing: -1px; line-height: .7; }
.pegasus-logo small { display: block; margin: 5px 17px 0 0; color: #292929; font-family: Arial,sans-serif; font-size: 6px; font-style: italic; font-weight: 700; text-align: right; }
.new-customer { position: absolute; z-index: 3; top: 49px; left: 18px; padding: 1px 8px; border-radius: 10px; background: #8e21d7; color: #fff; font-size: 6px; }

.brush {
  position: absolute;
  z-index: 1;
  top: 57px;
  right: -4px;
  left: -4px;
  height: 48px;
  background: #0da65a;
  clip-path: polygon(0 12%,7% 7%,4% 18%,15% 12%,11% 23%,100% 13%,96% 30%,100% 34%,97% 43%,100% 48%,96% 60%,100% 66%,96% 77%,100% 88%,86% 84%,91% 95%,4% 87%,8% 75%,0 79%,4% 64%,0 60%,5% 47%,0 42%,6% 30%);
  transform: rotate(-1deg);
}

.brush--lower, .discount--lower { top: 61px; }

.discount {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 17px;
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(0,95,52,.45);
  transform: rotate(-2deg);
}

.discount sup { font-size: 22px; letter-spacing: -2px; }
.discount small { margin-left: 2px; font-size: 5px; letter-spacing: 0; }
.card-note { position: absolute; z-index: 3; right: 2px; bottom: 21px; left: 2px; color: #111; font-size: 6px; font-weight: 800; }

.campaign-card--purple {
  padding: 22px 8px;
  border-color: #f0ba2c #df35ae #df35ae #f0ba2c;
  background: linear-gradient(145deg,#f0e2ff,#c78aff);
  color: #5911b9;
  text-align: center;
}

.campaign-card--purple strong, .campaign-card--purple em, .campaign-card--purple b { display: block; }
.campaign-card--purple em { margin-top: 8px; font-size: 14px; }
.campaign-card--purple b { font-size: 36px; line-height: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-height: 700px) {
  .brand-row { padding-top: 38px; }
  .welcome { padding-top: 130px; }
  .campaigns { position: relative; margin-top: 88px; padding-bottom: 28px; }
}

@media (min-width: 481px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100svh - 48px); border-radius: 28px; box-shadow: 0 18px 60px rgba(29,33,41,.14); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
