/* Nerd Battles – webbplats. Bygger på appens "Arena"-look: nattsvart bas,
   limegrön signalfärg, Archivo Expanded för rubriker och Chakra Petch för HUD. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/fonts/chakra-petch-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra Petch';
  src: url('/fonts/chakra-petch-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-2: #0b0e15;
  --panel: #11151e;
  --panel-2: #171c28;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --soft: #c3c9d6;
  --muted: #8a92a6;
  --dim: #5d6478;
  --lime: #c6ff3d;
  --on-lime: #0b0e05;
  --violet: #8b6dff;
  --hot: #ff3d7f;
  --ok: #26e08f;
  --no: #ff4a5c;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --hud: 'Chakra Petch', ui-monospace, monospace;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Finkornigt brus så att svart inte blir platt */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #e1ff9a; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--on-lime); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.hud {
  font-family: var(--hud);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

/* ---------- Sidhuvud ---------- */
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.mark:hover { color: var(--text); }
.mark .glyph {
  width: 22px;
  height: 22px;
  flex: none;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
  position: relative;
}
.mark .glyph::after {
  content: '';
  position: absolute;
  left: 6px; top: 6px;
  width: 6px; height: 6px;
  background: var(--bg);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav .lang {
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
@media (max-width: 600px) { .nav .wide { display: none; } }

/* ---------- Knappar ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  font: 600 0.82rem/1 var(--hud);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 4px 0 #8fbf1f, 0 18px 40px -18px rgba(198, 255, 61, 0.6);
}
.btn-primary:hover { background: #d4ff6b; color: var(--on-lime); }
.btn-primary[aria-disabled='true'] { cursor: default; }
.btn-primary[aria-disabled='true']:active { transform: none; }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.btn-line:hover { color: var(--text); background: var(--panel); }
.soon {
  font-size: 0.62rem;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--on-lime);
  color: var(--lime);
  letter-spacing: 0.12em;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  /* rutnätet från appens spelplan, tonat mot botten */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
}
.eyebrow { color: var(--lime); display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.18); }
.hero h1 { font-size: clamp(2.5rem, 7.6vw, 5.4rem); margin: 0 0 24px; }
.hero h1 .hl { color: var(--lime); }
.hero h1 .thin { font-weight: 300; font-stretch: 100%; color: var(--soft); text-transform: none; letter-spacing: -0.02em; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--soft); max-width: 34em; margin: 0 0 32px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.facts li { padding: 14px 0 0; margin-right: 32px; color: var(--muted); }
@media (max-width: 420px) { .facts li { margin-right: 20px; } .facts li b { font-size: 1.25rem; } }
.facts li b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--text); letter-spacing: 0; text-transform: none; }

