/* ============================================================
   DailyFit24: Energetic Fitness Restyle
   Palette: light grey bg, white cards, bold orange-red accent (#F23E2E)
   ============================================================ */

:root {
  --accent:     #F23E2E;
  --accent-2:   #D62E20;
  --accent-3:   #B21F14;
  --accent-soft:rgba(242, 62, 46, 0.10);
  --bg:         #F3F4F6;
  --surface:    #FFFFFF;
  --surface-2:  #F9FAFB;
  --fg:         #1F2033;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --green:      #22C55E;
  --footer-bg:  #0E0E14;
  --footer-fg:  #C9CAD4;
  --footer-mut: #7B7C8A;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-pill:999px;
  --shadow:     0 4px 16px rgba(17, 17, 40, 0.06);
  --shadow-hover:0 12px 30px rgba(242, 62, 46, 0.20);
  --type-lg:    clamp(2.4rem, 5.5vw, 4.5rem);
  --type-md:    clamp(1.5rem, 3vw, 2.3rem);
  --type-sm:    clamp(1.1rem, 2vw, 1.3rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout helpers ── */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
section { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--type-lg); }
h2 { font-size: var(--type-md); margin-bottom: 1.25rem; }
h3 { font-size: var(--type-sm); margin-bottom: 0.5rem; }
p  { max-width: 66ch; }

.accent  { color: var(--accent); }
.muted   { color: var(--muted); font-size: 0.9rem; }
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0E0E14;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#site-header nav ul li a { color: rgba(255,255,255,0.78); }
#site-header nav ul li a:hover,
#site-header nav ul li a:focus-visible { color: #fff; }
#site-header .lang-current { color: #fff; border-color: rgba(255,255,255,0.25); }
#site-header .lang-current:hover { border-color: #fff; color: #fff; }
#site-header .lang-chevron { color: rgba(255,255,255,0.6); }
#site-header .nav-toggle { color: #fff; border-color: rgba(255,255,255,0.3); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.85rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin-right: auto;
}
[dir="rtl"] .wordmark { margin-right: 0; margin-left: auto; }

/* Language switch */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}
.lang-current:hover { border-color: var(--accent); color: var(--accent); }
.lang-current:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flag {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--border);
  line-height: 0;
}
.flag .flag-svg { width: 100%; height: 100%; display: block; }
.lang-chevron { width: 14px; height: 14px; color: var(--muted); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 0.35rem;
  display: none;
  z-index: 200;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu.is-open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.6rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
}
[dir="rtl"] .lang-option { text-align: right; }
.lang-option:hover { background: var(--surface-2); }
.lang-option[aria-selected="true"] { color: var(--accent); }
.wordmark img {
  height: 34px;
  width: auto;
}
.wordmark .wm {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.wordmark .wm em { font-style: normal; color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 1.2rem;
  padding: 0.35em 0.65em;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); }

nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
nav ul li a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
nav ul li a:hover,
nav ul li a:focus-visible { color: var(--accent); text-decoration: none; }

/* ── TRUST STRIP ── */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  padding-block: 0.75rem;
}
.trust-list li {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.trust-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

/* ── HERO ── */
#hero {
  background: linear-gradient(105deg, rgba(12,12,18,0.86) 0%, rgba(12,12,18,0.70) 45%, rgba(20,12,10,0.50) 100%), url("bg.jpg?v=1") center/cover no-repeat;
  color: #fff;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy .tag { background: rgba(255,255,255,0.9); color: var(--accent); }
.hero-copy h1 { margin-bottom: 1.25rem; color: #fff; }
.hero-copy h1 em {
  font-style: normal;
  color: #FDE68A;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  max-width: 50ch;
}
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85em 2em;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 62, 46, 0.35);
}
.btn-primary:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-2px); }
.btn-secondary {
  border: 2px solid rgba(255,255,255,0.85);
  color: #fff;
  background: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* Hero visual block */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.genre-chip {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}
.genre-chip strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.15rem; }

