/* yesplease.fun/win: prize hero beside the entry card (desktop), stacked on phones. Patterns from
   Mobbin: Contra's challenge stat pills, adidas' sweepstakes fine print under the button and
   timeline, OKX's copy-your-invite-link field. */
.win {
  padding-top: 36px;
  padding-bottom: 72px;
}
.win-hero {
  display: grid;
  gap: 28px;
  align-items: start;
}
.win-intro {
  position: relative;
}
.win-intro .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
}
.win-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  max-width: 11ch;
}
/* A highlighter swipe behind "for life." (Mobbin: Circle's coloured key phrase). Painted as a
   background so it follows the words. */
.win-mark {
  padding: 0 0.12em;
  margin: 0 -0.06em;
  background: linear-gradient(176deg, transparent 0 48%, var(--butter) 48% 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap;
}
.win-lead {
  max-width: 36ch;
  margin-bottom: 22px;
  font-size: 19px;
}
.win-art {
  display: none;
}
.win-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.win-stats li {
  display: grid;
  min-width: 96px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}
.win-stats b {
  font-family: sora, sora-fallback, system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.win-stats span {
  color: var(--muted);
  font-size: 13px;
}
.win-timer {
  display: flex;
  gap: 8px;
}
.win-timer span {
  display: grid;
  justify-items: center;
  min-width: 58px;
  padding: 8px 6px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--butter);
}
.win-timer b {
  font-family: sora, sora-fallback, system-ui, sans-serif;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.win-timer i {
  font-style: normal;
  font-size: 11px;
  color: #d9d0f2;
}

/* Desktop: one lavender stage across the full width, prize story left, entry card right
   (Mobbin: beehiiv and Circle heroes, the form card beside the pitch). */
@media (min-width: 960px) {
  .win-hero {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
    gap: 48px;
    padding: 48px;
    border-radius: 32px;
    background: var(--lavender);
  }
  .win-intro {
    align-self: center;
    container-type: inline-size;
  }
  /* Sized to the column so "yesplease.fun" always fits on one line. */
  .win-intro h1 {
    font-size: clamp(44px, 13.4cqi, 84px);
    line-height: 0.98;
    max-width: none;
    margin-bottom: 22px;
  }
  .win-lead {
    font-size: 20px;
    margin-bottom: 28px;
  }
  /* Stats on top, countdown below, one panel across the column. */
  .win-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    border: 2px solid var(--ink);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
    overflow: hidden;
  }
  .win-stats li {
    min-width: 0;
    padding: 16px clamp(12px, 3.4cqi, 20px);
    border: 0;
    border-radius: 0;
    background: none;
  }
  .win-stats li + li {
    border-left: 2px solid #e6e0f2;
  }
  .win-stats b {
    font-size: clamp(18px, 5.4cqi, 30px);
    white-space: nowrap;
  }
  .win-stats span {
    font-size: 14px;
  }
  .win-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 2px solid var(--ink);
    border-radius: 0 0 20px 20px;
    background: var(--ink);
    box-shadow: 0 6px 0 #1a0f38;
  }
  .win-timer span {
    min-width: 0;
    padding: 14px 6px;
    border-radius: 0;
    background: none;
  }
  .win-timer span + span {
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }
  .win-timer b {
    font-size: clamp(22px, 5.6cqi, 32px);
  }
  .win-timer i {
    font-size: 12px;
  }
  .win-art {
    display: block;
    position: absolute;
    /* Sized to the column so it stays beside "win" and clear of the line below. */
    top: 0;
    right: 0;
    width: clamp(88px, 17cqi, 170px);
    height: auto;
    rotate: 10deg;
    filter: drop-shadow(0 18px 24px rgb(52 36 103 / 0.22));
    pointer-events: none;
  }
}

/* The entry card. */
.win-card {
  padding: 24px 20px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 0 var(--ink);
}
@media (min-width: 960px) {
  .win-card {
    position: sticky;
    top: 24px;
    padding: 30px 28px;
  }
}
.win-card h2 {
  margin: 0 0 16px;
  font-size: 30px;
}
.win-card h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.win-card h3 small {
  font-family: dm, dm-fallback, system-ui, sans-serif;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}
