/* ═══════════════════════════════════════════════════
   SnapnStick — style.css
   ═══════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #FDF8F2;
  --warm-white:  #FFFBF5;
  --saffron:     #F97316;
  --saffron-lt:  #FED7AA;
  --teal:        #0D9488;
  --teal-lt:     #CCFBF1;
  --gold:        #D97706;
  --gold-lt:     #FEF3C7;
  --rose:        #E11D48;
  --rose-lt:     #FFE4E6;
  --ink:         #1C1917;
  --ink-soft:    #57534E;
  --ink-muted:   #A8A29E;
  --border:      #E7E0D8;

  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── Background ornament ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%,  #FED7AA44 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 85%,  #CCFBF144 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  #FEF3C722 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Rangoli ring SVG pattern (top-right) ──────── */
.ornament {
  position: fixed;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.ornament-bl {
  position: fixed;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
  transform: rotate(180deg);
}

/* ─── Layout ─────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  gap: 0;
}

/* ─── Nav bar ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.logo-text span { color: var(--saffron); }

.nav-badge {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-lt);
  border: 1px solid #99F6E4;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  text-align: center;
  max-width: 640px;
  margin-top: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--rose) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ─── Sticker preview strip ──────────────────────── */
.sticker-strip {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.sticker {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px #1C191710, 0 1px 3px #1C191708;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  position: relative;
}

.sticker::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--saffron-lt), var(--teal-lt), var(--gold-lt));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sticker:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 8px 20px #1C191720; }
.sticker:hover::after { opacity: 1; }

.sticker:nth-child(2):hover { transform: translateY(-4px) rotate(2deg); }
.sticker:nth-child(4):hover { transform: translateY(-4px) rotate(1deg); }

/* magnet indicator */
.sticker-magnet {
  position: absolute;
  bottom: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ─── Countdown ──────────────────────────────────── */
.countdown-section {
  text-align: center;
  margin-bottom: 52px;
}

.countdown-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 2px 8px #1C191710;
  transition: color 0.3s ease;
}

.cd-unit-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cd-sep {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink-muted);
  padding-bottom: 16px;
  line-height: 1;
}

/* ─── Waitlist form ─────────────────────────────── */
.waitlist {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.waitlist-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 8px;
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 12px #1C191710;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px #F9731618, 0 2px 12px #1C191710;
}

.form-row input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 8px 12px;
  outline: none;
}

.form-row #country-code {
  border-right: 1.5px solid var(--border);
}

.form-row input::placeholder { color: var(--ink-muted); }

.btn-primary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron) 0%, #EA580C 100%);
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px #F9731640;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Ensure minimum touch target size (44px) */
@media (pointer: coarse) {
  .btn-primary { min-height: 48px; }
  .form-row input { min-height: 48px; }
}

.form-note {
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
}

.form-note span { color: var(--saffron); }

/* Success state */
.success-msg {
  display: none;
  text-align: center;
  padding: 16px 24px;
  background: var(--teal-lt);
  border: 1.5px solid #99F6E4;
  border-radius: 14px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 500;
}

/* Error state */
.error-msg {
  display: none;
  text-align: center;
  padding: 12px 20px;
  background: var(--rose-lt);
  border: 1.5px solid #FECDD3;
  border-radius: 14px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

/* ─── Features strip ─────────────────────────────── */
.features {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  max-width: 640px;
}

.feat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
}

.feat-chip .feat-icon {
  font-size: 15px;
}

/* ─── Footer ─────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--saffron);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.footer-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── Floating sticker animation ─────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50%       { transform: translateY(-14px) rotate(-1deg); }
}

.sticker:nth-child(1) { animation: float  4.0s ease-in-out infinite; }
.sticker:nth-child(2) { animation: float2 3.6s ease-in-out infinite 0.4s; }
.sticker:nth-child(3) { animation: float  4.4s ease-in-out infinite 0.8s; }
.sticker:nth-child(4) { animation: float2 3.8s ease-in-out infinite 1.2s; }
.sticker:nth-child(5) { animation: float  4.2s ease-in-out infinite 0.2s; }

/* ─── Responsive – Tablet ──────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { margin-top: 60px; }
  .cd-number { min-width: 68px; font-size: clamp(28px, 5vw, 48px); padding: 10px 14px; }
  .cd-sep { font-size: 32px; padding-bottom: 14px; }
  .ornament { width: 240px; height: 240px; top: -40px; right: -40px; }
  .ornament-bl { width: 200px; height: 200px; }
  .features { gap: 10px; }
}

/* ─── Responsive – Mobile ──────────────────────────── */
@media (max-width: 480px) {
  .nav { padding: 14px 16px; }

  .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
  .logo-text { font-size: 16px; }

  .nav-badge { font-size: 10px; padding: 4px 10px; }

  .hero { margin-top: 48px; }
  h1 { letter-spacing: -1px; margin-bottom: 16px; }
  .tagline { margin-bottom: 32px; }

  .sticker { width: 56px; height: 56px; border-radius: 12px; font-size: 24px; }
  .sticker-magnet { width: 16px; height: 16px; bottom: -4px; right: -4px; font-size: 8px; }
  .sticker-strip { gap: 10px; margin-bottom: 40px; }

  .countdown-section { margin-bottom: 40px; }
  .cd-number { min-width: 54px; padding: 8px 10px; font-size: 28px; border-radius: 10px; }
  .cd-sep { font-size: 24px; padding-bottom: 12px; }
  .cd-unit-label { font-size: 10px; letter-spacing: 1px; }
  .countdown { gap: 4px; }

  .waitlist-label { font-size: 15px; }
  .form-row { flex-wrap: wrap; padding: 6px; }
  .form-row input { padding: 12px; font-size: 16px; /* prevents iOS zoom */ }
  .btn-primary { width: 100%; text-align: center; padding: 14px 22px; font-size: 15px; }

  .features { gap: 8px; margin-top: 40px; }
  .feat-chip { font-size: 12px; padding: 6px 12px; }

  .ornament { width: 160px; height: 160px; top: -20px; right: -20px; }
  .ornament-bl { width: 140px; height: 140px; bottom: -60px; left: -60px; }

  footer { font-size: 12px; padding: 20px 16px; }
  .footer-flag { flex-wrap: wrap; justify-content: center; gap: 4px; }
}

/* ─── Responsive – Very small screens ──────────────── */
@media (max-width: 360px) {
  .page { padding: 40px 16px 48px; }
  .cd-number { min-width: 46px; padding: 6px 8px; font-size: 24px; }
  .cd-sep { font-size: 20px; }
  .sticker { width: 48px; height: 48px; font-size: 20px; }
  .feat-chip { font-size: 11px; padding: 5px 10px; }
}
