/* Light theme: the split-test arm (html[data-theme="light"], set in index.html's <head>).
   The page turns light; the app's own pictures (the 3D player, films, gallery, review photos)
   stay dark, because they are rendered on navy. Inside those, the dark tokens are put back. */

html[data-theme='light'] {
  --bg: #F4F6F9;
  --night: #EBEEF3;
  --panel: #FFFFFF;
  --line: rgba(15, 23, 41, 0.1);
  --sky: #1677E8; /* accent text and icons: the dark theme's sky is too pale on white */
  --gold: #F2A900;
  --ok: #16A34A;
  --warn: #D48A00;
  --bad: #E5482B;
  --ink: #0F1729;
  --mute: rgba(15, 23, 41, 0.66);
  --dim: rgba(15, 23, 41, 0.45);
  color-scheme: light;
}

/* The app's pictures: dark tokens back on. */
html[data-theme='light'] :is(.tile, .player, .sim, .card, .gal-main, .rev figure, .store, .on-dark) {
  --sky: #8FD1F5;
  --gold: #FFC24D;
  --ok: #3BD16F;
  --warn: #FFC32C;
  --bad: #FF6A4D;
  --ink: #F2F5FA;
  --mute: rgba(226, 234, 248, 0.66);
  --dim: rgba(226, 234, 248, 0.42);
  --line: rgba(143, 209, 245, 0.14);
  color: var(--ink);
}

html[data-theme='light'] body {
  background: radial-gradient(120% 60% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 60%), var(--bg);
}

/* ---------------------------------------------------------------- buttons */
html[data-theme='light'] .btn-primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(22, 119, 232, 0.6); }
html[data-theme='light'] .btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.2) inset; }

/* ---------------------------------------------------------------- header, logo, splash */
html[data-theme='light'] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border-bottom-color: rgba(15, 23, 41, 0.07);
}
html[data-theme='light'] :is(.logo img, .foot-logo, .dr-logo) { filter: brightness(0); }
html[data-theme='light'] .splash { background: var(--bg); }

