/* ============================================================
   YUSR — Design System
   Fictional KSA digital bank. Training environment.
   Direction: "calm money" — Najdi limestone + evergreen + gold.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand — evergreen/pine. Saudi green heritage without the flag literalism. */
  --brand-900: #06201A;
  --brand-800: #0C382D;
  --brand-700: #124C3E;
  --brand-600: #1A6B58;
  --brand-500: #22876E;
  --brand-400: #35A98A;
  --brand-300: #6CC9AE;
  --brand-200: #A8E2CF;
  --brand-100: #D8F2E8;
  --brand-050: #EEF9F4;

  /* Warm neutrals — limestone / desert paper */
  --sand-050: #FCFAF6;
  --sand-100: #F5F1E9;
  --sand-200: #EBE4D7;
  --sand-300: #DCD2C0;

  /* Gold — the action colour. Premium, high-contrast when filled with ink. */
  --gold-600: #A8801F;
  --gold-500: #C99A3F;
  --gold-400: #E2BA61;
  --gold-300: #EFD79B;
  --gold-200: #F7E9C4;

  /* Ink + greys */
  --ink: #08130F;
  --ink-soft: #172723;
  --slate-700: #374742;
  --slate-600: #4E605A;
  --slate-500: #6E807A;
  --slate-400: #93A29C;
  --slate-300: #BCC7C2;
  --line: #E2E8E5;
  --line-warm: #E6DFD2;
  --white: #FFFFFF;

  /* Semantic */
  --ok: #1A6B58;
  --ok-bg: #E7F5EF;
  --warn: #B87A28;
  --warn-bg: #FBF1DE;
  --bad: #A8392A;
  --bad-bg: #FAEBE8;
  --info: #2A6484;
  --info-bg: #E9F2F7;

  /* Type */
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "SF Mono", "Consolas", "Liberation Mono", monospace;

  /* Space — 4px base */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 2.5rem;   --s8: 3rem;
  --s9: 4rem;     --s10: 5rem;    --s11: 6.5rem;  --s12: 8rem;

  /* Radius */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --r-xl: 26px;  --r-full: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(8, 19, 15, 0.05);
  --sh-sm: 0 2px 6px rgba(8, 19, 15, 0.06), 0 1px 2px rgba(8, 19, 15, 0.04);
  --sh-md: 0 8px 24px rgba(8, 19, 15, 0.08), 0 2px 6px rgba(8, 19, 15, 0.04);
  --sh-lg: 0 20px 48px rgba(8, 19, 15, 0.12), 0 4px 12px rgba(8, 19, 15, 0.06);

  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 72px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--brand-200); color: var(--brand-900); }

/* ---------- 3. TYPE ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.022em; }
.display { font-size: clamp(2.6rem, 5.4vw, 4.1rem); letter-spacing: -0.034em; line-height: 1.05; }
h1, .h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); letter-spacing: -0.026em; }
h3, .h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4, .h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--s3);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--slate-600); }
.small { font-size: 0.9375rem; }
.tiny { font-size: 0.8125rem; line-height: 1.55; }
.muted { color: var(--slate-500); }
.prose p + p { margin-top: var(--s4); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s8); }
.prose h3 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: var(--s2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--s5); }
.section { padding-block: clamp(var(--s9), 8vw, var(--s11)); }
.section-sm { padding-block: var(--s8); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: var(--s4); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.mt-0{margin-top:0}.mt-2{margin-top:var(--s2)}.mt-3{margin-top:var(--s3)}
.mt-4{margin-top:var(--s4)}.mt-5{margin-top:var(--s5)}.mt-6{margin-top:var(--s6)}
.mt-8{margin-top:var(--s8)}.mb-4{margin-bottom:var(--s4)}.mb-6{margin-bottom:var(--s6)}
.mb-8{margin-bottom:var(--s8)}

/* Surfaces */
.bg-sand { background: var(--sand-100); }
.bg-sand-050 { background: var(--sand-050); }
.bg-brand { background: var(--brand-800); color: var(--sand-100); }
.bg-brand-deep { background: var(--brand-900); color: var(--sand-100); }
.bg-brand-soft { background: var(--brand-050); }
.bg-brand h1, .bg-brand h2, .bg-brand h3, .bg-brand h4,
.bg-brand-deep h1, .bg-brand-deep h2, .bg-brand-deep h3, .bg-brand-deep h4 { color: var(--white); }
.bg-brand .lede, .bg-brand-deep .lede { color: var(--brand-200); }
.bg-brand .eyebrow, .bg-brand-deep .eyebrow { color: var(--gold-400); }
.bg-brand a, .bg-brand-deep a { color: var(--brand-200); }
.bg-brand a:hover, .bg-brand-deep a:hover { color: var(--white); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0.8rem 1.4rem; border-radius: var(--r-full);
  font-weight: 650; font-size: 0.96rem; letter-spacing: -0.008em;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-400); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--gold-500); color: var(--ink); box-shadow: var(--sh-md); }
