/* ============================================
   Revenue OS Product Page — Design System
   Decision #186: Own design, white bg, purple+teal
   Enhanced: Scroll reveals, icons, animations
   ============================================ */

/* Design Tokens */
.revos-page {
  --revos-bg: #ffffff;
  --revos-bg-subtle: #f8f7ff;
  --revos-bg-card: #ffffff;
  --revos-text: #1a1a2e;
  --revos-text-secondary: #5a5a6e;
  --revos-text-muted: #8a8a9e;
  --revos-purple: #7c5cfc;
  --revos-purple-hover: #6a4ae8;
  --revos-purple-dim: rgba(124, 92, 252, 0.08);
  --revos-purple-glow: rgba(124, 92, 252, 0.12);
  --revos-teal: #3ed0cc;
  --revos-teal-dim: rgba(62, 208, 204, 0.08);
  --revos-success: #10b981;
  --revos-danger: #e94560;
  --revos-radius: 12px;
  --revos-radius-sm: 8px;
  --revos-radius-pill: 999px;
  --revos-max-width: 1100px;
  --revos-section-gap: 80px;
  --revos-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --revos-shadow-hover: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);

  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--revos-text);
  background: var(--revos-bg);
  line-height: 1.7;
  font-size: 1.125rem;
}

html {
  scroll-behavior: smooth;
}

/* Override site background for this page */
.revos-page main {
  background: var(--revos-bg);
}

/* ---- Layout ---- */
.revos-container {
  max-width: var(--revos-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.revos-section {
  padding: var(--revos-section-gap) 0;
  position: relative;
  overflow: hidden;
}

.revos-section--subtle {
  background: var(--revos-bg-subtle);
}

.revos-section--fp {
  background: var(--revos-purple-dim);
  border-top: 3px solid var(--revos-purple);
  border-bottom: 3px solid var(--revos-purple);
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children (workflow cards, scorecard rows) */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 100ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 200ms; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 300ms; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 400ms; }

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Typography ---- */
.revos-page h1,
.revos-page h2,
.revos-page h3 {
  font-family: 'Outfit', -apple-system, sans-serif;
  line-height: 1.2;
}

.revos-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--revos-text);
  margin-bottom: 24px;
  max-width: 800px;
}

.revos-page h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--revos-text);
  margin-bottom: 20px;
}

.revos-page h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--revos-purple);
  margin-bottom: 8px;
}

.revos-subtitle {
  font-size: 1rem;
  color: var(--revos-text-secondary);
  margin-top: 0;
}

.revos-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--revos-purple);
  background: var(--revos-purple-dim);
  padding: 4px 12px;
  border-radius: var(--revos-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.revos-body-secondary {
  font-size: 1rem;
  color: var(--revos-text-secondary);
}

.revos-muted {
  color: var(--revos-text-muted);
}

/* ---- Hero ---- */
.revos-hero {
  padding: 80px 0 60px;
  text-align: left;
  position: relative;
}

.revos-hero .revos-supporting {
  font-size: 1.125rem;
  color: var(--revos-text-secondary);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Hero gradient orb */
.revos-hero-gradient {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.06) 0%, rgba(62, 208, 204, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroFloat 25s ease-in-out infinite;
  z-index: 0;
}

.revos-hero .revos-container {
  position: relative;
  z-index: 1;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.97); }
}

/* ---- CTA Buttons ---- */
.revos-cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--revos-purple);
  color: #fff !important;
  border-radius: var(--revos-radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  position: relative;
  animation: ctaGlow 3.5s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 252, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(124, 92, 252, 0.2); }
}

.revos-cta:hover {
  background: var(--revos-purple-hover);
  box-shadow: var(--revos-shadow-hover);
  transform: translateY(-2px) scale(1.02);
  animation: none;
}

.revos-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.revos-cta:hover .revos-cta-arrow {
  transform: translateX(4px);
}

.revos-cta--secondary {
  background: transparent;
  color: var(--revos-purple) !important;
  border: 2px solid var(--revos-purple);
  animation: none;
}

.revos-cta--secondary:hover {
  background: var(--revos-purple);
  color: #fff !important;
}

.revos-cta-note {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--revos-text-muted);
}

/* ---- Section Curve Dividers ---- */
.revos-curve {
  display: block;
  width: 100%;
  height: 24px;
  position: relative;
  margin-top: -1px;
}

.revos-curve--flip {
  transform: scaleY(-1);
  margin-top: 0;
  margin-bottom: -1px;
}

/* ---- Workflow Cards ---- */
.revos-workflows {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.revos-workflow-card {
  background: var(--revos-bg-card);
  border-left: 3px solid var(--revos-purple);
  border-radius: var(--revos-radius);
  padding: 28px 28px 28px 24px;
  box-shadow: var(--revos-shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.revos-workflow-card:hover {
  box-shadow: var(--revos-shadow-hover);
  transform: translateY(-2px);
}

.revos-workflow-card h3 {
  margin-bottom: 8px;
}

.revos-workflow-card p {
  color: var(--revos-text-secondary);
  font-size: 1rem;
  margin: 0;
}


/* ---- Scorecard ---- */
.revos-scorecard {
  margin-top: 24px;
}

.revos-scorecard-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: start;
}

.revos-scorecard-row:last-child {
  border-bottom: none;
}

.revos-metric-name {
  font-weight: 600;
  color: var(--revos-teal);
  font-size: 1rem;
}

.revos-metric-desc {
  color: var(--revos-text-secondary);
  font-size: 1rem;
}

/* ---- Founding Partner ---- */
.revos-fp-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--revos-purple);
  margin: 16px 0 8px;
}

