/* ════════════════════════════════════════════════════════════
   $FLAG — The People's Coin
   "Saturday-morning cartoon patriotism"
   ════════════════════════════════════════════════════════════ */

:root {
  --red: #B31942;
  --red-dark: #8A1334;
  --navy: #0A3161;
  --navy-dark: #061F3F;
  --gold: #FFD84D;
  --gold-dark: #E5A816;
  --sky-top: #6FC0F2;
  --sky-bottom: #C6E9FF;
  --white: #FFFFFF;
  --font-display: 'Luckiest Guy', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--sky-bottom);
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 760px; }

/* ── Typography helpers ─────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--navy);
  text-shadow:
    -3px -3px 0 #fff, 3px -3px 0 #fff,
    -3px 3px 0 #fff, 3px 3px 0 #fff,
    -3px 0 0 #fff, 3px 0 0 #fff,
    0 -3px 0 #fff, 0 3px 0 #fff,
    0 9px 0 rgba(10, 49, 97, 0.14);
}

.accent { color: var(--red); }

.kicker {
  font-family: var(--font-display);
  color: var(--red);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.section { padding: 96px 0; position: relative; }

.section-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin-bottom: 48px;
  text-align: center;
}

/* ── Sky background layer ───────────────────────────────── */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 70%, #E3F4FF 100%);
  overflow: hidden;
}

.sun {
  position: absolute;
  top: -190px;
  right: -190px;
  width: 300px;
  height: 300px;
  opacity: 0.9;
}

.sun-rays {
  transform-origin: 100px 100px;
  animation: spin 60s linear infinite;
}

.cloud {
  position: absolute;
  left: -260px;
  opacity: 0.9;
  filter: drop-shadow(0 6px 0 rgba(10, 49, 97, 0.06));
  animation: drift linear infinite;
}

.c1 { width: 220px; top: 12%; animation-duration: 75s; animation-delay: -20s; }
.c2 { width: 150px; top: 32%; animation-duration: 105s; animation-delay: -60s; opacity: 0.75; }
.c3 { width: 260px; top: 58%; animation-duration: 90s; animation-delay: -35s; }
.c4 { width: 130px; top: 78%; animation-duration: 120s; animation-delay: -90s; opacity: 0.65; }

.sparkle {
  position: absolute;
  width: 22px;
  animation: twinkle 3.2s ease-in-out infinite;
}

.sp1 { top: 18%; left: 8%; }
.sp2 { top: 30%; left: 90%; width: 16px; animation-delay: -1.1s; }
.sp3 { top: 64%; left: 12%; width: 14px; animation-delay: -2.2s; }
.sp4 { top: 46%; left: 82%; width: 18px; animation-delay: -0.6s; }

/* ── Nav ────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1060px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 4px solid var(--navy);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: 0 6px 0 rgba(10, 49, 97, 0.22);
  transition: box-shadow 0.3s ease;
}

#nav.scrolled { box-shadow: 0 10px 0 rgba(10, 49, 97, 0.28); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.brand-coin { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 800;
  font-size: 0.98rem;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 4px 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: right 0.25s ease;
}

.nav-links a:hover::after { right: 0; }

.nav-socials { display: flex; gap: 10px; }

.social-nav {
  width: 38px;
  height: 38px;
  border-width: 3px;
  box-shadow: 0 3px 0 rgba(10, 49, 97, 0.3);
}

.social-nav svg { width: 17px; height: 17px; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--navy);
  box-shadow: 0 8px 0 var(--red-dark), 0 14px 0 rgba(10, 49, 97, 0.22);
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-red:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 11px 0 var(--red-dark), 0 18px 0 rgba(10, 49, 97, 0.22);
}

.btn-red:active {
  transform: translateY(5px) scale(0.99);
  box-shadow: 0 3px 0 var(--red-dark), 0 6px 0 rgba(10, 49, 97, 0.22);
}

.btn-nav { padding: 9px 20px; font-size: 0.92rem; box-shadow: 0 5px 0 var(--red-dark); display: inline-flex; align-items: center; gap: 8px; }
.btn-nav:hover { box-shadow: 0 8px 0 var(--red-dark); }
.btn-nav:active { box-shadow: 0 2px 0 var(--red-dark); }

.btn-flag { width: 22px; height: 12px; border-radius: 2px; }

.btn-hero { padding: 18px 40px; font-size: 1.3rem; }

.btn-small { padding: 9px 20px; font-size: 0.9rem; border-width: 3px; box-shadow: 0 5px 0 var(--red-dark); }
.btn-small:hover { box-shadow: 0 7px 0 var(--red-dark); }
.btn-small:active { box-shadow: 0 2px 0 var(--red-dark); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 120px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-art {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.hero-flag {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 0 rgba(10, 49, 97, 0.12));
}

.hero-coin {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: 42%;
}

.hero-coin svg {
  width: 100%;
  height: auto;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 0 rgba(10, 49, 97, 0.18));
}

.hero-content { text-align: left; }

.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto 30px;
  line-height: 1.55;
}

.hero-tagline strong { color: var(--red); }

/* ── Countdown ──────────────────────────────────────────── */