.btn-dark { background: var(--brand-800); color: var(--white); }
.btn-dark:hover { background: var(--brand-700); color: var(--white); }
.btn-outline { border-color: var(--brand-800); color: var(--brand-800); background: transparent; }
.btn-outline:hover { background: var(--brand-800); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand-800); }
.btn-light:hover { background: var(--sand-100); color: var(--brand-900); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.03rem; }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650;
  text-decoration: none; color: var(--brand-600); font-size: 0.96rem;
}
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 250, 246, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-warm);
}
.nav { display: flex; align-items: center; gap: var(--s6); height: var(--header-h); }
.brand-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-lockup:hover { color: inherit; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.05em; color: var(--brand-800); line-height: 1;
}
.nav-links { display: flex; gap: var(--s5); margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--slate-700); font-weight: 550; font-size: 0.94rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--brand-700); border-bottom-color: var(--brand-400); }
.nav-links a[aria-current="page"] { color: var(--brand-800); border-bottom-color: var(--gold-400); }
.nav-cta { display: flex; gap: var(--s3); align-items: center; }
.nav-toggle { display: none; padding: 8px; border-radius: var(--r-sm); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-800); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4);
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--sand-050); padding: var(--s5);
    border-bottom: 1px solid var(--line-warm); box-shadow: var(--sh-md);
  }
  .nav-cta.open { display: flex; position: absolute; top: calc(var(--header-h) + 300px); left: 0; right: 0; padding: 0 var(--s5) var(--s5); background: var(--sand-050); z-index: 61; }
}

/* ---------- 7. CARDS ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-200); }
.card-warm { background: var(--sand-050); border-color: var(--line-warm); }
.card-brand { background: var(--brand-800); border-color: var(--brand-700); color: var(--brand-100); }
.card-brand h3, .card-brand h4 { color: var(--white); }
.card-pad-lg { padding: var(--s6); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-050); color: var(--brand-600);
  display: grid; place-items: center; margin-bottom: var(--s4);
  font-size: 1.15rem;
}
.card-icon-gold { background: var(--gold-200); color: var(--gold-600); }

/* ---------- 8. PILLS / BADGES ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.01em;
  background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.pill-gold { background: var(--gold-200); color: var(--gold-600); border-color: #EED9A8; }
.pill-neutral { background: var(--sand-100); color: var(--slate-600); border-color: var(--line-warm); }
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: #C9E6DA; }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: #EFDCB6; }
.pill-bad { background: var(--bad-bg); color: var(--bad); border-color: #EFCFC8; }
.pill-light { background: rgba(255,255,255,.12); color: var(--brand-100); border-color: rgba(255,255,255,.2); }

/* ---------- 9. STATS ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; color: var(--brand-700); line-height: 1; }
.bg-brand .stat-num, .bg-brand-deep .stat-num { color: var(--gold-400); }
.stat-label { font-size: 0.875rem; color: var(--slate-500); margin-top: var(--s2); }
.bg-brand .stat-label, .bg-brand-deep .stat-label { color: var(--brand-200); }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); } }

/* ---------- 10. HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand-050); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 82% 12%, rgba(53,169,138,.13), transparent 62%),
              radial-gradient(700px 420px at 8% 92%, rgba(226,186,97,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: center; padding-block: clamp(var(--s8), 7vw, var(--s11)); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: var(--s7); } }

/* Phone mockup */
.phone {
  width: 280px; margin-inline: auto; border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
  box-shadow: var(--sh-lg); position: relative;
}
.phone-screen { background: var(--sand-050); border-radius: 26px; overflow: hidden; padding: var(--s4); min-height: 480px; }
.phone-notch { width: 90px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 2px auto 8px; }

