@charset "UTF-8";
/* ChekGu stylesheet - PRD section 4 (brand, palette, typography, motif)
   Single file, no framework. Bump the ?v= query string in each page when editing. */

/* ---------- 1. Fonts (self-hosted, no Google Fonts request) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Colour (PRD section 4 table) */
  --paper: #F6F8FB;
  --sheet: #FFFFFF;
  --ink: #16213A;
  --muted: #5A6479;
  --rule: #DCE3EE;
  --rule-strong: #C3CDDC;
  --pen: #C8322B;
  --pen-dark: #A5261F;
  --pen-soft: #FBE9E7;
  --ai: #2B48C9;
  --ai-soft: #E7ECFC;
  --wa: #0B7A3E;
  --ok: #0C7D70;
  --warn-bg: #FBF0DC;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-tag: 0.75rem;

  /* Space (4px scale) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;
  --gutter: 16px;
  --section-y: clamp(48px, 8vw, 96px);

  /* Layout */
  --container: 1120px;
  --measure: 68ch;
  --radius: 6px;
  --sticky-h: 56px;
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
li { margin-bottom: var(--s2); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--pen-dark); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s8) 0; }
small { font-size: var(--fs-small); }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

/* Focus: always visible, 3px ink ring, white inner ring on dark fills */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible, .btn-wa:focus-visible, .sticky-bar a:focus-visible {
  outline: 3px solid var(--ink);
  box-shadow: 0 0 0 6px var(--sheet);
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--s12); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.split { display: grid; gap: var(--s8); grid-template-columns: 1fr; }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  body.has-sticky { padding-bottom: 0; }
}
@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 5. Typography helpers ---------- */
.eyebrow, .tag {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-bottom: var(--s2); display: block; }
.lead { font-size: 1.125rem; color: var(--ink); max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); }
.gu {
  text-decoration: underline wavy var(--pen);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ---------- 6. The paper motif ---------- */
.ruled {
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
}
@media (min-width: 900px) {
  .ruled { position: relative; }
  .ruled::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 56px;
    width: 2px;
    background: var(--pen);
    opacity: 0.4;
    pointer-events: none;
  }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s6);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--pen); color: var(--sheet); }
.btn-primary:hover { background: var(--pen-dark); color: var(--sheet); }
.btn-wa { background: var(--wa); color: var(--sheet); }
.btn-wa:hover { background: #096634; color: var(--sheet); }
.btn-ink { background: var(--sheet); color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--sheet); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn-row .btn { flex: 1 1 220px; }

/* ---------- 8. Tags ---------- */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid transparent;
  vertical-align: middle;
}
.tag-cikgu, .tag-tutor { background: var(--pen); color: var(--sheet); border-color: var(--pen); }
.tag-ai { background: var(--ai); color: var(--sheet); border-color: var(--ai); }
.tag-ibu, .tag-parent { border: 2px solid var(--ink); }
.tag-pelajar, .tag-student { border: 2px dashed var(--ink); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }

/* ---------- 9. Sheets (cards) ---------- */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s6);
}
.sheet > :last-child { margin-bottom: 0; }
.sheet h3 { margin-bottom: var(--s2); }
.sheet--pen { background: var(--pen-soft); }
.sheet--ai { background: var(--ai-soft); }
.sheet__price { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }

/* Section header */
.section-head { margin-bottom: var(--s8); }
.section-head .lead { margin-bottom: 0; }

/* ---------- 10. Red tick list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: var(--s3);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  background-color: var(--pen);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 10.5 L8 15 L16 5" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M4 10.5 L8 15 L16 5" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
}

/* Numbered list with red circles */
.numbers { list-style: none; counter-reset: n; padding: 0; margin: 0; }
.numbers li { position: relative; padding-left: 44px; margin-bottom: var(--s4); }
.numbers li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pen);
  color: var(--sheet);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 11. Header ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--sheet);
  padding: var(--s3) var(--s4);
  z-index: 100;
}
.skip:focus { left: 0; }
.site-header { position: relative; z-index: 80; background: var(--sheet); border-bottom: 1px solid var(--rule); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 72px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.logo__gu { color: var(--pen); }
.nav-toggle { display: inline-flex; }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a, .nav-list summary {
  display: block;
  padding: var(--s3) 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.nav-list summary { cursor: pointer; }
.nav-list a:hover { color: var(--pen-dark); }
.nav-sub { list-style: none; margin: 0; padding: 0 0 var(--s2) var(--s4); }
.nav-sub a { border-bottom: 0; padding: var(--s2) 0; font-weight: 400; }
.header-actions { display: none; align-items: center; gap: var(--s3); }
.lang-switch { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; width: auto; }
  .site-header__inner { flex-wrap: nowrap; }
  .nav-list { display: flex; align-items: center; gap: var(--s4); }
  .nav-list li { position: relative; }
  .nav-list a, .nav-list summary { border: 0; padding: var(--s2) 0; white-space: nowrap; }
  .nav-list summary::-webkit-details-marker { display: none; }
  .nav-list summary::after { content: " \25BE"; font-size: 0.8em; }
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: var(--s2) var(--s4);
    box-shadow: 0 2px 0 var(--rule);
  }
  .header-actions { display: flex; }
  .nav-mobile-only { display: none; }
}

