:root {
  --red: #ea1218;
  --blue: #19387d;
  --green: #35ef79;
  --ink: #111111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.offer {
  width: min(100% - 60px, 914px);
  margin: 0 auto;
  text-align: center;
}

.expiry {
  width: 100%;
  padding: 16px 20px 10px;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: clamp(1.25rem, 3.15vw, 1.8rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.35;
}

.price {
  margin: 18px 0 16px;
  font-size: clamp(1rem, 2.35vw, 1.34rem);
  font-weight: 800;
}

.price span { padding: 0 .2em; }

.benefit {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 35px;
  padding: 10px 18px;
  border-radius: 9px;
  background: #18b84a;
  color: #fff;
  font-size: clamp(.78rem, 1.75vw, .98rem);
  font-weight: 700;
  line-height: 1.35;
}

.benefit strong { font-weight: 900; }

h1 {
  margin: 0 0 57px;
  font-size: clamp(1.35rem, 3.15vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.choices {
  display: flex;
  justify-content: center;
  gap: clamp(36px, 7vw, 60px);
}

.choice { width: min(25.8vw, 225px); }

.can {
  width: 100%;
  aspect-ratio: 1 / 1.52;
  border: 2px solid var(--green);
  border-radius: 12px;
  background-image: url('img/soda-cans.webp');
  background-repeat: no-repeat;
  background-size: 200% 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.can--red { background-position: left center; }
.can--blue { background-position: right center; }

.choice:hover .can,
.choice:focus-within .can {
  transform: translateY(-5px);
  border-color: #16d961;
  box-shadow: 0 9px 20px rgba(22, 217, 97, .18);
}

.pick-button {
  display: block;
  margin-top: 16px;
  padding: 19px 10px 21px;
  border-radius: 34px;
  color: #fff;
  font-size: clamp(1.1rem, 2.75vw, 1.55rem);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 3px rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease;
}

.choice--red .pick-button { background: var(--red); }
.choice--blue .pick-button { background: var(--blue); }
.pick-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pick-button:active { transform: translateY(1px); }

.continue {
  margin: 28px 0 20px;
  font-size: clamp(1.2rem, 3.35vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .02em;
}

.site-footer {
  margin-top: 28px;
  padding: 24px 20px 20px;
  background: #2d2d2d;
  color: #fff;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
  color: inherit;
  font-size: .72rem;
  text-decoration: underline;
}

.site-footer p {
  max-width: 760px;
  margin: 14px auto 0;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.loading-overlay.is-visible { display: grid; }
.loader {
  width: 50px;
  height: 50px;
  margin: auto;
  border: 4px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .offer { width: min(100% - 24px, 430px); margin-top: 0; }
  .expiry { padding: 14px 8px 10px; }
  .price { margin: 16px 0 12px; }
  .benefit { width: 100%; margin-bottom: 28px; padding: 9px 12px; }
  h1 { margin-bottom: 37px; }
  .choices { gap: 16px; }
  .choice { width: calc(50% - 8px); }
  .pick-button { margin-top: 12px; padding: 16px 5px 18px; border-radius: 26px; }
  .continue { margin-top: 25px; }
  .site-footer { margin-top: 22px; padding: 32px 18px 28px; }
}
