/**
 * Brand v3 landing pass — scoped overrides for landing marketing sections.
 * Typography/radii now come from global design-tokens.css (Inter canonical).
 */

:root {
  --pp-radius-cta: var(--pp-radius-lg);
}

body.brand-v3-landing {
  font-family: var(--pp-font-ui);
  /* Clear fixed navbar (nav padding + logo ~= 6.5–7rem) */
  --brand-v3-nav-offset: 6.5rem;
}

@media (min-width: 768px) {
  body.brand-v3-landing {
    --brand-v3-nav-offset: 7rem;
  }
}

/* Calmer page background (Fireflies-adjacent restraint) */
body.brand-v3-landing #bg-animation {
  background:
    radial-gradient(ellipse 64% 46% at 52% 28%, rgba(24, 127, 232, 0.08) 0%, rgba(24, 127, 232, 0.03) 42%, transparent 72%),
    radial-gradient(ellipse 42% 34% at 82% 22%, rgba(24, 127, 232, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, var(--pp-bg-soft) 0%, var(--pp-white) 48%, var(--pp-neutral-50) 100%);
}

/* Dark mode: swap hero canvas to deep navy (fixes hardcoded light gradient stops) */
html.dark body.brand-v3-landing #bg-animation {
  background:
    radial-gradient(ellipse 64% 46% at 52% 28%, rgba(24, 127, 232, 0.14) 0%, rgba(24, 127, 232, 0.05) 42%, transparent 72%),
    radial-gradient(ellipse 42% 34% at 82% 22%, rgba(24, 127, 232, 0.08) 0%, transparent 70%),
    linear-gradient(135deg, var(--pp-bg) 0%, var(--pp-neutral-900) 48%, var(--pp-neutral-50) 100%);
}

/* Typography discipline */
body.brand-v3-landing #bg-animation h1,
body.brand-v3-landing #bg-animation h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Flatten gradient keyword treatment */
body.brand-v3-landing .gradient-text-professional {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  -moz-text-fill-color: currentColor;
  color: var(--pp-primary-700);
}

body.brand-v3-landing h1 .gradient-text-professional {
  color: var(--pp-primary-700) !important;
}

html.dark body.brand-v3-landing .gradient-text-professional,
html.dark body.brand-v3-landing h1 .gradient-text-professional {
  color: var(--pp-primary-300) !important;
}

/* Reduce decorative motion */
body.brand-v3-landing .float-animation {
  animation: none;
}

/* Neutral feature bullets (no rainbow dots) */
body.brand-v3-landing #bg-animation .flex.items-start .w-3.h-3.rounded-full {
  background-color: var(--pp-primary-500) !important;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
}

/* CTA shape */
body.brand-v3-landing .pp-btn-primary {
  border-radius: var(--pp-radius-cta);
  background: var(--pp-primary-500);
  box-shadow: 0 12px 28px rgba(24, 127, 232, 0.16);
}

body.brand-v3-landing .pp-btn-primary:hover {
  background: var(--pp-primary-600);
}

body.brand-v3-landing .pp-btn-secondary {
  border-radius: var(--pp-radius-cta);
}

/* Reveal on scroll base state */
body.brand-v3-landing .brand-v3-hero-trailing {
  margin-top: 3rem;
  padding-top: 0.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.brand-v3-landing .brand-v3-hero-trailing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  body.brand-v3-landing .brand-v3-hero-trailing {
    margin-top: 7.5rem; /* Reduced gap by 50% per user request */
    margin-bottom: 4rem;
  }
}

body.brand-v3-landing .brand-v3-hero-product {
  margin: 0 auto;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-2xl);
  overflow: hidden;
  background: var(--pp-surface);
  box-shadow:
    0 24px 48px rgba(17, 24, 39, 0.08),
    0 4px 12px rgba(24, 127, 232, 0.08);
}

html.dark body.brand-v3-landing .brand-v3-hero-product {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(24, 127, 232, 0.12);
}

body.brand-v3-landing .brand-v3-hero-product img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hide decorative feature-section blobs */
body.brand-v3-landing #structure .absolute.rounded-full.bg-blue-200,
body.brand-v3-landing #structure .absolute.rounded-full.border-purple-200 {
  display: none;
}

/* Demo step numbers: one accent, not rainbow */
body.brand-v3-landing .brand-v3-step-number {
  color: var(--pp-primary-600) !important;
}

/* Fireflies-style section bands */
body.brand-v3-landing .brand-v3-section {
  position: relative;
  z-index: 10;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  body.brand-v3-landing .brand-v3-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

body.brand-v3-landing .brand-v3-section--surface {
  background: var(--pp-surface);
}

body.brand-v3-landing .brand-v3-section--muted {
  background: var(--pp-neutral-50);
  border-top: 1px solid var(--pp-border);
  border-bottom: 1px solid var(--pp-border);
}

body.brand-v3-landing .brand-v3-section--hero {
  background: transparent;
  /* Grand entrance: significant breathing room below navbar */
  padding-top: calc(var(--brand-v3-nav-offset) + 6rem);
  padding-bottom: 4rem;
  min-height: auto;
  scroll-margin-top: var(--brand-v3-nav-offset);
}

@media (min-width: 1024px) {
  body.brand-v3-landing .brand-v3-section--hero {
    padding-top: calc(var(--brand-v3-nav-offset) + 10rem);
    padding-bottom: 8rem;
  }
}

body.brand-v3-landing #hero h1 {
  line-height: 1.15;
  padding-top: 0.25rem;
  margin-bottom: 1.5rem;
}

