/* =========================================================================
   /giveaways · THE MONTHLY DROP - a bold promo one-sheeter.
   A vibrant gradient burst + confetti stages the real 3rd-i phone as the
   product hero (Doritos-giveaway energy), with a live countdown, a download
   CTA, and one details card. Bright and energetic, not dark. Month data
   lives in the page frontmatter; this file is layout only. The full legal
   terms live on /giveaway-rules (gvr-* styles, unchanged).
   ========================================================================= */

:root {
  --gvp-sky: #5cc1f6;
  --gvp-royal: #4979ef;
  --gvp-pink: #f31a91;
}

/* ------------------------------------------------------------- the hero -- */
.gvp {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 5vw, 84px) 0 clamp(48px, 6vw, 96px);
}
/* Bright burst: a wide blue-to-pink radial wash on the light page. This is
   the slot the generated backdrop graphic replaces (drop it in as a
   background-image here, keep the same box). */
.gvp-burst {
  position: absolute; inset: -10% -20% auto -20%; height: 130%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 22% 18%, rgba(92, 193, 246, 0.42), transparent 70%),
    radial-gradient(58% 58% at 82% 26%, rgba(243, 26, 145, 0.34), transparent 72%),
    radial-gradient(70% 70% at 60% 96%, rgba(123, 98, 232, 0.30), transparent 70%);
  filter: blur(8px);
}
html[data-theme="dark"] .gvp-burst {
  background:
    radial-gradient(60% 60% at 22% 18%, rgba(92, 193, 246, 0.30), transparent 70%),
    radial-gradient(58% 58% at 82% 26%, rgba(243, 26, 145, 0.26), transparent 72%),
    radial-gradient(70% 70% at 60% 96%, rgba(123, 98, 232, 0.24), transparent 70%);
}

.gvp-in {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy stage"
    "count stage"
    "actions stage";
  align-items: center; column-gap: clamp(32px, 4.4vw, 72px); row-gap: 0;
}
.gvp-copy { grid-area: copy; }
.gvp-count { grid-area: count; }
.gvp-actions { grid-area: actions; }
.gvp-stage { grid-area: stage; align-self: center; }

