/* TSAR site, light theme taken from scepter.wine and the SCEPTER decks.
   Loaded last on every page: it redefines the old dark tokens, so pages that
   still carry their own dark CSS pick up the light look. */
:root {
  --bg: #ffffff; --bg-2: #ffffff;
  --surface: #f4f2fa; --surface-2: #ece8f7;
  --paper: #ffffff; --panel: #f4f2fa;
  --purple: #5b2db8; --purple-bright: #5b2db8; --accent-dark: #4a2396;
  --indigo-glow: rgba(91, 45, 184, 0.18);
  --gold: #5b2db8; --gold-bright: #4a2396; --gold-deep: #e0a800;
  --gold-soft: rgba(91, 45, 184, 0.08); --gold-glow: rgba(91, 45, 184, 0.28);
  --badge: #e0a800;
  --ink: #14102a; --ink-muted: #4a4560; --ink-subtle: #6e6887;
  --hairline: #e6e3ee; --hairline-2: #d6d1e4; --line: #e6e3ee;
  --grid-line: transparent;
  --maxw: 1160px; --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: #fff; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
body {
  background: #fff; color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-weight: 400; line-height: 1.6; letter-spacing: 0;
}
body::before, body::after { content: none !important; display: none !important; }
h1, h2, h3, h4 { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); }
::selection { background: rgba(91, 45, 184, 0.16); color: var(--ink); }
.accent { color: var(--purple); }
.text-glow { text-shadow: none; }

/* ---------- eyebrow ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); gap: 0; }
.eyebrow .dot { display: none; }

/* ---------- buttons ---------- */
.btn {
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0;
  padding: 14px 26px; border-radius: 12px; box-shadow: none; backdrop-filter: none; will-change: auto;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(91, 45, 184, 0.7); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--hairline-2); backdrop-filter: none; }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); background: #fff; transform: translateY(-1px); }
.btn-pilot { border-color: var(--hairline-2); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.eu-badge { color: var(--purple); background: var(--gold-soft); border: 1px solid rgba(91, 45, 184, 0.25); font-size: 10px; letter-spacing: 0.1em; }
.cta-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-note { font-size: 12.5px; letter-spacing: 0; color: var(--ink-subtle); }
.cta-glow::before { display: none; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
header.scrolled { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-muted); position: relative; transition: color 0.2s; }
.nav-links a::after { background: var(--purple); height: 2px; bottom: -6px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-textlink { font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink-muted); }
.nav-textlink:hover { color: var(--purple); }
.logo {
  font-family: 'Inter', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 0.34em; padding-left: 0.34em;
  color: var(--ink); display: inline-flex; align-items: center; text-shadow: none;
}
.logo:hover { text-shadow: none; color: var(--purple); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- footer ---------- */
footer { margin-top: 80px; border-top: 1px solid var(--hairline); padding: 44px 0 36px; background: #fff; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.foot .logo { font-size: 17px; }
.foot-meta { font-size: 13.5px; color: var(--ink-subtle); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 14px; color: var(--ink-muted); }
.foot-links a:hover { color: var(--purple); }

/* ---------- sticky mobile bar ---------- */
.sticky-cta { background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--hairline-2); }
.sticky-cta a { font-family: 'Inter', sans-serif; font-weight: 600; }
.sticky-cta .s-calc { background: var(--purple); color: #fff; }
.sticky-cta .s-pilot { color: var(--purple); border-left: 1px solid var(--hairline-2); }

/* ---------- language dropdown (CSS injected by i18n.js uses the tokens) ---------- */
.lang-dd-btn { color: var(--ink); background: #fff; border-color: var(--hairline-2); }
.lang-dd .flag { box-shadow: inset 0 0 0 1px rgba(20, 16, 42, 0.14); }
.lang-dd-menu { background: #fff; box-shadow: 0 20px 50px -24px rgba(20, 16, 42, 0.35); }
.lang-dd-menu button:hover { background: var(--panel); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20, 16, 42, 0.82); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: #fff; color: var(--ink); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  header.menu-open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 24px 22px; background: #fff; border-bottom: 1px solid var(--hairline); }
  header.menu-open .nav-links a { padding: 10px 0; width: 100%; }
}
@media (max-width: 760px) {
  .nav-cta .nav-textlink, .nav-cta .btn-primary { display: none; }
  .nav-cta { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- legacy pages ---------- */
.lock-overlay { background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,255,255,0.72), rgba(255,255,255,0.94)) !important; }
.charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .charts { grid-template-columns: minmax(0, 1fr); } }
