:root {
  --blue: #4da5ee;
  --blue-dark: #237dc7;
  --blue-soft: #dff1ff;
  --ink: #1e2430;
  --muted: #687184;
  --line: #d7dde8;
  --panel: #ffffff;
  --wash: #f7fbff;
  --success: #1f9d63;
  --danger: #df4a4a;
  --shadow: 0 18px 45px rgba(36, 67, 104, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
    linear-gradient(90deg, rgba(70, 163, 236, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(70, 163, 236, 0.06) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
  min-height: 100vh;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 4px 24px rgba(35, 68, 105, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
}

.brand:hover {
  text-decoration: none;
}

.brand.centered {
  justify-content: center;
  margin-bottom: 22px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(49, 92, 134, 0.12);
}

.top-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: #3b4555;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-weight: 850;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(77, 165, 238, 0.25);
}

.button:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.button.secondary {
  background: #eef5fc;
  color: var(--blue-dark);
  box-shadow: none;
}

.hero-shell {
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 470px);
  align-items: center;
  gap: clamp(30px, 8vw, 120px);
  padding: 54px clamp(22px, 8vw, 140px) 34px;
  position: relative;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(105deg, rgba(209, 239, 255, 0.85), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 0, 74% 100%, 0% 100%);
  z-index: -1;
}

.reward-illustration {
  position: relative;
  min-height: 360px;
}

.bubble-large {
  width: min(520px, 90%);
  height: 270px;
  background: #afe0ff;
  border-radius: 52% 48% 50% 45%;
  position: absolute;
  left: 0;
  top: 58px;
}

.phone {
  position: absolute;
  left: min(285px, 50%);
  top: 42px;
  width: 92px;
  height: 238px;
  background: #293460;
  border-radius: 12px;
  padding: 13px 10px;
  box-shadow: 0 12px 30px rgba(31, 48, 92, 0.22);
}

.phone-camera {
  width: 6px;
  height: 6px;
  margin: -6px auto 5px;
  border-radius: 50%;
  background: #f5f8ff;
}

.phone-screen {
  position: relative;
  height: 210px;
  background: #eff6ff;
  border-radius: 5px;
  overflow: hidden;
}

.person {
  position: absolute;
  background: #ff9b70;
  border-radius: 42px 42px 12px 12px;
}

.person::before {
  content: "";
  position: absolute;
  width: 44px;
  height: 24px;
  background: #2d3c82;
  border-radius: 50% 50% 30% 30%;
  top: -20px;
  left: 15px;
}

.person-one {
  width: 62px;
  height: 122px;
  left: 8px;
  top: 86px;
}

.person-two {
  width: 92px;
  height: 138px;
  left: min(420px, 68%);
  top: 132px;
  background: #cf45b4;
}

.person-two::before {
  width: 88px;
  height: 74px;
  background: #2f3c79;
  top: -49px;
  left: -8px;
}

.coins {
  position: absolute;
  display: flex;
  left: 42px;
  bottom: -11px;
}

.coins span {
  width: 42px;
  height: 42px;
  margin-left: -7px;
  display: grid;
  place-items: center;
  background: #ffd33f;
  color: #fff;
  border-radius: 50%;
  font-size: 25px;
}

.shopping-bag {
  position: absolute;
  width: 50px;
  height: 62px;
  border-radius: 7px;
}

.shopping-bag::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -12px;
  width: 22px;
  height: 20px;
  border: 5px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.bag-one {
  left: min(394px, 64%);
  top: 132px;
  background: #3ca6e8;
  color: #2077ad;
}

.bag-two {
  left: min(420px, 68%);
  top: 270px;
  background: #7a41d8;
  color: #7a41d8;
}

.bag-three {
  left: min(545px, 88%);
  top: 262px;
  background: #8145d9;
  color: #8145d9;
}

.sun-dot {
  position: absolute;
  right: 10px;
  top: 80px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f7d78b;
}

.login-card,
.status-card,
.claim-box,
.brand-page,
.text-page {
  background: var(--panel);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.login-card {
  padding: 30px 34px 28px;
  text-align: center;
}

.login-card.compact {
  width: min(94vw, 460px);
}

.mail-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #e7f4ff;
  color: var(--blue);
  font-size: 30px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.login-card h1 {
  color: var(--blue);
  font-size: 25px;
}

.login-copy,
.page-title p,
.welcome-band p,
.claim-box p,
.brand-page p,
.text-page p,
.status-card p {
  color: var(--muted);
  line-height: 1.65;
}

.form {
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
  color: #3f4653;
  font-weight: 800;
  margin-bottom: 15px;
}

.field-control {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border-bottom: 2px solid #c4cad5;
  background: #fff;
}

.field-icon {
  height: 38px;
  display: grid;
  place-items: center;
  background: #f0f2f6;
  color: #3b4657;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(77, 165, 238, 0.3);
  outline-offset: 2px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
  font-size: 14px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.remember input {
  width: auto;
  min-height: auto;
}

.form-message {
  min-height: 20px;
  color: var(--danger);
  font-weight: 800;
  text-align: left;
  margin: 2px 0 8px;
}

.demo-note {
  margin: 20px 0 0;
  color: #7a8495;
  font-size: 13px;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  align-items: center;
  padding: 48px clamp(28px, 10vw, 210px);
  background: rgba(255, 255, 255, 0.76);
}

.partner-strip a {
  color: #49617d;
  font-size: clamp(18px, 2vw, 28px);
  text-align: center;
  font-weight: 900;
}

.partner-strip a:nth-child(1) {
  color: #336cc3;
}

.partner-strip a:nth-child(2) {
  color: #da3f45;
  transform: rotate(-18deg);
}

.partner-strip a:nth-child(3) span,
.partner-strip a:nth-child(5) span {
  color: #ef3d68;
}

.partner-strip a:nth-child(4) {
  color: #5ba08d;
}

.partner-strip small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.3fr;
  gap: 34px;
  padding: 34px clamp(24px, 11vw, 220px) 74px;
  background: #fff;
  border-top: 1px solid #edf1f6;
}

.site-footer h2 {
  font-size: 14px;
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  color: #536071;
  font-size: 14px;
  margin: 10px 0;
}

.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid #81bef3;
  color: var(--blue);
  border-radius: 50%;
  margin: 0;
}

.store {
  width: 138px;
  min-height: 38px;
  display: grid !important;
  place-items: center;
  background: #050505;
  color: #fff !important;
  border-radius: 5px;
}

.claim-panel {
  background: #b6ddfb;
  border-radius: 4px;
  text-align: center;
  padding: 22px;
  align-self: start;
}

.claim-panel p {
  margin: 0 0 14px;
  font-weight: 850;
}

.content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 84px;
}

.content.narrow {
  width: min(760px, calc(100% - 40px));
}

.welcome-band,
.page-title {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark) !important;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
  font-size: 13px;
}