/* ---------- 12. Hero ---------- */
.hero { padding-block: var(--s12) var(--section-y); }
.hero .lead { margin-bottom: var(--s6); }
.hero__grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; align-items: center; }
.hero__micro { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-small); }
.hero-figure { margin: 0; }
.hero-figure figcaption { color: var(--muted); font-size: var(--fs-small); margin-top: var(--s2); }
@media (min-width: 900px) {
  .hero { padding-block: var(--s16) var(--section-y); }
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .hero-figure { order: 2; }
}

/* ---------- 13. Loop diagrams ---------- */
/* BLK-LOOP4: four sheets, arrow between, horizontal >= 900px */
.loop4 { list-style: none; counter-reset: l4; display: grid; gap: var(--s4); padding: 0; margin: 0; }
.loop4 > li {
  counter-increment: l4;
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s6);
}
.loop4__visual { display: block; width: 100%; height: auto; margin: var(--s4) 0; }
.loop4 > li::before {
  content: counter(l4);
  position: absolute;
  top: -14px;
  left: var(--s6);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pen);
  color: var(--sheet);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loop4 h3 { margin-top: var(--s2); }
.loop4__arrow { display: block; margin: 0 auto; max-width: 40px; }
@media (min-width: 900px) {
  .loop4 { grid-template-columns: repeat(4, 1fr); }
}

/* BLK-LOOP7: a scroll-progress timeline, one card for each step */
.loop7 {
  --loop-progress: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: relative;
}
.loop7::before,
.loop7::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
}
.loop7::before { background: var(--rule-strong); }
.loop7::after {
  background: var(--pen);
  transform: translateX(-50%) scaleY(var(--loop-progress));
  transform-origin: top;
  transition: transform 120ms linear;
}
.loop7__day {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  min-width: 0;
  width: min(calc(50% - 30px), 380px);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(22, 33, 58, 0.08);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.loop7__day:nth-child(odd) { align-self: flex-end; }
.loop7__day:nth-child(even) { align-self: flex-start; }
.loop7__day.is-active {
  border-color: var(--pen);
  box-shadow: 0 5px 18px rgba(22, 33, 58, 0.13);
}
.loop7__day:hover { transform: translateY(-2px); }
.loop7__day::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20px;
  right: -22px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--sheet);
}
.loop7__day:nth-child(odd)::before {
  left: -22px;
  right: auto;
}
.loop7__day.is-active::before {
  border-color: var(--pen);
  background: var(--pen);
  box-shadow: 0 0 0 4px var(--sheet);
}
.loop7__head {
  display: grid;
  gap: 2px;
  background: var(--ink);
  color: var(--sheet);
  padding: 10px 14px;
}
.loop7__day-label {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  opacity: 0.78;
}
.loop7__day-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.loop7__body {
  padding: 12px 14px 14px;
}
.loop7__body ul { list-style: none; padding: 0; margin: 0; }
.loop7__body li { margin-bottom: 10px; font-size: 0.9375rem; line-height: 1.45; }
.loop7__body li:last-child { margin-bottom: 0; }
.loop7__day:nth-child(7) .loop7__head { background: var(--pen); }
.loop7__caption { color: var(--muted); font-size: var(--fs-small); margin-top: var(--s6); max-width: var(--measure); }
@media (min-width: 900px) {
  .loop7__day {
    width: min(calc(50% - 42px), 380px);
  }
  .loop7__day::before {
    right: -29px;
  }
  .loop7__day:nth-child(odd)::before {
    left: -29px;
    right: auto;
  }
}
@media (max-width: 600px) {
  .loop7 { gap: var(--s4); }
  .loop7__day { width: calc(50% - 22px); }
  .loop7__head { padding: 9px 10px; }
  .loop7__day-title { font-size: 0.9375rem; }
  .loop7__body { padding: 10px; }
  .loop7__body li { font-size: 0.8125rem; }
  .loop7__body .tag { margin: 0 0 4px; }
  .loop7__day::before { right: -19px; }
  .loop7__day:nth-child(odd)::before { left: -19px; }
}
@media (prefers-reduced-motion: reduce) {
  .loop7::after,
  .loop7__day { transition: none; }
  .loop7__day:hover { transform: none; }
}

