@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/904be59b21bd51cb-s.p.woff2") format("woff2");
}

:root {
  --blue: #121e6c;
  --blue-dark: #0c1449;
  --coral: #ee424e;
  --coral-hover: #d9323d;
  --ink: #1e1e1e;
  --muted: #6b7190;
  --line: #eceef4;
  --bg: #f7f8fb;
  --font: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

.cupo-page {
  color: var(--ink);
  font-family: var(--font);
  background: #fff;
}

.cupo-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}

.cupo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.cupo-header__brand {
  display: flex;
  line-height: 0;
}

.cupo-pill {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--coral);
  color: #fff;
  font: 700 14px/20px var(--font);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cupo-pill:hover {
  background: var(--coral-hover);
}

.cupo-pill:active {
  transform: scale(0.98);
}

.cupo-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cupo-pill--lg {
  padding: 14px 28px;
  font-size: 15px;
}

.cupo-pill--block {
  width: 100%;
  margin-top: 4px;
}

.cupo-hero {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.cupo-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
}

.cupo-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(20px, 5vw, 64px);
  animation: cupoFadeUp 0.6s ease both;
}

.cupo-hero__kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font: 700 13px/18px var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cupo-hero h1 {
  margin: 0 0 20px;
  color: var(--blue);
  font: 800 clamp(32px, 5vw, 52px) / 1.08 var(--font);
  letter-spacing: -0.02em;
}

.cupo-hero__lead {
  margin: 0 0 28px;
  max-width: 420px;
  color: #4a5070;
  font: 400 16px/26px var(--font);
}

.cupo-hero__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  animation: cupoFadeIn 0.8s ease 0.1s both;
}

.cupo-hero__media img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: min(85vh, 900px);
  object-fit: contain;
  object-position: bottom center;
}

@media (min-width: 900px) {
  .cupo-hero__inner {
    grid-template-columns: minmax(340px, 46%) 1fr;
  }

  .cupo-hero__media {
    align-items: center;
    background: var(--bg);
  }

  .cupo-hero__media img {
    max-height: calc(100vh - 72px);
    object-fit: cover;
    object-position: center top;
  }
}

.cupo-showcase {
  padding: 56px clamp(16px, 4vw, 48px) 64px;
  background: var(--bg);
}

.cupo-showcase__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cupo-showcase__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(18, 30, 108, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cupo-showcase__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 30, 108, 0.1);
}

.cupo-showcase__card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .cupo-showcase__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cupo-showcase__card {
    min-height: 240px;
  }

  .cupo-showcase__card--wide {
    grid-column: span 2;
  }
}

.cupo-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.88);
  font: 400 13px/20px var(--font);
}

.cupo-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cupo-footer__social {
  display: flex;
  gap: 16px;
}

.cupo-footer__social a {
  display: flex;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.cupo-footer__social a:hover {
  opacity: 1;
}

.cupo-footer__legal-grid {
  display: grid;
  gap: 32px;
  padding: 32px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cupo-footer__entity {
  margin: 0 0 8px;
  color: #fff;
  font: 700 15px/22px var(--font);
}

.cupo-footer__legal-grid p {
  margin: 0 0 4px;
}

.cupo-footer__vig {
  margin-top: 12px !important;
  font-size: 11px;
  line-height: 16px;
  opacity: 0.75;
}

.cupo-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 4vw, 48px);
  background: var(--blue-dark);
  font-size: 12px;
}

.cupo-footer__country {
  font-weight: 600;
}

.cupo-footer__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cupo-footer__stores a {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cupo-footer__stores a:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .cupo-footer__legal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cupo-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(241, 241, 246, 0.88);
  backdrop-filter: blur(6px);
}

.cupo-modal[hidden] {
  display: none;
}

.cupo-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  animation: cupoFadeUp 0.35s ease both;
}

.cupo-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cupo-card {
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(18, 30, 108, 0.14);
}

.cupo-card__label {
  margin: 0 0 8px;
  color: var(--blue);
  font: 700 14px/20px var(--font);
}

.cupo-card__amount {
  margin: 0 0 18px;
  color: #111;
  font: 700 40px/46px var(--font);
  letter-spacing: -0.03em;
}

.cupo-card__amount--sm {
  font-size: 22px;
  line-height: 28px;
}

.cupo-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #121e6c 0%, #5b4b9a 55%, #ee424e 100%);
  outline: none;
}

.cupo-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ee424e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Ctext x='18' y='23' text-anchor='middle' fill='white' font-family='Arial' font-size='16' font-weight='700'%3E%24%3C/text%3E%3C/svg%3E") center / 36px 36px no-repeat;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(238, 66, 78, 0.4);
}

.cupo-range::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ee424e;
  cursor: pointer;
}

.cupo-range__ends {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 18px;
  color: #8b90a8;
  font: 500 13px/18px var(--font);
}

.cupo-card__doc {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font: 600 13px/18px var(--font);
}

.cupo-card input[type="text"] {
  width: 100%;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid #d8dce8;
  border-radius: 12px;
  color: var(--ink);
  font: 400 16px/22px var(--font);
}

