@charset "UTF-8";

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; border: 0; box-sizing: border-box; }
li { list-style: none; }
a, a:visited { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: inherit; font-size: inherit; }
img { vertical-align: top; display: block; }

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --white:          #ffffff;
  --bg:             #f5f7fa;
  --surface:        #ffffff;
  --border:         #e8ecf0;
  --text-primary:   #1a1d23;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;

  --accent:         #4f46e5;
  --accent-light:   #eef2ff;
  --accent-hover:   #4338ca;

  --no-bg:          #fff1f2;
  --no-border:      #fecdd3;
  --no-text:        #e11d48;
  --no-hover:       #ffe4e6;

  --yes-bg:         #f0fdf4;
  --yes-border:     #bbf7d0;
  --yes-text:       #16a34a;
  --yes-hover:      #dcfce7;

  --amber:          #f59e0b;
  --amber-light:    #fffbeb;
  --amber-border:   #fde68a;
  --amber-text:     #92400e;
  --amber-dark:     #b45309;

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      18px;
  --radius-pill:    999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);

  --font: 'Prompt', system-ui, -apple-system, sans-serif;

  /* Mobile-first base sizes */
  --fs-xs:   11px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   17px;
  --fs-lg:   20px;
  --fs-xl:   24px;
}

/* ============================================================
   BASE  (mobile-first)
   ============================================================ */
html {
  /* Prevent font scaling in landscape on iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  font-family: var(--font);
  min-height: 100%;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  /* Smooth scrolling & momentum on iOS */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   LAYOUT
   ============================================================ */
._container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;   /* tighter on mobile */
}

@media (min-width: 480px) {
  ._container { padding: 0 20px; }
}

/* ============================================================
   HEADER  (sticky, compact on mobile)
   ============================================================ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- MARQUEE ---- */
.header__marquee-wrap {
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.header__marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 18s linear infinite;
}

.header__marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Shared capsule style for both header pills */
.header__pill,
.page__title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

/* Left pill – indigo */
.header__pill {
  background: var(--accent-light);
  border-color: #c7d2fe;
  color: var(--accent);
}

