:root {
  --primary-color: #2563eb; /* royal blue */
  --primary-hover: #1d4ed8;
  --secondary-color: #334155; /* slate */
  --background-color: #0f172a; /* deep navy - cleaner */
  --surface-color: #1e293b; /* lighter navy panel */
  --text-color: #f8fafc; /* brighter white */
  --text-color-muted: #94a3b8; /* slate-400 */
  --border-color: #334155; /* more visible border */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  position: relative;
  min-height: 64px;
  gap: 24px;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  margin-right: 20px;
  order: 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
  order: 1;
}

.nav-item a {
  color: var(--text-color-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 12px 0;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--text-color);
}

.nav-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
}

/* Hide auth menu item on desktop; use right-side actions instead */
@media (min-width: 721px) {
  .nav-item.auth-item { display: none; }
}

.nav-cta a, .nav-cta button {
  background-color: var(--primary-color);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-cta a:hover, .nav-cta button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* --- Universal Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  min-height: 48px;
}

/* Legacy button classes - standardized */
.cta-button, .nav-signin {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.cta-button:hover, .nav-signin:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

/* Ensure spacing between Account and Logout inside the desktop auth wrapper */
.nav-actions #desktop-auth {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  font-size: 18px;
  color: var(--text-color);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

/* Mobile-first adjustments */
@media (max-width: 720px) {
  .nav-container {
    padding: 16px 24px;
    min-height: 64px;
  }
  
  .nav-brand {
    font-size: 20px;
    margin-right: 0;
  }
  
  .nav-toggle { 
    display: block; 
    position: relative;
    z-index: 60;
    font-size: 20px;
    color: white;
    order: 3;
    margin-left: auto;
  }
  
  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background-color: #0b1222 !important; /* solid, not see-through */
    display: none;
    flex-direction: column;
    justify-content: flex-start; /* start at top so menu can scroll */
    align-items: center;
    gap: 32px;
    padding: 80px 24px 80px; /* extra bottom padding for last item */
    z-index: 1000;
    opacity: 1;
    overflow-y: auto; /* enable scrolling within menu */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .nav-menu.open { display: flex; background-color: #0b1222 !important; }
  
  .nav-item { 
    padding: 0;
    width: 100%;
    text-align: center;
  }

  /* Close button inside mobile menu */
  .nav-menu .menu-close{
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
  }
  
  .nav-item a { 
    display: block; 
    font-size: 18px;
    font-weight: 600;
    padding: 16px;
    color: var(--text-color);
  }
  
  .hero {
    padding: 80px 20px 60px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .mobile-hide { display: none !important; }
}

/* Prevent background scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* --- Main Content --- */
.hero {
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-color-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

.section {
  padding: 80px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-color-muted);
  max-width: 600px;
  margin: 0 auto 64px auto;
  line-height: 1.6;
}

/* --- Teaser/Card Styles --- */
.teaser-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.teaser-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0;
}

.prediction {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 1.2rem;
}

.team {
  font-weight: bold;
}

.vs {
  color: var(--text-color-muted);
  font-size: 1.5rem;
}

/* -- Pricing link visibility -- */
/* Hide Pricing for paid users; show for non-paid via .show-pricing flag */
.pricing-link{display:none;}
.show-pricing .pricing-link{display:list-item;}

/* Hide Picks tab unless authenticated */
.picks-link{display:none;}
.is-authed .picks-link{display:list-item;}

/* -- Home link visibility for paid users -- */
.hide-home-for-paid .home-link{display:none;}

/* App mode on picks: hide marketing tabs for paid users */
.hide-home-for-paid .features-link,
.hide-home-for-paid .accuracy-link,
.hide-home-for-paid .faq-link { display: none; }

/* --- Picks table --- */
#picks-table th{
  background-color: var(--surface-color);
  position: sticky;
  top:0;
}
#picks-table th,#picks-table td{
  border:1px solid var(--border-color);
  padding:8px;
}
#picks-table tbody tr:nth-child(odd){
  background-color: rgba(255,255,255,0.03);
}

