/*
 * faq.fibe.gg — single-page FAQ
 * "Phoenix Terminal" — phosphor green × signal gold on a warm olive-graphite
 * field. Shares the palette + type system of the why/whats/when/where family.
 */

:root {
  /* Brand — phosphor green, the living strand */
  --brand-50:  #f1fbe6;
  --brand-200: #c8f0a3;
  --brand-300: #abe87f;
  --brand-400: #92df62;
  --brand-500: #79d44e;
  --brand-600: #5cb43a;
  --brand-700: #46942e;
  --brand-800: #357424;

  /* Gold — the second strand of the helix */
  --gold-200: #f9e8a4;
  --gold-300: #f5da79;
  --gold-400: #eec854;
  --gold-500: #e2b33a;
  --gold-600: #c0952b;
  --gold-700: #99761f;

  /* Ember — phoenix fire, used sparingly */
  --ember-400: #f08760;
  --ember-500: #e26a44;

  /* Field — warm olive graphite. Not black, not white: console metal. */
  --ink-0:  #191c14;   /* deepest well */
  --ink-1:  #2e3327;   /* page base */
  --ink-2:  #252a1e;   /* recessed panel */
  --ink-3:  #20251a;   /* panel depth */
  --ink-4:  #434a35;   /* hairline */
  --ink-5:  #545c42;   /* strong line */
  --ink-6:  #757d5e;   /* etched glyphs */

  /* Text — warm bone */
  --fg-0:   #fdfbf0;
  --fg-1:   #f3f0e0;
  --fg-2:   #e5e2cf;
  --fg-3:   #c7c4ae;
  --fg-4:   #a19f89;
  --fg-5:   #918f7c;

  /* Layout */
  --maxw: 1180px;
  --readw: 760px;
  --pad-x: clamp(1.1rem, 4vw, 2.25rem);
  --nav-h: 56px;

  /* Type */
  /* Play carries the Cyrillic glyphs Chakra Petch lacks (the /uk/ locale). */
  --font-display: "Chakra Petch", "Play", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  /* Cheap, scrollable base: flat fill + faint etched grain. The expensive
     glow blooms live on a composited fixed layer below (body::before) so they
     never trigger a main-thread repaint while scrolling. */
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px),
    var(--ink-1);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient phosphor + gold glow blooms, anchored to the viewport. Promoted to
   its own GPU layer (translateZ) and painted once — composited on scroll
   instead of repainting the page every frame. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 22% -8%, color-mix(in srgb, var(--brand-700) 22%, transparent) 0%, transparent 60%),
    radial-gradient(760px 480px at 92% -2%, color-mix(in srgb, var(--gold-700) 16%, transparent) 0%, transparent 55%);
  transform: translateZ(0);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand-400); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-300); }

h1, h2, h3, h4 {
  color: var(--fg-1);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: color-mix(in srgb, var(--brand-500) 40%, transparent); color: var(--fg-0); }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--brand-500); color: var(--ink-0);
  padding: 0.5rem 0.9rem; border-radius: 4px; font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-600) 100%);
  color: var(--ink-0);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand-500) 70%, transparent);
}
.btn--primary:hover { background: linear-gradient(180deg, var(--brand-300) 0%, var(--brand-500) 100%); color: var(--ink-0); }
.btn--ghost {
  background: color-mix(in srgb, var(--ink-2) 60%, transparent);
  border-color: var(--ink-5);
  color: var(--fg-1);
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-200); background: color-mix(in srgb, var(--brand-500) 8%, transparent); }

/* ──────────────────────────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-0) 86%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--ink-4);
}
/* Thin phosphor seam under the bar — the console's powered-on line. */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--brand-500) 55%, transparent) 18%,
    color-mix(in srgb, var(--gold-400) 55%, transparent) 82%,
    transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem var(--pad-x);
  display: flex; align-items: center; gap: 0.75rem;
}
.nav__brand {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--fg-1);
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
}
.nav__brand:hover { color: var(--fg-1); }
.nav__mark {
  width: 28px; height: 28px; border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--ink-5);
}
.nav__word { color: var(--fg-1); }
.nav__slash { color: var(--ink-6); margin: 0 0.1rem; }
.nav__sub {
  color: var(--brand-400);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.04em;
}

.nav__family {
  display: flex; align-items: center; gap: 0.35rem;
  margin-left: auto;
}
.nav__family-link {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  transition: color 0.15s, background 0.15s;
}
.nav__family-link::before { content: "/"; color: var(--ink-6); margin-right: 0.18em; }
.nav__family-link:hover { color: var(--brand-200); background: color-mix(in srgb, var(--brand-500) 9%, transparent); }

