﻿/* ============================================================
   COMPONENTS - Mobile-only layout.
   No desktop grids. No hamburger. Everything is single-column.
   Claude #2: each section is self-contained - edit freely.
   ============================================================ */


/* ============================================================
   SITE HEADER - Static, full-width brand bar. No nav links.
   First thing seen after scanning the QR code.
   ============================================================ */

.site-header {
  background: linear-gradient(-45deg, #052e16, #064e3b, #022c22, #0a3320, #052e16);
  background-size: 400% 400%;
  animation: gradient-shift 18s ease infinite;
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.site-header__logomark {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.site-header__name {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  position: relative;
}

/* Glitch pseudo-layers — cloned via data-text, offset + coloured */
.site-header__name::before,
.site-header__name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: inherit;
  pointer-events: none;
  opacity: 0;
}

.site-header__name::before { color: #86efac; }
.site-header__name::after  { color: #22c55e; }

/* Glitch fires when JS adds .is-glitching */
.site-header__name.is-glitching::before {
  opacity: 0.8;
  animation: glitch-top 0.35s steps(2) forwards;
}

.site-header__name.is-glitching::after {
  opacity: 0.8;
  animation: glitch-bot 0.35s steps(2) forwards;
}

@keyframes glitch-top {
  0%   { clip-path: inset(0 0 85% 0); transform: translate(-3px,  0); }
  20%  { clip-path: inset(20% 0 60% 0); transform: translate( 3px,  0); }
  40%  { clip-path: inset(50% 0 30% 0); transform: translate(-2px, -1px); }
  60%  { clip-path: inset(70% 0 10% 0); transform: translate( 2px,  1px); }
  80%  { clip-path: inset(10% 0 75% 0); transform: translate(-3px,  0); }
  100% { clip-path: inset(0 0 100% 0);  transform: translate(0, 0); opacity: 0; }
}

@keyframes glitch-bot {
  0%   { clip-path: inset(80% 0 0 0); transform: translate( 3px,  0); }
  25%  { clip-path: inset(55% 0 20% 0); transform: translate(-3px,  1px); }
  50%  { clip-path: inset(30% 0 50% 0); transform: translate( 2px, -1px); }
  75%  { clip-path: inset(10% 0 70% 0); transform: translate(-2px,  0); }
  100% { clip-path: inset(100% 0 0 0);  transform: translate(0, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__name.is-glitching::before,
  .site-header__name.is-glitching::after { animation: none; opacity: 0; }
}

.site-header__tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-primary);
}


/* ============================================================
   SIGNUP HERO - Email form, immediately below the header.
   No scrolling required. This is the whole point of the page.
   ============================================================ */

.signup-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(-45deg, #052e16, #064e3b, #022c22, #0a3320, #052e16);
  background-size: 400% 400%;
  animation: gradient-shift 18s ease infinite;
  padding-top: var(--space-6);
  padding-bottom: var(--space-12);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Video sits behind the glass panel.
   top: -30% / height: 160% gives 30% overflow on both edges so the
   JS parallax shift never reveals an empty gap inside the clipped container. */
.signup-hero__video-bg {
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  width: 100%;
  height: 160%;
  object-fit: cover;
  opacity: 0.07;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Glass panel + content sit above the video */
.signup-hero .container {
  position: relative;
  z-index: 1;
}

.signup-hero__hook {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  background: linear-gradient(135deg, #f0fdf4, #86efac, #4ade80, #d1fae5, #f0fdf4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 12s ease-in-out infinite;
  margin-bottom: var(--space-6);
}

.signup-hero__footnote {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-4);
}

/* Frosted glass panel — wraps hook + form + footnote */
.signup-glass {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-5);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 60px rgba(34, 197, 94, 0.07);
}

/* Radial spotlight — centred behind the glass panel content */
.signup-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    rgba(34, 197, 94, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Keep actual content above the spotlight layer */
.signup-glass > * {
  position: relative;
  z-index: 1;
}


/* ============================================================
   BUTTONS
   Min 44px tall for comfortable tap targets.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    opacity      var(--duration-fast) var(--ease-out),
    transform    var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color        var(--duration-fast) var(--ease-out),
    box-shadow   var(--duration-fast) var(--ease-out);
  /* Active state for tap feedback */
  -webkit-tap-highlight-color: transparent;
}

.btn:active { opacity: 0.78; transform: scale(0.98); }

/* Hover glow — only on pointer devices to avoid sticky-hover on mobile */
@media (hover: hover) {
  .btn--primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 8px 28px rgba(34, 197, 94, 0.28);
    opacity: 1;
  }
}

.btn--primary {
  background-color: var(--color-brand-primary);
  border-color:     var(--color-brand-primary);
  color:            var(--color-text-inverse);
}

.btn--secondary {
  background-color: transparent;
  border-color:     var(--color-border);
  color:            var(--color-text-primary);
}

/* Small variant - used in nav */
.btn--sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

/* Large variant - used in CTA */
.btn--large {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-md);
}

/* Full-width - primary call-to-action buttons */
.btn--full {
  width: 100%;
}

/* Inline logo icon inside button */
.btn__icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
  margin-left: 0.35em;
  object-fit: contain;
}


/* ============================================================
   NAV - Logo left, CTA right. Solid on scroll.
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-3) 0;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    box-shadow       var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-inverse);
  letter-spacing: -0.01em;
  transition: color var(--duration-normal) var(--ease-out);
}

.nav--scrolled .nav__logo-text {
  color: var(--color-text-primary);
}


/* ============================================================
   HERO - Single column, full viewport height.
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-16) + 56px);
  padding-bottom: var(--space-16);
  text-align: center;
  background-color: var(--color-bg-inverse);
  background-image: radial-gradient(ellipse at 65% 15%, rgba(34, 197, 94, 0.14) 0%, transparent 65%);
}

.hero__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-4);
}

.hero__headline {
  font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl));
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  color: var(--color-text-inverse);
}

.hero__subheadline {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-8);
}

.hero__media {
  margin-bottom: var(--space-8);
}

/* Placeholder until real image/illustration arrives */
.hero__media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
}

/* Secondary button variant inside hero - override for dark bg */
.hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-text-inverse);
}