.revos-fp-note {
  color: var(--revos-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* FP Spots Indicator */
.revos-fp-spots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.revos-fp-spot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--revos-purple);
  background: transparent;
  transition: background 0.3s;
}

.revos-fp-spot--filled {
  background: var(--revos-purple);
}

.revos-fp-spots-label {
  font-size: 0.85rem;
  color: var(--revos-text-muted);
  margin-left: 4px;
}

/* FP shimmer on tag */
.revos-section--fp .revos-tag {
  position: relative;
  overflow: hidden;
}

.revos-section--fp .revos-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ---- Timeline Visual ---- */
.revos-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
  position: relative;
  padding-left: 40px;
}

.revos-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--revos-purple-dim);
}

.revos-timeline-line-fill {
  position: absolute;
  left: 15px;
  top: 8px;
  width: 2px;
  height: 0;
  background: var(--revos-purple);
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.revos-timeline.revealed .revos-timeline-line-fill {
  height: calc(100% - 16px);
}

.revos-timeline-node {
  position: relative;
  padding: 12px 0;
}

.revos-timeline-node::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--revos-bg);
  border: 2px solid var(--revos-purple);
  z-index: 1;
  transition: background 0.4s;
}

.revos-timeline.revealed .revos-timeline-node::before {
  background: var(--revos-purple);
}

.revos-timeline-node h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--revos-text);
  margin: 0 0 4px;
}

.revos-timeline-node p {
  font-size: 0.95rem;
  color: var(--revos-text-secondary);
  margin: 0;
}

/* ---- Timeline Highlight ---- */
.revos-timeline-highlight {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--revos-text);
  margin-bottom: 16px;
}

/* ---- Guarantee ---- */
.revos-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--revos-teal-dim);
  border-radius: var(--revos-radius);
  padding: 24px;
  margin-top: 24px;
}

.revos-guarantee-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.revos-guarantee-icon svg {
  width: 36px;
  height: 36px;
}

.revos-guarantee-icon .check-circle {
  fill: none;
  stroke: var(--revos-teal);
  stroke-width: 2;
}

.revos-guarantee-icon .check-mark {
  fill: none;
  stroke: var(--revos-teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.revos-guarantee.revealed .check-mark {
  stroke-dashoffset: 0;
}

.revos-guarantee p {
  margin: 0;
  font-size: 1rem;
}

/* ---- Number Counter ---- */
.revos-counter {
  display: inline;
}

/* ---- Disqualification ---- */
.revos-disqualification {
  background: #f5f5f5;
  border-radius: var(--revos-radius);
  padding: 32px;
}

.revos-disqualification h2 {
  color: var(--revos-text-muted);
  font-size: 1.5rem;
}

.revos-disqualification p {
  color: var(--revos-text-muted);
  font-size: 1rem;
}

/* ---- Blockquote (origin story, behavior change) ---- */
.revos-page blockquote,
.revos-blockquote {
  border-left: 3px solid var(--revos-purple);
  padding-left: 20px;
  margin: 24px 0;
  font-style: normal;
  color: var(--revos-text-secondary);
}

/* ---- SEO Footer ---- */
.revos-seo-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--revos-text-muted);
  padding: 32px 0;
}

/* ---- CTA Section (centered) ---- */
.revos-cta-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .revos-hero h1 {
    font-size: 2rem;
  }

  .revos-page h2 {
    font-size: 1.5rem;
  }

  .revos-hero {
    padding: 48px 0 40px;
  }

  .revos-section {
    padding: 48px 0;
  }

  .revos-scorecard-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .revos-fp-price {
    font-size: 2rem;
  }

  .revos-workflow-card {
    padding: 20px 20px 20px 18px;
  }

  .revos-guarantee {
    flex-direction: column;
  }

  /* Reduce reveal distance on mobile */
  [data-reveal] {
    transform: translateY(12px);
  }

  [data-reveal-stagger] > * {
    transform: translateY(12px);
  }

  /* Smaller hero gradient on mobile */
  .revos-hero-gradient {
    width: 300px;
    height: 300px;
    top: -20%;
    right: -20%;
  }

  .revos-curve {
    height: 16px;
  }

  /* Timeline simplified on mobile */
  .revos-timeline {
    padding-left: 32px;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .revos-cta {
    animation: none;
  }

  .revos-hero-gradient {
    animation: none;
  }

  .revos-section--fp .revos-tag::after {
    animation: none;
  }

  .revos-guarantee-icon .check-mark {
    stroke-dashoffset: 0;
    transition: none;
  }

  .revos-timeline-line-fill {
    transition: none;
  }

  .revos-workflow-card {
    transition: none;
  }
}