.countdown {
  position: relative;
  width: 100%;
  margin: 0 auto 32px;
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 24px;
  padding: 30px 20px 20px;
  box-shadow: 0 10px 0 rgba(10, 49, 97, 0.16);
}

.countdown-ribbon {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  padding: 7px 22px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  white-space: nowrap;
}

.ribbon-ic { width: 20px; height: 20px; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cd-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 12px 6px 10px;
  box-shadow: 0 5px 0 rgba(6, 31, 63, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5.5vw, 2.8rem);
  line-height: 1;
  color: var(--white);
  transform: translateY(2px);
}

.cd-num.pop { animation: pop 0.35s ease; }

.cd-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.countdown-live { text-align: center; padding: 14px 0 6px; color: var(--navy); }
.live-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--red);
}
.live-small { display: block; margin-top: 10px; font-weight: 600; opacity: 0.7; }

.countdown-note {
  text-align: center;
  margin: -20px 0 34px;
  font-size: 0.88rem;
  font-weight: 800;
  font-style: italic;
  color: #3A5F8A;
}

/* ── Striped ribbon divider ─────────────────────────────── */

.ribbon {
  height: 18px;
  background: repeating-linear-gradient(135deg, var(--red) 0 20px, var(--white) 20px 40px);
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
  box-shadow: 0 6px 0 rgba(10, 49, 97, 0.18);
}

/* ── Pledge section (navy star band) ────────────────────── */

.pledge {
  padding: 110px 0 120px;
  text-align: center;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M35,22 l4.4,9.4 10.3,1.2 -7.6,6.9 1.9,10.2 -9,-5.1 -9,5.1 1.9,-10.2 -7.6,-6.9 10.3,-1.2z' fill='white' opacity='0.08'/%3E%3Cpath d='M108,84 l4.4,9.4 10.3,1.2 -7.6,6.9 1.9,10.2 -9,-5.1 -9,5.1 1.9,-10.2 -7.6,-6.9 10.3,-1.2z' fill='white' opacity='0.08'/%3E%3C/svg%3E");
}

.pledge .kicker { color: var(--gold); text-shadow: none; }

.pledge-title {
  color: var(--white);
  text-shadow:
    -3px -3px 0 var(--red), 3px -3px 0 var(--red),
    -3px 3px 0 var(--red), 3px 3px 0 var(--red),
    -3px 0 0 var(--red), 3px 0 0 var(--red),
    0 -3px 0 var(--red), 0 3px 0 var(--red),
    0 10px 0 rgba(0, 0, 0, 0.3);
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  margin-bottom: 26px;
}

.pledge-copy {
  color: var(--white);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.pledge-teaser {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 46px;
}

.pledge-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--red);
  border: 6px solid var(--navy-dark);
  outline: 4px solid var(--gold);
  outline-offset: 3px;
  border-radius: 32px;
  padding: 26px 54px 30px;
  box-shadow: 0 12px 0 var(--red-dark), 0 22px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.3s ease;
  will-change: transform;
}

.pledge-btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 0 var(--red-dark), 0 26px 0 rgba(0, 0, 0, 0.28);
}