/* --- Pricing Page --- */
.pricing-card.value { position: relative; overflow: hidden; }
.pricing-card.value::before { /* top-right badge for best value */
  z-index: 2;
  content: 'Best Value';
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: white;
  padding: 6px 10px;
  border-bottom-left-radius: 8px;
  transform: none;
  font-size: 0.8rem;
  font-weight: bold;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Hide home pricing section for paid users; shown only when .show-pricing flag is present */
.home-pricing { display: none; }
.show-pricing .home-pricing { display: block; }

.pricing-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.pricing-card.popular::before { /* top-right badge for most popular */
  z-index: 2;
  content: 'Most Popular';
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 6px 10px;
  border-bottom-left-radius: 8px;
  transform: none;
  font-size: 0.8rem;
  font-weight: bold;
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-top: 0;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.pricing-card .price-freq {
  color: var(--text-color-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
}

.pricing-card li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 24px;
}
.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-card li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* --- Home Hero --- */
.home-hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.8) 0%, rgba(30,64,175,0.6) 100%);
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero h1 { font-size: 2.25rem; margin: 0 0 12px 0; }
.home-hero p { font-size: 1.1rem; max-width: 800px; margin: 0 auto 20px auto; color: #e5e7eb; }
.home-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Two-column desktop hero layout */
.hero-grid { 
  width: 100%;
  display: grid; 
  grid-template-columns: 1fr; 
  align-items: center; 
  gap: 24px; 
}
.hero-content { text-align: left; }
.home-hero .eyebrow { 
  margin: 0 0 12px 0; 
  color: var(--text-color-muted); 
  text-transform: uppercase; 
  letter-spacing: 0.12em; 
  font-weight: 600; 
  font-size: 0.9rem; 
}
.home-hero h1 { 
  font-size: clamp(3rem, 6vw, 5rem); 
  font-weight: 800; 
  margin: 0 0 16px 0; 
  line-height: 1.05; 
  letter-spacing: -0.03em; 
}
.home-hero .hero-subtitle { 
  font-size: 1.125rem; 
  color: var(--text-color-muted); 
  max-width: 600px; 
  margin: 0 0 28px 0; 
}

/* removed hero image */

@media (min-width: 768px) {
  .home-hero { padding: 120px 20px; min-height: 520px; }
  .home-hero h1 { font-size: 3rem; }
  .home-hero p { font-size: 1.25rem; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-content { text-align: center; }
}

/* CTA variants */
.cta-button.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cta-button.secondary:hover { background: rgba(255,255,255,0.1); }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card h4 { margin: 0 0 8px 0; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-color-muted); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(37,99,235,0.25), 0 20px 25px -5px rgba(0,0,0,0.2); border-color:#1e3a8a; }

/* Feature icon style */
.feature-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.feature-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; }
.feature-icon.primary { background: rgba(37,99,235,0.15); color:#60a5fa; }
.feature-icon.green { background: rgba(34,197,94,0.15); color:#86efac; }
.feature-icon.purple { background: rgba(168,85,247,0.15); color:#c4b5fd; }
.feature-icon.red { background: rgba(239,68,68,0.15); color:#fca5a5; }
.feature-icon svg { width:22px; height:22px; }

/* Generic circular icon holder (e.g., teaser/status) */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37,99,235,0.15);
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 6px 0;
}
.icon-circle svg { width: 26px; height: 26px; }

/* --- Footer --- */
.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #dbeafe;
  padding: 40px 20px;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #bfdbfe; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { max-width: 900px; margin: 0 auto 16px auto; text-align: center; color: #c7d2fe; }

/* --- Animations (fade-in) --- */
.fade-in { opacity: 0; animation: fadeIn 0.5s ease-in-out forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Focus styles for accessibility --- */
.cta-button:focus-visible,
.nav-item a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* --- Utility helpers --- */
.hidden { display: none !important; }
.only-mobile { display: none; }
@media (max-width: 720px){ .only-mobile { display: block; } }

/* --- Google Sign-In Button Styling --- */

/* Mobile menu - style the Sign in with Google link as a proper button */
#auth-inline a {
  display: block;
  padding: 12px 16px;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-color);
  margin: 8px 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

#auth-inline a:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Desktop nav - style as a clean button that matches the nav */
.nav-actions #auth-inline a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-color);
  margin: 0;
  font-size: 14px;
}

.nav-actions #auth-inline a:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* --- Desktop refinements --- */
@media (min-width: 1024px) {
  .container { padding: 30px; }
  .section { padding: 80px 20px; }
  .section-title { font-size: 2.75rem; }
}

/* Force cache refresh - 2025-08-07 23:54:14 */