/* ============================================================
   DOG JOKES COMIC — Main Stylesheet
   Fonts: Bebas Neue (display) + Nunito (body)
   Colors: #f5c842 yellow · #111 black · #fafaf8 off-white
   ============================================================ */

/* === RESET & VARIABLES ===================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:    #f5c842;
  --yellow-dk: #e0b000;
  --black:     #111111;
  --white:     #ffffff;
  --off-white: #fafaf8;
  --gray-100:  #f2f1ee;
  --gray-200:  #e4e2dc;
  --gray-500:  #9a9790;
  --gray-700:  #555550;
  --green:     #2a5a18;
  --orange:    #ff6b35;

  --nav-h:       64px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 2px 16px rgba(0,0,0,.07);
  --shadow-md:   0 6px 28px rgba(0,0,0,.11);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.16);

  --max-w:       1240px;
  --section-py:  96px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* prevent any element overflow from creating horizontal scroll */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* === LAYOUT ================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: var(--section-py) 0; }
.section--dark   { background: var(--black); color: var(--white); }
.section--yellow { background: var(--yellow); }
.section--gray   { background: var(--gray-100); }
.section--white  { background: var(--white); }

.section-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 4.5vw, 64px);
  letter-spacing: .5px; line-height: 1;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; font-weight: 600;
  color: var(--gray-700); max-width: 520px; line-height: 1.6;
}
.section-header { margin-bottom: 48px; }
.section-header-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 48px; flex-wrap: wrap;
}

/* === TYPOGRAPHY ============================================ */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .5px; line-height: 1.05;
}

/* === BADGES ================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: 100px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
}
.badge-yellow  { background: var(--yellow);  color: var(--black); }
.badge-black   { background: var(--black);   color: var(--white); }
.badge-orange  { background: var(--orange);  color: var(--white); }
.badge-outline { border: 1.5px solid currentColor; background: transparent; }
.badge-white   { background: rgba(255,255,255,.15); color: var(--white); border: 1.5px solid rgba(255,255,255,.3); }

/* === BUTTONS =============================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333; }

.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dk); border-color: var(--yellow-dk); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-lg { padding: 17px 36px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* === CARDS ================================================= */
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* === PLACEHOLDER IMAGES ==================================== */
/* Replace with real <img> tags; keep the wrapper div + sizing class */
.ph {
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: var(--gray-500);
  width: 100%; user-select: none; border-radius: inherit;
}
.ph-1x1  { aspect-ratio: 1/1; }
.ph-4x3  { aspect-ratio: 4/3; }
.ph-16x9 { aspect-ratio: 16/9; }
.ph-9x16 { aspect-ratio: 9/16; }
.ph-2x3  { aspect-ratio: 2/3; }
.ph-3x4  { aspect-ratio: 3/4; }
.ph-dark { background: #1c1c1c; color: #444; }

/* === NAV =================================================== */
#site-nav {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .25s, border-color .25s;
}
#site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.09);
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: var(--max-w); width: 100%;
  margin: 0 auto; padding: 0 48px;
  height: 100%;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 16px;
}
.nav-logo-img { height: 36px; border-radius: 6px; }
/* PLACEHOLDER: replace img with <img src="/img/logo.png" class="nav-logo-img"> */
.nav-logo-mark {
  width: 36px; height: 36px; background: var(--yellow);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px; color: var(--black); letter-spacing: .5px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; flex: 1;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  color: var(--gray-700); text-decoration: none;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--black); background: var(--gray-100); }
