/* ---------------------------------------------------------------
   custom.css
   Tiny supplement to Tailwind:
     - Brand-color references via CSS variables (themable)
     - Hero gradient, decorative blobs
     - FAQ accordion chevron
     - Subtle animations (shine sweep, gentle pulse, floating)
     - Respects prefers-reduced-motion
   --------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: rgb(var(--rogue-ink));
  background: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

/* Smooth palette transitions when toggling theme */
body, header, footer, section,
.plan-card, .hero-gradient, button, a {
  transition: background-color 0.45s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.45s ease;
}

/* Hero gradient — all four brand colors, sourced from CSS vars
   so the gradient re-tints when the theme toggles. */
.hero-gradient {
  background:
    radial-gradient(1100px 500px at 90% -10%, rgb(var(--rogue-yellow) / 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgb(var(--rogue-red) / 0.50), transparent 55%),
    linear-gradient(135deg,
      rgb(var(--rogue-brown))  0%,
      rgb(var(--rogue-blue))  55%,
      rgb(var(--rogue-blue-l)) 100%);
}

/* Soft decorative shape used in section backgrounds */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- Plan card hover + shine animation --------------- */

.plan-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgb(var(--rogue-brown) / 0.30);
}
.plan-card.is-featured {
  box-shadow: 0 24px 50px -24px rgb(var(--rogue-blue) / 0.65);
}

/* Shine sweep on the CTA inside a plan card while the card is hovered.
   ~0.85s sweep, ~2s rest, repeats. CSS-only, hover-gated, GPU-friendly. */
.shine-btn { position: relative; overflow: hidden; isolation: isolate; }
.shine-btn::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -100%;
  width: 55%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
.shine-btn > * { position: relative; z-index: 2; }
.plan-card:hover .shine-btn::before {
  animation: rogue-shine 2.8s ease-in-out infinite;
}
@keyframes rogue-shine {
  0%   { left: -100%; }
  30%  { left: 160%; }
  100% { left: 160%; }
}

/* Gentle pulse for the "Most popular" badge (no-op if reduced-motion). */
.badge-pulse {
  animation: rogue-pulse 3.4s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes rogue-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1px) scale(1.04); }
}

/* Lazy floating motion for the hero phone-mock. */
.float-y {
  animation: rogue-float 7s ease-in-out infinite;
}
@keyframes rogue-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Native <details> chevron for FAQ — no JS needed */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; }
.faq-item[open] summary .chev { transform: rotate(45deg); }

/* Subtle marquee-less ticker fade for the "trust bar" edges */
.fade-edges {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---------------- Theme toggle widget ---------------- */

.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(0 0 0 / 0.08);
  box-shadow: 0 12px 32px -8px rgb(var(--rogue-brown) / 0.30);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.theme-toggle__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--rogue-ink) / 0.55);
  padding-left: 0.5rem;
  margin-right: 0.15rem;
}
.theme-toggle__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  color: rgb(var(--rogue-ink) / 0.6);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.theme-toggle__btn:hover { color: rgb(var(--rogue-ink)); }
.theme-toggle__btn[aria-pressed="true"] {
  color: white;
  background: rgb(var(--rogue-red));
  box-shadow: 0 6px 16px -6px rgb(var(--rogue-red) / 0.65);
}
.theme-toggle__btn .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: currentColor; opacity: 0.55;
}
.theme-toggle__btn[aria-pressed="true"] .dot { opacity: 1; }

/* ---------------- Video showcase frame ---------------- */

.video-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgb(var(--rogue-brown));
  box-shadow: 0 30px 60px -25px rgb(var(--rogue-brown) / 0.55);
  aspect-ratio: 16 / 10;
}
.video-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgb(var(--rogue-brown) / 0.25) 0%, transparent 40%, rgb(var(--rogue-red) / 0.15) 100%);
  pointer-events: none;
}

/* Small "Now playing" tag overlay */
.video-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-tag .live-dot {
  width: 0.45rem; height: 0.45rem; border-radius: 9999px;
  background: rgb(var(--rogue-red));
  animation: rogue-blink 1.6s ease-in-out infinite;
}
@keyframes rogue-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ---------------- Reduced-motion safety net ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plan-card, body, header, footer, section, .hero-gradient,
  button, a, .theme-toggle__btn { transition: none; }
  .plan-card:hover .shine-btn::before,
  .badge-pulse, .float-y, .video-tag .live-dot { animation: none; }
}
