/* ============================================
   FIFA World Cup 2026 — 2026fifaworld-cup.com
   Design system & shared styles
   ============================================ */

:root {
  /* Brand palette extracted from SpinBetter banners */
  --bg-primary: #0a1410;       /* deep stadium-night green-black */
  --bg-secondary: #11201a;     /* card surface */
  --bg-tertiary: #1a3025;      /* hover surface */
  --bg-elevated: #16261f;      /* elevated card */
  --line: #234034;             /* hairline border */
  --line-strong: #2f5544;

  --accent-lime: #c5ff3d;      /* electric lime — primary accent */
  --accent-lime-dark: #9adb1f;
  --accent-gold: #f5c542;      /* trophy gold — secondary accent */
  --accent-violet: #6b3fa0;    /* SpinBetter purple flourish */
  --accent-coral: #ff5a4e;     /* CTA / urgency */

  --text-primary: #f3f7f1;
  --text-secondary: #c5d1c8;
  --text-muted: #8c9990;
  --text-dim: #5e6b62;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(197,255,61,0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(197,255,61,0.06), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(107,63,160,0.08), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(245,197,66,0.04), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-lime); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-gold); }

/* Subtle stadium-grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.9 0 0 0 0 0.7 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 2; }

/* ============== TYPOGRAPHY ============== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  letter-spacing: -0.005em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin: 2.4rem 0 1rem;
  position: relative;
  padding-left: 1rem;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 5px;
  height: 0.85em;
  background: var(--accent-lime);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 1.8rem 0 0.6rem;
  color: var(--accent-lime);
}

h4 {
  font-size: 1.2rem;
  margin: 1.2rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

p { margin-bottom: 1.1rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 700; }

ul, ol { margin: 0 0 1.2rem 1.4rem; color: var(--text-secondary); }
li { margin-bottom: 0.4rem; }

/* ============== HEADER ============== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-gold) 100%);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--bg-primary);
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover { color: var(--accent-lime); }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav-primary a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary a.active {
  color: var(--accent-lime);
}

.nav-primary a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent-lime);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-lime-dark) 100%);
  color: var(--bg-primary) !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 4px 16px rgba(197,255,61,0.25);
  white-space: nowrap;
  font-family: var(--font-body);
}

/* The header CTA is tighter than the body/CTA-block buttons so it doesn't
   crowd the nav links on the right side of the header. */
.nav-primary .btn-cta {
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(197,255,61,0.35);
  color: var(--bg-primary) !important;
}

.btn-cta-large {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-cta-secondary {
  background: transparent;
  color: var(--accent-lime) !important;
  border: 2px solid var(--accent-lime);
  box-shadow: none;
}
.btn-cta-secondary:hover {
  background: var(--accent-lime);
  color: var(--bg-primary) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: background-color 0.2s ease;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.22s ease, top 0.22s ease;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top:  7px; }

/* Open state: morph into an X */
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============== BANNER ROTATOR ============== */

.banner-rotator {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
  position: relative;
  z-index: 5;
}

.banner-rotator-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.banner-track {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c1a14;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  /* aspect ratio matches the source banners (1024x248 = ~4.13:1) so the
     full image always renders without crop */
  aspect-ratio: 1024 / 248;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.banner-slide.active { opacity: 1; }

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 4%;
  transform: translateY(-50%);
  max-width: 56%;
  z-index: 2;
}

.banner-eyebrow {
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.55rem);
  line-height: 1.05;
  margin-bottom: 0.3rem;
  color: #fff;
}

.banner-desc {
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  /* Hide extra description on very small viewports to preserve banner ratio */
}

.banner-btn {
  display: inline-block;
  padding: clamp(0.4rem, 0.8vw, 0.55rem) clamp(0.8rem, 1.4vw, 1.2rem);
  background: var(--accent-lime);
  color: var(--bg-primary) !important;
  font-weight: 800;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: transform 0.16s ease;
  font-family: var(--font-body);
}
.banner-btn:hover { transform: translateY(-1px); color: var(--bg-primary) !important; }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line-strong);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.banner-dots button.active {
  background: var(--accent-lime);
  width: 24px;
  border-radius: 4px;
}

/* ============== LAYOUT ============== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}

main { padding: 2.4rem 0 4rem; }

article {
  max-width: 820px;
  margin: 0 auto;
}

article > p { font-size: 1.04rem; }

.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-lime);
}

/* ============== HERO ============== */

.hero {
  padding: 2.8rem 0 1.4rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(197,255,61,0.1);
  color: var(--accent-lime);
  border: 1px solid rgba(197,255,61,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 1.6rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ============== BREADCRUMBS ============== */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  padding-top: 0.5rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-lime); }
.breadcrumbs span { margin: 0 0.5rem; color: var(--text-dim); }

/* ============== IMAGES IN CONTENT ============== */

figure {
  margin: 2rem auto;
  text-align: center;
}
figure img {
  width: 90%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
  font-style: italic;
}

/* ============== STAT GRID ============== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  padding: 1.4rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-lime);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent-lime);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ============== TABLES ============== */

.tbl-wrap { overflow-x: auto; margin: 1.4rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg-tertiary);
  color: var(--accent-lime);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--line-strong);
}
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(197,255,61,0.04); }

/* ============== STEPS / NUMBERED ============== */

ol.steps {
  list-style: none;
  margin: 1.6rem 0;
  counter-reset: step;
}
ol.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  margin-bottom: 0.9rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  counter-increment: step;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 28px;
  height: 28px;
  background: var(--accent-lime);
  color: var(--bg-primary);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}
