/*
 * Define CSS custom properties for both dark and light themes. The default :root
 * values correspond to our neon/dark palette. When the `light` class is applied to
 * the html element, the variables switch to a fresh, bright palette inspired
 * by modern savings sites. Components below reference these variables instead
 * of hard‑coded colors wherever practical.
 */
:root {
  --bg: #0b0c0d;
  --text: #e8e9ea;
  --card: #111214;
  --muted: #b6bcc3;
  --accent: #1e90ff;
  --accent-2: #0b77d1;
  --link: #1e90ff;
  --border: rgba(255,255,255,.08);
}
:root.light {
  --bg: #fafbfc;
  --text: #111821;
  --card: #ffffff;
  --muted: #495469;
  --accent: #02a7c6;
  --accent-2: #ff8c22;
  --link: #0a65ff;
  --border: rgba(0,0,0,.1);
}

html, body { margin:0; padding:0; font-family: Arial, Helvetica, sans-serif; line-height:1.5; color: var(--text); background: var(--bg); }
h1,h2,h3 { font-family: 'Arial Black', Arial, sans-serif; }
/* Links: underline by default for accessibility */
a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: underline; }
/* Remove underline on button-like links */
.btn { text-decoration: none; }
.header{position:sticky;top:0;background:rgba(10,10,10,.6);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid rgba(255,255,255,.08)}
.nav{max-width:1080px;margin:0 auto;padding:14px 20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.brand{font-weight:800}
.spacer{flex:1}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,#1a1b1e,#121316);color:#fff;font-weight:700;min-height:44px;min-width:44px}
.btn.accent{
  /* Accent gradient uses theme variables. The gradient transitions from
     primary accent to secondary accent for depth. */
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-color: var(--accent-2);
}
.container{max-width:1080px;margin:0 auto;padding:24px 20px}
.grid{display:grid;gap:18px}
.cols-2{grid-template-columns:1fr 1fr}
.cols-3{grid-template-columns:1fr 1fr 1fr}
@media (max-width:900px){.cols-2,.cols-3{grid-template-columns:1fr}}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
@media (max-width:900px){.hero{grid-template-columns:1fr}}
.ultra{font-size:54px;line-height:1.05;margin:0 0 10px}
.sub{color: var(--muted);}
.figure{border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  margin: 4px 6px 0 0;
}
.footer{
  max-width:1080px;
  margin:28px auto;
  padding:18px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.kicker{color:#46e67a;font-weight:800;text-transform:uppercase;letter-spacing:.2em;font-size:12px}
.benefit-image{width:100%;border-radius:12px;border:1px solid rgba(255,255,255,.08);display:block}
/*
 * New header banner and menubar styles
 * The site-banner provides a 600×200 hero-like header with the site name on desktop,
 * and scales down on mobile screens. The menu below uses plain links rather than
 * button-style elements. The "join" link is styled as a call to action but still
 * respects minimum touch target sizing. All links remain underlined for
 * accessibility.
 */
/* Site banner scales proportionally (600×200 ratio) on all screens */
.site-banner {
  /* Constrain width to 600px on large screens but allow it to shrink on smaller devices */
  width: min(600px, 100%);
  /* Maintain a 3:1 aspect ratio so the banner scales with screen width */
  aspect-ratio: 3 / 1;
  height: auto;
  margin: 16px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', Arial, sans-serif;
  /* Fluid font size: grows up to 36px on large screens, smaller on mobile */
  font-size: clamp(22px, 4vw, 36px);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  background: radial-gradient(100% 140% at 30% 30%, #1e90ff 0%, #0b77d1 40%, #0e0f12 95%);
  border-radius: 20px;
  border: 1px solid #0b77d1;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Responsive menu: two rows. The first row contains centered text links,
   separated by generous spacing; the second row holds the dropdown on desktop. */
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 10px 12px 6px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.menu-row1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* create ~5–6 "spaces" worth of gap between links */
  gap: 32px;
}
.menu-row1 a {
  text-decoration: underline;
  color: #1e90ff;
  font-weight: 700;
  padding: 8px 10px;
  line-height: 1;
}
.menu-row1 a.join {
  /* call-to-action styling for the Join link */
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg,#1e90ff,#0b77d1);
  border: 1px solid #0b77d1;
  border-radius: 10px;
  padding: 10px 14px;
}
.menu-row2 {
  display: flex;
  justify-content: flex-end;
}
.menu-row2 select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: #0f1114;
  color: #fff;
}

@media (max-width: 740px) {
  .site-banner {
    /* On narrow screens, banner still spans full width but maintains aspect ratio.
       Font size reduces for readability. */
    width: 100%;
    height: auto;
    font-size: clamp(20px, 6vw, 28px);
  }
  .menu-row1 {
    gap: 22px;
  }
  /* Center the dropdown on small screens */
  .menu-row2 {
    justify-content: center;
  }
}

/*
 * Sponsor grid: two columns on larger screens and stacked on narrow screens. Each
 * sponsor tile contains a 300×200 image and a link. The border and spacing
 * match the rest of the site’s card aesthetic.
 */
.sponsor-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sponsor-grid li {
  text-align: center;
}
.sponsor-grid img {
  display: block;
  width: 300px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto 8px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.15);
}
.sponsor-grid a {
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 740px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }
}
.notice{background:rgba(255,255,255,.06);border-left:3px solid #11aaff;padding:10px;border-radius:10px;margin-top:10px}
.small{font-size:12px;color: var(--muted);} 
.input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  background: var(--card);
  border:1px solid var(--border);
  color: var(--text);
}

/* Sponsor list styles */
.list-sponsors{columns:1;column-gap:24px;list-style:none;padding:0;margin:0}
.list-sponsors li{margin-bottom:8px}
@media(min-width:800px){.list-sponsors{columns:2}}

/* Accessibility helper for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,1px,1px);
  white-space: nowrap;
  border: 0;
}

/* Responsive navigation buttons and select */
.nav-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-select-wrap {
  display: none;
  width: 100%;
}
.nav-select-wrap select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffffff22;
  background: #13151a;
  color: #e8e9ea;
  font-weight: 700;
}