/* ---------------------------------------------------------------- hero */
html[data-theme='light'] .hero { background: radial-gradient(90% 55% at 30% 45%, #FFFFFF 0%, var(--bg) 75%); }
/* The render is on black. Inverted (and turned back to its own hues) it is a graphite golfer on
   white, and multiply drops the white onto the page. */
html[data-theme='light'] .hero-film video { mix-blend-mode: multiply; filter: invert(1) hue-rotate(180deg); }
html[data-theme='light'] .hero::after { background: linear-gradient(180deg, rgba(244, 246, 249, 0) 0%, rgba(244, 246, 249, 0.85) 45%, var(--bg) 100%); }
html[data-theme='light'] .tile { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 12px 24px -12px rgba(15, 23, 41, 0.4); }
html[data-theme='light'] .tile.is-hit { box-shadow: 0 0 0 1.5px rgba(229, 72, 43, 0.9), 0 0 24px -4px rgba(229, 72, 43, 0.45); }
html[data-theme='light'] .dot.you { background: #2A303C; box-shadow: 0 0 0 2px rgba(15, 23, 41, 0.12); }
html[data-theme='light'] .hip-chip { background: rgba(255, 255, 255, 0.88); box-shadow: 0 0 0 1px rgba(242, 169, 0, 0.6), 0 6px 16px -8px rgba(15, 23, 41, 0.3); }
html[data-theme='light'] .hip-chip b { color: #B87A00; }
html[data-theme='light'] .hip-chip.is-bad { box-shadow: 0 0 0 1px rgba(229, 72, 43, 0.8), 0 0 18px -2px rgba(229, 72, 43, 0.35); }
html[data-theme='light'] .hero-copy .l2 { background: linear-gradient(92deg, #1F8FFF 0%, #1677E8 55%, #0B5FCC 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------------------------------------------------------------- showcase */
html[data-theme='light'] .player { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 30px 50px -30px rgba(15, 23, 41, 0.5); }
html[data-theme='light'] .pill { background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.14) inset; }
html[data-theme='light'] .pill.is-on { color: #fff; background: var(--blue); box-shadow: 0 8px 18px -8px rgba(31, 143, 255, 0.8); }
html[data-theme='light'] .pill.is-on::after { background: rgba(255, 255, 255, 0.7); }

/* ---------------------------------------------------------------- excerpt */
html[data-theme='light'] .sim { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 30px 50px -30px rgba(15, 23, 41, 0.5); }
html[data-theme='light'] .scroll-cue { background: linear-gradient(90deg, rgba(31, 143, 255, 0.12), rgba(31, 143, 255, 0.03)); box-shadow: 0 0 0 1px rgba(31, 143, 255, 0.35) inset; }
html[data-theme='light'] .scroll-cue::before { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%); }
html[data-theme='light'] .scroll-cue i { color: #fff; }

/* ---------------------------------------------------------------- measure */
html[data-theme='light'] .card { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 16px 30px -16px rgba(15, 23, 41, 0.5); }

/* ---------------------------------------------------------------- PDP */
html[data-theme='light'] .gal-main { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 24px 40px -28px rgba(15, 23, 41, 0.5); }
html[data-theme='light'] .stars { background: linear-gradient(90deg, var(--gold) calc(var(--r) / 5 * 100%), rgba(15, 23, 41, 0.16) 0); }
html[data-theme='light'] .checks li::before { background-color: rgba(22, 163, 74, 0.12); }
html[data-theme='light'] .offer { background: #FFFFFF; box-shadow: 0 0 0 1.5px rgba(31, 143, 255, 0.55) inset, 0 12px 24px -16px rgba(31, 143, 255, 0.5); }
html[data-theme='light'] .offer-name em { background: rgba(22, 119, 232, 0.1); }

/* ---------------------------------------------------------------- authority */
html[data-theme='light'] .authority { background: var(--bg); }
html[data-theme='light'] .authority::before {
  background: linear-gradient(180deg, rgba(244, 246, 249, 0.35) 0%, rgba(244, 246, 249, 0) 20%, rgba(244, 246, 249, 0) 38%, rgba(244, 246, 249, 0.92) 60%, var(--bg) 68%);
}
html[data-theme='light'] .facts li { border-top-color: rgba(15, 23, 41, 0.12); }

/* ---------------------------------------------------------------- reviews */
html[data-theme='light'] .rev { box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.07) inset, 0 14px 30px -20px rgba(15, 23, 41, 0.45); }
html[data-theme='light'] .rev figure { background-color: #E3E7EE; }
html[data-theme='light'] .rev-badge { color: #fff; }
html[data-theme='light'] .rev-dots i { background: rgba(15, 23, 41, 0.18); }
html[data-theme='light'] .rev-dots i.is-on { background: var(--blue); }
html[data-theme='light'] .gal-thumbs button { background: rgba(242, 245, 250, 0.5); }

/* ---------------------------------------------------------------- sticky bar, drawers */
html[data-theme='light'] .sticky-cta {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.08), 0 16px 36px -12px rgba(15, 23, 41, 0.35);
}
html[data-theme='light'] .scrim { background: rgba(15, 23, 41, 0.35); }

/* ---------------------------------------------------------------- the card sheet (js/checkout.js) */
html[data-theme='light'] .gsi-sheet.is-on { background: rgba(15, 23, 41, 0.4); }
html[data-theme='light'] .gsi-sheet-panel { background: var(--bg); }
html[data-theme='light'] .gsi-sheet-title b { color: var(--ink); }
html[data-theme='light'] .gsi-sheet-x { color: var(--ink); background: rgba(15, 23, 41, 0.06); }
html[data-theme='light'] .gsi-sheet-foot { background: linear-gradient(180deg, rgba(244, 246, 249, 0), var(--bg) 22%); }
html[data-theme='light'] .gsi-checkout .gsi-alt { color: var(--ink); background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15, 23, 41, 0.18) inset; }
html[data-theme='light'] .gsi-checkout .gsi-field span { color: #3B4456; }
html[data-theme='light'] .gsi-checkout .gsi-field input { color: var(--ink); background: #FFFFFF; border-color: #D5DBE5; }
html[data-theme='light'] .gsi-checkout .gsi-field input::placeholder { color: #8A94A8; }

/* Hero fault cards on the light page: dark dots, white cards. */
html[data-theme='light'] .hero-dots button { background: rgba(4, 7, 26, 0.2); }
html[data-theme='light'] .hero-dots button[aria-current='true'] { background: #1F8FFF; }
html[data-theme='light'] .hero-slide { --card-bg: #FFFFFF; --card-line: rgba(4, 7, 26, 0.1); background: #FFFFFF; box-shadow: 0 20px 44px -28px rgba(4, 7, 26, 0.4); }
html[data-theme='light'] .hero-count { background: rgba(4, 7, 26, 0.55); color: #fff; }
