*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg-deep: #0a0a0f;
--bg-card: #111118;
--bg-card-hover: #16161f;
--border: #1e1e2a;
--text-primary: #e8e8ed;
--text-secondary: #8888a0;
--text-dim: #55556a;
--text-aside: #5fb8c5;
--cyan: #22d3ee;
--cyan-dim: #0e7490;
--cyan-glow: rgba(34, 211, 238, 0.15);
--magenta: #d946ef;
--magenta-dim: #86198f;
--magenta-glow: rgba(217, 70, 239, 0.1);
--font-body: 'Outfit', sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
html { scroll-behavior: smooth; }
body { background: var(--bg-deep); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
body::after { content: ''; position: fixed; top: -30%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(ellipse, rgba(34, 211, 238, 0.06) 0%, rgba(217, 70, 239, 0.03) 40%, transparent 70%); pointer-events: none; z-index: 0; }
.container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 24px; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
nav .nav-inner { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
nav .brand { font-weight: 600; font-size: 15px; letter-spacing: 0.5px; color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
nav a.brand:hover { color: var(--cyan); }
nav .brand span { color: var(--cyan); }
nav .nav-links { display: flex; gap: 28px; list-style: none; }
nav .nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; }
nav .nav-links a:hover { color: var(--cyan); }
nav .nav-links a.active { color: var(--cyan); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  position: relative;
  isolation: isolate;
}
/* Full-viewport-width background. Pseudo-element escapes .container's
   max-width by stretching to 100vw centered on .hero. Z-index -1 puts
   it behind the hero text but contained inside .hero's stacking context
   so the next section paints above it cleanly. */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 15, 0.55) 0%,
      rgba(10, 10, 15, 0.85) 70%,
      var(--bg-deep) 100%
    ),
    url('/assets/hero_banner.jpg') center / cover no-repeat;
}
.hero-label { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.6s ease forwards 0.2s; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.6s ease forwards 0.4s; }
.hero h1 em { font-style: normal; color: var(--cyan); position: relative; }
.hero h1 em::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--cyan); opacity: 0.3; }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 560px; line-height: 1.7; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.6s ease forwards 0.6s; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s ease forwards 0.8s; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--cyan); color: var(--bg-deep); font-family: var(--font-body); font-weight: 600; font-size: 14px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; transition: all 0.2s; box-shadow: 0 0 20px var(--cyan-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(34, 211, 238, 0.3); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; color: var(--text-secondary); font-family: var(--font-body); font-weight: 500; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--text-dim); color: var(--text-primary); }

/* EVENT BANNER */
.event-banner { padding: 0; margin-top: -40px; margin-bottom: 40px; }
.event-inner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--magenta-dim); border-radius: 12px; background: linear-gradient(135deg, var(--bg-card) 0%, var(--magenta-glow) 100%); animation: fadeUp 0.6s ease forwards; }
.event-icon { font-size: 32px; flex-shrink: 0; }
.event-info { flex: 1; }
.event-title { font-size: 16px; font-weight: 600; color: var(--magenta); }
.event-detail { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.event-rates-badge { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--magenta); padding: 8px 16px; background: var(--magenta-glow); border-radius: 8px; white-space: nowrap; }

/* STATS */
.stats-bar { padding: 80px 0; border-top: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-item { text-align: center; padding: 24px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); transition: all 0.3s; }
.stat-item:hover { border-color: var(--cyan-dim); background: var(--bg-card-hover); }
.stat-number { font-size: 32px; font-weight: 700; color: var(--cyan); font-family: var(--font-mono); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* SECTIONS */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-label { font-family: var(--font-mono); font-size: 11px; color: var(--magenta); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 48px; line-height: 1.2; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); transition: all 0.3s; }
.pillar:hover { border-color: var(--cyan-dim); background: var(--bg-card-hover); }
.pillar h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.pillar-icon {
  display: block;
  width: 80px;
  height: auto;
  margin: 0 auto 14px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Three campfire babies above the Discord CTA. */
.discord-companions {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto 8px;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 480px) {
  .discord-companions { width: 170px; }
}

/* Section-heading mascots — float right of section heading. */
.faq-mascot,
.trust-shield-img {
  float: right;
  width: 110px;
  height: auto;
  margin: 0 0 12px 24px;
  user-select: none;
  -webkit-user-drag: none;
  shape-outside: margin-box;
}
@media (max-width: 480px) {
  .faq-mascot,
  .trust-shield-img { width: 80px; margin: 0 0 12px 16px; }
}

/* PITCH */
.pitch-list { list-style: none; padding: 0; }
.pitch-list li { padding: 12px 0 12px 28px; position: relative; font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.pitch-list li:last-child { border-bottom: none; }
.pitch-list li::before { content: '→'; position: absolute; left: 0; color: var(--cyan); font-weight: 600; }
.pitch-note { font-size: 15px; color: var(--text-aside); margin-top: 24px; font-style: italic; }

/* MAPS */
.maps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.map-card { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); transition: all 0.3s; }
.map-card:hover { border-color: var(--cyan-dim); }
.map-card.featured { border-color: var(--cyan-dim); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 211, 238, 0.05) 100%); }
.map-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.map-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.map-badge { display: inline-block; font-family: var(--font-mono); font-size: 9px; color: var(--cyan); background: var(--cyan-glow); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; letter-spacing: 1px; text-transform: uppercase; }
.map-tip { font-size: 15px; color: var(--text-aside); margin-top: 16px; font-style: italic; }

