/* ==========================================================================
   site.css - shared design system
   Brand: Commissioner (Greek + Latin), Sea-blue #0f4c6e, Terracotta #d4703a
   Shape system: banner/panels 20, cards 14, buttons 12, tags 8
   Theme lock: auto (prefers-color-scheme), tokens only, both modes tested
   ========================================================================== */

/* ---------- Typeface ---------- */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/commissioner-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/commissioner-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f8fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #122b3a;
  --muted: #4d6371;
  --line: #dfe5ec;
  --line-strong: #c6d2dc;
  --ink: #0f2533;
  --accent: #0f4c6e;
  --accent-hover: #0c3f5c;
  --accent-soft: rgba(15, 76, 110, 0.06);
  --accent2: #d4703a;
  --accent2-text: #a34e1f;
  --link: #145982;
  --btn-text: #ffffff;
  --card-shadow: 0 1px 2px rgba(18, 43, 58, 0.05), 0 6px 20px -6px rgba(18, 43, 58, 0.08);
  --shadow-float: 0 2px 4px rgba(18, 43, 58, 0.06), 0 18px 44px -18px rgba(18, 43, 58, 0.22);
  --footer-bg: #0e1f29;
  --badge-win-bg: #e4f3ea;
  --badge-win-text: #196b3c;
  --badge-loss-bg: #fbe9e7;
  --badge-loss-text: #b3251f;
  --badge-info-bg: #e7effb;
  --badge-info-text: #2458a8;
  --container-max: 1240px;
  --container-narrow: 860px;
  --r-panel: 20px;
  --r-card: 14px;
  --r-btn: 12px;
  --r-tag: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a131a;
    --bg-alt: #0f1c24;
    --surface: #13222b;
    --text: #eaf1f6;
    --muted: #9cb1c0;
    --line: #1f3441;
    --line-strong: #2c4757;
    --ink: #0c1a22;
    --accent: #7cc4e4;
    --accent-hover: #a8d8ee;
    --accent-soft: rgba(124, 196, 228, 0.08);
    --accent2: #eda272;
    --accent2-text: #f0a36b;
    --link: #8ccbe9;
    --btn-text: #0a131a;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 2px 6px rgba(0, 0, 0, 0.4), 0 22px 48px -18px rgba(0, 0, 0, 0.55);
    --footer-bg: #0a141b;
    --badge-win-bg: #143726;
    --badge-win-text: #8fd3a8;
    --badge-loss-bg: #3d1a18;
    --badge-loss-text: #f59085;
    --badge-info-bg: #1c3050;
    --badge-info-text: #96bcf8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* rem base so the accessibility widget's text-size scaling applies to body copy */
  font: 1.03125rem/1.68 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2.5px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Containers & sections ---------- */
.wrap { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-alt + .section-alt { border-top: 1px solid var(--line); }
.section-hero {
  padding: 76px 0 84px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .section-hero { padding: 48px 0 60px; }
}

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.032em;
  font-weight: 720;
}
h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 680;
  letter-spacing: -0.022em;
}
h3 { font-size: 1.22rem; line-height: 1.35; margin: 22px 0 10px; font-weight: 640; }
p, li { color: var(--text); }

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2-text);
  margin-bottom: 16px;
}
.section-header { max-width: 760px; margin-bottom: 52px; }
.section-header p { font-size: 1.13rem; color: var(--muted); max-width: 62ch; margin: 10px 0 0; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.section-header-row .section-header { margin-bottom: 0; }
.section-more { margin: 30px 0 0; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
@media (max-width: 460px) { .hero-cta .btn { width: 100%; } }

.lead { font-size: 1.17rem; color: var(--muted); line-height: 1.62; max-width: 58ch; margin: 0 0 28px; }
.small { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Text link ---------- */
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.text-link {
  color: var(--link);
  font-weight: 640;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-link .arrow { display: inline-block; transition: transform 0.18s ease; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
@supports (backdrop-filter: blur(8px)) {
  header {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(12px) saturate(1.35);
  }
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
  position: relative;
}
header .brand picture, header .brand img { height: 38px; width: auto; display: block; }
header nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 560; padding: 6px 0; transition: color 0.15s ease; }
header nav a:hover, header nav a.active { color: var(--accent2-text); }
header nav a.nav-cta {
  background: var(--accent);
  color: var(--btn-text);
  padding: 10px 20px;
  border-radius: var(--r-btn);
  font-weight: 680;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
header nav a.nav-cta:hover { background: var(--accent-hover); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 45%, transparent); }
header nav a.nav-cta:active { transform: translateY(1px); }

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 27px; }
.nav-open .nav-toggle::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  header nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: var(--shadow-float);
    padding: 10px 24px 20px;
    gap: 4px;
    z-index: 99;
  }
  header.nav-open nav { display: flex; }
  header nav a { font-size: 16.5px; padding: 10px 0; width: 100%; }
  header nav a.nav-cta { width: 100%; text-align: center; margin-top: 8px; }
}
@media (min-width: 901px) {
  header.nav-open nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--btn-text);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  font-weight: 680;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 3px rgba(18, 43, 58, 0.1);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 2px rgba(18,43,58,0.08); }
.btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease;
  flex: 0 0 auto;
  margin-right: -8px;
}
.btn:hover .btn-arrow { transform: translateX(3px); background: rgba(255, 255, 255, 0.24); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(18, 43, 58, 0.05);
}
.btn-secondary:hover { border-color: var(--muted); background: var(--bg); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn-block { display: flex; width: 100%; text-align: center; }
button.btn { font-family: inherit; }

/* On dark banners: white primary, outlined ghost */
.banner-strip .btn {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
}
.banner-strip .btn:hover { background: var(--bg); transform: translateY(-1px); }
.banner-strip .btn .btn-arrow { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.banner-strip .btn:hover .btn-arrow { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.banner-strip .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.banner-strip .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.banner-strip .btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.42); box-shadow: none; }
.banner-strip .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.banner-strip a:not(.btn):not(.chip-mail) { color: #ffffff; text-decoration: underline; }

/* ---------- Cards, grids, badges, tables ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.card-hover:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-float); }
.card h2, .card h3 { margin-top: 0; }
.card-highlight { border-top: 4px solid var(--accent2); }

.grid { display: grid; gap: 24px; margin: 24px 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.badge {
  display: inline-block;
  padding: 4.5px 12px;
  border-radius: var(--r-tag);
  font-size: 13px;
  font-weight: 660;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge-win { background: var(--badge-win-bg); color: var(--badge-win-text); }
.badge-loss { background: var(--badge-loss-bg); color: var(--badge-loss-text); }
.badge-info { background: var(--badge-info-bg); color: var(--badge-info-text); }

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 15px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) th {
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  }
}
td small { color: var(--muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: color-mix(in srgb, var(--accent) 3%, transparent); }

/* Scroll-hint for wide tables (no fake precision; plain affordance) */
.table-scroll-note { margin: -14px 0 0 4px; font-size: 13px; color: var(--muted); }

/* ---------- Notices & banners ---------- */
.notice {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  padding: 18px 24px;
  margin: 0 0 52px;
  font-size: 15.5px;
}
.notice p { margin: 6px 0; color: var(--muted); }
.notice strong { color: var(--text); }
.notice .notice-line { margin: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice { background: color-mix(in srgb, var(--accent) 8%, var(--bg-alt)); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
}

.banner-strip {
  background: radial-gradient(120% 150% at 88% -12%, color-mix(in srgb, var(--accent2) 32%, transparent) 0%, color-mix(in srgb, var(--accent2) 0%, transparent) 46%), var(--ink);
  color: #ffffff;
  border-radius: var(--r-panel);
  padding: 60px 40px;
  text-align: center;
  margin: 24px 0 8px;
  box-shadow: 0 34px 64px -34px rgba(12, 26, 34, 0.55);
}
.banner-strip h2 { color: #ffffff; font-size: clamp(1.55rem, 2.9vw, 2.2rem); margin-bottom: 12px; letter-spacing: -0.024em; }
.banner-strip p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin: 0 auto 28px; font-size: 1.1rem; }
.banner-cta { justify-content: center; margin: 0 0 18px; }

/* Jump-link pill rail (long reference pages) */
.chip-rail { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.chip-rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chip-rail a:hover { border-color: var(--accent); color: var(--accent-hover); transform: translateY(-1px); }

section[id] { scroll-margin-top: 96px; }
.banner-strip .small { color: rgba(255, 255, 255, 0.66); }
.banner-strip .small a { color: rgba(255, 255, 255, 0.92); }
.banner-strip .small a:hover { color: #ffffff; }
@media (max-width: 600px) {
  .banner-strip { padding: 44px 22px; }
  .banner-strip .banner-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .banner-strip .banner-cta .btn,
  .banner-strip .banner-cta .chip-mail { width: 100%; padding: 13px 18px; font-size: 15px; justify-content: center; white-space: nowrap; }
}

/* ---------- Email chip ---------- */
.chip-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 620;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(18, 43, 58, 0.06);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.chip-mail:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--card-shadow); }
.chip-mail .chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent2);
  flex: 0 0 auto;
}
.banner-strip .chip-mail {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.banner-strip .chip-mail:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Sticky mobile CTA bar ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }
.cta-bar.is-visible { transform: translateY(0); }
.cta-bar .btn { flex: 1; padding: 13px 20px; font-size: 16px; }
.cta-bar .btn .btn-arrow { display: none; }
@media (min-width: 761px) { .cta-bar { display: none; } }

/* ---------- Reveal on scroll (progressive enhancement; visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .js .reveal.reveal-in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.07s; }
  .js .reveal-d2 { transition-delay: 0.14s; }
  .js .reveal-d3 { transition-delay: 0.21s; }
}

/* ---------- Quiz system (elegxos) ---------- */
.quiz-shell { display: grid; grid-template-columns: 292px 1fr; gap: 40px; align-items: start; margin-top: -8px; }
@media (max-width: 1000px) { .quiz-shell { grid-template-columns: 1fr; gap: 20px; } }

.quiz-rail { position: sticky; top: 96px; }
@media (max-width: 1000px) { .quiz-rail { display: none; } }

.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 24px 22px 26px;
  box-shadow: var(--card-shadow);
}
.rail-title { font-size: 13px; font-weight: 740; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 16px; }
.rail-steps { list-style: none; margin: 0; padding: 0; }
.rail-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rail-steps li:last-child { border-bottom: none; }
.rail-step-dot {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-variant-numeric: tabular-nums;
}
.rail-steps li.is-current .rail-step-dot {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 750;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rail-steps li.is-current .rail-step-dot { color: var(--accent-hover); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
}
.rail-steps li.is-done .rail-step-dot { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }
.rail-steps li.is-done .rail-step-label { color: var(--text); }
.rail-step-label { font-size: 14.5px; font-weight: 620; color: var(--muted); padding-top: 4px; line-height: 1.35; }

.rail-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-tag);
  background: color-mix(in srgb, var(--accent2) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent2) 18%, transparent);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.rail-note strong { color: var(--accent2-text); }

