/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: var(--porcelain);
  color: var(--woodsmoke);
  line-height: 1.5;
}

.landing-container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header Styles */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;  /* top/bottom, left/right */
  background-color: white;
  box-shadow: 0 1px 3px rgba(var(--woodsmoke), 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-logo {
  height: 80px;
  width: auto;
}

.logo-container h1::before {
  content: "";
  display: block;
  height: 40px;
  width: 1px;
  background-color: var(--iron, #dfe3e8);
  margin: 0 1rem;
  position: absolute;
  left: -1.5rem;
}

.logo-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--eastern-blue);
  position: relative;
}

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

.main-nav a {
  color: var(--elephant);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--eastern-blue);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  margin-left: 1.5rem;
}

.login-btn {
  color: var(--eastern-blue);
  border: 1px solid var(--eastern-blue);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.register-btn {
  background-color: var(--eastern-blue);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--elephant);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--woodsmoke);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--elephant);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.primary-button {
  background-color: var(--eastern-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: #0e8690; /* Darker version of eastern-blue */
}

.secondary-button {
  background-color: var(--iron);
  color: var(--woodsmoke);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.secondary-button:hover {
  background-color: #ccd3db; /* Darker version of iron */
}

.hero-image {
  flex: 1;
  max-width: 500px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Features Section */
.features-section {
  background-color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--porcelain);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(var(--woodsmoke), 0.1);
}

.feature-icon {
  background-color: var(--iron);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--eastern-blue);
}

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

.feature-card p {
  color: var(--elephant);
}

/* About Section */
.about-section {
  background-color: var(--porcelain);
  padding: 5rem 2rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--elephant);
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--porcelain);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 350px;
  box-shadow: 0 4px 6px -1px rgba(var(--woodsmoke), 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--woodsmoke);
}

.testimonial-author {
  font-weight: 600;
  color: var(--eastern-blue);
}

/* CTA Section */
.cta-section {
  background-color: var(--eastern-blue);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: white;
  color: var(--eastern-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--porcelain);
}

/* Pricing Section */
.pricing-section {
  background-color: var(--porcelain);
  padding: 5rem 2rem;
  text-align: center;
}

.pricing-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pricing-subtitle {
  font-size: 1.25rem;
  color: var(--elephant);
  margin-bottom: 3rem;
}

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.pricing-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(var(--woodsmoke), 0.1);
  width: 360px; /* Slightly narrower to fit 4 cards */
  flex-grow: 0; /* Prevent uneven growth */
  flex-shrink: 0; /* Prevent shrinking */
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 520px; /* Fixed minimum height for all cards */
}

.pricing-card.featured {
  border: 2px solid var(--eastern-blue);
  position: relative;
  overflow: visible;
}

.pricing-badge {
  background-color: var(--eastern-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  display: inline-block;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-description {
  color: var(--elephant);
  font-size: 0.95rem;
  margin: 1rem 0;
  font-style: italic;
}

.pricing-features {
  text-align: left;
  padding: 0 1rem;
  flex-grow: 1; /* This makes the features section expand */
}

.pricing-button {
  background-color: var(--eastern-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s;
  margin-top: auto; /* This pushes the button to the bottom */
  cursor: pointer;
}

@media (max-width: 1200px) {
  .pricing-card {
    width: calc(50% - 1.5rem);
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .pricing-card {
    width: 100%;
    max-width: none;
  }
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--woodsmoke);
  transition: all 0.3s ease;
}

.price .currency {
  font-size: 1.25rem;
}

.price .period {
  font-size: 1rem;
  color: var(--elephant);
}

.pricing-features ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  text-align: left;
}

.pricing-features ul li {
  margin-bottom: 0.75rem;
  color: var(--elephant);
  text-align: left;
}

/* Billing Toggle */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  gap: 1rem;
}

.billing-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.billing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--eastern-blue);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--eastern-blue);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.billing-option {
  font-weight: 500;
  color: var(--elephant);
}

.discount-badge {
  background-color: var(--eastern-blue);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Footer */
.landing-footer {
  background-color: var(--woodsmoke);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-column p {
  color: var(--iron);
}

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

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--iron);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--iron);
  text-align: center;
  color: var(--iron);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  
  .hero-content {
    margin-bottom: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .footer-column {
    flex-basis: 100%;
  }
}

/* Mobile Navigation (Hidden by default, will be shown with JS) */
.mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: white;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(var(--woodsmoke), 0.1);
}

.mobile-nav a {
  padding: 1rem;
  color: var(--elephant);
  text-decoration: none;
  border-bottom: 1px solid var(--iron);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Add these new styles for mobile auth buttons */
.mobile-nav .login-btn,
.mobile-nav .register-btn {
  padding: 0.75rem 1rem;
  margin: 0.5rem;
  border-bottom: none;
  text-align: center;
}

.mobile-nav .login-btn {
  flex: 1;
  border: 1px solid var(--eastern-blue);
}

.mobile-nav .register-btn {
  flex: 1;
  background-color: var(--eastern-blue);
  color: white;
}

/* Create a container for the auth buttons */
.mobile-auth-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  width: 100%;
}

.mobile-nav.active {
  display: flex;
}