/* RATES */
.rates-schedule { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 32px; }
.schedule-block { text-align: center; padding: 24px 40px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); }
.schedule-block.weekend { border-color: var(--magenta-dim); background: linear-gradient(135deg, var(--bg-card) 0%, var(--magenta-glow) 100%); }
.schedule-label { font-size: 12px; color: var(--text-secondary); font-family: var(--font-mono); letter-spacing: 0.5px; margin-bottom: 8px; }
.schedule-multiplier { font-size: 36px; font-weight: 700; color: var(--magenta); font-family: var(--font-mono); }
.schedule-divider { font-size: 24px; color: var(--text-dim); }
.rates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.rate-item { text-align: center; padding: 20px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); transition: all 0.3s; }
.rate-item:hover { border-color: var(--magenta-dim); background: var(--bg-card-hover); }
.rate-value { font-size: 24px; font-weight: 700; color: var(--magenta); font-family: var(--font-mono); }
.rate-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.rates-note { font-size: 15px; color: var(--text-aside); font-family: var(--font-mono); text-align: center; }

/* CONNECT */
.connect-steps { display: flex; flex-direction: column; gap: 16px; }
.connect-step { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); transition: all 0.3s; }
.connect-step:hover { border-color: var(--cyan-dim); background: var(--bg-card-hover); }
.step-number { flex-shrink: 0; width: 40px; height: 40px; line-height: 40px; text-align: center; font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--cyan); background: var(--cyan-glow); border-radius: 10px; }
.step-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.step-content strong { color: var(--text-primary); }

/* DISCORD CTA */
.discord-cta { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
.discord-cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.discord-cta p { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.discord-cta .subtext { font-size: 15px; color: var(--text-aside); margin-top: 16px; font-style: italic; }

/* CLOSE */
.close-section { padding: 100px 0; border-top: 1px solid var(--border); text-align: center; }
.close-quote { font-size: clamp(22px, 3.5vw, 32px); font-weight: 300; color: var(--text-secondary); font-style: italic; max-width: 700px; margin: 0 auto 20px; line-height: 1.5; }
.close-quote em { font-style: normal; color: var(--text-primary); font-weight: 500; }
.close-sub { color: var(--text-aside); font-size: 15px; margin-bottom: 40px; }
.close-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.merch-note { font-size: 15px; color: var(--text-aside); margin-top: 20px; font-style: italic; }

/* FOOTER */
footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
footer p { font-size: 12px; color: var(--text-dim); }
footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cyan); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === SUPPORT PAGE === */

/* Tier cards (extends .pillar pattern) */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-top: 110px; }
.tier-card { position: relative; padding: 32px 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); transition: all 0.3s; display: flex; flex-direction: column; }
.tier-card:hover { border-color: var(--cyan-dim); background: var(--bg-card-hover); }
.tier-card.featured { border-color: var(--magenta-dim); background: linear-gradient(135deg, var(--bg-card) 0%, var(--magenta-glow) 100%); transform: translateY(-4px); }
.tier-card.featured:hover { border-color: var(--magenta); }
.tier-card.platinum { border-color: var(--cyan-dim); background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 211, 238, 0.06) 100%); }
.tier-card.platinum:hover { border-color: var(--cyan); }
.tier-badge { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: 9px; color: var(--magenta); background: var(--magenta-glow); padding: 3px 10px; border-radius: 4px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.tier-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.tier-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--cyan); margin-bottom: 24px; line-height: 1.1; }
.tier-card.featured .tier-price { color: var(--magenta); }
.tier-period { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.tier-perks { list-style: none; padding: 0; margin: 0 0 28px 0; flex: 1; }
.tier-perks li { padding: 10px 0 10px 24px; position: relative; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); line-height: 1.5; }
.tier-perks li:last-child { border-bottom: none; }
.tier-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 600; }
.tier-card.featured .tier-perks li::before { color: var(--magenta); }
.tier-btn { width: 100%; justify-content: center; cursor: pointer; }

