/* ═══════════════════════════════════════════
   BUILD-A-BEAR – $250 GIFT CARD OFFER
   style.css  |  UI/UX v1.0
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --red:        #C8102E;
  --red-dk:     #A00C24;
  --red-lt:     #FFF0F2;
  --bear-brown: #C68642;
  --bear-warm:  #E8A96A;
  --gold:       #F2C96D;
  --gold-dk:    #D4A82A;
  --cream:      #FFF8F0;
  --cream-dk:   #F5EAD8;
  --white:      #FFFFFF;
  --text:       #2C1A0E;
  --text-soft:  #6B4C2A;
  --muted:      #A07850;
  --border:     #EDD9BB;

  /* Shape */
  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  36px;

  /* Shadow */
  --shadow: 0 4px 16px rgba(139,80,40,0.10), 0 20px 56px rgba(139,80,40,0.14);
}

/* ─── PAGE ──────────────────────────────── */
html, body {
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  background: var(--cream-dk);
  color: var(--text);
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 56px;
  position: relative;
  overflow-x: hidden;
}

/* Dotted background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(200,16,46,0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Floating paw prints */
.bg-paws {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bp {
  position: absolute;
  font-size: 28px;
  opacity: 0.06;
  user-select: none;
  animation: float-paw 14s ease-in-out infinite;
}
.bp1 { top: 8%;  left: 5%;  animation-delay: 0s;   animation-duration: 13s; }
.bp2 { top: 25%; right: 4%; animation-delay: 3s;   animation-duration: 17s; }
.bp3 { top: 55%; left: 3%;  animation-delay: 6s;   animation-duration: 15s; }
.bp4 { top: 70%; right: 6%; animation-delay: 9s;   animation-duration: 12s; }
.bp5 { top: 88%; left: 40%; animation-delay: 4.5s; animation-duration: 16s; }

@keyframes float-paw {
  0%, 100% { transform: translateY(0)    rotate(0deg);   }
  50%       { transform: translateY(-18px) rotate(10deg); }
}

/* ─── CARD ──────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: card-rise 0.6s cubic-bezier(.22,1,.36,1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─── TOP STRIPE ────────────────────────── */
.top-stripe {
  display: flex;
  background: var(--red);
  padding: 7px 0;
  overflow: hidden;
  justify-content: space-around;
}
.top-stripe span {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  flex: 1;
  text-align: center;
  letter-spacing: 2px;
}

/* ─── HERO ──────────────────────────────── */
.hero {
  background: linear-gradient(175deg, var(--cream) 0%, #FDEBD0 100%);
  padding: 24px 28px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 24px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Bear */
.bear-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}
.bear-svg {
  width: 148px;
  height: 164px;
  filter: drop-shadow(0 8px 24px rgba(139,80,40,0.22));
  animation: bear-sway 4s ease-in-out infinite;
}

@keyframes bear-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg);  }
}

/* Brand wordmark */
.brand-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.brand-svg { width: 32px; height: 32px; flex-shrink: 0; }
.bab-text {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--red);
  letter-spacing: 0.3px;
}
.bab-workshop {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Offer */
.offer-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--bear-brown);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.offer-amount {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(64px, 18vw, 80px);
  color: var(--red);
  line-height: 1;
  /* No text-shadow — let the shape speak */
}
.offer-label {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--text);
  margin-top: 2px;
}
.offer-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* Ticker */
.ticker-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(139,80,40,0.07);
}
.ticker-chip.red { border-color: #FFB3BE; background: var(--red-lt); color: var(--red-dk); }
.ticker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bear-brown);
  animation: blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.ticker-chip.red .ticker-dot { background: var(--red); }

/* ─── STEPS ─────────────────────────────── */
.steps-section {
  padding: 28px 24px 20px;
  background: var(--white);
}
.steps-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 18px;
  padding-left: 4px;
}
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1.5px solid transparent;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
  cursor: default;
}
.step-item:hover {
  border-color: var(--gold);
  background: #FFFBF0;
  transform: translateX(4px);
}
.step-item:hover .paw-marker { color: var(--gold-dk); }

.paw-marker {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--red);
  transition: color 0.2s, transform 0.2s;
}
.step-item:hover .paw-marker { transform: scale(1.12) rotate(-6deg); }
.paw-marker svg { width: 100%; height: 100%; }

.step-title {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.2;
}
.step-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.4;
}

/* ─── CTA ───────────────────────────────── */
.cta-section {
  padding: 20px 24px 10px;
  background: var(--white);
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--red);
  color: var(--white);
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--red-dk), 0 8px 24px rgba(200,16,46,0.30);
  transition: transform 0.14s, box-shadow 0.14s;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  animation: btn-shimmer 3s 1.2s ease-in-out infinite;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--red-dk), 0 14px 32px rgba(200,16,46,0.36);
}
.cta-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--red-dk), 0 4px 12px rgba(200,16,46,0.20);
}
.cta-bear { font-size: 22px; }

/* Urgency */
.urgency-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red-dk);
  background: var(--red-lt);
  border-radius: 8px;
  padding: 8px 14px;
  border: 1px solid #FFB3BE;
}
.u-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── TRUST ─────────────────────────────── */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px 20px;
  background: var(--white);
}
.trust-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 5px 12px;
}

/* ─── FAQ ───────────────────────────────── */
.faq-section {
  padding: 24px 24px 8px;
  background: var(--cream);
  border-top: 1.5px solid var(--border);
}

.faq-title {
  font-family: 'Fredoka One', cursive;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 16px;
  padding-left: 2px;
}

.faq-card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(139,80,40,0.07);
}

.faq-item {
  border-bottom: 1.5px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
  background: var(--red-lt);
  color: var(--red-dk);
}

.faq-question:hover .chevron { stroke: var(--red); }

.faq-item.open .faq-question {
  background: var(--red-lt);
  color: var(--red-dk);
}
.faq-item.open .faq-question .chevron {
  stroke: var(--red);
  transform: rotate(180deg);
}

.chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--muted);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), stroke 0.18s;
}

/* Accordion: collapsed by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(.22,1,.36,1);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  padding: 0 18px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ─── BOTTOM STRIPE ─────────────────────── */
.bottom-stripe {
  display: flex;
  background: var(--red);
  padding: 7px 0;
  justify-content: space-around;
}
.bottom-stripe span {
  font-size: 14px;
  opacity: 0.55;
}

/* ─── ANIMATIONS ────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.2; }
}
@keyframes btn-shimmer {
  0%   { left: -70%; }
  100% { left: 140%; }
}

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 400px) {
  .hero        { padding: 20px 18px 24px; }
  .bear-svg    { width: 120px; height: 134px; }
  .offer-amount { font-size: 58px; }
  .steps-section, .cta-section { padding-left: 16px; padding-right: 16px; }
  .ticker-row  { gap: 8px; }
}
@media (min-width: 500px) {
  .card { border-radius: 40px; }
}
@media (min-width: 768px) {
  body { padding: 48px 16px 72px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bear-svg, .bp, .cta-btn::before { animation: none; }
}