.dashboard-grid,
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.action-card,
.reward-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 68, 105, 0.08);
}

.action-card:hover,
.reward-card:hover {
  text-decoration: none;
  border-color: #add9ff;
}

.action-card span,
.reward-card strong {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.action-card strong,
.reward-card span {
  color: var(--muted);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-card,
.claim-box,
.brand-page,
.text-page {
  padding: 38px;
}

.status-card {
  width: min(94vw, 560px);
  text-align: center;
}

.status-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: #e8f8ef;
  color: var(--success);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 900;
}

.status-card.error .status-icon {
  background: #ffe9e9;
  color: var(--danger);
}

.panel-form {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(35, 68, 105, 0.07);
}

.panel-form label {
  display: grid;
  gap: 8px;
  color: #3f4653;
  font-weight: 800;
}

.panel-form input,
.panel-form textarea,
.panel-form select {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.success-message {
  min-height: 24px;
  color: var(--success);
  font-weight: 850;
}

.brand-page,
.text-page {
  display: grid;
  gap: 18px;
}

@media (max-width: 880px) {
  .topbar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 16px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .reward-illustration {
    min-height: 300px;
  }

  .login-card {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .partner-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 20px;
  }

  .top-actions,
  .form-row,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .partner-strip {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .site-footer {
    padding: 32px 20px 50px;
  }

  .phone {
    left: 42%;
  }

  .person-two {
    left: 58%;
  }
}