.nav-links a.active { color: var(--black); background: var(--gray-100); }
.nav-cta-item a {
  background: var(--black); color: var(--white) !important;
  padding: 8px 18px !important; border-radius: var(--radius-sm);
}
.nav-cta-item a:hover { background: #333 !important; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background .15s;
  /* minimum 44×44 touch target */
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger svg { width: 26px; height: 26px; stroke: var(--black); fill: none; stroke-width: 2.2; stroke-linecap: round; }
/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 800;
  flex-direction: column; padding: 24px 20px;
  gap: 4px; overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 700; text-decoration: none; color: var(--black);
  transition: background .15s;
}
.nav-drawer a:hover { background: var(--gray-100); }
.nav-drawer .drawer-cta {
  margin-top: 16px; background: var(--black); color: var(--white);
  text-align: center; border-radius: var(--radius-sm);
  padding: 16px; font-size: 17px; font-weight: 800; text-decoration: none;
}
.nav-drawer .drawer-cta:hover { background: #333; }

/* === HERO (Homepage) ======================================= */
.hero {
  background: var(--black); color: var(--white);
  padding: 100px 0 88px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--yellow);
}
/* decorative blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18; pointer-events: none;
}
.hero-blob-1 { width: 420px; height: 420px; background: var(--yellow); top: -100px; right: 30%; }
.hero-blob-2 { width: 320px; height: 320px; background: var(--orange); bottom: -60px; right: 10%; }

.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 7vw, 108px);
  letter-spacing: 1px; line-height: .93;
  margin-bottom: 24px;
}
.hero-headline em { color: var(--yellow); font-style: normal; }
.hero-sub {
  font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,.72);
  max-width: 440px; margin-bottom: 40px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-footnote {
  margin-top: 20px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.4); display: flex; align-items: center; gap: 8px;
}
.hero-footnote::before { content: ''; width: 24px; height: 1px; background: currentColor; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-wrap {
  position: relative;
  animation: float 4.5s ease-in-out infinite;
}
.phone-wrap::before {
  content: ''; position: absolute;
  bottom: -24px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 28px;
  background: rgba(255,255,255,.06); border-radius: 50%;
  filter: blur(12px);
}
.phone {
  width: 240px; aspect-ratio: 9/19.5;
  background: #1a1a1a; border-radius: 38px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.phone-notch {
  width: 88px; height: 8px; background: #0a0a0a;
  border-radius: 0 0 8px 8px; flex-shrink: 0; z-index: 2;
  margin-top: 6px;
}
.phone-screen {
  flex: 1; width: 100%;
  background: var(--gray-100);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
}
.phone-screen-inner {
  background: var(--white); width: 100%; border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.phone-cover-ph {
  width: 100%; aspect-ratio: 1/1; border-radius: 8px;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.phone-title-ph {
  height: 14px; background: var(--gray-200); border-radius: 4px; width: 80%;
}
.phone-btn-ph {
  height: 28px; background: var(--black); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.phone-btn-ph span {
  font-size: 9px; font-weight: 800; color: var(--white); letter-spacing: .5px;
}

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

/* === WHAT'S NEW ============================================ */
/* ── PRODUCT SCROLL CAROUSEL ─────────────────────────── */
.products-scroll-wrap {
  position: relative;
  margin-top: 24px;
  /* Cancel container padding so wrap reaches section edges */
  margin-left: -48px;
  margin-right: -48px;
}
.products-scroll-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* 48px left = container padding, so first card aligns with title */
  padding: 8px 48px 24px 48px;
  /* tell scroll-snap where the port starts, matching padding-left */
  scroll-padding-left: 48px;
}
.products-scroll-track::-webkit-scrollbar { display: none; }
.products-scroll-track .store-card {
  flex-shrink: 0;
  width: 300px;
  scroll-snap-align: start;
}
.scroll-btn {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid #111;
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s, color .15s;
}
.scroll-btn:hover { background: #111; color: #fff; }
.scroll-btn-left  { left: 4px; }
.scroll-btn-right { right: 4px; }

.drops-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.drop-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.drop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.drop-card-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; overflow: hidden;
  transition: transform .35s;
}
.drop-card:hover .drop-card-img { transform: scale(1.04); }
.drop-card-body { padding: 22px 26px 26px; }
.drop-card-meta {
  font-size: 11px; font-weight: 800; color: var(--gray-500);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.drop-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px;
  margin-bottom: 10px; line-height: 1;
}
.drop-card-desc { font-size: 14px; color: var(--gray-700); line-height: 1.55; }

