/* ============================================================
   WCAG Audit Automation — design system
   Light, elegant, professional. Wide on desktop, fluid on mobile.
   ============================================================ */

:root {
  /* Palette */
  --blue: #1f6feb;
  --blue-strong: #1559c7;
  --indigo: #5b6cf0;
  --violet: #7b3ff0;
  --green: #16b274;
  --green-soft: #34e29b;
  --amber: #e9943a;

  --ink: #1b2433;
  --ink-soft: #3c4a60;
  --muted: #647189;
  --line: #e2e8f2;
  --line-soft: #eef2f8;

  --bg: #f7f9fc;
  --bg-alt: #eef3fb;
  --surface: #ffffff;
  --code-bg: #f4f7fc;
  --inline-bg: #eaf0fb;

  --grad: linear-gradient(120deg, var(--blue) 0%, var(--indigo) 55%, var(--violet) 100%);

  /* Layout */
  --wrap: 1200px;
  --wrap-wide: 1340px;
  --header-h: 66px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 51, 0.06), 0 2px 8px rgba(27, 36, 51, 0.05);
  --shadow-md: 0 6px 20px rgba(27, 36, 51, 0.10);
  --shadow-lg: 0 16px 44px rgba(31, 111, 235, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Layout helpers ------------------------------------------------ */
.wrap {
  width: min(100% - 2.6rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 1500px) {
  .wrap { width: min(100% - 3.5rem, var(--wrap-wide)); }
}
.site-main { flex: 1 0 auto; }

/* Skip link ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Links --------------------------------------------------------- */
a { color: var(--blue-strong); text-decoration: none; }
a:hover { color: var(--violet); }
:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
}
.brand-logo { display: block; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.primary-nav { display: flex; gap: 0.35rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-link:hover { background: var(--bg-alt); color: var(--blue-strong); }
.nav-link.is-active {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.nav-link.is-active:hover { color: #fff; }
.nav-icon {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bar {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem 1.3rem 1.2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { width: 100%; }
}

/* ============================================================
   Hero / Home
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(123, 63, 240, 0.13), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(31, 111, 235, 0.14), transparent 58%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding: clamp(2.6rem, 5vw, 4.6rem) 0 clamp(2.4rem, 4vw, 3.6rem);
  text-align: center;
}
.hero-logo-row { display: flex; justify-content: center; }
.hero-logo {
  width: clamp(108px, 16vw, 168px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(91, 108, 240, 0.35));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-title {
  margin: 1.4rem auto 0;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 1.2rem auto 0;
  max-width: 70ch;
  font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.22rem);
  color: var(--ink-soft);
}

.cta-row {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
  text-align: left;
}
.cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.cta-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
}
.cta-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cta-1 .cta-icon, .cta-1.pillar-icon { background: linear-gradient(135deg, #2bd17e, #16a564); }
.cta-2 .cta-icon, .cta-2.pillar-icon { background: linear-gradient(135deg, #2f8bff, #1559c7); }
.cta-3 .cta-icon, .cta-3.pillar-icon { background: linear-gradient(135deg, #8a5bff, #6a3df0); }
.cta-text { display: flex; flex-direction: column; }
.cta-label { font-weight: 700; color: var(--ink); line-height: 1.25; }
.cta-go { font-size: 0.85rem; color: var(--blue-strong); font-weight: 600; }
.cta:hover .cta-go { color: var(--violet); }

.home-section { padding: clamp(2.4rem, 4vw, 3.6rem) 0; }
.home-prose { max-width: 74ch; }
.section-heading {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.015em;
  margin: 2.2rem 0 1.1rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31, 111, 235, 0.35); }
.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.25rem;
  height: 100%;
  color: inherit;
}
.card-heading { font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.card:hover .card-heading { color: var(--blue-strong); }
.card-desc { color: var(--muted); font-size: 0.94rem; }
.pillar-card .card-link { gap: 0.55rem; }
.pillar-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 13px; color: #fff;
  margin-bottom: 0.2rem;
}
.pillar-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar-meta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sub-list {
  margin: 0.6rem 0 1rem 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.sub-list li { position: relative; padding-left: 1rem; font-size: 0.92rem; }
.sub-list li::before { content: "→"; position: absolute; left: 0; color: var(--indigo); }

.content-index-section { margin: 2.4rem 0; }
.section-lede { color: var(--muted); max-width: 75ch; margin-top: -0.3rem; }

/* ============================================================
   Content page
   ============================================================ */
.page-wrap { padding: 1.6rem 0 3rem; }

.breadcrumbs { margin-bottom: 1.2rem; font-size: 0.9rem; }
.breadcrumbs ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.1rem;
  color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.5rem; color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* Prose — fills its container width on desktop (no cramped column) */
.prose {
  max-width: none;
}
.page-wrap .prose { font-size: 1.06rem; }

.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 1.1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
  letter-spacing: -0.015em;
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line-soft);
  color: var(--ink);
}
.prose h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem);
  margin: 1.8rem 0 0.7rem;
  color: var(--ink);
}
.prose h4 { font-size: 1.12rem; margin: 1.4rem 0 0.5rem; color: var(--ink-soft); }
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; color: var(--ink-soft); }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--indigo); }
.prose strong { color: var(--ink); }
.prose a {
  color: var(--blue-strong);
  text-decoration: underline;
  text-decoration-color: rgba(31, 111, 235, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.prose a:hover { color: var(--violet); text-decoration-color: var(--violet); }

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.6rem 1.2rem;
  border-left: 4px solid var(--indigo);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.2rem 0; }

/* Heading anchors (after the heading text) + offset for sticky header */
.prose :is(h1, h2, h3, h4, h5, h6)[id] { scroll-margin-top: calc(var(--header-h) + 1.2rem); }
.heading-anchor {
  opacity: 0;
  margin-left: 0.4rem;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.heading-anchor:hover { color: var(--violet); }
.prose :is(h2, h3, h4):hover .heading-anchor,
.heading-anchor:focus-visible { opacity: 1; }

/* Inline code — blends in, no border, light themed bg */
.prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--inline-bg);
  color: #2a3f63;
  padding: 0.12em 0.42em;
  border-radius: 5px;
  white-space: nowrap;
}

