* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  border: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #d9d9d9;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  flex: 1;
}

.logo img {
  width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}



/* Desktop navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: #2c5aa0;
}

/* Hide mobile nav on desktop */
.mobile-nav {
  display: none;
}

/* Main Layout */
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  padding: 2rem 0;
  min-height: 60vh;
  margin: 0.5rem 0;
}

.tile {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Footer */
footer {
  background: #2c5aa0;
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

footer a {
  color: #b3d1ff;
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.desktop-text {
  display: inline;
}

.mobile-text {
  display: none;
}

.btn-primary {
  background: #2c5aa0;
  color: white;
}

.btn-secondary {
  background: white;
  color: #2c5aa0;
  border: 1px solid #2c5aa0;
}

.btn:hover {
  opacity: 0.9;
}

/* Typography */
h1, h2, h3 {
  margin-bottom: 1rem;
  color: #2c5aa0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #2c5aa0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Forecast History */
.forecast-item {
  transition: box-shadow 0.2s ease;
}

.forecast-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  main {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  /* Hide desktop nav, show mobile nav */
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .mobile-nav ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateX(-10px);
  }
  
  .mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
  }
  
  .mobile-nav a:hover, .mobile-nav a.active {
    color: #2c5aa0;
  }
  
  .hero-banner-desktop {
    display: none !important;
  }
  
  .hero-banner-mobile {
    display: block !important;
  }
  
  .footer-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 1rem !important;
  }
  
  .footer-links {
    align-self: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .tile {
    padding: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .btn {
    display: block;
    text-align: center;
    margin: 0.5rem 0;
    width: 100%;
  }
  
  .button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .button-container .btn {
    margin: 0;
  }
  
  .mobile-text {
    display: inline;
  }
  
  .desktop-text {
    display: none;
  }
  
  /* Pricing cards mobile fix */
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Benefits grid mobile fix */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 2rem"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Fix clipped bullets on mobile */
  ul {
    padding-left: 1.5rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  main {
    gap: 0.75rem;
  }
  
  .tile {
    padding: 0.75rem;
  }
  

  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}