/* === COMIC PROMO BLOCK ===================================== */
.comic-promo { overflow: hidden; }
.comic-promo-inner {
  max-width: var(--max-w); margin: 0 auto; padding: var(--section-py) 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.promo-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; opacity: .6; }
.promo-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.5vw, 80px); line-height: .95; margin-bottom: 20px;
}
.promo-sub { font-size: 16px; font-weight: 600; line-height: 1.65; margin-bottom: 28px; max-width: 420px; }
.promo-perks { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.promo-perks li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px;
}
.promo-perks li .perk-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.promo-price-note { font-size: 13px; font-weight: 700; margin-top: 12px; opacity: .65; }

/* stacked comic previews */
.promo-visual { display: flex; justify-content: center; align-items: center; }
.comic-stack { position: relative; width: 200px; height: 280px; }
.comic-stack-item {
  position: absolute; width: 140px; aspect-ratio: 2/3;
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--gray-500);
  overflow: hidden;
}
.comic-stack-item:nth-child(1) { left: 0;   top: 20px; transform: rotate(-5deg); z-index: 1; }
.comic-stack-item:nth-child(2) { left: 52px; top: 0;   transform: rotate(3deg);  z-index: 2; }
.comic-stack-item:nth-child(3) { left: 30px; top: 40px; transform: rotate(-1deg); z-index: 3; }

/* === NEWSLETTER =========================================== */
.newsletter { border-top: 1px solid var(--gray-200); }
.newsletter-inner {
  max-width: 600px; margin: 0 auto; padding: 88px 48px;
  text-align: center;
}
.newsletter h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 12px; }
.newsletter p { font-size: 15px; color: var(--gray-700); margin-bottom: 32px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200); background: var(--off-white);
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 600;
  outline: none; transition: border-color .15s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--black); }
.newsletter-form input[type="email"]::placeholder { color: var(--gray-500); }
.newsletter-fine { font-size: 12px; color: var(--gray-500); margin-top: 12px; }
.newsletter-success {
  display: none; background: var(--gray-100); border-radius: var(--radius-sm);
  padding: 16px 20px; font-weight: 700; color: var(--green);
  margin-top: 16px;
}

/* === FOOTER =============================================== */
footer {
  background: var(--black); color: var(--white);
  padding: 72px 0 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo-link {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px;
  color: var(--white); text-decoration: none; display: flex;
  align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-logo-mark {
  width: 32px; height: 32px; background: var(--yellow);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
}
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin-bottom: 24px; max-width: 240px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px;
  transition: background .15s; color: var(--white);
}
.footer-social a:hover { background: rgba(255,255,255,.18); }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.65); text-decoration: none;
  transition: color .15s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px; color: rgba(255,255,255,.3);
  text-decoration: none; transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* === PAGE HERO (inner pages) ============================== */
.page-hero {
  background: var(--black); color: var(--white);
  padding: 72px 0 60px;
  border-bottom: 3px solid var(--yellow);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
.page-hero h1 { font-size: clamp(52px, 7vw, 96px); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.6); max-width: 480px; line-height: 1.6; }

/* === STORE ================================================= */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-img-wrap { overflow: hidden; }
.product-img {
  width: 100%; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; background: var(--gray-100);
  transition: transform .35s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; margin-bottom: 6px; line-height: 1; }
.product-desc { font-size: 13px; color: var(--gray-700); line-height: 1.5; flex: 1; margin-bottom: 16px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 20px; font-weight: 800; }
.btn-add-cart {
  background: var(--black); color: var(--white);
  border: none; padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-add-cart:hover { background: #333; transform: translateY(-1px); }

/* cart drawer hint */
.cart-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--black); color: var(--white);
  padding: 14px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}