/* -------------------------------------------------------------- copy ----- */
.gvp-copy { max-width: 620px; }
.gvp-badge {
  display: inline-block; margin: 0 0 20px; padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(100deg, var(--gvp-sky), var(--gvp-royal) 52%, var(--gvp-pink));
  color: #fff; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(73, 121, 239, 0.32);
}
.gvp-title {
  margin: 0; color: var(--text); font-family: var(--sans);
  font-size: clamp(52px, 7.4vw, 104px); font-weight: 660;
  letter-spacing: -0.06em; line-height: 0.92; text-wrap: balance;
}
.gvp-title .grad {
  background: linear-gradient(104deg, var(--gvp-sky) 0%, var(--gvp-royal) 46%, var(--gvp-pink) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-block: 0.12em; margin-block: -0.12em;
}
.gvp-lede {
  max-width: 40ch; margin: 24px 0 0; color: var(--dim);
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; letter-spacing: -0.01em;
}

/* ---------------------------------------------------- countdown clock ---- */
.gvp-count { margin-top: clamp(26px, 3vw, 38px); }
.gvp-count-label {
  margin: 0 0 12px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft);
}
.gvp-clock { display: flex; gap: clamp(9px, 1.2vw, 14px); }
.gvp-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: clamp(70px, 8.4vw, 96px); padding: clamp(11px, 1.4vw, 16px) 12px;
  background: var(--panel); border: 1px solid var(--line-hi); border-radius: 16px;
  box-shadow: var(--soft-shadow);
}
.gvp-num {
  font-size: clamp(28px, 4vw, 44px); font-weight: 680; line-height: 1;
  letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
}
.gvp-cap { margin-top: 7px; font-size: 0.64rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.gvp-count-sub { margin: 12px 0 0; font-size: 0.9rem; color: var(--dim); }
.gvp-count.is-closed .gvp-count-label { color: var(--text); font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------ actions ---- */
.gvp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(26px, 3vw, 34px); }
.gvp-store, .gvp-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 999px;
  text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.gvp-store {
  gap: 12px; padding: 8px 30px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(108deg, var(--gvp-sky), var(--gvp-royal) 54%, var(--gvp-pink));
  background-origin: border-box;
  box-shadow: 0 18px 40px rgba(73, 121, 239, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}
.gvp-store:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(73, 121, 239, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.gvp-store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.gvp-store span { display: flex; flex-direction: column; align-items: flex-start; font-size: 18px; font-weight: 680; line-height: 1.14; }
.gvp-store small { margin-bottom: 1px; font-size: 10px; font-weight: 550; letter-spacing: 0.02em; }
.gvp-ghost {
  gap: 10px; padding: 0 26px;
  border: 1px solid var(--line-hi); background: var(--panel);
  box-shadow: 0 12px 28px rgba(10, 15, 30, 0.14);
  color: var(--text); font-size: 15px; font-weight: 650;
}
.gvp-ghost:hover { transform: translateY(-3px); border-color: var(--sky); }

/* -------------------------------------------------- product hero stage --- */
.gvp-stage { position: relative; display: grid; place-items: center; }
/* The generated product graphic. Its studio backdrop is feathered at the
   edges with a radial mask so it melts into the page rather than reading as
   a boxed rectangle. */
.gvp-heroimg {
  position: relative; z-index: 1;
  width: min(100%, 420px); height: auto; display: block;
  -webkit-mask-image: radial-gradient(64% 60% at 50% 45%, #000 44%, transparent 82%);
  mask-image: radial-gradient(64% 60% at 50% 45%, #000 44%, transparent 82%);
  animation: gvp-phone-in 800ms 60ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}
@keyframes gvp-phone-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }

/* The Aritzia wordmark, inlined so it follows currentColor across themes. */
.aritzia-logo { display: inline-block; line-height: 0; color: var(--text); }
.aritzia-logo svg { display: block; width: auto; height: 1em; }
.aritzia-logo--tag { font-size: 15px; margin: 3px 0 1px; }
.aritzia-logo--card { font-size: 30px; margin: 2px 0 12px; }

/* Floating prize tag over the product graphic. */
.gvp-prizetag {
  position: absolute; z-index: 2; top: 8%; right: 2%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line-hi);
  box-shadow: 0 22px 44px rgba(20, 40, 90, 0.24);
  transform: rotate(5deg);
  animation: gvp-tag-float 5.5s ease-in-out infinite;
}
.gvp-prizetag-k { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.gvp-prizetag-v {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(104deg, var(--gvp-sky), var(--gvp-royal) 50%, var(--gvp-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@keyframes gvp-tag-float { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-9px); } }

/* ----------------------------------------------------- the details card -- */
.gvp-details { padding: 0 0 clamp(48px, 6vw, 88px); }
.gvo-card {
  width: min(100%, 620px); margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line-hi); border-radius: 28px;
  box-shadow: var(--soft-shadow-lg, var(--soft-shadow));
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.6vw, 44px);
}
.gvo-card-kicker { margin: 0 0 12px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.gvo-card-prize {
  margin: 0 0 24px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 640;
  letter-spacing: -0.04em; line-height: 1.02;
  background: linear-gradient(104deg, var(--gvp-sky) 0%, var(--gvp-royal) 46%, var(--gvp-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-block: 0.08em; margin-block: -0.08em 24px;
}
.gvo-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 0 0 24px;
  padding: 24px 0; border-top: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi);
}
.gvo-facts dt { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.gvo-facts dd { margin: 0; font-size: 1.18rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.gvo-how { margin: 0 0 16px; font-size: 1.04rem; line-height: 1.55; color: var(--text); }
.gvo-card-fine { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--soft); }
.gvo-card-fine a { color: var(--sky); text-decoration: none; font-weight: 600; }
.gvo-card-fine a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 940px) {
  /* Copy leads, then the product graphic, then countdown, then the CTA. */
  .gvp-in {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "stage" "count" "actions";
    row-gap: 4px;
  }
  .gvp-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .gvp-badge { margin-inline: auto; }
  .gvp-title { max-width: 16ch; margin-inline: auto; }
  .gvp-lede { margin-inline: auto; }
  .gvp-count { text-align: center; margin-top: 8px; }
  .gvp-clock, .gvp-actions { justify-content: center; }
  .gvp-stage { margin: 6px auto 2px; width: min(72%, 320px); }
  /* On mobile there is no side burst behind the graphic, so give it its own
     soft brand glow to sit on - otherwise the near-white studio backdrop
     reads as a floating box. */
  .gvp-stage::before {
    content: ""; position: absolute; z-index: 0; inset: 4% 0 8%;
    border-radius: 50%;
    background: radial-gradient(58% 52% at 50% 46%, rgba(92, 193, 246, 0.4), rgba(243, 26, 145, 0.24) 56%, transparent 78%);
    filter: blur(34px); pointer-events: none;
  }
}
@media (max-width: 560px) {
  .gvp-actions { flex-direction: column; align-items: stretch; }
  .gvp-store, .gvp-ghost { width: 100%; }
  .gvp-prizetag { right: 0; padding: 11px 15px; }
  .gvp-prizetag-v { font-size: 1.1rem; }
}
@media (max-width: 440px) {
  .gvo-facts { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gvp-confetti .cf, .gvp-phone, .gvp-prizetag { animation: none !important; }
}

/* ------------------------------------------------------------ rules page -- */
.gvr-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(10px, 2vw, 24px); }
.gvr-hero h1 { margin: 14px 0 10px; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.06; }
.gvr-hero .gvr-sub { margin: 0; color: var(--dim); font-size: 1.02rem; line-height: 1.55; max-width: 62ch; }
.gvr-body { padding: 18px 0 clamp(48px, 6vw, 80px); }
.gvr-body .wrap { max-width: 820px; }
.gvr-body h2 { font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.gvr-body p, .gvr-body li { color: var(--dim); line-height: 1.65; font-size: 0.97rem; }
.gvr-body ul { padding-left: 20px; }
.gvr-body .gvr-updated { font-size: 0.85rem; color: var(--soft); }