.header__pill-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Right pill – amber */
.page__title {
  background: var(--amber-light);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

/* Green pill */
.header__pill--green {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* Rose pill */
.header__pill--rose {
  background: #fff1f2;
  border-color: #fda4af;
  color: #e11d48;
}

/* Sky pill */
.header__pill--sky {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
}

/* Emerald pill */
.header__pill--emerald {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

/* Violet pill */
.header__pill--violet {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.page__title span {
  color: var(--amber-dark);
  font-weight: 800;
}

@media (min-width: 480px) {
  .header__pill,
  .page__title   { font-size: 12px; }
}

/* ============================================================
   MAIN
   ============================================================ */
.page {
  padding: 20px 0 32px;
}

.page__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ---- PRODUCT IMAGE ---- */
.page__image-wrap {
  position: relative;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.page__image {
  /* Mobile: fill most of the screen width */
  width: 88vw;
  max-width: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
}

.page__image-glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.15) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@media (min-width: 480px) {
  .page__image { width: auto; max-width: 380px; }
}

/* ---- OFFER QUESTION ---- */
.page__offer {
  font-size: var(--fs-lg);
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  padding: 0 4px;
}

@media (min-width: 480px) {
  .page__offer { font-size: var(--fs-xl); }
}

/* ---- SOCIAL PROOF ---- */
.page__social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.page__avatars {
  display: flex;
  flex-shrink: 0;
}
.page__avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: -7px;
  box-shadow: var(--shadow-sm);
}
.page__avatars span:first-child { margin-left: 0; }

.page__social-proof strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- COUNTDOWN (colorful blocks) ---- */
.page__countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff8f0 0%, #f0f4ff 50%, #f0fff4 100%);
  border: 1px solid #e0d0ff;
  border-radius: var(--radius-md);
  width: 100%;
  padding: 14px 12px;
}

.countdown__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  background: linear-gradient(90deg, #f97316, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.countdown__blocks {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  max-width: 80px;
}

/* Each block gets its own color via nth-child */
.countdown__block:nth-child(1) .countdown__val {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}
.countdown__block:nth-child(1) .countdown__unit { color: #b45309; }

.countdown__block:nth-child(3) .countdown__val {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-color: #8b5cf6;
  color: #4c1d95;
  box-shadow: 0 2px 8px rgba(139,92,246,0.25);
}
.countdown__block:nth-child(3) .countdown__unit { color: #6d28d9; }

.countdown__block:nth-child(5) .countdown__val {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  border-color: #06b6d4;
  color: #164e63;
  box-shadow: 0 2px 8px rgba(6,182,212,0.25);
}
.countdown__block:nth-child(5) .countdown__unit { color: #0e7490; }

.countdown__val {
  border-radius: var(--radius-sm);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  width: 100%;
  text-align: center;
  padding: 8px 4px;
  line-height: 1;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown__sep {
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 800;
  background: linear-gradient(180deg, #f97316, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* ---- PROGRESS BAR ---- */
.page__progress-wrap {
  width: 100%;
  margin-bottom: 22px;
}

.page__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-weight: 500;
}

.claimed-pct {
  color: var(--accent);
  font-weight: 700;
}

.progress-track {
  height: 9px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent) 0%, #818cf8 100%);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- BUTTONS ---- */
.page__btn-group {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tall enough for comfortable thumb tap (min 54px) */
  min-height: 56px;
  border-radius: var(--radius-lg);
  /* Fluid font size */
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  /* Remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.button:active { transform: scale(0.96); }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
}

.button_no {
  background: var(--no-bg);
  border-color: var(--no-border);
  color: var(--no-text);
  box-shadow: 0 2px 10px rgba(225,29,72,0.10);
}
.button_no:active {
  background: var(--no-hover);
}
@media (hover: hover) {
  .button_no:hover {
    background: var(--no-hover);
    box-shadow: 0 6px 18px rgba(225,29,72,0.16);
  }
}

.button_yes {
  background: var(--yes-bg);
  border-color: var(--yes-border);
  color: var(--yes-text);
  box-shadow: 0 2px 10px rgba(22,163,74,0.10);
}
.button_yes:active {
  background: var(--yes-hover);
}
@media (hover: hover) {
  .button_yes:hover {
    background: var(--yes-hover);
    box-shadow: 0 6px 18px rgba(22,163,74,0.16);
  }
}

/* Ripple */
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
  transform: scale(0);
  animation: ripple-anim 0.5s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ---- RULES ---- */
.page__rules {
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  font-style: italic;
  padding: 0 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 18px 0 24px;
  /* Extra bottom padding for home-indicator on iOS */
  padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
  /* Minimum touch target */
  padding: 4px 2px;
}

.footer__divider {
  color: var(--border);
  font-size: 14px;
}

.footer__text {
  font-size: 9.5px;
  text-align: center;
  line-height: 1.7;
  color: var(--text-muted);
  width: 100%;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  /* Above iOS home indicator */
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  /* Keep within screen on narrow phones */
  width: calc(100vw - 32px);
  max-width: 360px;
}

.toast {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.3s ease forwards;
  width: 100%;
}
.toast.hide { animation: toast-out 0.3s ease forwards; }

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(10px); }
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/-w__xjnvud7dzb2kdnodvki.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/-w__xjnvud7dzb2kb9odvki.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/-w__xjnvud7dzb2kbtodvki.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/-w__xjnvud7dzb2kynod.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/-w_8xjnvud7dzb2ck_kifwmuq5q.woff2) format('woff2');
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/-w_8xjnvud7dzb2ck_kizmmuq5q.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/-w_8xjnvud7dzb2ck_kiz2muq5q.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Prompt'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/-w_8xjnvud7dzb2ck_kiawmu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