ol.steps li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

/* ============== CALLOUT BOXES ============== */

.callout {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  background: rgba(245,197,66,0.06);
  border: 1px solid rgba(245,197,66,0.25);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
}
.callout-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.callout.warn {
  background: rgba(255,90,78,0.06);
  border-color: rgba(255,90,78,0.25);
  border-left-color: var(--accent-coral);
}
.callout.warn .callout-title { color: var(--accent-coral); }

/* ============== FAQ ============== */

.faq-list { margin: 1.4rem 0 2rem; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  padding-right: 2rem;
  position: relative;
  list-style: none;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--accent-lime);
  font-family: var(--font-body);
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:hover { color: var(--accent-lime); }

.faq-a {
  padding: 0.8rem 0 0.4rem;
  color: var(--text-secondary);
}
.faq-a p:last-child { margin-bottom: 0; }

/* ============== CTA SECTIONS ============== */

.cta-block {
  margin: 3rem 0 1.4rem;
  padding: 2.4rem 1.6rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(197,255,61,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h3 {
  font-size: 1.7rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.cta-block p {
  max-width: 540px;
  margin: 0 auto 1.4rem;
}
.cta-block .btn-cta { position: relative; z-index: 2; }

/* Promo code copy widget */
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0;
  background: var(--bg-elevated);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}
.promo-code-text {
  padding: 0.7rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}
.copy-btn {
  padding: 0.7rem 1rem;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  transition: background 0.18s ease;
}
.copy-btn:hover { background: var(--accent-lime); }
.copy-btn.copied { background: var(--accent-lime); }

/* ============== HOMEPAGE FEATURE GRID ============== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2.4rem 0;
}

.feature-card {
  padding: 1.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-lime);
  box-shadow: var(--shadow-glow);
  color: inherit;
}
.feature-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(197,255,61,0.12);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  color: var(--accent-lime);
}
.feature-card h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}
.feature-card-arrow {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============== HOST CITIES GRID ============== */

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.city-card {
  padding: 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.city-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent-lime);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.city-stadium {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.city-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============== FOOTER ============== */

.site-footer {
  background: #060d0a;
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 1.4rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-lime);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-grid a:hover { color: var(--accent-lime); }

.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.age-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--accent-coral);
  color: #fff;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.footer-rg {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

/* ============== 404 ============== */

.error-404 {
  text-align: center;
  padding: 5rem 1.4rem;
}
.error-404 h1 {
  font-size: clamp(5rem, 14vw, 10rem);
  color: var(--accent-lime);
  line-height: 1;
}

/* ============== MOBILE ============== */

@media (max-width: 880px) {
  .menu-toggle { display: flex; }

  /* Disable backdrop-filter on mobile: any value other than `none` makes
     the element a containing block for fixed descendants, which would
     clip our fixed mobile nav menu to the 76px header. The translucent
     background alone reads fine at this viewport. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-primary);
  }

  .nav-primary {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 1.4rem;
    gap: 0;
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    /* Sit above the banner-rotator (z-index:5) and any other in-flow content */
    z-index: 99;
  }

  .nav-primary.open { transform: translateX(0); }

  .nav-primary a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .header-cta-desktop { display: none; }

  .nav-primary .btn-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* Banner — drop the strict 4.13:1 ratio on mobile so the text overlay
     (eyebrow + title + button) always fits without clipping. The active
     slide drives the track height via in-flow positioning; inactive
     slides remain absolute so they overlap and fade behind it. */
  .banner-track {
    aspect-ratio: auto;
    display: block;
  }
  .banner-slide {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem 0.85rem 1.1rem;
  }
  .banner-slide.active {
    position: relative;
    inset: auto;
  }
  /* Hide the inline <img> on mobile and use it as a background of the slide
     so we can crop and position cleanly without the text colliding with it.
     We pin the artwork to the right ~45% of the banner and dim it slightly
     so the text overlay always wins the contrast battle, even when the
     source artwork is bright (e.g. the casino "WELCOME" sign). */
  .banner-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 45%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.85;
    /* Soft fade on the inner edge so the artwork blends into the dark
       banner background instead of forming a hard vertical seam. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
            mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  }
  .banner-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
    /* Reserve room for the artwork on the right (image is 45% wide with a
       soft inner fade, so 40% padding keeps text clear of the sharp area). */
    padding-right: 40%;
  }
  .banner-desc { display: none; }
  .banner-eyebrow { margin-bottom: 0.2rem; }
  .banner-title {
    margin-bottom: 0.55rem;
    font-size: clamp(0.95rem, 3.8vw, 1.3rem);
    line-height: 1.1;
    /* Allow ugly long brand names ("EUR / USD + 150 FS") to wrap inside
       the available column instead of pushing into the artwork area. */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  .banner-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  figure img { width: 100%; }

  h2 { font-size: 1.7rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .footer-disclaimer { flex-direction: column; align-items: flex-start; }

  table { font-size: 0.84rem; }
  th, td { padding: 0.6rem 0.7rem; }

  .cta-block { padding: 1.8rem 1.2rem; }
  .cta-block h3 { font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }

  /* Tighten the header so the brand + burger fit on narrow phones */
  .header-inner { padding: 0 0.9rem; gap: 0.6rem; }
  .brand { font-size: 1.15rem; gap: 0.55rem; }
  .brand-mark { width: 30px; height: 30px; font-size: 0.78rem; border-radius: 6px; }

  /* Keep the artwork visible but give text a bit more breathing room */
  .banner-content { padding-right: 34%; }
}

/* ============== ACCESSIBILITY ============== */

:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
