/* Sparks landing page styles */
@import url('./colors_and_type.css?v=1');

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

body.sparks {
  background: var(--bg-1);
  color: var(--fg-1);
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: 2.5px solid #000;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  background: #fff;
  color: #000;
  box-shadow: 5px 5px 0 0 #000;
  transition: transform 160ms var(--ease-bounce), box-shadow 160ms var(--ease-bounce);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 0 #000; }
.btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 0 #000; }
.btn.primary { background: var(--sparks-yellow); }
.btn.love { background: var(--sparks-pink); }
.btn.cool { background: var(--sparks-lilac); }
.btn.ghost { background: transparent; box-shadow: none; border-color: #000; }
.btn.ghost:hover { background: rgba(0,0,0,0.04); box-shadow: none; transform: none; }
.btn.lg { font-size: 18px; padding: 16px 32px; box-shadow: 7px 7px 0 0 #000; }
.btn.lg:hover { box-shadow: 9px 9px 0 0 #000; }
.btn.sm { font-size: 13px; padding: 8px 16px; border-width: 2px; box-shadow: 3px 3px 0 0 #000; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 3px 3px 0 0 #000;
}
.chip.yellow { background: var(--sparks-yellow); }
.chip.pink { background: var(--sparks-pink); }
.chip.lilac { background: var(--sparks-lilac); }
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: #000; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: var(--bg-1); border-bottom: 2px solid #000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 32px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 640px) { .nav-inner { padding: 0 20px; height: 58px; } }
.brand { font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand .bolt { display: inline-block; width: 28px; height: 28px; transform: rotate(-6deg); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { text-decoration: underline; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; padding: 72px 0 96px; background: var(--sparks-yellow); border-bottom: 2.5px solid #000; overflow: hidden; }
.hero.pink { background: var(--sparks-pink); }
.hero.lilac { background: var(--sparks-lilac); }
.hero.white { background: var(--bg-2); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-copy .eyebrow { margin-bottom: 18px; display: inline-block; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-copy h1 .accent { display: inline-block; position: relative; }
.hero-lead { font-size: 20px; line-height: 1.55; max-width: 540px; margin: 0 0 72px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: rgba(0,0,0,0.6); margin-top: 16px; }

.float-badge {
  position: absolute;
  font-family: var(--font-display);
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 5px 5px 0 0 #000;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
}
.float-badge.b1 { top: 44px; right: 4%; transform: rotate(6deg); background: var(--sparks-lilac); }
.float-badge.b2 { bottom: 46px; left: 2%; transform: rotate(-5deg); background: var(--sparks-pink); }

/* phone mockup (Rotato screenshots) */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 680px;
  margin: 0 auto;
}
.phone-mockup-img {
  position: absolute;
  top: calc(50% + 50px); left: 50%;
  transform: translate(-50%, -50%) scale(1.12);
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
@media (max-width: 820px) {
  .phone-mockup { height: 560px; }
}
@media (max-width: 560px) {
  .phone-mockup { height: 480px; }
}
.phone-mockup-img.is-active { opacity: 1; }
.phone-mockup-dots {
  position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  box-shadow: 3px 3px 0 0 #000;
  z-index: 2;
}
.phone-mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d6cec2;
  border: none; padding: 0; cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.phone-mockup-dot.is-active { background: #000; transform: scale(1.2); }
.phone-mockup-dot:hover { background: #8a8374; }

/* phone (legacy hand-drawn — kept for reference but no longer used) */
.phone {
  position: relative;
  width: 320px; max-width: 100%; margin: 0 auto;
  aspect-ratio: 320 / 660;
  background: #0f1525;
  border: 3px solid #000;
  border-radius: 48px;
  box-shadow: 10px 10px 0 0 #000;
  overflow: hidden;
  transform: rotate(-3deg);
}
.phone::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 10; }
.phone-screen { position: absolute; inset: 0; padding: 44px 14px 18px; display: flex; flex-direction: column; gap: 12px; color: #fff8f0; font-family: var(--font-body); overflow: hidden; }
.phone-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.phone-logo { font-family: var(--font-display); font-size: 20px; color: var(--sparks-yellow); letter-spacing: -0.01em; }
.phone-hero { border-radius: 14px; overflow: hidden; position: relative; height: 180px; background-size: cover; background-position: center; border: 1.5px solid rgba(255,255,255,0.1); }
.phone-hero-label { position: absolute; left: 12px; right: 12px; bottom: 10px; font-family: var(--font-display); font-size: 18px; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.phone-cat-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); padding: 0 6px; margin-top: 4px; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 6px; }
.phone-tile { border-radius: 10px; aspect-ratio: 1; background-size: cover; background-position: center; position: relative; border: 1px solid rgba(255,255,255,0.08); }
.phone-tile-label { position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: 10px; font-weight: 700; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.phone-nav { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }
.phone-nav span.active { color: #f8c777; }

/* sections */
section.sec { padding: 96px 0; border-bottom: 2.5px solid #000; }
section.sec.bg-white { background: var(--bg-1); }
section.sec.bg-warm { background: var(--bg-2); }
section.sec.bg-yellow { background: var(--sparks-yellow); }
section.sec.bg-pink { background: var(--sparks-pink); }
section.sec.bg-lilac { background: var(--sparks-lilac); }

.sec-head { max-width: 820px; margin: 0 0 48px; }
.sec-head.center { margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.01em; margin: 12px 0 18px; text-wrap: balance; }
.sec-head p { font-size: 19px; line-height: 1.55; max-width: 640px; margin: 0; text-wrap: pretty; }
.sec-head.center p { margin-left: auto; margin-right: auto; }

.concept { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .concept { grid-template-columns: 1fr; } }
.concept-card { border: 2.5px solid #000; border-radius: 24px; padding: 26px; background: #fff; box-shadow: 6px 6px 0 0 #000; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.concept-card.yellow { background: var(--sparks-yellow); }
.concept-card.pink { background: var(--sparks-pink); }
.concept-card.lilac { background: var(--sparks-lilac); }
.concept-card h3 { font-family: var(--font-display); font-size: 34px; line-height: 0.98; letter-spacing: -0.01em; margin: 0; }
.concept-card p { font-size: 16px; line-height: 1.55; margin: 0; }
.concept-card .num { font-family: var(--font-display); font-size: 42px; line-height: 0.9; opacity: 0.4; }

.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { position: relative; border: 2.5px solid #000; border-radius: 20px; overflow: hidden; background: #1e2d42; box-shadow: 5px 5px 0 0 #000; aspect-ratio: 3/4; cursor: pointer; transition: transform 200ms var(--ease-bounce), box-shadow 200ms var(--ease-bounce); }
.story-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 0 #000; }
.story-card .img { position: absolute; inset: -1px -1px -2px -1px; background-size: cover; background-position: center top; background-color: #1e2d42; transform: scale(1.04); transform-origin: center top; }
.story-card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%); }
.story-card .cat { position: absolute; top: 12px; left: 12px; background: #fff; border: 2px solid #000; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.story-card .cat.y { background: var(--sparks-yellow); }
.story-card .cat.p { background: var(--sparks-pink); }
.story-card .cat.l { background: var(--sparks-lilac); }
.story-card .ttl { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--font-display); color: #fff; font-size: 22px; line-height: 1.02; letter-spacing: -0.01em; }

/* --- Library density variants --- */
/* Medium: 6 cols x 4 rows = 24. Titles still legible but smaller. */
.lib-medium .story-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lib-medium .story-card { border-width: 2px; border-radius: 14px; box-shadow: 3px 3px 0 0 #000; }
.lib-medium .story-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 #000; }
.lib-medium .story-card .cat { top: 7px; left: 7px; font-size: 8.5px; padding: 2px 6px; border-width: 1.5px; }
.lib-medium .story-card .ttl { left: 8px; right: 8px; bottom: 8px; font-size: 14px; line-height: 1.02; }
@media (max-width: 1100px) { .lib-medium .story-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .lib-medium .story-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .lib-medium .story-grid { grid-template-columns: repeat(2, 1fr); } }

/* Dense: 8 cols x 6 rows = 48. Titles hidden by default, reveal on hover. */
.lib-dense .story-grid { grid-template-columns: repeat(8, 1fr); gap: 8px; }
.lib-dense .story-card { border-width: 1.5px; border-radius: 10px; box-shadow: 2px 2px 0 0 #000; aspect-ratio: 3/4; }
.lib-dense .story-card:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 #000; z-index: 2; }
.lib-dense .story-card .grad { opacity: 0; transition: opacity 160ms ease; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 100%); }
.lib-dense .story-card:hover .grad { opacity: 1; }
.lib-dense .story-card .cat {
  top: 5px; left: 5px; font-size: 8.5px; padding: 2px 5px; border-width: 1.5px; border-radius: 999px;
}
.lib-dense .story-card .ttl {
  left: 6px; right: 6px; bottom: 6px;
  font-size: 11.5px; line-height: 1.05;
  opacity: 0; transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.lib-dense .story-card:hover .ttl { opacity: 1; transform: translateY(0); }
@media (max-width: 1280px) { .lib-dense .story-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .lib-dense .story-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .lib-dense .story-grid { grid-template-columns: repeat(3, 1fr); } }

.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { border: 2.5px solid #000; border-radius: 24px; padding: 28px 24px; background: #fff; box-shadow: 6px 6px 0 0 #000; min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.feat.y { background: var(--sparks-yellow); }
.feat.p { background: var(--sparks-pink); }
.feat.l { background: var(--sparks-lilac); }
.feat.w { background: var(--bg-2); }
.feat-label { font-family: var(--font-display); font-size: 28px; line-height: 1; margin: 12px 0 4px; letter-spacing: -0.01em; }
.feat p { font-size: 15px; line-height: 1.5; margin: 0; }
.feat .kv { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.6); }
.feat-icon { width: 52px; height: 52px; border: 2.5px solid #000; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.feat.p .feat-icon { background: var(--sparks-yellow); }
.feat.w .feat-icon { background: var(--sparks-pink); }

/* Read-along interactive audio button (sits inside .feat-icon) */
/* The wrapping .feat-icon gets a subtle idle pulse when NOT playing, to signal interactivity. */
.feat.y .feat-icon:has(.audio-icon-btn:not(.playing)) { animation: audio-idle-pulse 2.2s ease-in-out infinite; }
@keyframes audio-idle-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(0,0,0,0.08); }
}
.audio-icon-btn { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 14px; position: relative; transition: transform 140ms ease; }
.audio-icon-btn:hover { transform: scale(1.06); }
.audio-icon-btn:active { transform: scale(0.96); }
.audio-icon-btn:focus-visible { outline: 2.5px solid #000; outline-offset: 3px; }
.audio-icon-btn.playing::after { content: ''; position: absolute; inset: -6px; border: 2.5px solid #000; border-radius: 20px; opacity: 0; animation: audio-pulse 1.4s ease-out infinite; pointer-events: none; }
@keyframes audio-pulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }
.audio-icon-btn .eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 18px; }
.audio-icon-btn .eq i { display: block; width: 3px; background: #000; border-radius: 2px; animation: eq-bounce 0.9s ease-in-out infinite; }
.audio-icon-btn .eq i:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.audio-icon-btn .eq i:nth-child(2) { height: 100%; animation-delay: -0.5s; }
.audio-icon-btn .eq i:nth-child(3) { height: 70%; animation-delay: -0.1s; }
.audio-icon-btn .eq i:nth-child(4) { height: 90%; animation-delay: -0.35s; }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .audio-icon-btn.playing::after { animation: none; }
  .audio-icon-btn .eq i { animation: none; transform: scaleY(0.8); }
}

.parents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .parents-grid { grid-template-columns: 1fr; gap: 40px; } }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.stat { border: 2.5px solid #000; border-radius: 20px; padding: 22px; background: #fff; box-shadow: 5px 5px 0 0 var(--sparks-pink-deep); }
.stat.y { background: var(--sparks-yellow); box-shadow: 5px 5px 0 0 #000; }
.stat .num { font-family: var(--font-display); font-size: 54px; line-height: 0.9; letter-spacing: -0.01em; }
.stat .lbl { font-size: 14px; line-height: 1.4; margin-top: 6px; font-weight: 500; }

.parents-checklist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.parents-checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.parents-checklist li::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  border: 2px solid #000; border-radius: 6px;
  background: var(--sparks-yellow) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="2 7 6 11 12 3"/></svg>') center/14px no-repeat;
}

.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: 1fr; } }
.safe-card { border: 2.5px solid #000; border-radius: 22px; padding: 26px; background: #fff; box-shadow: 5px 5px 0 0 #000; display: flex; flex-direction: column; gap: 12px; }
.safe-card .bar { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; background: #000; color: #fff; border-radius: 999px; align-self: flex-start; }
.safe-card h4 { font-family: var(--font-display); font-size: 26px; line-height: 1; margin: 0; letter-spacing: -0.01em; }
.safe-card p { font-size: 15px; line-height: 1.5; margin: 0; }

.cast { display: none; }
.cast-card { border: 2.5px solid #000; border-radius: 20px; padding: 18px 16px 20px; background: #fff; box-shadow: 5px 5px 0 0 #000; text-align: center; }
.cast-card.y { background: var(--sparks-yellow); }
.cast-card.p { background: var(--sparks-pink); }
.cast-card.l { background: var(--sparks-lilac); }
.cast-card.g { background: #c8e6a0; }
.cast-card.b { background: #b8d4ff; }
.cast-card.k { background: #1a1a1a; color: #fff; }
.cast-card.k p { color: rgba(255,255,255,0.85); }

/* Professor S hero */
.prof-hero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; border: 3px solid #000; border-radius: 28px; background: var(--sparks-yellow); padding: 32px 40px; box-shadow: 8px 8px 0 0 #000; margin-bottom: 56px; }
@media (max-width: 720px) { .prof-hero { grid-template-columns: 1fr; padding: 24px; gap: 16px; text-align: center; } }
.prof-hero-img { width: 100%; aspect-ratio: 1; background: var(--sparks-pink); border: 2.5px solid #000; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prof-hero-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prof-hero-copy h3 { font-family: var(--font-display); font-size: 48px; line-height: 1; margin: 10px 0 10px; }
.prof-hero-copy p { font-size: 18px; line-height: 1.5; margin: 0; max-width: 520px; }

/* Woo carousel */
.cast-carousel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.cast-carousel-head h3 { font-family: var(--font-display); font-size: 32px; margin: 0; }
.cast-carousel-nav { display: flex; gap: 8px; }
.cast-carousel-nav button { width: 44px; height: 44px; border: 2.5px solid #000; border-radius: 999px; background: #fff; font-size: 18px; cursor: pointer; box-shadow: 3px 3px 0 0 #000; transition: transform 0.1s, box-shadow 0.1s; }
.cast-carousel-nav button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 #000; }
.cast-carousel-nav button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 0 #000; }
.cast-carousel-nav button:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: 1px 1px 0 0 #000; }
.cast-viewport { overflow: hidden; }
.cast-track { display: flex; gap: 20px; transition: transform 0.35s cubic-bezier(0.4, 0.0, 0.2, 1); }
.cast-track > .cast-card { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; }
@media (max-width: 900px) { .cast-track > .cast-card { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 520px) { .cast-track > .cast-card { flex: 0 0 100%; } }
.cast-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.cast-dot { width: 10px; height: 10px; border-radius: 999px; border: 2px solid #000; background: #fff; cursor: pointer; padding: 0; }
.cast-dot.active { background: #000; }
.cast-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 2px solid #000; border-radius: 16px; margin-bottom: 12px; }
.cast-card h4 { font-family: var(--font-display); font-size: 26px; line-height: 1; margin: 0 0 4px; }
.cast-card p { font-size: 13px; line-height: 1.4; margin: 0; }

.ea { border: 3px solid #000; border-radius: 32px; background: var(--sparks-yellow); padding: 56px; box-shadow: 10px 10px 0 0 #000; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
@media (max-width: 900px) { .ea { grid-template-columns: 1fr; padding: 36px 28px; } }
.ea h3 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.01em; margin: 12px 0 16px; }
.ea p { font-size: 17px; line-height: 1.5; margin: 0 0 12px; max-width: 500px; }
.ea-form { background: #fff; border: 2.5px solid #000; border-radius: 20px; padding: 22px; box-shadow: 5px 5px 0 0 #000; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.7); }
.field input, .field select { font-family: var(--font-body); font-size: 15px; border: 2px solid #000; border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; }
.field input:focus, .field select:focus { box-shadow: 3px 3px 0 0 var(--sparks-pink-deep); border-color: #000; }
.ea-counter { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.ea-bar { flex: 1; height: 10px; border: 2px solid #000; border-radius: 999px; background: #fff; overflow: hidden; position: relative; }
.ea-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sparks-pink); border-right: 2px solid #000; }

footer { background: #000; color: #fff; padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h5 { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: #fff; text-decoration: none; font-size: 15px; }
footer a:hover { text-decoration: underline; }
footer .brand-big { font-family: var(--font-display); font-size: 56px; line-height: 0.9; letter-spacing: -0.01em; color: var(--sparks-yellow); margin-bottom: 14px; }
footer .brand-blurb { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.75); max-width: 340px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); color: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.foot-social a:hover { background: var(--sparks-yellow, #ffec87); border-color: var(--sparks-yellow, #ffec87); color: #000; text-decoration: none; transform: translateY(-1px); }
footer .copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

#tweaks-panel { position: fixed; bottom: 20px; right: 20px; z-index: 9999; background: #fff; border: 2.5px solid #000; border-radius: 18px; padding: 18px 20px; box-shadow: 6px 6px 0 0 #000; font-family: var(--font-body); font-size: 14px; width: 280px; display: none; }
#tweaks-panel.open { display: block; }
#tweaks-panel h5 { font-family: var(--font-display); font-size: 24px; margin: 0 0 14px; letter-spacing: -0.01em; }
.tw-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tw-row > label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.6); }
.tw-swatch-row { display: flex; gap: 8px; }
.tw-swatch { width: 32px; height: 32px; border-radius: 999px; border: 2px solid #000; cursor: pointer; box-shadow: 2px 2px 0 0 #000; }
.tw-swatch.active { outline: 3px solid #000; outline-offset: 3px; }
.tw-seg { display: flex; border: 2px solid #000; border-radius: 999px; overflow: hidden; }
.tw-seg button { flex: 1; padding: 6px 10px; border: 0; background: #fff; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12px; border-right: 2px solid #000; }
.tw-seg button:last-child { border-right: 0; }
.tw-seg button.active { background: var(--sparks-yellow); }
.tw-row input[type=text] { border: 2px solid #000; border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 14px; }
.tw-toggle { display: flex; justify-content: space-between; align-items: center; }
.tw-toggle .tog { width: 44px; height: 24px; border: 2px solid #000; border-radius: 999px; background: #fff; position: relative; cursor: pointer; flex-shrink: 0; }
.tw-toggle .tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #000; border-radius: 999px; transition: transform 160ms var(--ease-bounce); }
.tw-toggle .tog.on { background: var(--sparks-yellow); }
.tw-toggle .tog.on::after { transform: translateX(20px); }

.trust-strip { background: #000; color: #fff; border-bottom: 2.5px solid #000; padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; overflow: hidden; }
.trust-strip .row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }
.trust-strip .item { display: inline-flex; gap: 8px; align-items: center; }
.trust-strip .item .bolt { width: 12px; height: 12px; background: var(--sparks-yellow); display: inline-block; border-radius: 999px; }

.variant-editorial .hero { background: var(--bg-2); }
.variant-joyful .hero-copy h1 { font-size: clamp(64px, 10vw, 128px); }


/* hero inline signup */
.hero-signup { max-width: 560px; }
.hero-signup-row {
  display: flex; align-items: stretch; gap: 10px;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 6px 6px 0 0 #000;
}
.hero-signup-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 16px/1.2 var(--font-body, system-ui, sans-serif);
  color: #000;
  padding: 10px 14px;
  outline: none;
}
.hero-signup-row input[type="email"]::placeholder { color: rgba(0,0,0,0.45); }
.hero-signup-row .btn { flex: 0 0 auto; white-space: nowrap; box-shadow: none; border-width: 0; border-radius: 10px; }
.hero-signup-row .btn:hover { box-shadow: none; transform: none; }
.hero-signup-meta {
  font-size: 13px;
  color: rgba(0,0,0,0.65);
  margin-top: 12px;
}
.hero-signup-meta a { color: #000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hero-signup-meta a:hover { color: var(--sparks-lilac-deep, #7d78ff); }

.hero-signup-done {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 6px 6px 0 0 #000;
  max-width: 560px;
}
.hero-signup-tick {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sparks-lilac, #c9c6ff);
  color: #000;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  border: 2px solid #000;
}
.hero-signup-done-title { font-family: var(--font-display); font-size: 24px; line-height: 1; margin-bottom: 6px; }
.hero-signup-done-sub { font-size: 14px; line-height: 1.45; color: rgba(0,0,0,0.7); }
.hero-signup-done-sub a { color: #000; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .hero-signup-row { flex-direction: column; padding: 10px; }
  .hero-signup-row .btn { width: 100%; justify-content: center; }
}

/* New this week */
.ntw { background: var(--sparks-lilac, #c9c6ff); border-top: 2.5px solid #000; border-bottom: 2.5px solid #000; }
.ntw-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; max-width: none; margin-bottom: 36px; }
.ntw-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.01em; }
.ntw-note { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.5; color: rgba(0,0,0,0.72); }
@media (max-width: 800px) {
  .ntw-head { grid-template-columns: 1fr; }
  .ntw-note { max-width: none; }
}

.ntw-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .ntw-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .ntw-card { flex: 0 0 260px; scroll-snap-align: start; }
}

.ntw-card {
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 5px 5px 0 0 #000;
  display: flex;
  flex-direction: column;
  transform: rotate(calc((var(--i, 0) - 2) * 0.35deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ntw-card:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 7px 7px 0 0 #000;
}

.ntw-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--sparks-cream, #fff8ea);
  border-bottom: 2.5px solid #000;
  overflow: hidden;
}
.ntw-art img { width: 101%; height: 101%; object-fit: cover; display: block; margin: -0.5px; }
.ntw-new-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--sparks-pink, #ff9ec1);
  color: #000;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px 4px;
  border: 2px solid #000;
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 2px 2px 0 0 #000;
}
.ntw-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1.5px solid #000;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}
.cat-l { background: var(--sparks-lilac, #c9c6ff); }
.cat-y { background: var(--sparks-yellow, #ffdd55); }
.cat-p { background: var(--sparks-pink, #ff9ec1); }

.ntw-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ntw-day {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}
.ntw-card h3.ntw-q,
.ntw-q {
  font-family: var(--font-display);
  font-size: 20px !important;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
  color: #000;
  text-wrap: balance;
}
.ntw-meta {
  margin-top: auto;
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.15);
}
