:root {
  --primary: #0057d1;
  --dark-bg: #0f0f0f;
  --card-bg: #1f1f1f;
  --text-light: #eaeaea;
  --text-muted: #a0a0a0;
  --footer-bg: #141414;
  --hero-bg: linear-gradient(to bottom right, #0f0f0f, #1e1e1e);
  --table-border: #333;
  --table-header-bg: #1f1f1f;
  --table-cell-bg: #121212;
}

body.light-mode {
  --primary: #0057d1;
  --dark-bg: #ffffff;
  --card-bg: #f5f5f5;
  --text-light: #1a1a1a;
  --text-muted: #555;
  --footer-bg: #eaeaea;
  --hero-bg: linear-gradient(to bottom right, #ffffff, #f0f0f0);
  --table-border: #ccc;
  --table-header-bg: #f5f5f5;
  --table-cell-bg: #ffffff;
}

.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.nav-separator {
  width: 1px;
  height: 24px;
  background-color: var(--text-muted);
  opacity: 0.5;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  background-color: var(--card-bg);
  border: 1.5px solid var(--text-light);
  border-radius: 100px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px;
}

.slider .icon {
  background: var(--text-light);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  line-height: 1; /* ✅ prevent vertical misalignment */
  padding-top: 1px; /* ✅ fine-tune to center emoji like 🌙 or ☀️ */
  padding-left: 1px;
}

input:checked + .slider {
  justify-content: flex-end;
  border-color: var(--primary);
}

input:checked + .slider .icon {
  background: var(--primary);
  color: #fff;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

header h1 {
  color: var(--primary);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    height: 100vh;
  }

  nav.show {
    display: flex;
  }

  .mobile-toggle {
    display: inline-block;
  }

  nav a {
    padding: 0.5rem;
  }

  .theme-toggle-container {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-left: 0 !important;
  }

  .nav-separator {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--text-muted);
    opacity: 0.5;
    margin: 1rem auto;
  }

  nav.show .theme-toggle-container {
    margin-top: 1rem;
  }
}

.hero {
  text-align: center;
  padding: 2rem 2rem;
  background: var(--hero-bg);
}

.hero h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.plans-section {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.plan-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.6;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.plan-price {
  font-size: 2rem;
  margin: 1rem 0;
}

.plan-billing {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.plan-features {
  text-align: left;
  margin: 1rem 0;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 0.5rem;
}

.plan-card .btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
}

.plan-card .btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  color: var(--text-light);
  margin-top: 3rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--table-border);
  padding: 1rem;
  text-align: center;
}

.comparison-table th {
  background: var(--table-header-bg);
  color: var(--primary);
}

.comparison-table td {
  background: var(--table-cell-bg);
  color: var(--text-muted);
}

.comparison-table .checkmark {
  color: var(--primary);
}

.plans-note {
  max-width: 800px;
  margin: auto;
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.875rem;
  background: var(--footer-bg);
  color: var(--text-muted);
  margin-top: 4rem;
}
