/* home.css — sections unique to the homepage: hero, how-it-works, teaser, why-join, final CTA.
   Buttons, badges, and cards are shared and live in components.css. */

/* Hero */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  display: grid;
  gap: var(--space-6);
  overflow: hidden;
}
.hero-motif { position: absolute; top: 0; right: 0; opacity: 0.4; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

.price-demo {
  position: relative;
  z-index: 1;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  max-width: 360px;
}
.price-demo-label { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: var(--space-3); }
.price-demo-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-secondary); }
.price-demo-row:first-of-type { border-top: none; }
.price-demo-fixed { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); }
.price-demo-control { display: flex; align-items: center; gap: var(--space-2); }
.price-step {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease);
}
.price-step:hover { border-color: var(--signal-blue); }
.price-demo-value { font-family: var(--font-display); font-weight: 600; min-width: 60px; text-align: center; }
.price-demo-result { border-top: 1px solid var(--border-default); margin-top: var(--space-1); }
.price-demo-earn { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--emerald); }

/* How it works — a real sequence, so step markers are earned here, not decorative */
.steps-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-top: var(--space-5); }
.step-marker {
  width: 48px; height: 48px;
  margin-bottom: var(--space-3);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.step-marker-1 { background: var(--indigo); }
.step-marker-2 { background: var(--signal-blue); }
.step-marker-3 { background: var(--emerald); }
.step-marker-4 { background: var(--indigo); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--text-secondary); font-size: 15px; }

/* Product teaser */
.teaser .card-grid { margin: var(--space-5) 0 var(--space-4); }
.see-all-link { color: var(--signal-blue); font-weight: 600; font-size: 15px; }

/* Why join */
.why-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-top: var(--space-5); }
.why-item i { font-size: 28px; color: var(--emerald); margin-bottom: var(--space-3); }
.why-item h4 { margin-bottom: var(--space-2); }
.why-item p { color: var(--text-secondary); font-size: 15px; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .lede { margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { margin-top: var(--space-4); }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: var(--space-8) 0; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}
