/* LittleChapters Website Styles */

/* Brand Colors */
:root {
  --primary-text: #1F2937;
  --background: #FEF7ED;
  --tint: #F97316;
  --icon-default: #6B7280;
  --accent: #FFF7ED;
  --border: #FED7AA;
  --card: #FFFFFF;
  --destructive: #EF4444;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--primary-text);
  background-color: var(--background);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.header {
  background-color: var(--card);
  border-bottom: 2px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tint);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--tint);
}

/* Buttons */
.btn-primary {
  background-color: var(--tint);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.btn-large span {
  font-size: 0.75rem;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  padding: 4rem 0 6rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--tint);
}

.tagline {
  font-size: 1.5rem;
  color: var(--icon-default);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Why Section */
.why-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.highlight {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tint);
  margin: 2rem auto;
  max-width: 700px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  transition: transform 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  color: var(--icon-default);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.features-carousel {
  position: relative;
  padding: 0 4rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.feature-card-image {
  flex-shrink: 0;
}

.feature-card-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card-content p {
  font-size: 0.95rem;
  color: var(--icon-default);
  line-height: 1.5;
  margin-bottom: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--tint);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--tint);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
  left: 10px;
}

.carousel-nav-next {
  right: 10px;
}

/* Coming Soon Section */
.coming-soon-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.coming-soon-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 4rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--tint);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--tint);
  border-width: 3px;
  transform: scale(1.05);
}

.featured-badge, .coming-soon-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tint);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.coming-soon-badge {
  background: var(--icon-default);
}

.pricing-subtitle {
  color: var(--icon-default);
  margin-bottom: 1.5rem;
}

.price {
  margin: 2rem 0;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--tint);
}

.price-period {
  font-size: 1.2rem;
  color: var(--icon-default);
}

.trial-badge {
  background: var(--accent);
  color: var(--tint);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-top: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--tint) 0%, #FED7AA 100%);
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-section .cta-buttons {
  justify-content: center;
}

.cta-section .btn-primary {
  background-color: var(--card);
  color: var(--tint);
}

/* Legal Pages */
.legal-page {
  padding: 4rem 0;
}

.legal-page .container {
  max-width: 900px;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--icon-default);
  font-style: italic;
  margin-bottom: 2rem;
}

.legal-content {
  background: var(--card);
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  text-align: left;
  color: var(--tint);
}

.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: var(--primary-text);
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-text);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
  color: var(--tint);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--tint);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--icon-default);
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .nav-links {
    gap: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .features-carousel {
    padding: 0 2rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .nav-links {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .features-carousel {
    padding: 0 1rem;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-nav-prev {
    left: -0.5rem;
  }

  .carousel-nav-next {
    right: -0.5rem;
  }

  .feature-card {
    flex: 0 0 240px;
  }
}