/* ============================================================
   Code blocks
   ============================================================ */
.code-block {
  position: relative;
  margin: 1.5rem 0;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0; left: 1rem;
  transform: translateY(-50%);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--grad);
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}
.code-pre {
  margin: 0;
  padding: 1.5rem 1.15rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #2b3a52;
  tab-size: 2;
}
.code-pre code { font-family: inherit; background: none; padding: 0; white-space: pre; }
.copy-btn {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  z-index: 2;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.code-block:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.copy-btn.copied { background: var(--green); color: #fff; border-color: var(--green); opacity: 1; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
}
.table-wrap th, .table-wrap td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrap tbody tr:nth-child(even) { background: var(--line-soft); }
.table-wrap tbody tr:hover { background: rgba(31, 111, 235, 0.06); }
.table-wrap tr:last-child td { border-bottom: none; }

/* ============================================================
   Task list checkboxes
   ============================================================ */
.contains-task-list { list-style: none; padding-left: 0.2rem; }
.task-list-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.task-list-item::marker { content: ""; }
.task-list-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1.2em; height: 1.2em;
  margin-top: 0.28em;
  border: 2px solid var(--blue);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.task-list-item input[type="checkbox"]:hover { border-color: var(--violet); }
.task-list-item input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
.task-list-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.32em; top: 0.12em;
  width: 0.3em; height: 0.58em;
  border: solid #fff;
  border-width: 0 0.16em 0.16em 0;
  transform: rotate(45deg);
}
.task-list-item label { cursor: pointer; }
.task-list-item.done, .task-list-item.done label { text-decoration: line-through; color: var(--muted); }

/* ============================================================
   Mermaid + KaTeX
   ============================================================ */
.mermaid-figure { margin: 1.6rem 0; }
.mermaid-wrap {
  position: relative;
  padding: 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  text-align: center;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.mermaid-wrap.is-ready { cursor: zoom-in; }
.mermaid-wrap.is-ready:hover { box-shadow: var(--shadow-md); border-color: rgba(31, 111, 235, 0.4); }
.mermaid { font-family: var(--font) !important; }
.mermaid svg { max-width: 100%; height: auto; }
.mermaid:not([data-processed]) { color: transparent; min-height: 2rem; }

/* Zoom affordance — shown once the diagram has rendered */
.diagram-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: zoom-in;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.mermaid-wrap.is-ready .diagram-zoom { display: inline-flex; }
.diagram-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram-zoom:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.06); }

/* Full-screen diagram lightbox */
.diagram-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: clamp(0.8rem, 3vw, 2.4rem);
  background: rgba(19, 26, 40, 0.86);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.diagram-lightbox.open { opacity: 1; visibility: visible; }
.diagram-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.diagram-lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.diagram-lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
.diagram-lightbox__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: 0.8rem;
}
.diagram-lightbox__stage svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.katex-display-wrap {
  margin: 1.4rem 0;
  padding: 1rem 0.5rem;
  overflow-x: auto;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.katex { font-size: 1.06em; }
.katex-error { color: #c0392b; }

/* ============================================================
   Related content
   ============================================================ */
.related { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.related-title { font-size: 1.25rem; margin: 0 0 1.1rem; }
.back-link { margin-top: 1.6rem; font-weight: 600; }
.back-link a { display: inline-flex; align-items: center; gap: 0.3rem; }

/* ============================================================
   FAQ accordion (progressive enhancement)
   ============================================================ */
.faq-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 0.8rem 0;
  background: var(--surface);
  overflow: hidden;
}
.faq-accordion > summary {
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-accordion > summary::-webkit-details-marker { display: none; }
.faq-accordion > summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; transition: transform 0.25s var(--ease); }
.faq-accordion[open] > summary::after { transform: rotate(45deg); }
.faq-accordion > summary:hover { background: var(--bg-alt); }
.faq-body { padding: 0 1.2rem 1rem; color: var(--ink-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { flex-shrink: 0; margin-top: 3rem; background: #131a28; color: #c7d2e4; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 2.6rem 0 1.8rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; max-width: 30ch; }
.footer-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.footer-tagline { margin: 0; font-size: 0.95rem; color: #9fb0cb; }
.footer-heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #8294b3; margin: 0 0 0.8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-nav a { color: #d7e0f0; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-base p { margin: 0; padding: 1.1rem 0; font-size: 0.85rem; color: #7e8fad; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; gap: 1.6rem; }
}