.cart-toast.show { transform: translateY(0); opacity: 1; }

/* === PRICING (Get the Comic) ============================== */
.pricing-intro { max-width: 560px; margin: 0 auto; text-align: center; margin-bottom: 56px; }
.pricing-intro h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 14px; }
.pricing-intro p { font-size: 16px; color: var(--gray-700); line-height: 1.65; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 680px; margin: 0 auto;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 36px 36px;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  background: var(--off-white); color: var(--black);
  border-color: var(--black);
  overflow: hidden;
}
.pricing-card.featured:hover { border-color: var(--yellow); }

/* crossfade bg slides inside the featured card */
.pricing-card.featured .bg-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: nl-crossfade 6s infinite;
}
.pricing-card.featured .bg-slide:nth-child(2) { animation-delay: -3s; }

/* all card text/buttons sit above the bg slides */
.pricing-card-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; flex: 1;
}
.pricing-badge-wrap {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.pricing-period {
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px;
}
.pricing-card.featured .pricing-period { color: var(--gray-500); }
.pricing-amount {
  font-family: 'Bebas Neue', sans-serif; font-size: 72px;
  line-height: 1; margin-bottom: 2px;
}
.pricing-amount sup { font-size: 32px; vertical-align: super; }
.pricing-cadence { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.pricing-card.featured .pricing-cadence { color: var(--gray-500); }
.pricing-features {
  list-style: none; display: flex; flex-direction: column; gap: 13px;
  margin-bottom: 32px; flex: 1;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.pricing-features li::before {
  content: '✓'; flex-shrink: 0; font-weight: 900; font-size: 12px; margin-top: 1px;
}
.pricing-card.featured .pricing-features li::before { color: var(--green); }
.pricing-card:not(.featured) .pricing-features li::before { color: var(--green); }

/* === WHAT MEMBERS GET ===================================== */
.perks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 56px;
}
.perk-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.perk-icon { font-size: 40px; margin-bottom: 16px; }
.perk-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; margin-bottom: 8px; }
.perk-desc { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* === FAQ =================================================== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .15s;
}
.faq-item.open { border-color: var(--black); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 700;
  text-align: left; color: var(--black); transition: background .15s;
}
.faq-q:hover { background: var(--gray-100); }
.faq-icon { font-size: 22px; transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 20px; font-size: 15px; color: var(--gray-700); line-height: 1.7; }

/* === ABOUT ================================================= */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.about-text h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }
.about-text p {
  font-size: 16px; color: var(--gray-700); line-height: 1.8; margin-bottom: 18px;
}
.about-text p strong { color: var(--black); font-weight: 800; }
.about-text p:last-child { margin-bottom: 0; }
.about-img-wrap {
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.about-img-ph {
  width: 100%; aspect-ratio: 3/4;
  background: var(--gray-200); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}

/* news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.news-date { font-size: 11px; font-weight: 800; color: var(--gray-500); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.news-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; margin-bottom: 10px; line-height: 1.1; }
.news-body { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* instagram row */
.ig-block {
  background: var(--black); color: var(--white);
  text-align: center; padding: 80px 48px;
}
.ig-block h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 16px; }
.ig-block p { font-size: 16px; color: rgba(255,255,255,.6); margin-bottom: 32px; }

/* === FADE-IN ON SCROLL ==================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE =========================================== */
@media (max-width: 1100px) {
  :root { --max-w: 960px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 360px; }
  .hero-inner { grid-template-columns: 1fr 340px; gap: 48px; }
}

