/* ==========================================================================
   candy-shop.ai — stylesheet
   Mobile-first. Phone is the primary target.

   Overflow policy (the site previously scrolled sideways on iPhone):
     - never use 100vw; it includes the scrollbar gutter and overflows
     - every horizontal scroller is an explicit, contained .*-scroll element
     - flex/grid children get min-width:0 so long titles can't push layout wide
     - html + body clip the x-axis as a backstop
   ========================================================================== */

:root {
  --bg: #07070c;
  --bg-elev: #0e0e18;
  --bg-elev-2: #14141f;
  --line: #1c1c2a;
  --line-strong: #2a2a3d;
  --text: #f4f2f8;
  --muted: #a8a3b5;
  --muted-dim: #7b7689;
  --pink: #ff2d6a;
  --pink-soft: #fb7185;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #fbbf24;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fredoka", "Inter", system-ui, sans-serif;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow-pink: 0 10px 30px rgba(255, 45, 106, 0.28);

  --header-h: 56px;
  --gutter: clamp(16px, 4.5vw, 32px);

  /* iPhone notch / home-indicator safe areas */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Backstop against any stray wide child.
     `clip` rather than `hidden`: `overflow-x: hidden` silently turns the
     element into a scroll container, which breaks `position: sticky` for
     every descendant (the sticky filter bar anchors to body instead of the
     viewport and just scrolls away). `clip` contains overflow without
     creating a scrollport. The `hidden` line is the fallback for engines
     without `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none; /* kill iOS horizontal rubber-banding */
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pink); color: #fff;
  padding: 0.65rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--safe-l)) calc(var(--gutter) + var(--safe-r));
}
.container.narrow { max-width: 760px; }

.section {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0;
  /* The sticky header now carries the genre bar too, so in-page anchors must
     clear a taller block or the heading lands underneath it. */
  scroll-margin-top: calc(var(--header-h) + 58px);
}
/* Used on the home page so the grids sit close together — big whitespace between
   sections made an image-led page read like a document. */
.section-tight { padding: clamp(1.5rem, 4.5vw, 2.5rem) 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--line); }

.section-footnote {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

/* Guides as a compact chip row rather than nine prose cards */
.guide-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.guide-strip a {
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.guide-strip a:hover { color: var(--text); border-color: var(--pink); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.section-head > * { min-width: 0; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 2rem);
}
.section-head-tight { margin-bottom: 1rem; }

.section-lede {
  color: var(--muted);
  max-width: 60ch;
  margin: -0.25rem 0 1.25rem;
  font-size: 0.95rem;
}

.link-more {
  color: var(--pink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.link-more:hover { color: var(--text); }

.section-cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pink-soft);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Disclosure bar
   -------------------------------------------------------------------------- */

.disclosure-bar {
  background: linear-gradient(90deg, #1a0b14, #12081c 50%, #0b1220);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.5rem calc(var(--gutter) + var(--safe-l));
}

/* --------------------------------------------------------------------------
   Header + mobile drawer

   The old build set `.mobile-nav { display: flex }`, which beat the `hidden`
   attribute's UA `display: none`. Result: the drawer was stuck open covering
   the viewport, and the toggle button looked dead because flipping `hidden`
   changed nothing. Style the :not([hidden]) state instead so `hidden` wins.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.nav > * { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
/* No logo mark any more — the wordmark alone is the brand, so it carries the
   rounded display face and runs noticeably larger than nav text. Extra
   letter-spacing because the letters scale individually during the wave;
   tight tracking makes neighbours look like they collide at peak. */
.brand-text {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.012em;
  white-space: nowrap;
  line-height: 1;
}

/* Each letter swells and settles, offset by --i, so the bulge travels left to
   right as one wave. The cycle is mostly rest: the wave occupies roughly the
   first third of 4s, then the wordmark sits still — a continuous ripple in a
   sticky header gets distracting fast.

   Transforms don't reflow, so letters never push each other around. */
.brand-text i {
  display: inline-block;
  font-style: normal;
  transform-origin: 50% 70%;
  animation: brand-wave 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.065s);
}

@keyframes brand-wave {
  0%, 22%, 100% { transform: scale(1) translateY(0); }
  8%            { transform: scale(1.32) translateY(-2px); }
  15%           { transform: scale(0.94) translateY(1px); }
}

/* ".ai" shakes itself once the wave has run through the word. */
.brand-ai {
  display: inline-block;
  color: var(--pink-soft);
  transform-origin: 50% 80%;
  animation: brand-wiggle 4s ease-in-out infinite;
}

@keyframes brand-wiggle {
  0%, 26%, 48%, 100% { transform: rotate(0deg) translateX(0); }
  30%                { transform: rotate(-11deg) translateX(-1px); }
  34%                { transform: rotate(9deg) translateX(1px); }
  38%                { transform: rotate(-7deg) translateX(-1px); }
  42%                { transform: rotate(5deg) translateX(1px); }
  45%                { transform: rotate(-2deg) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-text i,
  .brand-ai { animation: none; }
}

/* Desktop inline links — hidden on phones */
.nav-links {
  display: none;
  gap: 1.15rem;
  margin-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-priority { color: var(--text); font-weight: 600; }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}
/* The article pages put two CTA buttons next to the burger. At 375px that
   overflows the header and gets clipped — and those pages already carry
   several in-body CTAs. Show them from the tablet breakpoint up only. */
.nav-actions .btn { display: none; }
@media (min-width: 860px) {
  .nav-actions .btn { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle:active { background: var(--bg-elev-2); }

/* 3-line burger that morphs into an X — no icon font, no emoji glyph */
.nav-toggle-bars {
  position: relative;
  width: 18px; height: 12px;
  display: block;
  pointer-events: none;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem calc(var(--gutter) + var(--safe-l)) calc(1rem + var(--safe-b));
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-nav a {
  color: var(--muted);
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a:active { color: var(--text); }
.mobile-nav .btn { margin-top: 0.6rem; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav,
  .mobile-nav:not([hidden]) { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  padding: 0.75rem 1.3rem;
  min-height: 44px;                /* iOS touch target */
  font-weight: 650;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 0.5rem 0.95rem; min-height: 38px; font-size: 0.86rem; }
.btn-lg { padding: 0.9rem 1.6rem; min-height: 50px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #d946ef 55%, var(--violet));
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(255, 45, 106, 0.42); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Candy.ai CTA. Deliberately a different hue from the pink CandyShorts
   button so the two offers read as two choices rather than a primary and a
   leftover. The blue end is dark enough (#0284c7) to keep white text at
   4.5:1 — a brighter cyan looks livelier but fails contrast. */
.btn-ai {
  background: linear-gradient(135deg, #0284c7, #6366f1 52%, var(--violet));
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.34);
}
.btn-ai:hover { box-shadow: 0 14px 36px rgba(99, 102, 241, 0.48); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Button effects

   Two one-shot animations. Neither blocks anything: the outbound buttons are
   real links that open in a new tab, so the click navigates immediately and
   the animation plays out on the page left behind. Nothing here calls
   preventDefault.
   -------------------------------------------------------------------------- */

.btn-label { display: inline-block; will-change: transform, opacity; }

/* --- outbound buttons: letters pop and drop as candy --- */
.fx-char {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}

/* Idle state: the CTA letters ripple exactly like the wordmark, reusing
   brand-wave so the two gestures are literally the same animation. Offset by
   1.2s so the buttons and the logo don't pulse in lockstep, which looked
   mechanical. js/app.js drops this class before firing the pop, so a CSS
   animation and the WAAPI burst never fight over `transform`. */
.btn-wave .fx-char {
  animation: brand-wave 4s ease-in-out infinite;
  animation-delay: calc(1.2s + var(--i, 0) * 0.055s);
}

@media (prefers-reduced-motion: reduce) {
  .btn-wave .fx-char { animation: none; }
}

/* Particles are fixed-position and appended to <body> so they can keep
   falling past the end of the button and off the bottom of the screen. */
.fx-candy {
  position: fixed;
  z-index: 300;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}
.fx-candy.is-wrapped { border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .fx-char { animation: none !important; }
}

.cta-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0.75rem;
}
.cta-cluster .btn { flex: 1 1 auto; }
.cta-note {
  font-size: 0.8rem;
  color: var(--muted-dim);
  margin: 0.5rem 0 0;
}

/* --------------------------------------------------------------------------
   Home — hero
   -------------------------------------------------------------------------- */

/* The art IS the hero. Two rows of posters drift in opposite directions at full
   brightness; the headline is a small overlay at the bottom, not the main event.
   Posters are on screen the instant the page loads. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #05050a;
}

.hero-marquee {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 0;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  /* fade the ends so tiles don't hard-cut at the screen edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);

  /* Horizontal gestures drag the row; vertical ones still scroll the page. */
  touch-action: pan-y;
  cursor: grab;
}
.marquee-row.is-grabbing { cursor: grabbing; }
.marquee-row.is-grabbing .marquee-tile { pointer-events: none; }

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding-right: 8px;
  will-change: transform;
  /* Position is driven by js/app.js (initMarqueeMotion) rather than a CSS
     keyframe, so a swipe and the idle drift can share one coordinate: the
     drag adds to the same x the animation loop advances. A CSS animation
     can't be nudged mid-flight without fighting it. */
}

.marquee-tile {
  display: block;
  flex: 0 0 auto;
  width: clamp(104px, 31vw, 180px);
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.marquee-tile:hover,
.marquee-tile:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(255, 45, 106, 0.45);
}
.marquee-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

/* Readability scrim for the overlay copy only — the top of the art stays clean */
.hero-overlay {
  position: relative;
  z-index: 2;
  /* Pull the copy up over the bottom of the artwork so there's no dead band
     between the posters and the headline. */
  margin-top: clamp(-5rem, -11vw, -2.5rem);
  padding: clamp(2.75rem, 11vw, 4.5rem) 0 clamp(1rem, 3.5vw, 1.5rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 5, 10, 0.72) 22%,
    rgba(5, 5, 10, 0.95) 46%,
    var(--bg) 84%
  );
}

.hero h1 {
  font-size: clamp(1.75rem, 7.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.45rem;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink), #e879f9 50%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: #cfc9da;
  font-size: clamp(0.92rem, 3.4vw, 1.02rem);
  margin-bottom: 1rem;
  max-width: 34ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-actions .btn { flex: 1 1 auto; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  color: var(--muted-dim);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.3rem; }
.hero-trust span::before { content: "✓"; color: var(--pink-soft); font-weight: 700; }

@media (min-width: 640px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Filter chips — contained horizontal scroller
   -------------------------------------------------------------------------- */

.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  /* contained scroll: never widens the page */
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-row::-webkit-scrollbar { display: none; }

/* Section-scoped sticky bar.
   Each bar is a direct child of its <section>, so the section is its
   containing block: it pins under the header while that section's grid is on
   screen, then scrolls away with the section end. The next section's bar
   takes over. That handoff is native sticky behaviour — no JS, no scroll
   listeners. */
.filter-sticky {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 40;
  background: rgba(7, 7, 12, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
/* Sits on .section-alt, so match that surface instead of the page bg. */
.filter-sticky-alt { background: rgba(14, 14, 24, 0.95); }
.filter-sticky-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.6rem;
  min-width: 0;
}
.filter-sticky-inner .filter-row {
  margin-bottom: 0;
}

/* Wrapper that carries the "more genres →" affordance. The fade alone wasn't
   enough of a signal that the row scrolls, so a chevron sits on top of it and
   is toggled by js/app.js whenever there is anything left to scroll to. */
.filter-scroll {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.filter-scroll .filter-row {
  -webkit-mask-image: linear-gradient(90deg, #000 100%, #000 100%);
  mask-image: linear-gradient(90deg, #000 100%, #000 100%);
  transition: mask-image 0.2s ease;
}
.filter-scroll.has-more .filter-row {
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 97%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 97%);
}

/* A whisper, not a control. No background, no shadow, nothing tappable —
   just a faint chevron riding the fade so the row reads as "there's more"
   rather than "press me". */
.filter-more {
  position: absolute;
  top: 50%;
  right: 1px;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
/* Chevron drawn in CSS so there's no icon font or emoji to load. */
.filter-more::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  rotate: 45deg;
  margin-left: -1px;
}
.filter-scroll.has-more .filter-more {
  opacity: 0.55;
  animation: more-nudge 2.4s ease-in-out 2;
}

@keyframes more-nudge {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50%      { transform: translateX(2px); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-scroll.has-more .filter-more { animation: none; }
}

.filter-search { flex: 0 0 auto; }
.filter-search input {
  width: 8.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  min-height: 38px;
  font-size: 16px;            /* 16px stops iOS zooming the page on focus */
  transition: width 0.2s ease, border-color 0.15s ease;
}
.filter-search input::placeholder { color: var(--muted-dim); }
.filter-search input:focus {
  outline: none;
  border-color: var(--pink);
  width: 11rem;
}
@media (max-width: 559px) {
  .filter-search input { width: 6.5rem; }
  .filter-search input:focus { width: 8.5rem; }
}

.chip {
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--muted);
  padding: 0.45rem 0.95rem;
  min-height: 38px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-color: transparent;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Series grid — static posters, each one links out to CandyShorts
   -------------------------------------------------------------------------- */

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 2.5vw, 1.1rem);
}
@media (min-width: 560px) { .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .series-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.series-card:hover,
.series-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.series-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1a1226, #0d0d16);
}
.series-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Light top scrim so the genre badge stays legible on pale artwork.
   No bottom scrim: the cover art already carries the series title, and
   overlaying our own text on top of it collided badly. Title and hook sit
   below the poster instead. */
.series-poster::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(5, 5, 10, 0.55), transparent);
  pointer-events: none;
}

.series-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  z-index: 2;
  background: rgba(7, 7, 12, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.series-badge-new {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  border-color: transparent;
  color: #fff;
}

/* Play affordance — always visible (phones have no hover), signals that
   playback happens on CandyShorts rather than here. */
/* Top-right, not bottom-right: the series title is burned into the lower
   third of most covers and the badge was sitting on top of it. */
.series-play {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 6px 20px rgba(255, 45, 106, 0.5);
  color: #fff;
  font-size: 0.72rem;
  padding-left: 2px;
  transition: transform 0.18s ease;
}
.series-card:hover .series-play { transform: scale(1.12); }

/* Sits below the poster, in flow — never on top of the artwork. */
.series-meta {
  display: block;
  padding: 0.6rem 0.7rem 0.5rem;
  min-width: 0;
  flex: 1;
}
.series-meta h3 {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 650;
  /* two lines max, then ellipsis — long titles can't blow out the card */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-meta p {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Repeating "Watch on CandyShorts" under all 12 cards read as a wall of text.
   The play badge carries that meaning now; this stays for the odd page that
   still wants an explicit label. */
.series-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 650;
  color: var(--pink-soft);
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

/* --------------------------------------------------------------------------
   Scroll choreography — "dealing" cards + a light sweep

   Cards start fanned out (offset, scaled down, rotated a few degrees in
   alternating directions) and snap into the grid as they enter the viewport,
   staggered so a row lands like cards being dealt. A diagonal sheen runs
   across each poster once as it settles.

   Only `transform` and `opacity` animate, so this stays on the compositor and
   doesn't cause layout work while scrolling. js/app.js adds .is-dealt via an
   IntersectionObserver and sets --i for the stagger.
   -------------------------------------------------------------------------- */

.deal {
  opacity: 0;
  /* Thrown further off the grid and fanned harder, so the snap into place
     actually reads as a card landing. --deal-x alternates left/right to sell
     the shuffle; both it and --deal-rot are set per card in js/app.js. */
  transform:
    translate3d(var(--deal-x, 0px), 78px, 0)
    scale(0.82)
    rotate(var(--deal-rot, 7deg));
  will-change: transform, opacity;
}

.deal.is-dealt {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  transition:
    opacity 0.38s cubic-bezier(0.22, 0.9, 0.3, 1) var(--deal-delay, 0ms),
    /* overshoot past 1 so it settles with a visible snap rather than a glide */
    transform 0.82s cubic-bezier(0.16, 1.12, 0.3, 1.0) var(--deal-delay, 0ms);
}

/* Once it has landed, drop the compositor hint so 50 cards don't each hold
   their own GPU layer for the rest of the session. */
.deal.is-settled { will-change: auto; }

/* The sheen. A wide diagonal highlight parked off-frame that sweeps across
   once on reveal. Sits above the artwork but below the badges/meta. */
.sheen { position: relative; }
.sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Kept deliberately faint — a hint of light passing over the art, not a
     flash. A wider, softer band at low opacity reads as sheen; a narrow
     bright one reads as a glitch. */
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 44%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.04) 56%,
    transparent 70%
  );
  transform: translate3d(-130%, 0, 0);
  opacity: 0;
}
.is-dealt .sheen::before {
  animation: sheen-sweep 1.05s cubic-bezier(0.3, 0.7, 0.3, 1) var(--deal-delay, 0ms) 1 both;
}

@keyframes sheen-sweep {
  0%   { transform: translate3d(-130%, 0, 0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translate3d(130%, 0, 0); opacity: 0; }
}

/* Re-sweep on deliberate interaction, so the grid feels alive on desktop. */
@media (hover: hover) and (pointer: fine) {
  .series-card:hover .sheen::before,
  .companion-card:hover .sheen::before {
    animation: sheen-sweep 0.85s cubic-bezier(0.3, 0.7, 0.3, 1) 1 both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal,
  .deal.is-dealt {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sheen::before,
  .is-dealt .sheen::before { animation: none; opacity: 0; }
}

/* --------------------------------------------------------------------------
   Coming soon rail + notify / ideas forms
   -------------------------------------------------------------------------- */

#coming-soon[hidden] { display: none; }

.soon-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* Contained horizontal scroller — same rule as .filter-row, never the page. */
.soon-rail {
  display: flex;
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0.3rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.soon-rail::-webkit-scrollbar { display: none; }

.soon-card {
  flex: 0 0 auto;
  width: clamp(116px, 33vw, 150px);
  min-width: 0;
}
.soon-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.soon-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Held back, not hidden. Dimming much past this and the tiles read as
     broken/empty rather than "not out yet" — which kills the signups the
     section exists to collect. */
  filter: saturate(0.92) brightness(0.86);
}
.soon-when {
  position: absolute;
  left: 0.4rem; bottom: 0.4rem;
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.14rem 0.5rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.soon-card h3 {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- forms --- */

.notify-form {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 1.1rem 1.15rem 1.2rem;
}
/* Two centred lines: the hook, then the payoff on its own line. */
.notify-lede {
  margin: 0 0 1rem;
  font-weight: 650;
  font-size: clamp(1.05rem, 4.4vw, 1.3rem);
  line-height: 1.25;
  text-align: center;
}
.notify-lede span {
  display: block;
  background: linear-gradient(135deg, var(--pink), #e879f9 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notify-consent { text-align: left; }
.form-status { text-align: center; }

/* Honeypot — real people never see it, bots fill it in. */
.notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notify-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .notify-row { flex-direction: row; }
  .notify-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
  .notify-row .btn { flex: 0 0 auto; }
}

.notify-form input[type="text"] {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-size: 1rem; /* 16px — stops iOS Safari zooming on focus */
}
.notify-form input::placeholder { color: var(--muted-dim); }
.notify-form input:focus {
  outline: none;
  border-color: var(--pink);
}

.notify-consent {
  margin: 0.7rem 0 0;
  font-size: 0.76rem;
  color: var(--muted-dim);
}
.notify-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.notify-consent input { margin-top: 0.15rem; flex-shrink: 0; }

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.form-status[hidden] { display: none; }
.form-status.is-ok { color: #34d399; }
.form-status.is-warn { color: var(--gold); }

/* --------------------------------------------------------------------------
   Companions grid
   -------------------------------------------------------------------------- */

.companion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 2.5vw, 1.1rem);
}
@media (min-width: 560px) { .companion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .companion-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.companion-card {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.companion-card:hover,
.companion-card:focus-visible {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.companion-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--g1, #2a1a3d), var(--g2, #0d0d16));
}
.companion-cover img { width: 100%; height: 100%; object-fit: cover; }
.companion-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 10, 0.94));
}

.companion-tag {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  z-index: 2;
  background: rgba(139, 92, 246, 0.85);
  border-radius: var(--r-pill);
  padding: 0.18rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.companion-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0.6rem 0.65rem 0.7rem;
  min-width: 0;
}
.companion-meta h3 { margin: 0 0 0.15rem; font-size: 0.9rem; font-weight: 650; }
.companion-meta p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Steps / how-it-works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.steps li {
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.1rem 1.2rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Guides hub (internal links to the SEO landers)
   -------------------------------------------------------------------------- */

.guide-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.guide-card {
  display: block;
  min-width: 0;
  padding: 1rem 1.1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.guide-card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.guide-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.guide-card span { font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Split CTA cards (CandyShorts vs Candy.ai)
   -------------------------------------------------------------------------- */

.offer-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .offer-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offer-card,
.price-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.offer-card.featured,
.price-card.featured {
  border-color: rgba(255, 45, 106, 0.5);
  background: linear-gradient(180deg, rgba(255, 45, 106, 0.08), var(--bg-elev) 55%);
}

/* Candy.ai offer — same visual weight as the CandyShorts card, opposite hue,
   so neither reads as the afterthought. */
.offer-card-ai {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(180deg, rgba(56, 132, 255, 0.11), var(--bg-elev) 55%);
}
.offer-card-ai h3 {
  background: linear-gradient(135deg, #38bdf8, #818cf8 55%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-card h3,
.price-card h3 { margin: 0; font-size: 1.15rem; }
.offer-card p,
.price-blurb { margin: 0; color: var(--muted); font-size: 0.92rem; }
.offer-card .btn,
.price-card .btn { margin-top: auto; }

.badge,
.pick-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-list {
  list-style: none;
  margin: 0.3rem 0 0.6rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.offer-list li { display: flex; gap: 0.5rem; }
.offer-list li::before { content: "✓"; color: var(--pink-soft); font-weight: 700; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: clamp(2rem, 6vw, 3rem) 0 calc(1.5rem + var(--safe-b));
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* The article pages use a 4-column footer of plain divs holding bare <a>
   elements rather than lists. Lay those out and make the links block-level. */
@media (min-width: 720px) {
  .footer-grid:has(> div:nth-child(4)) {
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  }
}
.footer-grid > div { min-width: 0; }
.footer-grid > div > h3 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin-bottom: 0.7rem;
}
.footer-grid > div > a {
  display: block;
  color: var(--muted);
  padding: 0.22rem 0;
  font-size: 0.85rem;
}
.footer-grid > div > a:hover { color: var(--text); }
.footer-grid > div > p { color: var(--muted-dim); font-size: 0.8rem; }

.footer-col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.footer-note,
.footer-grid-slim .footer-note {
  color: var(--muted-dim);
  font-size: 0.8rem;
  max-width: 52ch;
  margin: 0.75rem 0 0;
}
.brand-footer { margin-bottom: 0.5rem; }

.footer-grid-slim {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted-dim);
  font-size: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.age-note {
  font-size: 0.78rem;
  color: var(--muted-dim);
  margin-top: 0.75rem;
}

/* Minimum viable affiliate disclosure. Kept deliberately small, but kept:
   paid-link disclosure is a legal requirement (FTC in the US, ASA/CAP in the
   UK), not a stylistic choice, and affiliate programmes audit for it. */
.footer-aff { color: var(--muted-dim); }

.site-footer .footer-bottom { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   Article / SEO lander pages
   -------------------------------------------------------------------------- */

.page-article .hero-article,
.hero-article {
  position: relative;
  padding: clamp(1.75rem, 6vw, 3rem) 0 clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-article h1 {
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  max-width: 24ch;
  text-wrap: balance;
}
.hero-glow {
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 150%;
  z-index: -1;
  background: radial-gradient(60% 50% at 30% 20%, rgba(255, 45, 106, 0.16), transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  font-size: 0.76rem;
  color: var(--muted-dim);
  margin-bottom: 0.9rem;
  padding: 0;
  list-style: none;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--line-strong); }

.claim-tag {
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-elev);
  margin-right: 0.35rem;
}

.article-body {
  padding: clamp(1.75rem, 6vw, 3rem) 0;
  font-size: 1rem;
  line-height: 1.7;
  min-width: 0;
}
.article-body h2 {
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  margin-top: 2.25rem;
  padding-top: 0.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.article-body p,
.article-body li { color: #ded9e8; }
.article-body ul,
.article-body ol { padding-left: 1.3rem; margin: 0 0 1em; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a:not(.btn) {
  color: var(--pink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body strong { color: #fff; }

.highlight {
  background: linear-gradient(180deg, transparent 62%, rgba(255, 45, 106, 0.28) 0);
  color: #fff;
}

.warn,
.verdict-box,
.box {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.94rem;
}
.warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}
.verdict-box {
  border-color: rgba(255, 45, 106, 0.35);
  background: linear-gradient(180deg, rgba(255, 45, 106, 0.08), var(--bg-elev));
}

/* Comparison tables — the scroller is the wrapper, never the page */
.compare-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  background: var(--bg-elev);
}
.compare-table {
  width: 100%;
  min-width: 34rem;              /* forces the wrapper to scroll, not the body */
  border-collapse: collapse;
  font-size: 0.88rem;
}
.compare-table th,
.compare-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-elev-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  position: sticky;
  top: 0;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .col-candy { color: #fff; font-weight: 600; }

.pros-cons {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 640px) { .pros-cons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pros,
.cons {
  min-width: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 1.1rem 1.2rem;
}
.pros { border-color: rgba(52, 211, 153, 0.3); }
.cons { border-color: rgba(239, 68, 68, 0.3); }
.pros h3, .cons h3 { margin-top: 0; font-size: 1rem; }
.pros ul, .cons ul { margin-bottom: 0; }

.pick-card {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 1.3rem;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pick-card.best {
  border-color: rgba(255, 45, 106, 0.5);
  background: linear-gradient(180deg, rgba(255, 45, 106, 0.08), var(--bg-elev) 55%);
}
.pick-card h3 { margin: 0; font-size: 1.15rem; }
.pick-card.wide { grid-column: 1 / -1; }

.price-ladder {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0;
}
.rung {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  padding: 0.9rem 1.05rem;
}
.rung .g-label { font-weight: 650; flex: 1 1 10rem; min-width: 0; }
.rung .amt { font-family: var(--display); font-size: 1.1rem; color: var(--pink-soft); }
.rung .sub { font-size: 0.8rem; color: var(--muted-dim); flex-basis: 100%; }

.premium-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .premium-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq-list { margin: 1.5rem 0; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.6rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: " +"; color: var(--pink-soft); }
.faq-list details[open] summary::after { content: " −"; }
.faq-list details > :not(summary) { margin-top: 0.6rem; color: var(--muted); }

.related-links {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
@media (min-width: 620px) { .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related-links li { min-width: 0; }
.related-links a {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  font-size: 0.9rem;
  font-weight: 600;
}
.related-links a:hover { border-color: var(--line-strong); color: var(--pink-soft); }

/* Poster strip used to break up long articles */
.art-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.75rem 0;
}
@media (min-width: 620px) { .art-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.art-strip a,
.art-strip figure {
  margin: 0;
  min-width: 0;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: block;
}
.art-strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.art-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.55rem 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 10, 0.93));
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Soft entry page
   -------------------------------------------------------------------------- */

.soft-hero {
  padding: clamp(1.75rem, 6vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.soft-hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) { .soft-hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.soft-hero-copy { min-width: 0; }
.soft-hero-lead { color: var(--muted); font-size: 1.02rem; }
.soft-hero-poster {
  min-width: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.soft-hero-poster img { width: 100%; object-fit: cover; }

.soft-poster-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .soft-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .soft-poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.soft-poster-card {
  min-width: 0;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.soft-poster-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.soft-poster-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.soft-poster-cap {
  display: block;
  padding: 0.6rem 0.7rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.soft-poster-cap strong { display: block; color: var(--text); font-size: 0.85rem; margin-bottom: 0.15rem; }

.soft-handoff-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .soft-handoff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.soft-handoff-card {
  min-width: 0;
  padding: 1.3rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.soft-handoff-card .btn { margin-top: auto; }
.soft-handoff-note { font-size: 0.8rem; color: var(--muted-dim); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + var(--safe-b));
  transform: translateX(-50%);
  z-index: 120;
  max-width: calc(100% - 2rem);
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.65rem 1.1rem;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Motion / print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