/* Decorative graphic that perches on top of the Gold tier card. */
.tier-walker {
  position: absolute;
  bottom: 100%;             /* sit on the top edge of the card */
  left: 50%;
  transform: translateX(-50%);
  width: 117px;
  height: auto;
  pointer-events: none;     /* never block clicks on the card */
  z-index: 2;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 768px) {
  /* Cards stack on mobile; a perched dino between them looks awkward. */
  .tier-walker { display: none; }
}

/* Trust block */
.trust-prose { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 720px; margin-bottom: 16px; }
.trust-aside { font-size: 15px; color: var(--text-aside); font-style: italic; margin-bottom: 28px; max-width: 720px; }
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.trust-strip li { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); background: var(--cyan-glow); padding: 8px 14px; border-radius: 6px; letter-spacing: 0.5px; text-transform: uppercase; }

/* Tip jar */
.support-package { display: flex; align-items: center; gap: 20px; padding: 28px 32px; border: 1px solid var(--magenta-dim); border-radius: 12px; background: linear-gradient(135deg, var(--bg-card) 0%, var(--magenta-glow) 100%); }
.support-package-icon { font-size: 36px; flex-shrink: 0; }
img.support-package-icon { height: 110px; width: auto; user-select: none; -webkit-user-drag: none; }
.support-package-info { flex: 1; }
.support-package-title { font-size: 20px; font-weight: 600; color: var(--magenta); margin-bottom: 6px; }
.support-package-detail { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.support-package .btn-primary { background: var(--magenta); box-shadow: 0 0 20px var(--magenta-glow); }
.support-package .btn-primary:hover { box-shadow: 0 0 30px rgba(217, 70, 239, 0.3); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); transition: all 0.3s; }
.faq-item[open] { border-color: var(--cyan-dim); background: var(--bg-card-hover); }
.faq-item summary { padding: 20px 24px; font-size: 15px; font-weight: 500; color: var(--text-primary); cursor: pointer; list-style: none; position: relative; padding-right: 56px; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 22px; color: var(--cyan); transition: transform 0.2s; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--cyan); }
.faq-item p { padding: 0 24px 20px 24px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* === MERCH PAGE === */

/* Top-of-page preview-mode notice (magenta-accent, like .event-banner) */
.merch-notice {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--magenta-glow) 100%);
  border: 1px solid var(--magenta-dim);
  border-radius: 12px;
  padding: 24px 28px;
}
.merch-notice-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--magenta);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.merch-notice-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.merch-notice-text a {
  color: var(--cyan);
  text-decoration: none;
}
.merch-notice-text a:hover { text-decoration: underline; }

/* Product grid — 3-up desktop, 2-up tablet, 1-up mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--cyan-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Wrapper so .product-image and .product-image-placeholder share the
   same aspect ratio + bottom border. Either lives inside .product-media,
   never both at once. */
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-deep);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-card-hover) 100%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(34,211,238,0.04) 8px 9px);
  background-blend-mode: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-aside);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.product-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-aside);
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-dim);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
}
.product-badge--magenta {
  color: var(--magenta);
  background: var(--magenta-glow);
  border-color: var(--magenta-dim);
}

/* Status states */
.product-card--coming-soon,
.product-card--sold-out {
  opacity: 0.78;
}
.product-card--coming-soon .product-image-placeholder,
.product-card--coming-soon .product-image,
.product-card--sold-out .product-image-placeholder,
.product-card--sold-out .product-image {
  filter: grayscale(0.6);
}

.product-info {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.product-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}
.product-variants {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-aside);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: 16px;
}
.product-button {
  width: 100%;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .maps-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-schedule { flex-direction: column; gap: 12px; }
  .schedule-divider { transform: rotate(90deg); }
  nav .nav-links { gap: 16px; }
  nav .nav-links a { font-size: 12px; }
  .hero h1 { font-size: clamp(28px, 6vw, 48px); }
  .hero-sub { font-size: 16px; }
  .section h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 32px; }
  .schedule-block { padding: 20px 32px; }
  .event-inner { flex-direction: column; text-align: center; }
  .tier-grid { grid-template-columns: 1fr; margin-top: 0; }
  .tier-card.featured { transform: none; }
  .support-package { flex-direction: column; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .maps-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .close-actions { flex-direction: column; align-items: center; }
  nav .nav-links { display: none; }
  .connect-step { flex-direction: column; gap: 12px; }
  .stat-number { font-size: 24px; }
  .rate-value { font-size: 18px; }
}

/* ============================================================
   /merch Phase 2 — modals, cart drawer, controls
   ============================================================ */

/* Floating cart icon */
.cart-icon-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 24px var(--cyan-glow);
  transition: all 0.2s;
}
.cart-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 32px var(--cyan-glow);
  border-color: var(--cyan);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--magenta);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Modal scaffold (shared by detail + handoff) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  z-index: 1;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* Detail modal */