@media (max-width: 900px) {
  .drops-grid { grid-template-columns: 1fr 1fr; }
  .news-grid   { grid-template-columns: 1fr 1fr; }
  .perks-grid  { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { position: static; }
  .comic-promo-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; --section-py: 64px; }
  .container   { padding: 0 20px; }
  .nav-inner   { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .page-hero-inner { padding: 0 20px; }
  /* carousel: match reduced container padding */
  .products-scroll-wrap  { margin-left: -20px; margin-right: -20px; }
  .products-scroll-track { padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }

  /* nav */
  .nav-links   { display: none; }
  .nav-hamburger { display: flex; }

  /* hero */
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .hero-visual { display: none; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  /* what's new */
  .drops-grid { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }

  /* promo */
  .comic-promo-inner { padding: 64px 20px; }
  .promo-visual { display: none; }

  /* newsletter */
  .newsletter-inner { padding: 64px 20px; }
  .newsletter-form { flex-direction: column; }

  /* footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* store */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* about */
  .about-split { grid-template-columns: 1fr; }
  .about-story { padding: var(--section-py) 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr; }
  .ig-block { padding: 64px 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   MEME SECTION — bg + character slideshow
═══════════════════════════════════════════════════════════ */
.meme-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex; align-items: center;
}

/* sliding bg layers */
.meme-slides {
  position: absolute; inset: 0; z-index: 0;
}
.meme-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.meme-slide.active { opacity: 1; }
.meme-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
/* character: bottom-right, cropped naturally by overflow:hidden */
.meme-slide-char {
  position: absolute;
  right: 0; bottom: 0;
  height: 96%; width: auto;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

/* no overlay — light backgrounds need no scrim */
.meme-overlay { display: none; }

/* content sits above slides */
.meme-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 80px 48px;
  color: var(--black);
}
.meme-content-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #555;   /* 7:1 on white/cream */
  margin-bottom: 14px;
}
.meme-content-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: .95; letter-spacing: .5px;
  color: #000;
  margin-bottom: 16px;
}
/* "BIXIN" accent — dark green passes AA on all three light bgs */
.meme-content-title em { color: var(--green); font-style: normal; }
.meme-content-sub {
  font-size: 16px; font-weight: 600;
  color: #333; max-width: 400px;     /* 12.6:1 on white */
  line-height: 1.6; margin-bottom: 36px;
}

/* comic selector cards */
.comic-selector {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.comic-select-card {
  display: flex; flex-direction: column;
  width: 160px;
  background: rgba(255,255,255,.75);
  border: 2px solid rgba(0,0,0,.15);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--black);
  transition: border-color .18s, background .18s, transform .18s;
  cursor: pointer;
}
.comic-select-card:hover {
  border-color: var(--black);
  background: rgba(255,255,255,.95);
  transform: translateY(-3px);
}
.comic-select-card img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
}
.comic-select-label {
  padding: 10px 12px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: .3px; line-height: 1.15;
  color: #000;
}
.comic-select-cta {
  font-size: 11px; font-weight: 800;
  color: var(--green); letter-spacing: .4px;  /* 7:1 on white bg */
  margin-top: 4px; display: block;
}

/* slide dots — dark on light backgrounds */
.meme-dots {
  position: absolute; bottom: 20px; left: 48px;
  z-index: 3; display: flex; gap: 8px;
}
.meme-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.2);
  transition: background .3s, transform .3s;
}
.meme-dot.active { background: var(--black); transform: scale(1.4); }

/* ── Comic-sub title overlay (desktop: hidden) ── */
.comic-sub-title-overlay { display: none; }