/* Compact progress (mobile) */
.quiz-progress-mobile {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 1000px) {
  .quiz-progress-mobile { display: flex; }
}
.qpm-count { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qpm-dots { display: flex; gap: 6px; flex: 1; }
.qpm-dots span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.qpm-dots span.is-past, .qpm-dots span.is-current { background: var(--accent); }
.qpm-dots span.is-current { background: var(--accent2); }

/* Quiz card & options */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 40px 44px;
  box-shadow: var(--card-shadow);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 680px) { .quiz-card { padding: 26px 20px; min-height: 0; } }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: step-in 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { .quiz-step.active { animation: none; } }
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.quiz-step h2 { margin-top: 0; }
.quiz-step .quiz-lead { color: var(--muted); font-size: 1.06rem; margin: 0 0 8px; max-width: 58ch; }
.quiz-group-label { font-size: 15px; font-weight: 720; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 30px 0 10px; }
.quiz-group-label:first-of-type { margin-top: 26px; }

.quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  padding: 15px 18px;
  margin: 8px 0;
  cursor: pointer;
  font-size: 15.5px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .quiz-opt:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(18, 43, 58, 0.14); }
}
.quiz-opt input { margin: 0; align-self: center; }
.quiz-opt:active { transform: translateY(0); }

/* Custom radio / checkbox */
.quiz-opt input[type="radio"], .quiz-opt input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 0;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.quiz-opt input[type="radio"] { border-radius: 50%; }
.quiz-opt input[type="checkbox"] { border-radius: 6px; }
.quiz-opt input[type="radio"]:hover, .quiz-opt input[type="checkbox"]:hover { border-color: var(--accent); }
.quiz-opt input[type="radio"]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0%, var(--accent) 45%, transparent 52%);
}
.quiz-opt input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
}
.quiz-opt input[type="radio"]:checked ~ * { }
.quiz-opt.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.quiz-opt.selected strong { color: var(--text); }

.quiz-error {
  display: none;
  margin: 14px 0 0;
  padding: 11px 16px;
  border-radius: var(--r-tag);
  background: var(--badge-loss-bg);
  color: var(--badge-loss-text);
  border: 1px solid color-mix(in srgb, var(--badge-loss-text) 22%, transparent);
  font-size: 14.5px;
  font-weight: 600;
}
.quiz-error.is-visible { display: block; animation: step-in 0.25s ease; }