.nav__lang {
  flex-shrink: 0;
  padding: 0.42rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-decoration: none !important;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav__lang:hover { color: var(--brand-200); background: color-mix(in srgb, var(--brand-500) 8%, transparent); }

.nav__cta {
  flex-shrink: 0;
  padding: 0.46rem 0.95rem;
  border: none;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 100%);
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav__cta:hover { background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-400) 100%); color: var(--ink-0); }

/* Hamburger toggle — visible on mobile only. */
.nav__toggle {
  display: none;
  flex-direction: column; gap: 4px;
  width: 40px; height: 40px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--ink-4);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle-bar { display: block; height: 2px; background: var(--fg-2); border-radius: 2px; transition: background 0.15s; }
.nav__toggle:hover .nav__toggle-bar { background: var(--brand-300); }

@media (max-width: 760px) {
  .nav__family, .nav__lang { display: none; } /* drawer carries them on mobile */
  .nav__toggle { display: inline-flex; }
  .nav__brand { margin-right: auto; }
  /* Mobile: drop the brand mark, leave only the "Fibe / faq" wordmark. */
  .nav .nav__mark { display: none; }
}

/* ── Mobile drawer ─────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink-0) 70%, transparent);
  backdrop-filter: blur(3px);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(82vw, 320px);
  background: var(--ink-2);
  border-left: 1px solid var(--ink-4);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.6);
  padding: 1rem var(--pad-x) 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  animation: drawerIn 0.22s ease;
}
@keyframes drawerIn { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.75rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--ink-4); }
.drawer__close {
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--ink-4); border-radius: var(--radius);
  color: var(--fg-2); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.drawer__close:hover { color: var(--brand-300); border-color: var(--brand-600); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  display: block; padding: 0.8rem 0.4rem;
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--fg-2); border-bottom: 1px solid var(--ink-3);
}
.drawer__link::before { content: "/ "; color: var(--ink-6); }
.drawer__link:hover { color: var(--brand-300); }
.drawer__lang {
  display: block; padding: 0.8rem 0; margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--fg-3); text-align: center;
  border-top: 1px solid var(--ink-4);
}
.drawer__lang:hover { color: var(--brand-200); }
.drawer__cta { margin-top: 0.6rem; text-align: center; }
body.is-drawer-open { overflow: hidden; }

/* ──────────────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--pad-x) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.hero__glow {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: min(680px, 92%); height: 320px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-500) 26%, transparent), transparent 72%);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-200);
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 32%, transparent);
  border-radius: 999px;
}
.hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 8px 1px var(--brand-400);
}
.hero__title {
  margin: 1.1rem 0 0;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--fg-0) 8%, var(--fg-3) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 1.15rem auto 0;
  max-width: 620px;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  color: var(--fg-3);
  line-height: 1.65;
}

/* Hero boot — the lone title powers on. */
.hero__title { animation: hero-boot 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes hero-boot {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title { animation: none; opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────────────────────
   QUERY TERMINALS — every FAQ is its own console. On scroll-in the
   question types as a command ($ …); an "Ask" button on the > _ prompt
   types out the answer. Progressive enhancement: with no JS the question
   and answer just render plainly. JS adds .is-enhanced and drives phases:
   (typing-q) → is-ready (> _ + Ask) → (typing-a) → is-open.
   ────────────────────────────────────────────────────────────────── */
.qterm {
  position: relative;
  border: 1px solid var(--ink-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
  overflow: hidden;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.26),
    0 18px 40px -28px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  transition: border-color 0.2s ease;
}
.qterm:hover { border-color: color-mix(in srgb, var(--brand-500) 30%, var(--ink-4)); }
/* Selected terminal (Tab or click to it) — ring + the ↵ Enter hint light up. */
.qterm:focus-within {
  outline: none;
  border-color: color-mix(in srgb, var(--brand-500) 55%, var(--ink-4));
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.26),
    0 0 0 1px color-mix(in srgb, var(--brand-500) 45%, transparent),
    0 0 22px -4px color-mix(in srgb, var(--brand-500) 38%, transparent);
}
.qterm__enter { display: none; margin-left: 0.5rem; color: var(--fg-5); }
.qterm:focus-within .qterm__enter { display: inline; color: var(--brand-300); }
.qterm__bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  background: color-mix(in srgb, var(--ink-0) 66%, transparent);
  border-bottom: 1px solid var(--ink-4);
}
.qterm__dots { display: inline-flex; gap: 0.34rem; }
.qterm__dots i { width: 9px; height: 9px; border-radius: 50%; }
.qterm__dots i:nth-child(1) { background: color-mix(in srgb, var(--ember-500) 72%, var(--ink-5)); }
.qterm__dots i:nth-child(2) { background: color-mix(in srgb, var(--gold-500) 72%, var(--ink-5)); }
.qterm__dots i:nth-child(3) { background: color-mix(in srgb, var(--brand-500) 72%, var(--ink-5)); }
.qterm__name { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--fg-4); }

