:root {
  --page-bg: #6870df;
  --card-bg: #dfe8fb;
  --card-border: rgba(255, 255, 255, 0.72);
  --text: #202020;
  --muted: #343b4e;
  --button-blue: #2d7f92;
  --button-blue-dark: #236b7d;
  --button-blue-border: #3c95a8;
  --green: #12bd43;
  --orange: #ffae00;
  --violet: #b64beb;
  --dark: #3e3e43;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 38px 12px 28px;
}

.offers-section {
  display: grid;
  justify-items: center;
  gap: 56px;
}

.top-pill {
  min-width: 226px;
  border-radius: 999px;
  padding: 12px 22px;
  color: #fff;
  background: #ff422c;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(142px, 240px));
  justify-content: center;
  gap: 30px 14px;
  width: 100%;
}

.offer-card {
  position: relative;
  display: grid;
  min-height: 374px;
  padding: 28px 12px 14px;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.35);
  overflow: visible;
}

.badge {
  position: absolute;
  top: -16px;
  left: 50%;
  display: none;
  min-width: 144px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.offer-card.has-badge .badge {
  display: block;
}

.badge.green {
  background: var(--green);
}

.badge.orange {
  background: var(--orange);
}

.badge.violet {
  background: var(--violet);
}

.badge.dark {
  background: var(--dark);
}

.logo-frame {
  display: grid;
  place-items: center;
  height: 112px;
  padding: 12px;
}

.offer-logo {
  display: block;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

.divider {
  height: 1px;
  margin: 8px 0 18px;
  background: repeating-linear-gradient(
    to right,
    rgba(164, 184, 229, 0.75) 0,
    rgba(164, 184, 229, 0.75) 3px,
    transparent 3px,
    transparent 7px
  );
}

.terms {
  display: grid;
  justify-items: center;
  line-height: 1.16;
  color: var(--muted);
  font-size: 16px;
}

.terms + .terms {
  margin-top: 10px;
}

.terms strong {
  display: block;
  color: var(--text);
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.terms .rate {
  font-size: 18px;
}

.cta {
  align-self: end;
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  border: 3px solid var(--button-blue-border);
  border-radius: 8px;
  color: #fff;
  background: var(--button-blue);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.cta:active {
  background: var(--button-blue-dark);
  transform: translateY(1px);
}

.content-section {
  max-width: 640px;
  margin: 42px auto 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.48;
}

.content-section h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.15;
}

.content-section p {
  margin: 0 0 16px;
}

@media (max-width: 390px) {
  .app-shell {
    padding-right: 8px;
    padding-left: 8px;
  }

  .offers-grid {
    gap: 28px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-card {
    min-height: 350px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .badge {
    min-width: 126px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }

  .terms strong {
    font-size: 21px;
  }

  .cta {
    min-height: 52px;
    font-size: 15px;
  }
}