/* ---------- Telefon ---------- */
.phone {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #262c3a, #0d1017 40%, #1a1f2b);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 120px -50px var(--glow, rgba(198, 255, 61, 0.45));
}
.screen {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #11122a 0%, var(--bg) 45%);
  padding: 18px 16px 18px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.notch { width: 92px; height: 24px; border-radius: 14px; background: #000; margin: -6px auto 14px; }
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.screen-top .ic {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--soft);
}
.screen-top .ic svg { width: 16px; height: 16px; }
.screen-top strong { font-weight: 700; font-size: 0.95rem; }

/* Matchtavlan */
.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1f30, #121621);
  border: 1px solid var(--line-2);
  margin-bottom: 12px;
}
.player { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 0.82rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1rem;
  background: var(--lime); color: var(--on-lime);
}
.avatar.them { background: #e85bf0; color: #1c0420; }
.score .vs { display: flex; align-items: center; gap: 10px; }
.score b {
  font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: 2.1rem; min-width: 1.6ch; text-align: center;
  font-variant-numeric: tabular-nums;
}
.score .vs span { color: var(--muted); background: var(--panel-2); padding: 3px 6px; font-size: 0.6rem; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rounds li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  transition: border-color 0.3s, background 0.3s;
}
.rounds li.played { border-style: solid; border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
.rounds li.now {
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  box-shadow: inset 3px 0 0 var(--c);
}
.pips { display: flex; gap: 4px; }
.pips.theirs { justify-content: flex-end; }
.pips i { width: 13px; height: 13px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); transition: background 0.25s, transform 0.25s; }
.pips i.ok { background: var(--ok); }
.pips i.no { background: var(--no); }
.played .pips i { transform: scale(1); }
.mid { display: grid; justify-items: center; gap: 3px; }
.mid small { font: 600 0.58rem/1 var(--hud); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mid .cat {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--dim);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.played .mid .cat { color: var(--c); border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.result-tag {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.result-tag span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--on-lime);
}
[data-board].done .result-tag { opacity: 1; transform: none; }

/* ---------- Frågeremsa ---------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; animation: tick 90s linear infinite; padding: 16px 0; }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; padding-right: 40px; color: var(--soft); font-size: 0.95rem; }
.ticker-track span [data-icon] { color: var(--c); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sektioner ---------- */
.sect { padding: 88px 0; }
.sect + .sect { border-top: 1px solid var(--line); }
.sect-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.sect-head .hud { color: var(--muted); }
.sect-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin: 0; }
.sect-head p { margin: 0; color: var(--soft); font-size: 1.08rem; }

/* Arenorna som en lobbylista */
.lobby { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.arena-row {
  --c: var(--lime);
  display: grid;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 900px) {
  .arena-row { grid-template-columns: 330px minmax(0, 1fr) 190px; gap: 40px; align-items: start; }
}
.arena-row h3 {
  margin: 0;
  font-family: var(--display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  text-transform: uppercase; line-height: 1;
  overflow-wrap: anywhere;
  color: var(--c);
}
.arena-row .state { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font: 600 0.66rem/1.2 var(--hud); letter-spacing: 0.14em; text-transform: uppercase;
}
.chip.on { color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.chip.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.arena-row p { margin: 0 0 16px; color: var(--soft); max-width: 36em; }
.icons { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
.icons li {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
}
.icons [data-icon] { color: var(--c); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 5px 10px; border-radius: 8px; background: var(--panel); color: var(--soft); font-size: 0.85rem; }
.stat { display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .hud { color: var(--muted); }
.arena-row.next h3 { color: var(--text); }
.arena-row.next { --c: var(--muted); }

/* Anatomi: frågeskärm + förklaringar */
.anatomy { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .anatomy { grid-template-columns: 380px minmax(0, 1fr); gap: 72px; } }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: n; }
.notes li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.notes li::before {
  content: counter(n, upper-alpha);
  grid-row: span 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--lime);
  color: var(--lime);
  font: 600 0.8rem/1 var(--hud);
}
.notes h3 { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; }
.notes p { margin: 0; color: var(--soft); }

/* Frågeskärmen (stillbild och provrunda) */
.qs { --c: #ffd84d; flex: 1; display: flex; flex-direction: column; }
.qs-hud { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.q-cat { display: inline-flex; align-items: center; gap: 7px; color: var(--c); }
.q-cat svg { flex: none; }
.q-time { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 20px; }
.q-time i { display: block; height: 100%; background: var(--c); transform-origin: left; border-radius: 3px; }
.q-text {
  font-weight: 700; font-size: 1.22rem; line-height: 1.3;
  margin: 0 0 20px; min-height: 4.2em;
  text-wrap: balance;
}
.q-answers { display: grid; gap: 8px; }
.q-answers button, .q-answers span {
  display: block; width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #161b27, #11151e);
  color: var(--text);
  font: 600 0.95rem/1.3 var(--body);
  text-align: left;
  box-shadow: 0 3px 0 #090b10;
}
.q-answers button { cursor: pointer; transition: transform 0.1s, border-color 0.15s; }
.q-answers button:not(:disabled):hover { border-color: color-mix(in srgb, var(--c) 70%, transparent); }
.q-answers button:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #090b10; }
.q-answers button:disabled { cursor: default; }
.q-answers .right { background: color-mix(in srgb, var(--ok) 22%, #0f1a14); border-color: var(--ok); color: #eafff4; }
.q-answers .wrong { background: color-mix(in srgb, var(--no) 20%, #1a0f11); border-color: var(--no); color: #ffeef0; }
.q-answers button:disabled:not(.right):not(.wrong) { opacity: 0.45; }
.q-why {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border-left: 3px solid var(--c);
  font-size: 0.88rem;
  color: var(--soft);
}
.q-why b { display: block; margin-bottom: 3px; color: var(--text); }
.q-why .hud { color: var(--c); font-size: 0.62rem; display: block; margin-bottom: 4px; }
.q-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-pips { display: flex; gap: 5px; }
.q-pips i { width: 16px; height: 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); }
.q-pips i.ok { background: var(--ok); }
.q-pips i.no { background: var(--no); }
.q-next {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--lime); color: var(--on-lime);
  font: 600 0.72rem/1 var(--hud); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 3px 0 #8fbf1f;
}
.q-result { display: none; flex: 1; flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 20px 8px; }
.q-result b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3rem; text-transform: uppercase; line-height: 1; color: var(--lime); }
.q-msg { color: var(--soft); }
.q-result .btn { justify-content: center; margin-top: 12px; }
.q-play { display: flex; flex-direction: column; flex: 1; }
[data-quiz].over .q-play { display: none; }
[data-quiz].over .q-result { display: flex; }

/* Frågebanken */
.bank { display: grid; gap: 48px; }
@media (min-width: 960px) { .bank { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 0.92rem; }
.bars [data-icon] { color: var(--c); }
.bars .bar { position: relative; height: 26px; display: flex; align-items: center; }
.bars .bar::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-right: 2px solid var(--c);
}
.bars .bar span { position: relative; padding-left: 10px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .n { text-align: right; font-family: var(--hud); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.process li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.process li .hud { color: var(--lime); padding-top: 3px; }
.process li p { margin: 0; color: var(--soft); }
.process li b { color: var(--text); }
.total { margin: 18px 0 0; color: var(--muted); }
.total b { color: var(--text); }

/* Avslutande uppmaning */
.cta {
  padding: 96px 0;
  text-align: left;
  background:
    radial-gradient(600px 260px at 15% 100%, rgba(198, 255, 61, 0.1), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2rem, 6vw, 4.2rem); margin: 0 0 18px; max-width: 14em; }
.cta p { color: var(--soft); margin: 0 0 30px; max-width: 36em; }

/* ---------- Textsidor ---------- */
.doc { max-width: 720px; padding: 56px 0 88px; }
.doc .hud { color: var(--lime); }
.doc h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 14px 0 12px; }
.doc .meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 28px; }
.doc h2 { font-size: 1.15rem; margin: 2.4rem 0 0.6rem; font-weight: 700; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--dim); }
.doc strong { color: var(--text); }
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--lime);
}
.callout p { margin: 0.35rem 0; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: 14px;
  font: 600 1.3rem/1 var(--hud); color: var(--lime);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* ---------- Sidfot ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h4 { margin: 0 0 12px; color: var(--muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .about { color: var(--muted); font-size: 0.9rem; max-width: 30em; margin: 14px 0 0; }
.colophon {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--dim); font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