.qterm__body {
  position: relative;
  padding: 1.05rem 1.2rem 1.2rem;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 4px);
}

/* Command line: $ Question */
.qterm__cmd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fg-0);
}
.qterm__prompt { color: var(--brand-300); font-weight: 700; }
.qterm__prompt--out { position: absolute; left: 0; top: 0; color: var(--gold-400); font-weight: 700; }
.qterm__q { color: var(--fg-0); }

/* Output: > answer (the > sits in a left gutter so multi-line output aligns) */
.qterm__out { position: relative; margin-top: 0.7rem; padding-left: 1.4ch; font-size: 0.95rem; line-height: 1.6; color: var(--fg-2); }
.qterm__typed { display: none; white-space: pre-wrap; color: var(--fg-2); }

/* Blinking caret */
.qterm__caret {
  display: none;
  width: 0.58ch; height: 1.02em;
  transform: translateY(0.16em);
  margin-left: 2px;
  background: var(--brand-400);
  animation: qterm-caret 1.05s steps(1) infinite;
}
@keyframes qterm-caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Confirm prompt: > show answer? [y/n] — terminal-native, no chunky button. */
.qterm__confirm { display: none; }
.qterm__ask-label { color: var(--fg-4); }
.qterm__keys { white-space: nowrap; }
.qterm__bracket,
.qterm__key-sep { color: var(--fg-5); }
.qterm__key {
  font: inherit;
  padding: 0 0.2ch;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.qterm__key--y { color: var(--brand-300); font-weight: 700; }
.qterm__key--y:hover,
.qterm__key--y:focus-visible {
  color: var(--brand-200);
  text-shadow: 0 0 10px color-mix(in srgb, var(--brand-400) 70%, transparent);
}
.qterm__key--n { color: var(--fg-4); }
.qterm__key--n:hover { color: var(--fg-2); }
.qterm__key:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; border-radius: 3px; }

/* Answer formatting */
.qterm__a { color: var(--fg-2); }
.qterm__a p { margin: 0 0 0.7rem; }
.qterm__a p:last-child { margin-bottom: 0; }
.qterm__a h4, .qterm__a h5, .qterm__a h6 {
  margin: 0.95rem 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.qterm__a > h4:first-child, .qterm__a > h5:first-child { margin-top: 0; }
.qterm__a ul { margin: 0.2rem 0 0.7rem; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.qterm__a li { position: relative; padding-left: 1.1rem; }
.qterm__a li::before { content: "–"; position: absolute; left: 0; color: var(--gold-400); }
.qterm__a strong { color: var(--fg-1); font-weight: 600; }
.qterm__a a {
  color: var(--brand-300);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--brand-500) 45%, transparent);
}
.qterm__a a:hover { color: var(--brand-200); text-decoration-color: var(--brand-300); }
.qterm__a code {
  font-family: var(--font-mono); font-size: 0.9em;
  padding: 0.05em 0.3em; border-radius: 4px;
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 18%, transparent);
  color: var(--brand-200);
}

/* ── Enhanced (JS) state machine ── */
.qterm.is-enhanced .qterm__out { display: none; }
.qterm.is-enhanced.is-ready .qterm__out,
.qterm.is-enhanced.is-dismissed .qterm__out,
.qterm.is-enhanced.is-typing-a .qterm__out,
.qterm.is-enhanced.is-open .qterm__out { display: block; }

.qterm.is-enhanced.is-typing-q .qterm__caret--q { display: inline-block; }
.qterm.is-enhanced.is-ready .qterm__caret--a,
.qterm.is-enhanced.is-typing-a .qterm__caret--a { display: inline-block; }

/* The > show answer? [y/n] confirm: shown when ready; dimmed (not gone) on n,
   so the answer is always one click on y away. */
.qterm.is-enhanced.is-ready .qterm__confirm,
.qterm.is-enhanced.is-dismissed .qterm__confirm { display: inline; }
.qterm.is-enhanced.is-dismissed .qterm__confirm { opacity: 0.4; }
.qterm.is-enhanced.is-typing-a .qterm__typed { display: inline; }