@media (max-width: 768px) {
  /* ══════════════════════════════════════
     1. HERO: text LEFT, dog RIGHT, same row
     ══════════════════════════════════════ */
  .meme-section {
    min-height: 420px;
    align-items: flex-start;
  }
  .meme-content {
    padding: 36px 20px 20px;
    max-width: 100%;
    width: 100%;
  }
  /* Only the text lines are constrained left */
  .meme-content-label,
  .meme-content-title,
  .meme-content-sub {
    max-width: 54%;
  }
  .meme-content-label { margin-bottom: 8px; font-size: 10px; }
  .meme-content-title { font-size: 32px; line-height: .95; margin-bottom: 10px; }
  .meme-content-sub   { font-size: 13px; line-height: 1.5; margin-bottom: 20px; }

  /* Dog: 40% of section height, 12px from right */
  .meme-slide-char {
    width: auto;          /* let aspect ratio determine width */
    height: 40%;          /* 40% of the 420px section = ~168px */
    right: 12px;
    top: 20px;
    bottom: auto;
    max-height: none;
    opacity: 1;
    object-fit: contain;
    object-position: center center;
  }

  /* Cards: full-width horizontal scroll */
  .comic-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 4px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .comic-selector::-webkit-scrollbar { display: none; }
  .comic-select-card { width: 130px; flex-shrink: 0; }
  .meme-dots { left: 20px; bottom: 12px; }

  /* ══════════════════════════════════════
     2. PRODUCT CARDS: auto height
     ══════════════════════════════════════ */
  .scroll-btn { display: none; }
  .products-scroll-track .store-card {
    width: 200px;
    height: auto;       /* remove fixed 500px */
  }
  .products-scroll-track .store-card .store-card-img {
    height: 200px;      /* fixed image area */
    flex: none;
  }

  /* ══════════════════════════════════════
     3. HOMEPAGE comic-sub: video at top (220px),
        title ON video, content flows below.
        Uses .comic-sub--home to avoid affecting comic.html.
        Higher specificity (.comic-sub--home .comic-sub-video 0,2,0)
        beats the desktop rule (.comic-sub-video 0,1,0) even though
        it appears earlier in the file.
     ══════════════════════════════════════ */
  /* Section: padding-top = video height → pushes inner below video */
  .comic-sub--home {
    padding-top: 220px;
    min-height: auto;
    overflow: visible;
    align-items: stretch;
  }
  /* Video: keep position:absolute but limit height to 220px (override inset:0) */
  .comic-sub--home .comic-sub-video {
    height: 220px;
    bottom: auto;   /* override inset:0 which would make height=100% */
    object-fit: cover;
  }
  /* Title overlay ON the video */
  .comic-sub-title-overlay {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 220px;
    padding: 20px 24px;
    z-index: 3;
    pointer-events: none;
  }
  .comic-sub-title-overlay .promo-headline {
    font-size: 32px;
    line-height: .95;
    color: #000;
  }
  /* Desktop headline hidden on mobile */
  .comic-sub-desktop-headline { display: none; }
  /* Content: white, below the video */
  .comic-sub--home .comic-sub-inner {
    position: relative;
    background: #fff;
    padding: 32px 20px 48px;
    width: 100%;
    box-sizing: border-box;
  }
  .comic-sub-text { max-width: 100%; }
  /* Hide the "Members only" label on mobile to keep it clean */
  .comic-sub-text .promo-label { display: none; }

  /* ══════════════════════════════════════
     4. HAMBURGER: bigger touch target
     ══════════════════════════════════════ */
  .nav-hamburger {
    padding: 14px;
    margin-right: -14px;  /* compensate so icon aligns with nav edge */
  }
  /* Cart button: bigger touch target on mobile */
  #nav-cart-btn {
    padding: 12px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    margin-right: 0 !important;
  }

  /* ══════════════════════════════════════
     5. STORE glad grid: 1 column
     ══════════════════════════════════════ */
  .glad-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   COMIC SUBSCRIPTION — video background