/* ---------- 11. TABLES ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
table.tbl th, table.tbl td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; }
table.tbl thead th { background: var(--sand-100); color: var(--ink); font-weight: 650; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
table.tbl tbody tr + tr td { border-top: 1px solid var(--line); }
table.tbl tbody tr:hover { background: var(--sand-050); }

/* ---------- 12. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; text-align: left; padding: var(--s5) 0; display: flex;
  justify-content: space-between; align-items: flex-start; gap: var(--s4);
  font-weight: 650; font-size: 1.03rem; color: var(--ink); font-family: var(--font-display);
}
.acc-btn::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-500); flex-shrink: 0; transition: transform .2s; }
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { display: none; padding-bottom: var(--s5); color: var(--slate-600); max-width: 72ch; }
.acc-panel.open { display: block; }
.acc-panel > * + * { margin-top: var(--s3); }

/* ---------- 13. FORMS ---------- */
.field { margin-bottom: var(--s4); }
.field label { display: block; font-size: 0.875rem; font-weight: 650; color: var(--slate-700); margin-bottom: 6px; }
.field .hint { font-size: 0.8125rem; color: var(--slate-500); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 0.75rem 0.95rem; border: 1.5px solid var(--line);
  border-radius: var(--r-md); background: var(--white); font-size: 0.98rem;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100);
}
.textarea { min-height: 120px; resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s3); font-size: 0.9rem; color: var(--slate-600); }
.checkline input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand-600); flex-shrink: 0; }

/* Multi-step wizard */
.steps { display: flex; gap: var(--s2); margin-bottom: var(--s6); flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--slate-400); font-weight: 600; }
.step-dot i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-200); color: var(--slate-500); font-style: normal; font-size: 0.78rem; }
.step-dot.active { color: var(--brand-700); }
.step-dot.active i { background: var(--brand-600); color: #fff; }
.step-dot.done i { background: var(--brand-100); color: var(--brand-700); }
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ---------- 14. CALLOUTS ---------- */
.callout { border-radius: var(--r-lg); padding: var(--s5); border: 1px solid; }
.callout-info { background: var(--info-bg); border-color: #CFE2EC; }
.callout-warn { background: var(--warn-bg); border-color: #EFDCB6; }
.callout-brand { background: var(--brand-050); border-color: var(--brand-100); }
.callout-neutral { background: var(--sand-100); border-color: var(--line-warm); }
.callout h4 { margin-bottom: var(--s2); }

/* ---------- 15. LEGAL DOC LAYOUT ---------- */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: var(--s8); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9rem; }
.doc-toc ol { list-style: none; padding: 0; }
.doc-toc li { margin-bottom: 2px; }
.doc-toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--slate-600); text-decoration: none; border-left: 2px solid var(--line); }
.doc-toc a:hover { background: var(--sand-100); color: var(--brand-700); border-left-color: var(--brand-400); }
.doc-body { font-size: 1rem; }
.doc-body h2 { font-size: 1.35rem; padding-top: var(--s6); margin-top: var(--s6); border-top: 1px solid var(--line); }
.doc-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.doc-body h3 { font-size: 1.05rem; margin-top: var(--s5); }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: var(--s3); color: var(--slate-700); }
.doc-body ul, .doc-body ol { padding-left: 1.35rem; }
.doc-body li { margin-top: var(--s2); }
.doc-meta { font-size: 0.875rem; color: var(--slate-500); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: var(--s6); } .doc-toc { position: static; } }

