/* SkoolFeed Landing Page - Brand Guidelines v1 */

/* ========== CSS Variables ========== */
:root {
  /* Backgrounds */
  --bg-base: #F1F5F9;
  --bg-surface: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --bg-inset: #E2E8F0;

  /* Text */
  --text-primary: #1A1F26;
  --text-secondary: #475569;
  --text-muted: #64748B;

  /* Accent */
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;

  /* Semantic */
  --success: #16A34A;
  --success-light: #DCFCE7;
  --error: #DC2626;
  --error-light: #FEE2E2;

  /* Borders */
  --border: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #2563EB;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
.text-spotlight {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-title-1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.text-title-2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.text-title-3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.text-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-bold {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.text-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.text-caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

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

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

/* ========== Layout ========== */
.landing-page {
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

/* ========== Header / Nav ========== */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: var(--space-4) 0;
}

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

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-base);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ========== Hero Section ========== */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

/* Demo Video/GIF Container */
.demo-container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.demo-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-inset);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.demo-placeholder-content {
  text-align: center;
}

.demo-placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* Hero Illustration */
.hero-illustration {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-10);
  display: block;
}

/* ========== Features Section ========== */
.features {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.features-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.features-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== How It Works ========== */
.how-it-works {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.step {
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto var(--space-4);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========== Testimonials ========== */
.testimonials {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial-quote {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.testimonial-info {
  text-align: left;
}

.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Placeholder testimonial styling */
.testimonial-card.placeholder {
  border-style: dashed;
  opacity: 0.7;
}

/* ========== Pricing Preview ========== */
.pricing-preview {
  text-align: center;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: var(--space-12) auto 0;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}

.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-6);
}

.pricing-features li {
  font-size: 14px;
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563EB'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== Final CTA ========== */
.final-cta {
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-illustration {
  width: 600px;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-8);
}

.final-cta-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.final-cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--bg-base);
  color: var(--accent);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .features-title,
  .final-cta-title {
    font-size: 24px;
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ========== Utilities ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