.hero .btn--secondary:active {
  background-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}


/* ============================================================
   FEATURES - Horizontal card rows (icon left, text right).
   ============================================================ */

.features {
  background-color: var(--color-bg-subtle);
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  /* Edge highlight — faint inner top rim catches the "light" */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(34, 197, 94, 0.05);
}

.feature-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-secondary);
  font-size: var(--text-xl);
}

.feature-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.feature-card__body p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}


/* ============================================================
   HOW IT WORKS - Vertical numbered steps.
   ============================================================ */

.how-it-works {
  background-color: var(--color-bg-subtle);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}

/* Connector line between step numbers */
.steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-brand-primary),
    var(--color-border)
  );
  /* Claude #2: great candidate for a GSAP draw-on animation */
}

.step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  position: relative;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step__content { padding-top: var(--space-2); }

.step__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.step__body {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
}


/* ============================================================
   TESTIMONIALS - Single column stack.
   ============================================================ */

.testimonials {
  background-color: var(--color-bg);
}

.testimonials__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  padding-top: calc(var(--space-6) + var(--space-4));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-3);
  left: var(--space-6);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-brand-accent);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card__quote p {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}


/* ============================================================
   CTA - Full-width block, centered copy.
   ============================================================ */

.cta-section {
  background-color: var(--color-bg);
}

.cta-block {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-xl);
  background-color: var(--color-brand-secondary);
  border: 1px solid transparent;
}

.cta-block__headline {
  font-size: clamp(var(--text-xl), 6vw, var(--text-3xl));
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}

.cta-block__subheadline {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.82);
}

.cta-block__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.cta-section .btn--primary {
  background-color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
  color: var(--color-brand-secondary);
}

.cta-section .btn--primary:active {
  opacity: 0.9;
}

.cta-block__footnote {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-4);
}


/* ============================================================
   EMAIL SIGNUP FORM
   ============================================================ */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.signup-form__input {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: #ffffff;
  border: 2px solid rgba(34, 197, 94, 0.7);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  animation: input-glow-pulse 8s ease-in-out infinite;
  transition: transform var(--duration-fast) var(--ease-out);
}

.signup-form__input::placeholder {
  color: var(--color-text-muted);
}

.signup-form__input:focus {
  animation: none;
  border-color: var(--color-brand-primary);
  box-shadow:
    0 0 0 3px  rgba(34, 197, 94, 0.25),
    0 0 0 6px  rgba(34, 197, 94, 0.08),
    0 4px 20px rgba(34, 197, 94, 0.15);
  transform: scale(1.01);
}

/* Invalid border - applied by JS */
.signup-form__input--error {
  border-color: #f87171;
}

.signup-form__btn {
  min-height: 52px;
  /* Ambient glow beneath the primary CTA — spotlights the action */
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35), 0 2px 8px rgba(34, 197, 94, 0.2);
}

/* Inline validation error */
.error-msg {
  font-size: var(--text-sm);
  color: #ef4444;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
}

.error-msg[hidden] { display: none; }


/* ============================================================
   SUCCESS MODAL
   ============================================================ */

.success-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 46, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: var(--z-modal);
}

.success-modal[hidden] { display: none; }