/* Two-column AI role block */
.role-col h3 { margin-bottom: var(--s3); }
.role-col ul { list-style: none; padding: 0; margin: 0; }
.role-col li { padding-left: 26px; position: relative; margin-bottom: var(--s2); }
.role-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ai);
}
.role-col--no li::before { background: var(--ink); opacity: 0.45; }

/* ---------- 14. Accordion (details) ---------- */
.faq { display: grid; gap: var(--s3); }
.faq details {
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-bottom: 2px solid var(--rule);
  border-radius: var(--radius);
}
.faq summary {
  cursor: pointer;
  padding: var(--s4);
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--pen); }
.faq details[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 var(--s4) var(--s4); }
.faq__body > :last-child { margin-bottom: 0; }

/* ---------- 15. Alerts, notes ---------- */
.alert {
  background: var(--warn-bg);
  border-left: 4px solid var(--pen);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s4) var(--s6);
}
.alert > :last-child { margin-bottom: 0; }
.note { background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: var(--s4); color: var(--muted); font-size: var(--fs-small); }
.notice {
  background: var(--ok);
  color: var(--sheet);
  border-radius: var(--radius);
  padding: var(--s4) var(--s6);
}
.error-box {
  background: var(--pen-soft);
  border: 1px solid var(--pen);
  border-radius: var(--radius);
  padding: var(--s4);
}
.error-box > :last-child { margin-bottom: 0; }

/* ---------- 16. Breadcrumb ---------- */
.breadcrumb { padding-block: var(--s4); font-size: var(--fs-small); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; gap: var(--s2); align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ---------- 17. Chapter map / article list ---------- */
.chapter-map { list-style: none; padding: 0; margin: 0; }
.chapter-map li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.chapter-map__name { font-weight: 600; }
.chapter-map__status { font-family: var(--font-mono); font-size: var(--fs-tag); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 900px) {
  .article-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 18. Forms ---------- */
.form-grid { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); }
.field > label { font-weight: 600; }
.field input[type="text"],
.field input[type="tel"],
.field input:not([type]) {
  min-height: 48px;
  padding: var(--s3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
}
.field input:focus { border-color: var(--ink); border-width: 2px; outline: none; }
.field input[aria-invalid="true"] { border-color: var(--pen); border-width: 2px; }
.field__help { color: var(--muted); font-size: var(--fs-small); }
.field__error { color: var(--pen-dark); font-size: var(--fs-small); font-weight: 600; }
.field__error:empty { display: none; }
fieldset { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: var(--s4); margin: 0; }
legend { font-weight: 700; padding-inline: var(--s2); }
.choice { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s2) 0; }
.choice input { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-summary[role="alert"] {
  background: var(--pen-soft);
  border: 1px solid var(--pen);
  border-radius: var(--radius);
  padding: var(--s4);
  font-weight: 600;
}
.form-summary:empty, .form-status:empty { display: none; }
.form-status { font-weight: 600; color: var(--ok); }
.form-network-error {
  margin-top: var(--s4);
  background: var(--pen-soft);
  border: 1px solid var(--pen);
  border-radius: var(--radius);
  padding: var(--s4);
}
.form-network-error[hidden] { display: none; }
.form-network-error > :last-child { margin-bottom: 0; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); padding-block: var(--s12) var(--s8); margin-top: var(--s12); }
.footer-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
.footer-col h2 { font-size: 1rem; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s2); }
.footer-contact { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--rule); }
.footer-legal { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-small); }
.footer-legal > :last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* ---------- 20. Cookie note ---------- */
.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--sticky-h);
  background: var(--sheet);
  border-top: 1px solid var(--rule-strong);
  padding: var(--s3) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  z-index: 60;
  font-size: var(--fs-small);
}
.cookie-note p { margin: 0; flex: 1 1 260px; }
.cookie-note[hidden] { display: none; }
.cookie-note .btn { min-height: 44px; padding: var(--s2) var(--s4); flex: 0 0 auto; }
@media (min-width: 900px) {
  .cookie-note { bottom: 0; }
}

/* ---------- 21. Sticky mobile action bar ---------- */
.sticky-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sticky-h);
  background: var(--sheet);
  border-top: 1px solid var(--rule-strong);
  padding: 4px var(--gutter) calc(4px + env(safe-area-inset-bottom));
  z-index: 70;
}
.sticky-bar a { min-height: 48px; padding: var(--s2) var(--s2); font-size: 0.9375rem; }
body.has-sticky { padding-bottom: calc(var(--sticky-h) + 16px); }
@media (min-width: 900px) {
  .sticky-bar { display: none; }
  body.has-sticky { padding-bottom: 0; }
}

/* ---------- 22. Utilities ---------- */
.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; padding: 0; }
.link-row li { margin: 0; }
.caption-fig { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}