.detail-modal-panel { padding: 0; }
.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.detail-image {
  background: var(--bg-deep);
  aspect-ratio: 1 / 1;
  border-right: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image .product-image-placeholder { width: 100%; height: 100%; }

.detail-info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.detail-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.detail-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.detail-select {
  background: var(--bg-deep);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.detail-select:focus { outline: none; border-color: var(--cyan-dim); }

/* Quantity control (shared by detail + cart-item) */
.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: fit-content;
}
.qty-control button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.15s;
}
.qty-control button:hover { color: var(--cyan); }
.qty-control input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 6px;
}
.detail-price-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.detail-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--magenta);
}
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.detail-actions .btn-primary,
.detail-actions .btn-secondary { flex: 1; justify-content: center; }
.detail-note {
  font-size: 12px;
  color: var(--text-aside);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  padding-top: 4px;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}
.cart-drawer.is-open { display: block; }
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.cart-drawer-notice {
  background: var(--magenta-glow);
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--magenta-dim);
  text-align: center;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.cart-empty {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  padding: 60px 20px;
  font-style: italic;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-thumb .product-image-placeholder {
  width: 100%;
  height: 100%;
  font-size: 8px;
  padding: 4px;
  letter-spacing: 1px;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.cart-item-variant {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--magenta);
  margin: 2px 0 4px;
}
.cart-item-qty {
  display: inline-flex;
  align-items: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: fit-content;
}
.cart-item-qty button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
}
.cart-item-qty button:hover { color: var(--cyan); }
.cart-item-qty input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  -moz-appearance: textfield;
}
.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 24px;
  height: 24px;
  font-size: 16px;
  align-self: start;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: var(--magenta); }

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 18px 24px 22px;
  background: var(--bg-card);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.cart-subtotal span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--magenta);
}
.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}
.cart-checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.cart-fineprint {
  font-size: 11px;
  color: var(--text-aside);
  text-align: center;
  margin: 10px 0 0;
  font-style: italic;
}

/* Handoff sub-modal */
.handoff-modal-panel { max-width: 540px; }
.handoff-content {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.handoff-content .section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}
.handoff-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.handoff-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.handoff-items {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.handoff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.handoff-item:last-child { border-bottom: none; }
.handoff-item-name { flex: 1; min-width: 0; }
.handoff-item-variant {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.handoff-item-link {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.handoff-item-link:hover { text-decoration: underline; }
.handoff-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0 4px;
}
.handoff-total-row span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--magenta);
}
.handoff-shopify-btn {
  width: 100%;
  justify-content: center;
}
.handoff-fineprint {
  font-size: 11px;
  color: var(--text-aside);
  text-align: center;
  margin: 8px 0 0;
  font-style: italic;
}

body.modal-open,
body.drawer-open { overflow: hidden; }

/* Card click affordance + secondary CTA */
.product-card { cursor: pointer; }
.product-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
  width: 100%;
  transition: all 0.2s;
}
.product-button-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text-primary);
}

/* Hover-swap front → back perspective (cards + detail modal share rules) */
.product-media--has-hover { position: relative; }
.product-media--has-hover .product-image--front {
  transition: opacity 0.3s ease;
}
.product-media--has-hover .product-image--back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-deep);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.product-media--has-hover:hover .product-image--back {
  opacity: 1;
}
/* Touch devices: hover state can stick weirdly after a tap. Hide back image
   entirely so taps just open the detail modal as expected. */
@media (hover: none) {
  .product-media--has-hover .product-image--back { display: none; }
}

/* Phase 2 mobile responsiveness */
@media (max-width: 720px) {
  .detail-content { grid-template-columns: 1fr; }
  .detail-image {
    aspect-ratio: 4 / 3;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .detail-info { padding: 24px; }
  .detail-name { font-size: 22px; }
  .modal-panel { max-height: 95vh; }
  .cart-drawer-panel { max-width: 100%; }
  .cart-icon-btn { right: 16px; bottom: 16px; }
  .handoff-content { padding: 28px 24px 24px; }
}

/* Hero supporting note (no-whitelist friction-reduction copy) */
.hero-note { font-size: 15px; color: var(--text-aside); max-width: 560px; line-height: 1.6; margin: -24px 0 32px; opacity: 0; animation: fadeUp 0.6s ease forwards 0.7s; }
.hero-note strong { color: var(--text-primary); font-weight: 600; }

/* Live Server Status row inside How to Join */
.connect-status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.status-note { font-size: 14px; color: var(--text-aside); margin: 0; font-style: italic; }
@media (max-width: 640px) { .connect-status { flex-direction: column; align-items: flex-start; gap: 8px; } }