.pledge-btn:active:not(:disabled) {
  transform: translateY(8px) scale(0.99);
  box-shadow: 0 3px 0 var(--red-dark), 0 8px 0 rgba(0, 0, 0, 0.28);
}

.pledge-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 8px;
  opacity: 0.85;
}

.pledge-btn.pledged {
  background: #1E7D3C;
  outline-color: var(--white);
  cursor: default;
  animation: pledge-pop 0.5s ease;
}

.pledge-msg {
  max-width: 560px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--white);
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 18px 24px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28);
  animation: rise-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-medal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

/* ── Get the Tag section (navy band) ────────────────────── */

.tag-section {
  padding: 96px 0 90px;
  text-align: center;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cpath d='M35,22 l4.4,9.4 10.3,1.2 -7.6,6.9 1.9,10.2 -9,-5.1 -9,5.1 1.9,-10.2 -7.6,-6.9 10.3,-1.2z' fill='white' opacity='0.08'/%3E%3Cpath d='M108,84 l4.4,9.4 10.3,1.2 -7.6,6.9 1.9,10.2 -9,-5.1 -9,5.1 1.9,-10.2 -7.6,-6.9 10.3,-1.2z' fill='white' opacity='0.08'/%3E%3C/svg%3E");
}

.tag-section .kicker { color: var(--gold); text-shadow: none; }

.section-title-inverse {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  margin-bottom: 22px;
}

.tag-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* The draggable gold button */
.tag-drag-wrap { margin-bottom: 56px; }

.tag-drag-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--gold);
  border: 6px dashed var(--white);
  outline: 5px solid var(--navy-dark);
  outline-offset: 4px;
  border-radius: 26px;
  padding: 24px 48px;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.3);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: tag-pulse 2.6s ease-in-out infinite;
}

.tag-drag-btn:hover {
  transform: translateY(-4px) rotate(-1.5deg) scale(1.02);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.3);
}

.tag-drag-btn:active { cursor: grabbing; transform: translateY(0) rotate(0deg); }

@keyframes tag-pulse {
  0%, 100% { outline-offset: 4px; }
  50% { outline-offset: 9px; }
}

.tag-btn-flag { width: 44px; height: 23px; border-radius: 3px; }

.tag-drag-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
}

.tag-drag-cue svg { width: 20px; height: 20px; animation: cue-bounce 1.6s ease-in-out infinite; }

@keyframes cue-bounce {
  0%, 100% { transform: translateY(3px); opacity: 0.7; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Step cards */
.tag-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 780px;
  margin: 0 auto 56px;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--navy-dark);
  border-radius: 24px;
  padding: 52px 24px 26px;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease;
}

.step-card:hover { transform: translateY(-5px) rotate(-0.5deg); }

.step-num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  background: var(--gold);
  border: 4px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #33415C;
  font-weight: 600;
}

.hint-chip {
  display: inline-block;
  margin-top: 16px;
  background: var(--sky-bottom);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy);
}

/* Profile mockup */
.tag-payoff { margin-bottom: 44px; }

.profile-mockup {
  display: inline-block;
  text-align: left;
  background: var(--white);
  border: 4px solid var(--navy-dark);
  border-radius: 18px;
  padding: 16px 22px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3);
  min-width: min(340px, 86vw);
}

.pm-row { display: flex; align-items: center; gap: 12px; }

.pm-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-avatar svg { width: 22px; height: 22px; }

.pm-name { font-weight: 900; font-size: 1.05rem; color: var(--navy); }

.pm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
}

.pm-tag svg { width: 16px; height: 9px; border-radius: 1px; }

.pm-sub {
  margin-top: 10px;
  padding-left: 56px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6B7A93;
}

.pm-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Scarcity band */
.scarcity-band {
  display: block;
  background: var(--red);
  border: 4px solid var(--navy-dark);
  border-radius: 18px;
  padding: 20px 28px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--white);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  max-width: 760px;
  margin: 0 auto 18px;
}

.tag-fineprint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-drag-btn.closed {
  pointer-events: none;
  filter: grayscale(0.7);
  animation: none;
}