/* ── SHOWCASE (tilted iPhone slider) ── */
#showcase {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.showcase-copy { max-width: 520px; }
.showcase-copy p { color: var(--muted); margin-bottom: 1.75rem; }
.showcase-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-block: 1.5rem;
}
.showcase-visual::before {
  content: "";
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 62, 46, 0.30), transparent 62%);
  z-index: 0;
  pointer-events: none;
}
.phone { position: relative; z-index: 1; perspective: 1600px; }
.phone-frame {
  position: relative;
  width: clamp(230px, 25vw, 290px);
  aspect-ratio: 9 / 19.5;
  background: #0b0b10;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #23232c inset,
    0 40px 60px -25px rgba(0, 0, 0, 0.55),
    0 12px 22px -12px rgba(0, 0, 0, 0.45);
  transform: rotateY(-20deg) rotateX(6deg) rotateZ(-2.5deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.phone-frame:hover { transform: rotateY(-11deg) rotateX(3deg) rotateZ(-1deg); }
.phone-island {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 33%; height: 21px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0e0e14;
  touch-action: pan-y;
}
.phone-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.phone-slide {
  min-width: 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.phone-dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.phone-dot {
  width: 9px; height: 9px;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.phone-dot.is-active { background: var(--accent); width: 22px; }
.phone-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .showcase-copy { max-width: none; }
  .phone-frame,
  .phone-frame:hover { transform: none; }
}

/* ── HOW IT WORKS ── */
#how-it-works {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step h3 { color: var(--fg); font-size: 1.05rem; }
.step p  { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; max-width: none; }

/* ── FEATURES ── */
#features { border-bottom: 1px solid var(--border); }
.features-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.features-header p { color: var(--muted); max-width: 40ch; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-cell:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-icon {
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-cell h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-cell p { color: var(--muted); font-size: 0.9rem; max-width: none; }

/* ── GAMES ── */
#games { background: var(--surface); border-bottom: 1px solid var(--border); }
.games-header { text-align: center; margin-bottom: 2.5rem; }
.games-header p { color: var(--muted); margin: 0.5rem auto 0; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}
.game-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.game-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.game-play {
  margin-top: auto;
  display: block;
  width: 100%;
  border: none;
  font-family: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.7em 1em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(242, 62, 46, 0.28);
  transition: background 0.2s, transform 0.15s;
}
.game-play:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-2px); }
.game-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.games-cta { text-align: center; margin-top: 2.75rem; }
.btn-lg { font-size: 1.02rem; padding: 1em 2.6em; }

/* ── USE CASES ── */
#use-cases { border-bottom: 1px solid var(--border); }
.use-cases-intro { margin-bottom: 2.5rem; }
.use-cases-intro p { color: var(--muted); margin-top: 0.75rem; }
.vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.vignette {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.vignette h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.vignette p { color: var(--muted); font-size: 0.9rem; max-width: none; }

/* ── PRICING ── */
#pricing { background: var(--surface); border-bottom: 1px solid var(--border); }
.pricing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.pricing-copy h2 { margin-bottom: 1rem; }
.pricing-copy p { color: var(--muted); }
.pricing-copy-note { margin-top: 1rem; }
.pricing-card {
  background: linear-gradient(160deg, #ffffff 0%, #faf7ff 100%);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-hover);
}
.plan-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.price-display { margin-bottom: 1.25rem; }
.price-amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.price-cadence {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
.price-trial {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.billing-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

/* ── DISCLAIMER ── */
#disclaimer { border-bottom: 1px solid var(--border); }
.disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}
.disclaimer-box + .disclaimer-box { margin-top: 1.5rem; }
.disclaimer-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--footer-bg);
  color: var(--footer-mut);
  padding-block: 4rem 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 2.5rem 2.5rem;
  align-items: start;
}
.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.footer-inner--3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbb2ff;
  background: rgba(139, 44, 245, 0.22);
  padding: 0.4em 0.85em;
  border-radius: var(--radius-pill);
}
.footer-brand p {
  color: var(--footer-mut);
  max-width: 44ch;
  line-height: 1.75;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-links a { color: var(--footer-mut); font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact strong { color: #fff; font-weight: 700; }
.footer-contact address { font-style: normal; color: var(--footer-mut); line-height: 1.65; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.75rem;
}
.footer-disclaimer p {
  color: var(--footer-mut);
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 92ch;
  margin: 0 auto;
  text-align: center;
}
.footer-disclaimer a { color: var(--footer-fg); text-decoration: underline; }
.footer-disclaimer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
}
.footer-copyright {
  color: var(--footer-fg);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 auto;
  max-width: none;
}
.footer-legal {
  color: var(--footer-mut);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 0.45rem auto 0;
  max-width: none;
}

/* ── SUB-PAGE STYLES ── */
.subpage-wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.55em 1.3em;
  border-radius: var(--radius-pill);
  background: var(--surface);
}
.back-link:hover { color: #fff; background: var(--accent); border-color: var(--accent); text-decoration: none; }

.subpage-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.subpage-wrap h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.subpage-wrap h3 {
  font-size: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--accent);
}
.subpage-wrap p { color: var(--muted); margin-bottom: 1rem; max-width: 72ch; }
.subpage-wrap ul,
.subpage-wrap ol {
  color: var(--muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 72ch;
}
.subpage-wrap li { margin-bottom: 0.4rem; }
.subpage-wrap a { color: var(--accent); }
.entity-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.disclaimer-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── GAME MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  width: min(980px, 100%);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(10, 10, 30, 0.45);
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--accent); color: #fff; }
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}
.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.modal-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.modal-tagline { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; }
.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.modal-gallery { min-width: 0; }
.modal-main-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.modal-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 72px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  transition: border-color 0.2s;
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb.is-active { border-color: var(--accent); }
.modal-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-info h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.modal-description { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: none; }
.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}
.modal-cta svg { width: 18px; height: 18px; }
.modal-price {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: none;
}

/* ── CARRIER PAGE ── */
.carrier-intro { color: var(--muted); margin-bottom: 2.5rem; max-width: 60ch; }
.carrier-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.carrier-group h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.carrier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.carrier-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.carrier-check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.carrier-check svg { width: 18px; height: 18px; }
.carrier-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.carrier-name { font-weight: 700; color: var(--fg); }
.carrier-sub { color: var(--muted); font-size: 0.88rem; }
.carrier-status {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.4em 0.95em;
  border-radius: var(--radius-pill);
}
.carrier-row.is-unsupported .carrier-check {
  background: rgba(107, 114, 128, 0.14);
  color: var(--muted);
}
.carrier-status.is-off { background: var(--border); color: var(--muted); }

@media (max-width: 520px) {
  .carrier-row { flex-wrap: wrap; }
  .carrier-status { order: 3; margin-left: calc(34px + 1rem); }
}

/* ── REGIONAL SUPPORT PAGE ── */
.region-intro { color: var(--muted); margin-bottom: 2.5rem; max-width: 60ch; }
.region-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.region-card + .region-card { margin-top: 1.5rem; }
.region-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #fff;
}
.region-flag {
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.region-name { font-size: 1.25rem; font-weight: 800; flex: 1; min-width: 0; }
.region-badge {
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.4em 0.95em;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.region-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.75rem;
}
.region-fact { display: flex; gap: 0.8rem; align-items: flex-start; }
.region-fact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.region-fact-icon svg { width: 19px; height: 19px; }
.region-fact > div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.region-fact-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.region-fact-value { font-weight: 600; color: var(--fg); font-size: 0.95rem; }

@media (max-width: 640px) {
  .region-facts { grid-template-columns: 1fr; gap: 1.1rem; }
  .region-card-head { flex-wrap: wrap; }
  .region-name { flex-basis: 60%; }
}

/* ── CONTACT PAGE ── */
.contact-intro { color: var(--muted); max-width: 68ch; margin-bottom: 1rem; }
.contact-intro + .contact-address { margin-top: 2rem; }
.contact-address {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.contact-address strong {
  display: block;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 780px;
  margin-top: 1.5rem;
}
.support-card {
  background: #E9EAEE;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.support-card h3 {
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 1.1rem;
}
.support-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.support-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.support-icon svg { width: 20px; height: 20px; color: var(--accent); }
.support-value { color: var(--fg); font-weight: 600; }
.support-value a { color: var(--fg); }
.support-value a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: repeat(4, 1fr); }
  .pricing-inner { grid-template-columns: 1fr; gap: 2rem; }
  .features-header { flex-direction: column; align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
  }
  nav ul.is-open { display: flex; }
  nav ul li a { padding-block: 0.6rem; display: block; }
  /* mobile dropdown has a light background, so use dark link text there */
  #site-header nav ul li a { color: var(--muted); }
  #site-header nav ul li a:hover,
  #site-header nav ul li a:focus-visible { color: var(--accent); }
  #site-header { position: relative; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .support-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   LIBRARY-FIRST HOMEPAGE (volts-jmch-haute.com — unique layout)
   ════════════════════════════════════════════════════════════ */

/* Editorial eyebrow label (distinct from the pill .tag) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ── HERO: dark catalogue + library index ── */
#hero.hero-lib {
  background: #0E0E14;
  color: #fff;
  position: relative;
  overflow: hidden;
}
#hero.hero-lib::before {
  content: ""; position: absolute; top: -25%; right: -12%;
  width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,62,46,0.22), transparent 60%);
  pointer-events: none;
}
.hero-lib-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem;
  align-items: center; position: relative; z-index: 1;
}
.hero-lib-copy { max-width: 560px; }
.hero-lib .eyebrow { color: #FF9A6B; }
.hero-lib-title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 900;
  line-height: 1.02; letter-spacing: -0.03em;
}
.hero-lib-title .hl-1, .hero-lib-title .hl-2 { display: block; }
.hero-lib-title .hl-2 { color: var(--accent); }
.hero-lib-sub {
  margin-top: 1.4rem; color: rgba(255,255,255,0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 48ch;
}
.hero-lib .cta-group { margin-top: 2rem; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.85); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

.hero-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start;
}
.hero-gallery .hg-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12); background: #15151d;
  filter: grayscale(0.2) contrast(1.02); box-shadow: 0 12px 24px -14px rgba(0,0,0,0.6);
}
.hero-gallery .hg-img:nth-child(even) { transform: translateY(1.9rem); }
.hero-gallery .hg-img:first-child { border-color: rgba(242,62,46,0.6); }