/* Accessibility: ensure h2 headings are sized consistently */
h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 8px;
}

@media (max-width: 740px) {
  .nav-actions {
    display: none;
  }
  .nav-select-wrap {
    display: block;
  }
  .header .nav {
    padding-bottom: 12px;
  }
}

/* -------------------------------------------------------------------
 * Banner image helper
 * Apply this class to page-level banner <img> elements (e.g. FAQ and privacy)
 * to ensure they scale proportionally with the viewport. The width and height
 * attributes set an intrinsic aspect ratio; this class allows the browser to
 * adjust the rendered size without stretching.
 */
.banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Logo/banner image spans 800×300 (aspect 8:3) but scales down proportionally on
   smaller screens. This replaces the previous `.site-banner` text element. */
.brand-banner {
  display: block;
  width: min(800px, 100%);
  height: auto;
  margin: 6px auto 10px;
  border-radius: 20px;
  object-fit: cover;
}

/* ===== Desktop linkbar + Mobile dropdown (top & bottom) ===== */

/* Desktop container for linkbar */
.linkbar-wrap {
  margin: 8px auto 0;
  max-width: 1200px;
}

/* Horizontal list for desktop nav */
.linkbar {
  list-style: none;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  text-align: center;
}

/* Each list item sits inline; separators are inserted before subsequent items */
.linkbar li {
  display: inline-flex;
  align-items: center;
  list-style-type: none; /* ensure no bullets appear on individual list items */
}
/* Use a slightly wider margin between nav items so they don’t feel cramped.
   The separators remain the same but the spacing is increased. */
.linkbar li + li::before {
  content: " --- ";
  opacity: 0.9;
  /* Increase spacing between menu items for better readability */
  margin: 0 24px;
}
.linkbar a {
  text-decoration: underline;
  font-weight: 700;
}

/* Dropdown row for mobile navigation */
.nav-select-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
  max-width: 900px;
}
.nav-select-row label {
  font-weight: 700;
}
.nav-select-row select {
  /* By default, the dropdown spans 600px on larger screens. On narrow
     viewports it will shrink to fit but never go below 400px. */
  width: 600px;
  min-width: 600px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #0f1114;
  color: #fff;
}

/* Show linkbar on desktop, hide dropdown; on mobile, hide linkbar and show dropdown */
@media (min-width: 741px) {
  .linkbar-wrap { display: block; }
  .nav-select-row { display: none; }
}
@media (max-width: 740px) {
  .linkbar-wrap { display: none; }
  .nav-select-row { display: flex; }
  /* On small screens, allow the dropdown to shrink down but not
     smaller than 400px. It still respects the maximum of 600px
     defined above. */
  .nav-select-row select {
    width: min(90vw, 600px);
    min-width: 400px;
  }
}