.quiz-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.quiz-nav .spacer { flex: 1; }
.quiz-nav .btn { padding: 13px 24px; }
.quiz-hint { font-size: 13.5px; color: var(--muted); }

/* Result */
.result-badge-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 36px 0 0; }
.result-badge, .result-badge-row .badge { font-size: 15.5px; padding: 8px 18px; letter-spacing: 0.02em; }
#riskGauge { flex: 0 1 280px; min-width: 180px; }
.gauge { display: flex; gap: 5px; flex: 0 1 300px; }
.gauge span {
  height: 10px;
  border-radius: 5px;
  flex: 1;
  background: var(--line);
  transition: background 0.3s ease;
}
.gauge .seg-active-low { background: var(--badge-win-text); }
.gauge .seg-active-mid { background: var(--badge-info-text); }
.gauge .seg-active-high { background: var(--badge-loss-text); }
.gauge-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 640; margin: 6px 0 26px; max-width: 300px; }
.result-block { margin: 30px 0; }
#riskDetailsCard ul, .result-steps { margin: 10px 0 0; padding-left: 20px; }
#riskDetailsCard ul li, .result-steps li { margin-bottom: 8px; color: var(--muted); }
.result-steps li strong { color: var(--text); }
#stepResult h2 + .result-badge-row { margin-top: 10px; }

/* Reassurance chips on quiz hero */
.quiz-chips { gap: 10px; }
.quiz-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 640;
  color: var(--muted);
}
.quiz-chip:before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--badge-win-text);
}
.quiz-hero-note { margin: 34px 0 0; }

/* Compact option grids */
.quiz-opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-opt-grid .quiz-opt { margin: 0; }
.quiz-opt-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .quiz-opt-grid, .quiz-opt-grid-2 { grid-template-columns: 1fr; } }

/* Lead form extras */
.field-below { margin-top: 16px; }
.field-help-inline { font-weight: 480; color: var(--muted); font-size: 12.5px; }
.form-confirm {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-tag);
  background: var(--badge-win-bg);
  color: var(--badge-win-text);
  font-weight: 640;
  font-size: 14.5px;
}
.copy-btn {
  appearance: none;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 660;
  color: var(--link);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.copy-btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.copy-hint { font-size: 12px; font-weight: 560; color: var(--muted); }

/* Sticky bar clearance for quiz on small screens */
@media (max-width: 760px) {
  body:has(.quiz-card) { padding-bottom: 74px; }
}

/* Lead capture inside result */
.lead-form-card {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--r-panel);
  padding: 34px 36px;
  margin: 34px 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lead-form-card { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }
}
.lead-form-card h3 { margin-top: 0; font-size: 1.35rem; }
.lead-form-card > p { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 680; color: var(--text); }
.field input, .field textarea {
  font: inherit;
  font-size: 15.5px;
  padding: 12px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 62%, transparent); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field .field-help { font-size: 12.5px; color: var(--muted); }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-error { display: none; margin-top: 12px; color: var(--badge-loss-text); font-weight: 650; font-size: 14.5px; }
.form-error.is-visible { display: block; }
.form-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.form-alt a { color: var(--link); font-weight: 640; }

/* ---------- Footer ---------- */
footer {
  border-top: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  padding: 72px 0 48px;
  background: var(--footer-bg);
}
footer h3 { color: #ffffff; }
footer p, footer li { color: rgba(255, 255, 255, 0.76); }
footer p.small, footer li.small { color: rgba(255, 255, 255, 0.64); }
footer p.small strong, footer li.small strong { color: rgba(255, 255, 255, 0.9); }
footer p strong { color: rgba(255, 255, 255, 0.94); }
footer a { color: rgba(255, 255, 255, 0.74); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-col h3 { font-size: 13px; font-weight: 720; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent2); }
.footer-brand-title, .footer-col:first-child h3 { display: block; margin: 0 0 16px; font-size: 16px; font-weight: 740; color: #fff; letter-spacing: 0.01em; text-transform: none; }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.56);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.82); }
/* ==========================================================================
   Cookie consent banner (js/gdpr.js) — same tool as bizradio.gr, retokened
   ========================================================================== */
.cookie-banner-glass {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 22px;
  z-index: 9600;
  box-shadow: var(--shadow-float);
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .cookie-banner-glass {
    left: auto;
    right: 24px;
    max-width: 480px;
  }
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.cookie-text a {
  color: var(--link);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--btn-text);
  border: 1px solid var(--accent);
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--muted);
  border: none;
  padding-inline: 8px;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: var(--card-shadow);
}

.cookie-btn-reject:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-color: var(--accent);
}