═══════════════════════════════════════════════════════════ */
.comic-sub {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
}
.comic-sub-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.comic-sub-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 48px;
  display: flex;
}
.comic-sub-text {
  max-width: 560px;
}
.comic-sub-text .promo-perks li .perk-check {
  background: var(--black); color: var(--yellow);
}
.comic-sub-text .promo-sub { color: #000; }
.comic-sub-text .promo-price-note { color: #555; }
.comic-sub-text .promo-perks li { color: #000; }

@media (max-width: 900px) {
  .comic-sub-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  /* comic.html full-bleed header: reduce padding so title isn't cramped */
  .comic-sub:not(.comic-sub--home) .comic-sub-inner { padding: 48px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER — CSS-only crossfade background (no JS needed)
   Cycle: 6s total = 3s per image, 1s fade transition
═══════════════════════════════════════════════════════════ */
@keyframes nl-crossfade {
  0%   { opacity: 1; }
  42%  { opacity: 1; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}

.newsletter-section {
  position: relative;
  overflow: hidden;
}
/* The two bg layers sit directly inside .newsletter-section */
.newsletter-section .bg-slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: contain;
  background-repeat: repeat;
  background-position: top left;
  animation: nl-crossfade 6s infinite;
}
/* Slide 2 starts half-cycle ahead so it shows while slide 1 is hidden */
.newsletter-section .bg-slide:nth-child(2) { animation-delay: -3s; }

.newsletter-inner-wrap {
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — comic strip grid (6 panels 2×3)
═══════════════════════════════════════════════════════════ */
.about-comic-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-comic-strip img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.about-comic-strip img:hover { transform: scale(1.03); z-index: 1; }

@media (max-width: 768px) {
  .about-comic-strip { grid-template-columns: 1fr 1fr; gap: 6px; }
}

/* ═══════════════════════════════════════════════════════════
   IMAGE BACKGROUND SECTIONS — shared utility
═══════════════════════════════════════════════════════════ */
.img-bg-section { position: relative; overflow: hidden; }
.img-bg-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: rgba(0,0,0,.5);
}
.img-bg-content { position: relative; z-index: 1; }

/* PERK CARD — image replaces emoji icon */
.perk-img {
  width: 100%; height: auto;
  object-fit: contain; display: block;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   REFERRAL CARD
═══════════════════════════════════════════════════════════ */
.referral-card {
  display: flex; gap: 0;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 680px;
  box-shadow: 6px 6px 0 var(--black);
  overflow: hidden;
}

/* Left: QR code */
.referral-qr-wrap {
  flex-shrink: 0; width: 180px;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 20px; gap: 12px;
}
.referral-qr {
  width: 120px; height: 120px;
  background: var(--white); border-radius: 8px;
  padding: 6px; display: flex; align-items: center; justify-content: center;
}
.referral-qr canvas, .referral-qr img { border-radius: 4px; }
.referral-qr-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.55);
  text-align: center; letter-spacing: .3px; line-height: 1.4;
}

/* Right: steps */
.referral-card-body {
  flex: 1; padding: 32px 36px 36px;
}

.referral-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 6px;
}
.referral-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px; letter-spacing: .5px; line-height: 1; margin-bottom: 24px;
}

.referral-steps {
  list-style: none; display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px;
}
.referral-steps li { display: flex; gap: 14px; align-items: flex-start; }
.referral-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow);
  font-size: 12px; font-weight: 900; color: var(--black);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.referral-step-text {
  font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.55;
}
.referral-step-text a { color: var(--black); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.referral-step-text strong { font-weight: 900; }
.referral-step-text em { font-style: normal; font-size: 12px; color: var(--gray-500); font-weight: 600; }

.referral-copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--black); color: var(--white); border: none;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background .15s, transform .1s;
}
.referral-copy-btn:hover { background: #333; transform: translateY(-1px); }
.referral-copy-btn.copied { background: var(--green); }
.referral-copy-btn svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .referral-card { flex-direction: column; max-width: 360px; }
  .referral-qr-wrap { width: 100%; flex-direction: row; padding: 20px 24px; gap: 16px; justify-content: flex-start; }
  .referral-qr { width: 80px; height: 80px; }
  .referral-qr-label { text-align: left; }
  .referral-card-body { padding: 24px 24px 28px; }
  .referral-title { font-size: 32px; }
}
