:root {
  --bg-color-light: #fdf2e3;
  --bg-color-dark: #1c2135;
  --border-color-light: #1c2135;
  --border-color-dark: #f0f0e8;
  --sun-color: #fabc1c;
  --moon-color: #fffdf2;
  --day-bg-color: #0dbdf6;
  --night-bg-color: #272a30;
  --cloud-color: #fffdf2;
  --star-color: #fffdf2;
}


h1, h2, h3, .main-heading {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

p, .lead {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  line-height: 1.5;
}

.hide {
  display: none;
}

.email-form input[type="email"] {
  display: block;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  max-width: 420px;
  width: 90%;
}

.grecaptcha-badge {visibility: hidden;}

/* Base Theme Modes */
body.am-mode {
  background-color: var(--bg-color-light);
  color: black;
}

body.pm-mode {
  background-color: var(--bg-color-dark);
  color: white;
}

body {
  transition: background-color 0.8s ease, color 0.8s ease;
  font-family: sans-serif;
}

/* Headings and Button */
.main-heading {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-primary {
  background-color: #1c2135;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  margin-top: 0rem;
  transition: background-color 0.3s ease;
}

body.am-mode .btn-primary {
  background-color: #fabc1c; /* gold from sun */
  color: white;
  box-shadow: 0 0 10px #fabc1c;
}

body.pm-mode .btn-primary {
  background-color: #C27AB2; /* neon orange */
  color: white;
  box-shadow: 0 0 10px #C27AB2;
}

/* AM hover (light mode) */
body.am-mode .btn-primary:hover {
  background-color: #fabc1c; /* gold from sun */
  box-shadow: 0 0 10px #fabc1c;
}

/* PM hover (dark mode) */
body.pm-mode .btn-primary:hover {
  background-color: #C27AB2; /* neon orange */
  color: white;
  box-shadow: 0 0 10px #C27AB2;
}

/* Theme Switcher Styles */
.theme-switcher-grid {
  display: grid;
  grid-template-columns: repeat(54, 1px);
  grid-template-rows: repeat(24, 1px);
  gap: 0;
  position: relative;
  background-color: var(--day-bg-color);
  border-radius: 49px;
  border: 1px solid var(--border-color-light);
  cursor: pointer;
  transition: background-color 0.8s ease, border-color 0.8s ease;
  appearance: none;
  padding: 0;
}

.theme-switcher-grid.night-theme {
  background-color: var(--night-bg-color);
  border-color: var(--border-color-dark);
}

.sun {
  background-color: var(--sun-color);
  grid-column: 3 / 23;
  grid-row: 3 / 23;
  border-radius: 50%;
  transition: grid-column 0.8s ease, background-color 0.8s ease;
  height: 20px;
}

.theme-switcher-grid.night-theme .sun {
  grid-column: 33 / 53;
  background-color: var(--moon-color);
}

.moon-overlay {
  position: absolute;
  border-radius: 50%;
  transition: left 0.8s ease, background-color 0.8s ease;
  z-index: 1;
  background-color: var(--day-bg-color);
}

.theme-switcher-grid.night-theme .moon-overlay {
  display: block;
  left: calc(28 / 54 * 100%);
  top: calc(4 / 29 * 100%);
  width: 18px;
  height: 18px;
  background-color: var(--night-bg-color);
}

.cloud-ball {
  background-color: var(--cloud-color);
  border-radius: 50%;
  width: 9px;
  height: 9px;
  position: absolute;
  transition: all 0.8s ease;
  z-index: 2;
}

#ball1 {
  top: calc((8 / 24) * 100%);
  left: calc((12 / 54) * 100%);
}

#ball2 {
  top: calc((8 / 24) * 100%);
  left: calc((17 / 54) * 100%);
}

#ball3 {
  top: calc((8 / 24) * 100%);
  left: calc((22 / 54) * 100%);
}

#ball4 {
  top: calc((6 / 24) * 100%);
  left: calc((17 / 54) * 100%);
}

.theme-switcher-grid.night-theme #ball1 {
  top: calc((16 / 24) * 100%);
  left: calc((16 / 54) * 100%);
  width: 2px;
  height: 2px;
}

.theme-switcher-grid.night-theme #ball2 {
  top: calc((3 / 24) * 100%);
  left: calc((22 / 54) * 100%);
  width: 2px;
  height: 2px;
}

.theme-switcher-grid.night-theme #ball3 {
  top: calc((10 / 24) * 100%);
  left: calc((29 / 54) * 100%);
  width: 2px;
  height: 2px;
}

.theme-switcher-grid.night-theme #ball4 {
  top: calc((5 / 24) * 100%);
  left: calc((34 / 54) * 100%);
  width: 2px;
  height: 2px;
}

.star {
  background-color: var(--star-color);
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#star1 {
  top: calc((7 / 24) * 100%);
  left: calc((10 / 54) * 100%);
  border-radius: 50%;
}

#star2 {
  top: calc((9 / 24) * 100%);
  left: calc((16 / 54) * 100%);
  border-radius: 50%;
}

#star3 {
  top: calc((13 / 24) * 100%);
  left: calc((23 / 54) * 100%);
  border-radius: 50%;
}

#star4 {
  top: calc((18 / 24) * 100%);
  left: calc((29 / 54) * 100%);
  border-radius: 50%;
}

.theme-switcher-grid.night-theme #star1,
.theme-switcher-grid.night-theme #star2,
.theme-switcher-grid.night-theme #star3,
.theme-switcher-grid.night-theme #star4 {
  opacity: 1;
}

/* Responsive Logo Scaling */
@media (max-width: 480px) {
  #logo-wrapper {
    max-width: 220px;
  }

  .am-logo,
  .pm-logo {
    max-width: 220px;
  }
  .lead {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .main-heading {
    font-size: 1.5rem;
  }
}

.feature-list {
  list-style-position: inside;
  list-style-type: disc;
  padding: 0;
  margin: 1.5rem auto 2rem auto;
  max-width: 500px;
  text-align: left;
  display: block;
}

/* Center list container on mobile */
@media (max-width: 576px) {
  .feature-list {
    text-align: center;
  }
}

/* Custom bullet color using pseudo-element */
.feature-list li {
  position: relative;
  margin-bottom: .5rem;
  font-size: 1.2rem;
  padding-left: 1.2rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.feature-list li::marker {
  font-size: 1.25rem;
  color: #fabc1c; /* default: AM gold */
}

.subtitle{
  font-size: .75rem;
}

/* PM Mode override */
body.pm-mode .feature-list li::marker {
  color: #C27AB2; /* PM violet from logo */
}

/* Animate each bullet */
.feature-list li:nth-child(1) { animation-delay: 0.1s; }
.feature-list li:nth-child(2) { animation-delay: 0.3s; }
.feature-list li:nth-child(3) { animation-delay: 0.5s; }
.feature-list li:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}