/* ----- RESET & BASE ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f7f4;
  color: #1c1c1e;
  overflow-x: hidden;
}

/* ----- LOADING SCREEN ----- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e0d8;
  border-top: 4px solid #1c1c1e;
  border-radius: 50%;
  animation: spin 0.9s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- NAVIGATION (Reuse from main) ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  z-index: 100;
  transition: background 0.2s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1c1e;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo span {
  color: #e4572e;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-weight: 500;
  color: #2c2c2e;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e4572e;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-actions i {
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-actions i:hover {
  transform: scale(1.05);
}

.login-btn,
.signup-btn {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.login-btn {
  background: transparent;
  color: #1c1c1e;
  border: 1.5px solid #e2e0d8;
}

.login-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #1c1c1e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.signup-btn {
  background: #1c1c1e;
  color: white;
}

.signup-btn:hover {
  background: #e4572e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(228, 87, 46, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ----- MOBILE NAV ----- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  visibility: hidden;
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav a {
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: #1c1c1e;
  transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #e4572e;
}

.mobile-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  width: 80%;
  max-width: 300px;
}

.mobile-login-btn,
.mobile-signup-btn {
  display: block;
  padding: 0.8rem 2rem;
  text-align: center;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.mobile-login-btn {
  background: transparent;
  color: #1c1c1e;
  border: 2px solid #e2e0d8;
}

.mobile-login-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #1c1c1e;
}

.mobile-signup-btn {
  background: #1c1c1e;
  color: white;
  border: 2px solid #1c1c1e;
}

.mobile-signup-btn:hover {
  background: #e4572e;
  border-color: #e4572e;
}

/* ----- PRICING HERO ----- */
.pricing-hero {
  margin-top: 5rem;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: #ffb347;
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.orb2 {
  width: 350px;
  height: 350px;
  background: #ff6b6b;
  bottom: -20%;
  right: -10%;
  animation-delay: -7s;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: #4ecdc4;
  top: 40%;
  right: 5%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -50px) scale(1.3); }
}

.pricing-hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: rgba(228, 87, 46, 0.1);
  color: #e4572e;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pricing-hero h1 span {
  background: linear-gradient(135deg, #e4572e, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  font-size: 1.2rem;
  color: #4a4a4e;
  max-width: 600px;
  margin: 0 auto;
}

/* ----- PRICING SECTION ----- */
.pricing-section {
  padding: 2rem 2rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.toggle-label {
  font-weight: 500;
  color: #6e6e73;
  font-size: 0.95rem;
}

.save-badge {
  background: #34c759;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-left: 0.3rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e2e0d8;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: #e4572e;
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border-radius: 32px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  color: white;
  border: none;
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured .plan-description {
  color: #b0b0b5;
}

.pricing-card.featured .plan-features li {
  color: #d0d0d5;
}

.pricing-card.featured .plan-features i {
  color: #ff6b6b;
}

.pricing-card.featured .plan-price .currency,
.pricing-card.featured .plan-price .price,
.pricing-card.featured .plan-price .period {
  color: white;
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #e2e0d8;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1c1c1e;
}

.pricing-card.featured .card-badge {
  background: #e4572e;
  color: white;
}

.plan-icon {
  width: 60px;
  height: 60px;
  background: rgba(228, 87, 46, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #e4572e;
  margin-bottom: 1.2rem;
}

.pricing-card.featured .plan-icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.plan-description {
  color: #6e6e73;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 0.1rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.period {
  font-size: 1rem;
  color: #6e6e73;
  font-weight: 400;
  margin-left: 0.3rem;
}

.pricing-card.featured .period {
  color: #b0b0b5;
}

.plan-features {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
  flex: 1;
}

.plan-features li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #4a4a4e;
}

.plan-features i {
  color: #34c759;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pricing-card.featured .plan-features i {
  color: #ff6b6b;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 0.9rem;
  border-radius: 16px;
  border: 2px solid #e2e0d8;
  background: transparent;
  color: #1c1c1e;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.plan-btn:hover {
  background: #1c1c1e;
  color: white;
  border-color: #1c1c1e;
}

.featured-btn {
  background: #e4572e;
  color: white;
  border: 2px solid #e4572e;
}

.featured-btn:hover {
  background: #c43d1a;
  border-color: #c43d1a;
  color: white;
}

.pricing-card.featured .plan-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.pricing-card.featured .plan-btn:hover {
  background: white;
  color: #1c1c1e;
  border-color: white;
}

.popular-tag {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ff6b6b;
  font-weight: 600;
}

/* ----- COMPARISON TABLE ----- */
.comparison-section {
  padding: 4rem 2rem;
  background: #f1f0ed;
}

.comparison-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2rem;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #f1f0ed;
}

.comparison-table th {
  background: #1c1c1e;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  font-size: 0.95rem;
  color: #4a4a4e;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight {
  font-weight: 600;
  color: #e4572e;
}

.green {
  color: #34c759;
  font-size: 1.2rem;
}

.red {
  color: #e4572e;
  font-size: 1.2rem;
}

/* ----- FAQ SECTION ----- */
.faq-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: #6e6e73;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  color: #6e6e73;
  line-height: 1.6;
}

/* ----- CTA SECTION ----- */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  margin: 0 1rem 2rem;
  border-radius: 40px;
  text-align: center;
}

.cta-container h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.cta-container p {
  color: #b0b0b5;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 0.9rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-btn.primary {
  background: #e4572e;
  color: white;
}

.cta-btn.primary:hover {
  background: #c43d1a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(228, 87, 46, 0.3);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* ----- FOOTER ----- */
.footer {
  padding: 3rem 2.5rem 1.5rem;
  background: #1c1c1e;
  color: #e8e8ed;
  border-radius: 40px 40px 0 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: #a8a8ae;
  text-decoration: none;
  margin: 0.5rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #6e6e73;
  border-top: 1px solid #2c2c2e;
  padding-top: 1.5rem;
}

/* ----- SCROLL ANIMATIONS ----- */
.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 820px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .cta-section {
    margin: 0 0.5rem 1rem;
    padding: 3rem 1.5rem;
  }

  .cta-container h2 {
    font-size: 1.8rem;
  }

  .pricing-hero {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 28px;
  }

  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 1.8rem 1.2rem;
  }

  .price {
    font-size: 2.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
  }
}