.success-modal__card {
  background-color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6) var(--space-8);
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.success-modal__frog {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.success-modal__headline {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: 0;
}

.success-modal__instruction {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}

.spin-code {
  width: 100%;
  padding: var(--space-5) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--color-brand-secondary);
  background-color: var(--color-bg-subtle);
  border: 2px dashed var(--color-brand-primary);
  border-radius: var(--radius-lg);
  user-select: all;
}

.success-modal__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.success-modal__policy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background-color: transparent;
  border: 2px solid var(--color-brand-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-primary);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.success-modal__policy-btn[hidden] { display: none; }

.success-modal__policy-btn:active { opacity: 0.7; }

.success-modal__done {
  width: 100%;
  min-height: 48px;
  background-color: transparent;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--duration-fast) var(--ease-out);
}


/* ============================================================
   PRIVACY PANEL
   Full-screen overlay. Opens from success modal or footer link.
   ============================================================ */

.privacy-panel {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 350;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.privacy-panel[hidden] { display: none; }

/* ── Branded dark header ── */
.privacy-panel__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(-45deg, #052e16, #064e3b, #022c22, #0a3320, #052e16);
  background-size: 400% 400%;
  animation: gradient-shift 18s ease infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.privacy-panel__header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.privacy-panel__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.privacy-panel__brand-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.privacy-panel__brand-sub {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.privacy-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--duration-fast) var(--ease-out);
}

.privacy-panel__close:active { background: rgba(255, 255, 255, 0.2); }

/* ── Content ── */
.privacy-panel__inner {
  padding: var(--space-6) var(--space-5) var(--space-16);
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.privacy-panel__updated {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-secondary);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.privacy-panel__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.privacy-panel__intro {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-border);
}

/* ── Privacy blocks ── */
.privacy-block {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-border);
  margin-bottom: var(--space-1);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.privacy-block:last-child { border-bottom: none; }

.privacy-block h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.privacy-block p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

/* Highlighted unsubscribe block */
.privacy-block--cta {
  border-left-color: var(--color-brand-primary);
  background-color: var(--color-bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-right: var(--space-4);
}

.privacy-block--cta h3 { color: var(--color-brand-secondary); }

.privacy-panel__link {
  color: var(--color-brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-panel__link:active { opacity: 0.7; }


/* ============================================================
   FAQ - Accordion
   ============================================================ */

.faq {
  background-color: var(--color-bg);
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 56px;
  gap: var(--space-4);
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.faq-item__trigger:active {
  opacity: 0.6;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-brand-primary);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  font-weight: var(--weight-regular);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__body {
  padding-bottom: var(--space-5);
}

.faq-item__body[hidden] {
  display: none;
}

.faq-item__body p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-brand);
}


/* ============================================================
   FOOTER - Single column stack.
   ============================================================ */

.footer {
  background-color: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding: var(--space-10) 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__logo {
  display: inline-block;
}

.footer__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-3));
}

.footer__social-links {
  display: flex;
  flex-direction: row;
  gap: var(--space-6);
}

.footer__social-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-brand-primary);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.footer__social-link:active { opacity: 0.6; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:active { color: var(--color-text-inverse); }

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
}


/* ============================================================
   ANIMATED GRADIENT KEYFRAMES
   ============================================================ */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes modal-card-enter {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes frog-pop {
  0%   { transform: scale(0)    rotate(-15deg); }
  65%  { transform: scale(1.2)  rotate(6deg); }
  82%  { transform: scale(0.93) rotate(-2deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

@keyframes code-reveal {
  from { opacity: 0; transform: translateY(10px); letter-spacing: 0.25em; }
  to   { opacity: 1; transform: translateY(0);    letter-spacing: 0.1em; }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0    rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0    rgba(34, 197, 94, 0); }
}

/* Modal entrance — replays each time modal goes from hidden → visible */
.success-modal:not([hidden]) .success-modal__card {
  animation: modal-card-enter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-modal:not([hidden]) .success-modal__frog {
  animation: frog-pop 0.6s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-modal:not([hidden]) .spin-code:not([hidden]) {
  animation:
    code-reveal  0.45s 0.28s ease-out both,
    pulse-ring   0.85s 0.38s ease-out both;
}

@keyframes input-glow-pulse {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12), 0 0 20px rgba(34, 197, 94, 0.07);
  }
  50% {
    border-color: rgba(134, 239, 172, 0.95);
    box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.2), 0 0 28px rgba(134, 239, 172, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header  { animation: none; background: var(--color-bg-inverse); }
  .signup-hero  { animation: none; background: var(--color-bg-inverse); }
  .signup-form__input { animation: none; border-color: rgba(34, 197, 94, 0.7); }
  .signup-hero__hook  {
    animation: none;
    background: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.72);
    color: rgba(255, 255, 255, 0.72);
  }
}
