/*
 * Homepage styles — design reference: your-platform-gateway
 * (../your-platform-gateway: index.css, tailwind.config, landing components)
 * Uses same tokens: primary blue, hero gradient, section-alt bg, card borders, Inter font.
 * Inter font is loaded via <link> in index.html (extra_css_late) so this file loads without blocking.
 */

/* Design tokens from your-platform-gateway */
.homepage {
  --hp-primary: hsl(210, 60%, 55%);
  --hp-primary-foreground: hsl(0, 0%, 100%);
  --hp-foreground: hsl(215, 25%, 20%);
  --hp-muted-foreground: hsl(215, 15%, 50%);
  --hp-hero-start: hsl(210, 65%, 50%);
  --hp-hero-end: hsl(210, 55%, 60%);
  --hp-section-bg: hsl(210, 30%, 97%);
  --hp-card-border: hsl(210, 25%, 92%);
  --hp-border: hsl(210, 25%, 90%);
  --hp-radius: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Full-width sections when no sidebar */
.homepage .hero-section,
.homepage .benefits-section,
.homepage .how-it-works-section,
.homepage .features-section,
.homepage .cta-section {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* Hero — gateway: hero-gradient, pt-24 pb-16 md:pt-32 md:pb-24 */
.homepage .hero-section {
  background: linear-gradient(180deg, var(--hp-hero-start) 0%, var(--hp-hero-end) 100%);
  color: var(--hp-primary-foreground);
  padding: 4rem 2rem;
}
@media (min-width: 768px) {
  .homepage .hero-section {
    padding: 6rem 2rem 5rem;
  }
}
.homepage .hero-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.homepage .hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--hp-primary-foreground);
}
@media (min-width: 768px) {
  .homepage .hero-title {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .homepage .hero-title {
    font-size: 3rem;
  }
}
.homepage .hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 768px) {
  .homepage .hero-subtitle {
    font-size: 1.25rem;
  }
}
.homepage .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.homepage .hero-section .btn-large.MuiButton-containedPrimary {
  background: var(--hp-primary-foreground);
  color: var(--hp-primary);
}
.homepage .hero-section .btn-large.MuiButton-containedPrimary:hover {
  background: rgba(255, 255, 255, 0.9);
}
.homepage .hero-section .btn-ghost {
  color: var(--hp-primary-foreground);
}
.homepage .hero-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Problem statement — gateway: py-12 md:py-16, text-lg md:text-xl muted, "We fix that." font-medium */
.homepage .problem-statement {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--hp-muted-foreground);
  text-align: center;
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 42rem;
}
@media (min-width: 768px) {
  .homepage .problem-statement {
    font-size: 1.25rem;
    margin: 4rem auto;
  }
}
.homepage .problem-statement strong {
  color: var(--hp-foreground);
  font-weight: 500;
}

/* Section header — gateway: text-center mb-12, h2 text-2xl md:text-3xl font-bold mb-3 */
.homepage .section-header {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}
.homepage .section-header .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hp-foreground);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .homepage .section-header .section-title {
    font-size: 1.875rem;
  }
}
.homepage .section-header .section-subtitle {
  font-size: 1rem;
  color: var(--hp-muted-foreground);
  margin-bottom: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Features section (What You Get — 6 cards) — gateway: section-alt, benefit-card border-l-4 */
.homepage .features-section {
  padding: 4rem 2rem;
  background-color: var(--hp-section-bg);
}
@media (min-width: 768px) {
  .homepage .features-section {
    padding: 5rem 2rem;
  }
}
.homepage .features-section .feature-item {
  background: white;
  border-radius: var(--hp-radius);
  padding: 1.25rem;
  border-left: 4px solid var(--hp-primary);
  transition: box-shadow 0.2s ease;
  text-align: left;
}
.homepage .features-section .feature-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.homepage .features-section .feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hp-foreground);
  margin-bottom: 0.5rem;
}
.homepage .features-section .feature-item p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--hp-muted-foreground);
}

/* How it works — gateway: bg-background, step-number */
.homepage .how-it-works-section {
  padding: 4rem 2rem;
  background-color: #fff;
}
@media (min-width: 768px) {
  .homepage .how-it-works-section {
    padding: 5rem 2rem;
  }
}
.homepage .how-it-works-section .step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--hp-primary);
  color: var(--hp-primary-foreground);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.homepage .how-it-works-section .step-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hp-foreground);
  margin-bottom: 0.75rem;
}
.homepage .how-it-works-section .step-content p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--hp-muted-foreground);
}

/* Benefits section (Why 12WY — 3 icon cards) — gateway: section-alt, feature-card */
.homepage .benefits-section {
  padding: 4rem 2rem;
  background-color: var(--hp-section-bg);
}
@media (min-width: 768px) {
  .homepage .benefits-section {
    padding: 5rem 2rem;
  }
}
.homepage .benefits-section .benefit-card {
  background: white;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-card-border);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.homepage .benefits-section .benefit-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.homepage .benefits-section .benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hp-foreground);
  margin-bottom: 0.75rem;
}
.homepage .benefits-section .benefit-card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--hp-muted-foreground);
  width: 100%;
  text-align: center;
}
.homepage .benefits-section .benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(210, 60%, 55% / 0.1);
  color: var(--hp-primary);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.homepage .benefits-section .benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* CTA section — gateway: cta-section (hero gradient), py-16 md:py-20 */
.homepage .cta-section {
  background: linear-gradient(180deg, var(--hp-hero-start) 0%, var(--hp-hero-end) 100%);
  color: var(--hp-primary-foreground);
  padding: 4rem 2rem;
}
@media (min-width: 768px) {
  .homepage .cta-section {
    padding: 5rem 2rem;
  }
}
.homepage .cta-section .cta-content {
  text-align: center;
}
.homepage .cta-section .cta-social-proof {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.homepage .cta-section .cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hp-primary-foreground);
  margin-bottom: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .homepage .cta-section .cta-title {
    font-size: 1.875rem;
  }
}
.homepage .cta-section .cta-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}
.homepage .cta-section .btn-large.MuiButton-containedPrimary {
  background: var(--hp-primary-foreground);
  color: var(--hp-primary);
}
.homepage .cta-section .btn-large.MuiButton-containedPrimary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer — gateway: py-8 border-t */
.homepage .homepage-footer {
  padding: 2rem;
  border-top: 1px solid var(--hp-border);
  text-align: center;
}
.homepage .homepage-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--hp-muted-foreground);
}
.homepage .homepage-footer .footer-links a:hover {
  color: var(--hp-foreground);
}
.homepage .homepage-footer .footer-separator {
  color: var(--hp-border);
}