/* Answer source stays in the DOM for SR / crawlers; visually hidden until open. */
.qterm.is-enhanced .qterm__a {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.qterm.is-enhanced.is-open .qterm__a {
  position: static; width: auto; height: auto; margin: 0.15rem 0 0;
  overflow: visible; clip: auto; white-space: normal;
}
.qterm.is-enhanced.is-open .qterm__typed { display: none; }

@media (prefers-reduced-motion: reduce) {
  .qterm__caret { animation: none; }
}

/* ──────────────────────────────────────────────────────────────────
   FAQ ACCORDION
   ────────────────────────────────────────────────────────────────── */
.faq {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq__item {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
  border: 1px solid var(--ink-4);
  border-radius: var(--radius-lg);
  overflow: clip;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.faq__item:hover { border-color: var(--ink-5); }
.faq__item[open] {
  border-color: color-mix(in srgb, var(--brand-500) 45%, var(--ink-4));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand-500) 18%, transparent),
    0 14px 40px -22px color-mix(in srgb, var(--brand-700) 80%, transparent);
}
/* Left accent rail that lights up when open. */
.faq__item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--gold-400));
  opacity: 0;
  transition: opacity 0.25s;
}
.faq__item[open]::before { opacity: 1; }

.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: var(--fg-1);
  transition: color 0.15s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item:hover .faq__q { color: var(--fg-0); }
.faq__item[open] .faq__q { color: var(--brand-200); }
.faq__q-text { line-height: 1.35; }

.faq__chev {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--fg-3);
  background: color-mix(in srgb, var(--ink-0) 45%, transparent);
  border: 1px solid var(--ink-4);
  transition: transform 0.3s ease, color 0.2s, border-color 0.2s, background 0.2s;
}
.faq__item[open] .faq__chev {
  transform: rotate(180deg);
  color: var(--brand-300);
  border-color: color-mix(in srgb, var(--brand-500) 45%, transparent);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
}

/* The animated wrapper — height is driven by JS for a smooth open/close.
   With JS disabled, native <details> still shows/hides the answer instantly. */
.faq__a-wrap {
  overflow: hidden;
  transition: height 0.32s ease;
}
.faq__a {
  padding: 0 1.35rem 1.3rem;
  color: var(--fg-3);
  font-size: 1rem;
  line-height: 1.68;
}
.faq__a > * + * { margin-top: 0.8rem; }
.faq__a p { color: var(--fg-3); }
.faq__a strong { color: var(--fg-1); font-weight: 600; }
.faq__a a {
  color: var(--brand-300);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-400) 45%, transparent);
  text-underline-offset: 2px;
}
.faq__a a:hover { color: var(--brand-200); text-decoration-color: var(--brand-300); }
.faq__a ul {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-left: 0.2rem;
}
.faq__a li {
  position: relative;
  padding-left: 1.4rem;
}
.faq__a li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 6px color-mix(in srgb, var(--brand-400) 70%, transparent);
}

/* ──────────────────────────────────────────────────────────────────
   CONTACT
   ────────────────────────────────────────────────────────────────── */
.contact {
  max-width: var(--readw);
  margin: clamp(2.5rem, 6vw, 4rem) auto clamp(3rem, 7vw, 5rem);
  padding: 0 var(--pad-x);
  width: 100%;
}
.contact__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-4);
  background:
    radial-gradient(120% 140% at 50% -20%, color-mix(in srgb, var(--brand-700) 30%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
}
.contact__glow {
  position: absolute; inset: auto 0 -50% 0; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-500) 16%, transparent), transparent 75%);
  filter: blur(40px);
  pointer-events: none;
}
.contact__title {
  position: relative;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact__lede {
  position: relative;
  margin: 0.75rem auto 0;
  max-width: 460px;
  color: var(--fg-3);
}
.contact__actions {
  position: relative;
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}

/* ──────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  background: var(--ink-0);
  border-top: 1px solid var(--ink-4);
  padding: 2.5rem var(--pad-x) 2rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}
.footer__family {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 0.1rem 0.15rem;
  font-size: 0.86rem;
  color: var(--fg-3);
}
.footer__family-link {
  color: inherit;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.footer__family-link:hover { color: var(--fg-1); text-decoration: underline; }
.footer__family-link[aria-current="page"] { color: var(--fg-1); font-weight: 600; }
.footer__family-sep { color: var(--fg-5); margin: 0 0.25rem; }

.footer__social { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.footer__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--fg-3);
  transition: color 0.15s, background-color 0.15s, transform 0.15s;
}
.footer__icon:hover {
  color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  transform: translateY(-1px);
}

.footer__support {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 87, 183, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 87, 184, 0.15) 0%, rgba(255, 221, 0, 0.08) 100%);
}
.footer__support .flag { font-size: 1.05em; }
.footer__support strong { color: var(--fg-1); margin-right: 0.4rem; }
.footer__support-sub { color: var(--fg-3); font-size: 0.92rem; }

.footer__copy { font-size: 0.8rem; color: var(--fg-5); }