.cupo-card input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 30, 108, 0.1);
}

.cupo-card__error {
  min-height: 18px;
  margin: 0 0 8px;
  color: #c31a2f;
  font: 500 13px/18px var(--font);
}

.cupo-card--loading {
  padding: 36px 24px 32px;
  text-align: center;
}

.cupo-loader-lottie {
  width: 127px;
  height: 133px;
  margin: 0 auto 8px;
}

.cupo-loading__text {
  margin: 0 0 8px;
  color: var(--blue);
  font: 700 16px/24px var(--font);
  animation: cupoLoadingPulse 1.6s ease-in-out infinite;
}

.cupo-loading__hint {
  margin: 0;
  color: var(--muted);
  font: 400 13px/20px var(--font);
}

.cupo-modal__dialog:has(#cupo-step-loading:not([hidden])) .cupo-modal__close {
  opacity: 0.35;
  pointer-events: none;
}

@keyframes cupoLoadingPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.cupo-modal__dialog:has(#cupo-step-success:not([hidden])) .cupo-modal__close {
  color: rgba(255, 255, 255, 0.92);
}

.cupo-card--success {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 24px 56px rgba(18, 30, 108, 0.18);
}

.cupo-card--success-pop {
  animation: cupoSuccessPop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.cupo-success__confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cupo-success__confetti::before,
.cupo-success__confetti::after {
  content: "";
  position: absolute;
  inset: -20% -10% 40%;
  background:
    radial-gradient(circle at 12% 30%, #ee424e 0 4px, transparent 4px),
    radial-gradient(circle at 28% 18%, #ffc857 0 3px, transparent 3px),
    radial-gradient(circle at 45% 35%, #121e6c 0 3px, transparent 3px),
    radial-gradient(circle at 62% 12%, #7b6fd4 0 4px, transparent 4px),
    radial-gradient(circle at 78% 28%, #ee424e 0 3px, transparent 3px),
    radial-gradient(circle at 88% 15%, #ffc857 0 5px, transparent 5px),
    radial-gradient(circle at 95% 40%, #121e6c 0 3px, transparent 3px);
  opacity: 0.85;
  animation: cupoConfettiDrift 4s ease-in-out infinite alternate;
}

.cupo-success__confetti::after {
  inset: -10% -15% 50%;
  transform: scale(0.9) rotate(8deg);
  opacity: 0.5;
  animation-delay: -2s;
}

.cupo-success__hero {
  position: relative;
  margin: 0 -24px 20px;
  padding: 28px 24px 22px;
  text-align: center;
  background: linear-gradient(135deg, #121e6c 0%, #3d358a 45%, #ee424e 100%);
  border-radius: 20px 20px 28px 28px;
}

.cupo-success__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  animation: cupoIconBounce 0.7s cubic-bezier(0.34, 1.5, 0.64, 1) 0.15s both;
}

.cupo-success__icon svg {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.cupo-success__tag {
  margin: 0 0 4px;
  color: #fff;
  font: 800 22px/28px var(--font);
  letter-spacing: -0.02em;
}

.cupo-success__cheer {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font: 500 14px/20px var(--font);
}

.cupo-success__hello {
  margin: 0 0 6px;
  font: 400 17px/26px var(--font);
  color: var(--muted);
}

.cupo-success__hello strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font: 700 18px/24px var(--font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cupo-success__note {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  font: 500 13px/20px var(--font);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23121e6c'%3E%3Cpath d='M8 1a7 7 0 100 14A7 7 0 008 1zm0 2a5 5 0 110 10A5 5 0 018 3zm-.5 2v4.5l3.5 2 .5-.8-3-1.7V5h-1z'/%3E%3C/svg%3E") left 2px / 16px no-repeat;
}

.cupo-success__amount-box {
  margin-bottom: 20px;
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  border: 2px solid rgba(18, 30, 108, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cupo-success__amount-label {
  margin: 0 0 6px;
  color: var(--coral);
  font: 700 12px/16px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cupo-success__amount-value {
  margin: 0;
  background: linear-gradient(90deg, #121e6c, #ee424e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 clamp(28px, 7vw, 36px) / 1.1 var(--font);
  letter-spacing: -0.03em;
}

.cupo-pill--shine {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(238, 66, 78, 0.35);
}

.cupo-pill--shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: cupoShine 2.8s ease-in-out infinite;
}

@keyframes cupoSuccessPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes cupoIconBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes cupoConfettiDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(8px);
  }
}

@keyframes cupoShine {
  0%,
  45% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

@keyframes cupoFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cupoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .cupo-header .cupo-pill {
    padding: 10px 14px;
    font-size: 11px;
  }

  .cupo-hero__media {
    order: -1;
    max-height: 42vh;
  }

  .cupo-hero__media img {
    max-height: 42vh;
  }

  .cupo-showcase__card {
    min-height: 160px;
    padding: 12px;
  }

  .cupo-showcase__card img {
    max-height: 140px;
  }
}