/* ---------- 16. ARTICLE / PRESS ---------- */
.article-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s5); margin-bottom: var(--s6); }
.article-meta { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 0.85rem; color: var(--slate-500); margin-top: var(--s3); }
.article-body { font-size: 1.05rem; line-height: 1.75; color: var(--slate-700); }
.article-body > * + * { margin-top: var(--s4); }
.article-body h2 { font-size: 1.4rem; margin-top: var(--s7); color: var(--ink); }
.article-body h3 { font-size: 1.1rem; margin-top: var(--s5); color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: var(--s2); }
.article-body blockquote {
  border-left: 3px solid var(--gold-400); padding: var(--s2) 0 var(--s2) var(--s5);
  font-size: 1.1rem; color: var(--ink-soft); font-style: italic;
}
.article-body pre {
  background: var(--brand-900); color: var(--brand-100); padding: var(--s5);
  border-radius: var(--r-md); overflow-x: auto; font-family: var(--font-mono);
  font-size: 0.85rem; line-height: 1.6; font-style: normal;
}
.article-body code { font-family: var(--font-mono); font-size: 0.88em; background: var(--sand-100); padding: 2px 6px; border-radius: 5px; }
.article-body pre code { background: none; padding: 0; color: inherit; }

.list-row {
  display: flex; justify-content: space-between; gap: var(--s5);
  padding: var(--s5) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; align-items: flex-start;
}
.list-row:hover { color: inherit; }
.list-row:hover h3 { color: var(--brand-600); }
.list-row .date { font-size: 0.85rem; color: var(--slate-500); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 620px) { .list-row { flex-direction: column; gap: var(--s2); } }

/* ---------- 17. STATUS PAGE ---------- */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-bad { background: var(--bad); }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: none; }

/* ---------- 18. BREADCRUMB ---------- */
.crumbs { font-size: 0.85rem; color: var(--slate-500); padding-block: var(--s5) 0; }
.crumbs a { color: var(--slate-500); text-decoration: none; }
.crumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.crumbs span { margin-inline: 6px; color: var(--slate-300); }

/* ---------- 19. FOOTER ---------- */
.site-footer { background: var(--brand-900); color: var(--brand-200); padding-block: var(--s9) var(--s6); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s6); }
.site-footer h5 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: var(--s4); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--brand-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .wordmark { color: var(--white); }
.footer-bottom {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
  font-size: 0.82rem; color: var(--slate-400);
}
.training-note {
  margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-size: 0.78rem; color: var(--brand-200); line-height: 1.5;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 20. COOKIE BANNER ---------- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(8,19,15,.1); padding: var(--s5) 0;
}
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-text { flex: 1 1 440px; font-size: 0.9rem; color: var(--slate-600); }
.cookie-actions { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.cookie-prefs { display: none; width: 100%; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.cookie-prefs.open { display: block; }
.cookie-toggle-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.cookie-toggle-row:last-child { border-bottom: none; }
.link-quiet { background: none; color: var(--slate-500); text-decoration: underline; font-size: 0.86rem; }
.link-quiet:hover { color: var(--slate-700); }

/* ---------- 21. UTIL ---------- */
.divider { height: 1px; background: var(--line); border: none; margin-block: var(--s7); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-inline { display: inline-block; vertical-align: -2px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.6rem 1.05rem;
  border-radius: var(--r-md); background: var(--ink); color: var(--white);
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.app-badge:hover { background: var(--ink-soft); color: var(--white); }
.app-badge small { display: block; font-size: 0.68rem; font-weight: 400; opacity: .75; line-height: 1.1; }