body.brand-v3-landing #hero p {
  margin-bottom: 2.5rem;
}

body.brand-v3-landing .brand-v3-section--brand {
  background: var(--pp-primary-500);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body.brand-v3-landing .brand-v3-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-primary-600);
  margin-bottom: 0.75rem;
}

body.brand-v3-landing .brand-v3-beta-accent {
  color: var(--pp-beta-500);
}

body.brand-v3-landing .brand-v3-proof-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pp-border);
}

body.brand-v3-landing .brand-v3-proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 7rem;
  padding: 0;
  border: none;
  background: transparent;
}

@media (min-width: 768px) {
  body.brand-v3-landing .brand-v3-proof-stat:not(:last-child) {
    padding-right: 2.5rem;
    border-right: 1px solid var(--pp-border);
  }
}

body.brand-v3-landing .brand-v3-proof-stat strong {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pp-primary-600);
}

body.brand-v3-landing .brand-v3-proof-stat span {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pp-text-secondary);
  text-align: center;
  max-width: 9rem;
}

body.brand-v3-landing .brand-v3-cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  body.brand-v3-landing .brand-v3-cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.brand-v3-landing .brand-v3-cred-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.brand-v3-landing .brand-v3-section--credibility {
  background: var(--pp-grad-footer);
  color: #ffffff;
  border-top: none;
  border-bottom: none;
}

body.brand-v3-landing .brand-v3-section--credibility .brand-v3-section-label {
  color: var(--pp-primary-300);
}

body.brand-v3-landing .brand-v3-section--credibility h2 {
  color: #ffffff;
}

body.brand-v3-landing .brand-v3-section--credibility > div > p {
  color: rgba(255, 255, 255, 0.8);
}

body.brand-v3-landing .brand-v3-section--credibility .brand-v3-cred-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--pp-radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

body.brand-v3-landing .brand-v3-section--credibility .brand-v3-cred-card__bg-icon {
  position: absolute;
  bottom: -2.5rem;
  right: -2.5rem;
  font-size: 8rem;
  color: #ffffff;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-5deg);
}

body.brand-v3-landing .brand-v3-section--credibility .brand-v3-cred-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

body.brand-v3-landing .brand-v3-section--credibility .brand-v3-cred-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

body.brand-v3-landing .brand-v3-close-cta h2 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.brand-v3-landing .brand-v3-close-cta p {
  color: rgba(255, 255, 255, 0.88);
}

body.brand-v3-landing .brand-v3-close-cta .pp-btn-primary {
  background: #ffffff;
  color: var(--pp-primary-600);
  box-shadow: none;
}

body.brand-v3-landing .brand-v3-close-cta .pp-btn-primary:hover {
  background: var(--pp-neutral-50);
}

body.brand-v3-landing .brand-v3-close-cta .pp-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

body.brand-v3-landing .brand-v3-close-cta .pp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.brand-v3-landing #templates.brand-v3-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body.brand-v3-landing #research-impact-counter {
  display: none;
}

/* Landing pricing section */
body.brand-v3-landing #pricing.brand-v3-section {
  scroll-margin-top: var(--brand-v3-nav-offset, 6.5rem);
}

body.brand-v3-landing .landing-pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.brand-v3-landing .landing-pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  body.brand-v3-landing .landing-pricing-card--featured {
    transform: scale(1.03);
  }

  body.brand-v3-landing .landing-pricing-card--featured:hover {
    transform: scale(1.03) translateY(-2px);
  }
}

body.brand-v3-landing .landing-price-numeric {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', 'Roboto Mono', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Beta card CTA: white button on blue card (matches pricing modal) */
body.brand-v3-landing .landing-pricing-beta-cta {
  background: #ffffff !important;
  color: var(--pp-primary-600) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: var(--pp-radius-lg) !important;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.brand-v3-landing .landing-pricing-beta-cta:hover {
  background: var(--pp-neutral-50) !important;
  transform: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Partner logo marquee (proof band) */
@keyframes partnerLogosScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--partner-logos-dx, -50%)); }
}

body.brand-v3-landing .partner-logos-scroll-container {
  display: flex;
  animation: partnerLogosScroll 180s linear infinite;
  will-change: transform;
}

body.brand-v3-landing .partner-logos-scroll-container:hover {
  animation-play-state: paused;
}

/* Light mode: muted grayscale logos on pale surface */
body.brand-v3-landing .partner-logos-scroll-container img {
  filter: grayscale(100%);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

body.brand-v3-landing .partner-logos-scroll-container:hover img {
  opacity: 0.88;
}

/* Dark mode: invert to soft white (same restraint as light grayscale) */
html.dark body.brand-v3-landing .partner-logos-scroll-container img {
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.5;
}

html.dark body.brand-v3-landing .partner-logos-scroll-container:hover img {
  opacity: 0.68;
}