.cookie-btn-settings:hover {
  color: var(--link);
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
  animation: modalScaleCookie 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-card h3 {
  font-size: 1.25rem;
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 700;
}

.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.cookie-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-option-info h4 {
  font-size: 0.9rem;
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 640;
}

.cookie-option-info p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--line-strong);
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .cookie-slider {
  background-color: var(--accent);
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

input:disabled + .cookie-slider {
  opacity: 0.4;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes slideUpCookie {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes modalScaleCookie {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Accessibility widget (js/accessibility.js) — Shadow-DOM panel, global overrides
   ========================================================================== */

/* FAB container: position lives here (not inline in JS) so the widget can be
   lifted above the mobile CTA bar via :has() */
#a11y-widget-container {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9800;
  width: 56px;
  height: 56px;
}

@media (max-width: 760px) {
  body:has(.cta-bar.is-visible) #a11y-widget-container {
    bottom: 92px;
  }
  body:has(.cta-bar.is-visible) .cookie-banner-glass {
    bottom: 92px;
  }
}

/* 1. HIGH CONTRAST MODE (WCAG AAA: black background, yellow text) */
.a11y-high-contrast *:not(.a11y-ignore) {
  background-color: #000000 !important;
  background-image: none !important;
  color: #FFFF00 !important;
  border-color: #FFFFFF !important;
  text-shadow: none !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}

.a11y-high-contrast p:not(.a11y-ignore),
.a11y-high-contrast span:not(.a11y-ignore),
.a11y-high-contrast li:not(.a11y-ignore),
.a11y-high-contrast td:not(.a11y-ignore) {
  color: #FFFFFF !important;
}

.a11y-high-contrast a:not(.a11y-ignore),
.a11y-high-contrast button:not(.a11y-ignore) {
  color: #FFFF00 !important;
  text-decoration: underline !important;
  outline: 2px solid #FFFF00 !important;
  outline-offset: 2px !important;
}

.a11y-high-contrast img {
  filter: contrast(150%) brightness(90%) !important;
}

/* 2. GRAYSCALE MODE */
html.a11y-grayscale {
  filter: grayscale(100%) !important;
}

/* 3. DYSLEXIA FRIENDLY READABLE FONT */
.a11y-readable-font *:not(.a11y-ignore) {
  font-family: 'Comic Sans MS', 'Comic Sans', Arial, sans-serif !important;
}

/* 4. HIGHLIGHT LINKS */
.a11y-highlight-links a:not(.a11y-ignore) {
  text-decoration: underline !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 3px !important;
  background-color: #FFFF00 !important;
  color: #000000 !important;
  font-weight: bold !important;
  outline: 2px solid #000000 !important;
  outline-offset: 1px !important;
  padding-inline: 4px !important;
  border-radius: 2px !important;
}

/* 5. LARGE CURSOR */
.a11y-large-cursor,
.a11y-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0,0 L0,46 L13,33 L26,58 L37,53 L24,28 L38,28 Z' fill='black' stroke='white' stroke-width='3'/%3E%3C/svg%3E"), auto !important;
}

/* 6. ENHANCED FOCUS INDICATOR */
.a11y-enhanced-focus :focus-visible {
  outline: 4px solid var(--accent2, #d4703a) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px var(--bg, #ffffff), 0 0 0 10px var(--accent2, #d4703a) !important;
}

/* 7. STOP ANIMATIONS (also kills the site's smooth scrolling) */
.a11y-stop-animations,
.a11y-stop-animations *,
html.a11y-stop-animations {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* 8. READING RULER GUIDE */
.a11y-reading-guide-bar {
  position: fixed;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: color-mix(in srgb, var(--accent2, #d4703a) 25%, transparent);
  border-top: 2px dashed var(--accent2, #d4703a);
  border-bottom: 2px dashed var(--accent2, #d4703a);
  pointer-events: none;
  z-index: 2147483647; /* max: overlays everything except it must remain usable */
  display: none;
  transform: translateY(-50%);
}

.a11y-reading-guide .a11y-reading-guide-bar {
  display: block;
}

/* 9. LINE HEIGHT INCREASE */
.a11y-line-height-increased p,
.a11y-line-height-increased li,
.a11y-line-height-increased span {
  line-height: 2.0 !important;
}

/* 10. LETTER SPACING INCREASE */
.a11y-letter-spacing-increased p,
.a11y-letter-spacing-increased li,
.a11y-letter-spacing-increased span,
.a11y-letter-spacing-increased h1,
.a11y-letter-spacing-increased h2,
.a11y-letter-spacing-increased h3 {
  letter-spacing: 0.15em !important;
}
