/* ============================================================
   Design tokens — palette derived from the product art itself:
   electric violet + bolt yellow (Lightning Brain), candy pink
   (sticker line), ink/gold/dusty-violet (Moon Phase).
   ============================================================ */
:root {
  --paper: #f5f3fa;
  --paper-2: #ece8f6;
  --ink: #28203f;
  --muted: #5d5477;
  --volt: #7a2fbf;
  --volt-deep: #5a1f94;
  --bolt: #ffd21f;
  --candy: #ef6fa7;
  --night: #131022;
  --night-2: #1d1735;
  --gold: #d4b36a;
  --night-lav: #a49dc9;
  --radius: 20px;
  --shadow-sticker: 0 10px 24px rgba(40, 32, 63, 0.16), 0 2px 6px rgba(40, 32, 63, 0.1);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--volt); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.hand { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; }
.hand-eyebrow { color: var(--candy); transform: rotate(-2deg); display: inline-block; margin-bottom: 0.6rem; }
.micro { font-size: 0.85rem; color: var(--muted); }
.eyebrow { font-family: var(--font-hand); font-size: 1.35rem; color: var(--candy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-0.5deg); }
.btn:active { transform: translateY(0); }
.btn-volt {
  background: var(--volt);
  color: #fff;
  box-shadow: 0 6px 0 var(--volt-deep);
}
.btn-volt:hover { box-shadow: 0 8px 0 var(--volt-deep); }
.btn-volt:active { box-shadow: 0 2px 0 var(--volt-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-gold { border-color: var(--gold); color: var(--gold); background: transparent; box-shadow: none; }
.btn-gold:hover { background: rgba(212, 179, 106, 0.12); }
.btn-mini { font-size: 0.85rem; padding: 0.45rem 1.1rem; background: var(--bolt); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(40, 32, 63, 0.08);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
}
.wordmark .bolt { color: var(--volt); }
.nav-links { display: flex; gap: clamp(0.8rem, 2.5vw, 1.6rem); align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover:not(.btn) { color: var(--volt); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1rem, 4vw, 2.5rem) 3.5rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(40, 32, 63, 0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 80%, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; }
.lede { font-size: 1.18rem; color: var(--muted); margin: 1.1rem 0 1.6rem; max-width: 34rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hl {
  background: linear-gradient(104deg, transparent 2%, var(--bolt) 4%, var(--bolt) 96%, transparent 98%);
  padding: 0 0.18em;
  border-radius: 4px;
  color: inherit;
}

.hero-collage { position: relative; min-height: 420px; }
.stick {
  position: absolute;
  width: clamp(140px, 16vw, 215px);
  background: #fff;
  padding: 8px;
  border-radius: 22px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease;
}
.stick img { border-radius: 15px; }
.stick:hover { transform: rotate(var(--r, 0deg)) scale(1.05) translateY(-4px); }
.s1 { --r: -7deg; top: 2%; left: 6%; z-index: 3; }
.s2 { --r: 6deg; top: 8%; right: 4%; z-index: 2; }
.s3 { --r: -3deg; bottom: 6%; left: 0; z-index: 2; }
.s4 { --r: 9deg; bottom: 0; right: 12%; z-index: 1; }
.note {
  position: absolute; top: 40%; left: 34%;
  color: var(--volt);
  transform: rotate(-4deg);
  font-size: 1.5rem;
  text-align: center;
  z-index: 4;
}
.note .squiggle { width: 50px; display: block; margin: 0.15rem auto 0; transform: rotate(-60deg) scaleX(-1); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--bolt);
  padding: 0.55rem 0;
  transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
  display: inline-flex; gap: 2.2rem; align-items: center;
  white-space: nowrap;
  font-family: var(--font-hand); font-size: 1.35rem;
  animation: scroll 46s linear infinite;
}
.marquee .spark { color: var(--candy); font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- shop ---------- */
.shop { max-width: 1160px; margin: 0 auto; padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem) 1rem; }
.section-head { text-align: center; margin-bottom: 3.5rem; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 10vh, 6.5rem);
}
.product.flip .product-media { order: 2; }
.product-info h3 { margin-bottom: 0.7rem; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  padding: 0.25rem 0.8rem; border-radius: 999px;
}
.chip-price { background: var(--bolt); color: var(--ink); }
.chip-soon { background: var(--paper-2); color: var(--muted); border: 1.5px dashed var(--muted); }
.blurb { color: var(--muted); margin-bottom: 1rem; max-width: 32rem; }
.ticks { list-style: none; margin-bottom: 1.5rem; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.4rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--volt); font-weight: 700; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
.pack-grid .cell {
  background: #fff; padding: 5px; border-radius: 16px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease;
}
.pack-grid .cell img { border-radius: 11px; }
.pack-grid .cell:hover { transform: rotate(0deg) scale(1.06); z-index: 2; position: relative; }

.print-fan { display: flex; align-items: center; justify-content: center; padding: 1.5rem 0; }
.print {
  width: clamp(130px, 16vw, 225px);
  background: #fff; padding: 7px 7px 20px;
  border-radius: 6px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0px));
  margin: 0 -14px;
  transition: transform 0.25s ease, z-index 0s;
}
.print:hover { transform: rotate(0deg) scale(1.14) translateY(-8px); z-index: 5; position: relative; }
.print img { border-radius: 2px; }

/* ---------- night (Moon Phase) ---------- */
.night {
  background:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 84% 62%, rgba(212,179,106,0.5), transparent),
    radial-gradient(1px 1px at 38% 74%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 9% 85%, rgba(212,179,106,0.4), transparent),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
  color: #efeaf7;
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1rem, 4vw, 2.5rem);
  margin-top: 3rem;
}
.night-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.night-media img {
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(212, 179, 106, 0.25), 0 0 30px rgba(164, 157, 201, 0.2);
}
.night-eyebrow { color: var(--night-lav); }
.night h2 { color: var(--gold); margin-bottom: 0.8rem; }
.night .blurb { color: var(--night-lav); }

/* ---------- signup ---------- */
.signup { padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem); }
.signup-card {
  max-width: 880px; margin: 0 auto;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--bolt);
  padding: clamp(1.8rem, 5vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem; align-items: center;
}
.signup-copy h2 { margin-bottom: 0.6rem; }
.signup-copy p { color: var(--muted); }
.capture { display: grid; gap: 0.8rem; }
.capture input[type="email"] {
  font-family: var(--font-body); font-size: 1.05rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.capture input[type="email"]:focus { outline: 3px solid var(--volt); outline-offset: 2px; }
.form-msg { min-height: 1.4em; font-size: 0.95rem; }
.form-msg.ok { color: var(--volt); font-weight: 700; }
.form-msg.err { color: #c0264b; }

/* ---------- about + footer ---------- */
.about { padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 9vh, 5.5rem); }
.about-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-inner h2 { margin-bottom: 1rem; }
.about-inner p { margin-bottom: 1rem; color: var(--muted); }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(40, 32, 63, 0.1);
  font-size: 0.9rem; color: var(--muted);
  flex-wrap: wrap;
}
.footer .hand { font-size: 1.2rem; color: var(--candy); }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-collage { min-height: 320px; margin-top: 1rem; }
  .product, .product.flip { grid-template-columns: 1fr; }
  .product.flip .product-media { order: 0; }
  .night-inner { grid-template-columns: 1fr; text-align: center; }
  .night-media { max-width: 340px; margin: 0 auto; }
  .signup-card { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .stick { width: 38vw; }
  .note { font-size: 1.25rem; right: 0; }
  .print { margin: 0 -20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .stick, .print, .pack-grid .cell { transition: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