/* ── Cards (mission + help) ─────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 26px;
  padding: 60px 28px 32px;
  text-align: center;
  box-shadow: 0 10px 0 rgba(10, 49, 97, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 16px 0 rgba(10, 49, 97, 0.2);
}

.card-badge {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 4px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(10, 49, 97, 0.25);
}

.card-badge svg { width: 34px; height: 34px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--navy);
}

.card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #33415C;
  margin-bottom: 20px;
}

.card p:last-child { margin-bottom: 0; }

.help-card { padding-top: 68px; }

.stamp {
  position: absolute;
  top: 18px;
  right: -12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--white);
  background: var(--red);
  border: 3px solid var(--navy);
  border-radius: 10px;
  padding: 5px 12px;
  transform: rotate(6deg);
  box-shadow: 0 4px 0 rgba(10, 49, 97, 0.25);
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(10, 49, 97, 0.16);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  padding: 20px 22px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--red);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-a-inner { overflow: hidden; }

.faq-a-inner p {
  padding: 0 22px 22px;
  line-height: 1.65;
  color: #33415C;
  font-weight: 600;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  position: relative;
  margin-top: 60px;
  padding: 90px 0 40px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background:
    radial-gradient(circle at 50% 100%, transparent 14px, var(--navy) 15px);
  background-size: 36px 18px;
  background-repeat: repeat-x;
}

.footer-motto {
  color: var(--gold);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  margin-bottom: 34px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.social {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--navy);
  border: 4px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

.social:hover { transform: translateY(-4px) rotate(-4deg); }

.social svg { width: 24px; height: 24px; }

.disclaimer {
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.65;
}

.copyright {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.8;
}

/* ── Confetti canvas & toast ────────────────────────────── */

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--gold);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 800;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Scroll reveal ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  to { transform: translateX(calc(100vw + 300px)); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.45; }
  50% { transform: scale(1.15) rotate(18deg); opacity: 1; }
}

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

@keyframes pop {
  0% { transform: translateY(2px) scale(1); }
  45% { transform: translateY(2px) scale(1.25); color: var(--gold); }
  100% { transform: translateY(2px) scale(1); }
}

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

.flag-cloth .fs { animation: clothwave 3s ease-in-out infinite; }
.flag-cloth .fs:nth-child(1) { animation-delay: 0s; }
.flag-cloth .fs:nth-child(2) { animation-delay: -0.25s; }
.flag-cloth .fs:nth-child(3) { animation-delay: -0.5s; }
.flag-cloth .fs:nth-child(4) { animation-delay: -0.75s; }
.flag-cloth .fs:nth-child(5) { animation-delay: -1s; }
.flag-cloth .fs:nth-child(6) { animation-delay: -1.25s; }
.flag-cloth .fs:nth-child(7) { animation-delay: -1.5s; }
.flag-cloth .fs:nth-child(8) { animation-delay: -1.75s; }
.flag-cloth .fs:nth-child(9) { animation-delay: -2s; }
.flag-cloth .fs:nth-child(10) { animation-delay: -2.25s; }
.flag-cloth .fs:nth-child(11) { animation-delay: -2.5s; }
.flag-cloth .fs:nth-child(12) { animation-delay: -2.75s; }

@keyframes pledge-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: center;
  }
  .hero-art { max-width: 380px; }
  .hero-content { text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .countdown { max-width: 520px; }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; row-gap: 48px; }
  .card { padding-top: 56px; }
  .card-badge { top: -30px; }
  .tag-steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; row-gap: 52px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  html { scroll-padding-top: 84px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .pledge-btn { padding: 22px 34px 26px; }
  .tag-drag-btn { padding: 18px 30px; gap: 10px; }
  .tag-btn-flag { width: 30px; height: 16px; }
  .section { padding: 76px 0; }
  .btn-nav { padding: 8px 14px; font-size: 0.8rem; }
  .btn-flag { width: 18px; height: 10px; }
  .social-nav { width: 32px; height: 32px; border-width: 3px; }
  .social-nav svg { width: 14px; height: 14px; }
  .brand-coin { width: 34px; height: 34px; }
  .brand { font-size: 1.25rem; }
}

/* ── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