/* ── LIBRARY: image-forward streaming tiles ── */
#library { background: var(--surface); border-bottom: 1px solid var(--border); }
.lib-head { max-width: 640px; margin-bottom: 2.5rem; }
.lib-head p { color: var(--muted); margin-top: 0.5rem; }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lib-tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; background: #0E0E14; box-shadow: var(--shadow);
}
.lib-tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(0.15); transition: transform 0.5s ease;
}
.lib-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,18,0.93) 4%, rgba(12,12,18,0.25) 55%, rgba(12,12,18,0.04) 100%);
}
.lib-tile::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease; z-index: 2;
}
.lib-tile:hover::before { transform: scaleX(1); }
.lib-tile:hover .lib-tile-img { transform: scale(1.06); }
.lib-tile-name {
  position: absolute; left: 1rem; bottom: 1.85rem; z-index: 2; color: #fff;
  font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; pointer-events: none;
}
.lib-tile-meta {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  color: rgba(255,255,255,0.72); font-size: 0.8rem; font-weight: 600; pointer-events: none;
}
.lib-tile-hit {
  position: absolute; inset: 0; z-index: 3; border: none;
  background: transparent; cursor: pointer;
}
.lib-tile-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ── INCLUDED: dark spec band ── */
#included {
  background: linear-gradient(rgba(14,14,20,0.93), rgba(14,14,20,0.93)), url("bg.jpg?v=1") center/cover no-repeat;
  color: #fff;
}
.incl-head { text-align: center; margin-bottom: 2.5rem; }
.incl-head .eyebrow { color: #FF9A6B; }
.incl-head h2 { color: #fff; }
.incl-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; overflow: hidden;
}
.incl-item { padding: 1.85rem 1.1rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.14); }
.incl-item:last-child { border-right: none; }
.incl-k {
  display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.55rem;
}
.incl-v { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.incl-item:nth-child(odd) .incl-v { color: var(--accent); }

/* ── WEEK: 7-day planner ── */
#week { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.week-head { max-width: 640px; margin-bottom: 2.25rem; }
.week-head p { color: var(--muted); margin-top: 0.5rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
.week-day {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem 0.6rem 1.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.week-day:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.wd-day { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wd-focus { font-weight: 800; color: var(--fg); font-size: 1rem; }
.wd-dots { display: inline-flex; gap: 4px; }
.wd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.wd-dot.is-on { background: var(--accent); }

/* ── SHOWCASE dark + flipped ── */
#showcase.showcase--dark { background: #0E0E14; border-bottom: 1px solid rgba(255,255,255,0.08); }
#showcase.showcase--dark .showcase-visual { order: -1; }
#showcase.showcase--dark .showcase-copy h2 { color: #fff; }
#showcase.showcase--dark .showcase-copy p { color: rgba(255,255,255,0.8); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-lib-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .incl-row { grid-template-columns: repeat(2, 1fr); }
  .incl-item:nth-child(2n) { border-right: none; }
  .incl-item { border-bottom: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 720px) {
  .week-grid { display: flex; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
  .week-day { min-width: 120px; scroll-snap-align: start; }
  #showcase.showcase--dark .showcase-visual { order: 0; }
}
@media (max-width: 520px) {
  .lib-grid { grid-template-columns: 1fr 1fr; }
  .incl-row { grid-template-columns: 1fr; }
  .incl-item { border-right: none; }
  .incl-item:last-child { border-bottom: none; }
}