.win-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
}
.win-field input,
.win-field select,
.win-claim input,
.win-copy input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid #cfc7e2;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}
.win-field input:focus,
.win-field select:focus,
.win-claim input:focus,
.win-copy input:focus {
  border-color: var(--ink);
  outline: none;
}
.win-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.win-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}
.win-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.win-trial {
  padding: 12px;
  border-radius: 14px;
  background: var(--lavender);
}
.win-submit {
  width: 100%;
  margin-top: 6px;
}
.win-error {
  margin: 4px 0 10px;
  color: #b3261e;
  font-weight: 700;
}
.win-fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.win-fine a {
  text-decoration: underline;
}
.win-next {
  color: var(--ink);
  font-weight: 700;
}
.win-turnstile:not([hidden]) {
  margin-bottom: 12px;
}

/* After entering. */
.win-entry-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--butter);
  font-size: 13px;
  font-weight: 750;
}
.win-entry-note {
  margin-bottom: 14px;
}
.win-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--butter);
}
.win-count b {
  font-family: sora, sora-fallback, system-ui, sans-serif;
  font-size: 40px;
  line-height: 1;
}
.win-actions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.win-actions li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 2px solid #e6e0f2;
  border-radius: 16px;
}
.win-actions li.is-done {
  border-color: #cfe9c7;
  background: #f5fbf2;
}
.win-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--butter);
  font-weight: 800;
}
.win-action-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.win-actions small {
  grid-column: 2;
  color: var(--muted);
}
.win-claim {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.win-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.win-claim .button,
.win-copy .button {
  min-height: 50px;
}

/* How it works + faq: full width on desktop (Mobbin: HubSpot and Relume FAQ layouts). */
.win-how,
.win-faq {
  margin-top: 64px;
}
.win-how h2,
.win-faq h2 {
  font-size: 34px;
}
.win-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 760px) {
  .win-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.win-steps li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid #e6e0f2;
  counter-increment: step;
}
.win-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--butter);
  font-weight: 800;
}
.win-steps b {
  font-family: sora, sora-fallback, system-ui, sans-serif;
  font-size: 18px;
}
.win-faq details {
  border-bottom: 2px solid #e6e0f2;
}
.win-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.win-faq summary::-webkit-details-marker {
  display: none;
}
.win-faq details[open] summary span {
  transform: rotate(45deg);
}
.win-faq details p {
  margin: 0 0 16px;
}
@media (min-width: 960px) {
  .win-how,
  .win-faq {
    margin-top: 88px;
  }
  .win-how h2,
  .win-faq h2 {
    font-size: 44px;
  }
  .win-steps li {
    padding: 28px;
    border-radius: 24px;
  }
  .win-steps li::before {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    font-size: 18px;
  }
  .win-steps b {
    font-size: 22px;
  }
  /* Heading and fine print on the left, questions on the right. */
  .win-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 48px;
    align-items: start;
  }
  .win-faq h2 {
    grid-column: 1;
    grid-row: 1;
  }
  .win-faq details {
    grid-column: 2;
  }
  .win-faq details:first-of-type {
    grid-row: 1;
    border-top: 2px solid #e6e0f2;
  }
  .win-faq > .win-fine {
    grid-column: 1;
    grid-row: 2 / span 4;
    margin: 0;
    max-width: 32ch;
  }
  .win-faq summary {
    padding: 20px 0;
    font-size: 18px;
  }
}

/* The site's form and fieldset defaults (newsletter boxes) don't apply here. */
.win-card .win-submit {
  min-height: 58px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 5px 0 #1a0f38;
}

/* Phones: the form starts near the top (Nick: tight above the fold on mobile). */
@media (max-width: 599px) {
  .win {
    padding-top: 18px;
  }
  .win-hero {
    gap: 18px;
  }
  .win-intro h1 {
    font-size: 38px;
    margin-bottom: 14px;
  }
  .win-lead {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .win-stats {
    gap: 6px;
    margin-bottom: 0;
  }
  .win-stats li {
    min-width: 0;
    flex: 1;
    padding: 6px 10px;
    border-radius: 12px;
  }
  .win-stats b {
    font-size: 17px;
  }
  .win-stats span {
    font-size: 12px;
  }
  .win-timer {
    display: none;
  }
}
.win-trial[hidden] {
  display: none;
}

/* The trial step sits last, under bonus entries and invites. */
.win-card .win-next-step {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  text-decoration: none;
}
