/* ─────────────────────────────────────────────────────────────────────────
   ZESTIFY — Landing page styles
   Extends ../css/styles.css (loaded before this file).
   ───────────────────────────────────────────────────────────────────────── */

/* Hero gradient text — yellow-to-dark brand gradient */
.hero-gradient-text {
  background: linear-gradient(135deg, #ffe600 0%, #dec800 45%, #a08f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Staggered fade-up on page load */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate > * {
  opacity: 0;
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.05s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.15s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.25s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.35s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.45s; }

/* ─────────────────────────────────────────────────────────────────────────
   "FREE" landing — extra primitives
   ───────────────────────────────────────────────────────────────────────── */

/* Subtle paper-grain noise overlay (SVG data URI, no external request) */
.noise-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Big "£0" stamp — slightly tilted, layered, brand-tinted */
.stamp-zero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #1c1b1b;
  background: linear-gradient(135deg, #ffe600 0%, #fde400 50%, #dec800 100%);
  border-radius: 9999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset,
    0 18px 32px -8px rgba(222, 200, 0, 0.45),
    0 6px 12px -4px rgba(28, 27, 27, 0.18);
  transform: rotate(-6deg);
}

/* Subtle ticker keyframes (used in "no catch" band) */
@keyframes drift-x {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.drift-x {
  animation: drift-x 38s linear infinite;
}

/* Step number — bold, oversized, slightly cropped */
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  background: linear-gradient(180deg, #fde400 0%, #dec800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Comparison rows — old way struck through, new way highlighted */
.row-old   { color: #9b9583; }
.row-old s { text-decoration-color: #ba1a1a; text-decoration-thickness: 2px; }
.row-new   { color: #1c1b1b; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────────
   HOW IT WORKS — step cards
   ───────────────────────────────────────────────────────────────────────── */

.step-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px -28px rgba(28, 27, 27, 0.22);
}

.step-card--final:hover {
  box-shadow: 0 44px 80px -28px rgba(28, 27, 27, 0.55);
}

/* Big sans-serif numeral — Space Grotesk, consistent with the rest of the site */
.step-numeral {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 4.25rem;
  line-height: 0.85;
  letter-spacing: -0.06em;
  user-select: none;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card:hover .step-numeral {
  transform: translateY(-2px);
}

.step-numeral--gold {
  background: linear-gradient(180deg, #ffe600 0%, #dec800 65%, #a08f00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Trust-story status pills */
.step-status {
  display: inline-flex;
  align-items: center;
  height: 1.65rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-status--free {
  background: rgba(255, 230, 0, 0.14);
  color: #fde400;
  box-shadow: inset 0 0 0 1px rgba(253, 228, 0, 0.32);
}

.step-status--decision {
  background: rgba(98, 255, 150, 0.14);
  color: #62ff96;
  box-shadow: inset 0 0 0 1px rgba(98, 255, 150, 0.32);
}

.step-status--paid {
  background: #1c1b1b;
  color: #fde400;
  box-shadow: 0 8px 18px -6px rgba(28, 27, 27, 0.4);
}

/* Gradient ring used for "what you get" tile hover */
.tile-ring {
  position: relative;
  isolation: isolate;
}
.tile-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.0) 0%, rgba(255, 230, 0, 0.6) 50%, rgba(0, 228, 117, 0.4) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tile-ring:hover::after { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────────────
   FAQ items — numbered, branded, animated
   ───────────────────────────────────────────────────────────────────────── */
.faq-item {
  background: #ffffff;
  border: 1px solid rgba(231, 229, 228, 0.7);
  border-radius: 1rem;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(222, 200, 0, 0.4);
}
.faq-item[open] {
  border-color: #dec800;
  background: #fffef5;
  box-shadow: 0 12px 32px -16px rgba(222, 200, 0, 0.35);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.4rem 1.75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid #dec800;
  outline-offset: -2px;
  border-radius: inherit;
}

.faq-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(106, 95, 0, 0.55);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.faq-item[open] .faq-num,
.faq-item:hover .faq-num {
  color: #6a5f00;
}

.faq-q {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #1c1b1b;
}
@media (min-width: 768px) {
  .faq-q { font-size: 1.25rem; }
}

.faq-toggle {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: #1c1b1b;
  align-self: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}
.faq-item:hover .faq-toggle { color: #6a5f00; }
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  color: #6a5f00;
}

.faq-body {
  padding: 0 1.75rem 1.6rem calc(1.75rem + 1.5rem + 1.25rem);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #5f5e5e;
}
@media (max-width: 640px) {
  .faq-body {
    padding-left: 1.75rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   .cta-primary — shared hover/active/focus pattern across all primary CTAs
   ───────────────────────────────────────────────────────────────────────── */
.cta-primary {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
  will-change: transform;
}
.cta-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 36px -12px rgba(28, 27, 27, 0.28),
    0 6px 14px -6px rgba(222, 200, 0, 0.45);
}
.cta-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.cta-primary:focus-visible {
  outline: 2px solid #1c1b1b;
  outline-offset: 3px;
}

/* Stronger strike-through for "what you don't" list — readable but unmistakable */
.strike-through {
  position: relative;
  display: inline-block;
}
.strike-through::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: currentColor;
  opacity: 0.65;
  transform: translateY(-50%) rotate(-1.5deg);
  pointer-events: none;
}
