/* ============================================================
   CERTAILEX Website — Shared Design Foundation
   The Sovereign Archive | Scripted Identity S.L.
   Phase 1 — Komponenten. Importiert von allen Seiten.
   ============================================================ */

/* ─── COLOR + TYPE TOKENS ──────────────────────────────────── */
:root {
  /* Primary / Ceramic Red */
  --color-primary:            #b71f16;
  --color-primary-container:  #dc392b;
  --color-on-primary:         #ffffff;
  --color-primary-fixed:      #ffdad5;
  --color-primary-fixed-dim:  #ffb4a9;
  --color-on-primary-fixed:   #410000;

  /* Secondary / Stone */
  --color-secondary:              #5d5e61;
  --color-secondary-container:    #e2e2e5;

  /* Tertiary / Warm Tan */
  --color-tertiary:           #6d5a4a;
  --color-tertiary-container: #877361;

  /* Surface stack — warm off-white architecture */
  --color-surface-lowest:   #ffffff;
  --color-surface:          #fbf9f6;
  --color-surface-low:      #f5f3f0;
  --color-surface-container: #efeeeb;
  --color-surface-high:     #eae8e5;
  --color-surface-highest:  #e4e2df;
  --color-surface-dim:      #dbdad7;
  --color-inverse-surface:  #30312f;
  --color-inverse-on-surface:#f2f0ed;

  /* Text */
  --color-on-surface:         #1b1c1a;
  --color-on-surface-variant: #5b403c;
  --color-outline:            #8f706b;
  --color-outline-variant:    #e4beb8;
  --color-error:              #ba1a1a;

  /* Semantic aliases */
  --bg-page:        var(--color-surface);
  --bg-inset:       var(--color-surface-container);
  --bg-card:        var(--color-surface-lowest);
  --bg-dark:        var(--color-inverse-surface);
  --text-primary:   var(--color-on-surface);
  --text-secondary: var(--color-on-surface-variant);
  --text-muted:     var(--color-outline);
  --text-inverse:   var(--color-inverse-on-surface);
  --accent:         var(--color-primary-container);
  --accent-dark:    var(--color-primary);
  --shadow-ambient: rgba(91,64,60,0.08);
  --shadow-ghost:   rgba(228,190,184,0.15);

  /* Typography */
  --font-content:  Arial, Helvetica, sans-serif;
  --font-branding: Arial, Helvetica, sans-serif;

  --text-hero:     clamp(2.4rem, 6vw, 4.6rem);
  --text-hero-sm:  clamp(2rem, 4.2vw, 3.3rem); /* 32–52.8px  Reduced hero — quiet/light heros & two-column heros. Restrained variant of --text-hero. */
  --text-display:  3.5rem;
  --text-h1:       2.75rem;
  --text-h1-sm:    clamp(1.9rem, 3.4vw, 2.7rem); /* 30–43px  Reduced H1 — fluid H2→H1 step for final-CTA / closing-statement headlines just under the full H1. */
  --text-h2:       2rem;
  --text-h2-sm:    clamp(1.5rem, 2.4vw, 2rem); /* 24–32px  Reduced section heading — fluid H3→H2 step for quieter sub-section / block headings. */
  --text-h3:       1.5rem;
  --text-h4:       1.25rem;
  --text-body-lead: 1.125rem;
  --text-body-lg:  1rem;
  --text-body:     0.9375rem;
  --text-body-sm:  0.875rem;
  --text-label:    0.75rem;
  --text-label-sm: 0.6875rem;
  --text-annotation: 0.5rem;

  --fw-regular: 400;
  --fw-bold:    700;

  --lh-tight:     1.05;
  --lh-snug:      1.25;
  --lh-normal:    1.45;
  --lh-editorial: 1.6;
  --lh-loose:     1.75;

  --ls-tighter: -0.03em;
  --ls-tight:   -0.02em;
  --ls-snug:    -0.01em;  /* NEU — heading micro-condensation; mirrors DS --ls-snug */
  --ls-normal:   0em;
  --ls-wide:     0.05em;
  --ls-wider:    0.1em;
  --ls-caps:     0.14em;  /* NEU — UI caps: buttons, nav, chrome (DS --ls-caps) */
  --ls-widest:   0.2em;

  /* Spacing scale — mirrors DS components.css spacing tokens (consume; don't re-type px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-sm-2: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout rhythm */
  --content-max: 1320px; /* global centered content frame — caps section content on wide/4K screens */
  --pad-x: max(clamp(24px, 6vw, 96px), calc((100% - var(--content-max)) / 2));
  --pad-section: clamp(80px, 12vh, 128px);
  --nav-h: 72px;
  --measure: 72ch; /* shared readable line-length cap for free-standing body/intro/CTA paragraphs */
  --measure-wide: 95ch; /* wider cap for free-standing intro paragraphs that span full-width content below them */
}

/* ─── GLOBAL RESET — 0px philosophy ────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-content);
  font-size: var(--text-body-lg);
  line-height: var(--lh-editorial);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty; /* inherited — prevents single-word orphan lines site-wide; headlines override with balance */
}
img { display: block; max-width: 100%; }
/* Links never carry the default underline (DS brand directive). The only sanctioned
   underlines are 2px signature affordances + the deliberate consent/legal inline-link
   underline (usability) set on .checkbox .cb-text a and the legal pages. */
a { color: inherit; text-decoration: none; }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── TYPE ROLES ───────────────────────────────────────────── */
.type-display { font-size: var(--text-display); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.type-h1 { font-size: var(--text-h1); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.type-h2 { font-size: var(--text-h2); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.type-h3 { font-size: var(--text-h3); font-weight: var(--fw-bold); line-height: var(--lh-normal); }
.type-h4 { font-size: var(--text-h4); font-weight: var(--fw-bold); line-height: var(--lh-normal); }
.type-body-lg { font-size: var(--text-body-lg); font-weight: var(--fw-regular); line-height: var(--lh-editorial); }
.type-body { font-size: var(--text-body); font-weight: var(--fw-regular); line-height: var(--lh-editorial); }
.type-muted { color: var(--text-secondary); }

/* ─── EYEBROW ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-content);
  font-size: var(--text-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow--muted { color: var(--text-secondary); }
.eyebrow--ink   { color: var(--text-primary); }
/* On dark surfaces — pure white as the signal color (red reserved for headline accent + CTAs) */
.eyebrow--on-dark { color: #ffffff; }

/* ─── BUTTONS / CTA ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-content);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  border: none;
  transition: filter 180ms ease, background-color 220ms ease, transform 120ms ease, gap 200ms ease;
  white-space: nowrap;
}
.btn .icon { font-size: 18px !important; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(to right, var(--accent-dark), var(--accent));
  color: var(--color-on-primary);
  padding: 17px 36px; font-size: 13px;
}
.btn-primary .icon { color: var(--color-on-primary) !important; }
.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  background: var(--color-surface-highest);
  color: var(--text-primary);
  padding: 17px 36px; font-size: 13px;
}
.btn-secondary:hover { background: var(--color-surface-high); }

.btn-tertiary {
  background: transparent; color: var(--text-primary);
  padding: 14px 0; font-size: 13px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: var(--ls-wider);
}
.btn-tertiary .icon { color: var(--accent) !important; }
.btn-tertiary:hover { border-bottom-width: 3px; }
.btn-tertiary:active { transform: none; }

/* On dark surfaces */
.btn-on-dark { background: var(--color-surface-highest); color: var(--text-primary); }
.btn-ghost-dark {
  background: transparent; color: var(--text-inverse);
  padding: 17px 36px; font-size: 13px;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-inverse-on-surface) 25%, transparent);
}
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-inverse-on-surface) 55%, transparent); }

/* Sizes */
.btn-sm { padding: 10px 20px; font-size: 11px; }
.btn-lg { padding: 20px 44px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Inline archive link (arrow translates on hover) */
.archive-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  transition: gap 200ms ease;
}
.archive-link .icon { font-size: 17px !important; }
.archive-link:hover { gap: 14px; }

/* ─── EYEBROW + SECTION SCAFFOLD ───────────────────────────── */
.section { padding: var(--pad-section) var(--pad-x); }
.section--inset { background: var(--color-surface-container); }
.section--low { background: var(--color-surface-low); }
.section--dark { background: var(--bg-dark); color: var(--text-inverse); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-size: clamp(2rem, 4vw, var(--text-h1)); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); }
.section-rule { height: 4px; width: 56px; background: var(--accent); margin-top: 20px; }
.section-sub { font-size: var(--text-body-lg); color: var(--text-secondary); line-height: var(--lh-editorial); margin-top: 20px; max-width: var(--measure); }
.measure { max-width: 640px; }

/* Archive dot-grid texture */
.archive-grid {
  background-image: radial-gradient(rgba(219,58,44,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── CARDS / BLOCKS ───────────────────────────────────────── */
.card { background: var(--bg-card); padding: 40px; transition: background-color 220ms ease; }
.card--inset { background: var(--color-surface-container); padding: 32px; }
.card--low { background: var(--color-surface-low); }
.card--high { background: var(--color-surface-high); }
.card--dark { background: var(--bg-dark); color: var(--text-inverse); padding: 40px; }
.card--accent { border-left: 4px solid var(--accent); }
.card-hover { transition: background-color 220ms ease; }
.card-hover:hover { background: var(--color-surface-high); }

.card-icon { font-size: 40px !important; margin-bottom: 24px; display: block; }
.card-title { font-size: var(--text-h3); font-weight: var(--fw-bold); margin-bottom: 12px; line-height: var(--lh-normal); }
.card-body { font-size: var(--text-body-lg); color: var(--text-secondary); line-height: var(--lh-editorial); }
.card--dark .card-body { color: color-mix(in srgb, var(--color-inverse-on-surface) 72%, transparent); }
.card--dark .card-title { color: var(--text-inverse); }

/* Leistung / product block (table-row replacement, surface-tone depth, no lines) */
.product-block { background: var(--color-surface-low); padding: 36px; display: flex; flex-direction: column; gap: 18px; transition: background-color 220ms ease; }
.product-block:hover { background: var(--color-surface-container); }
.product-block .pb-eyebrow { font-size: var(--text-label-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--accent); }
.product-block .pb-title { font-size: var(--text-h4); font-weight: var(--fw-bold); }
.product-block .pb-meta { font-size: var(--text-body-sm); color: var(--text-muted); }
.product-block .pb-body { font-size: var(--text-body); color: var(--text-secondary); line-height: var(--lh-editorial); }
.pb-divider { height: 0; background: none; }

/* Numbered step (AIGIS sequence) */
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--color-surface-highest);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: 13px; color: var(--accent);
  letter-spacing: var(--ls-wide);
}
.step--dark .step-num { background: color-mix(in srgb, var(--color-on-primary) 8%, transparent); }
.step-title { font-size: var(--text-h4); font-weight: var(--fw-bold); margin-bottom: 4px; }
.step-body { font-size: var(--text-body); color: var(--text-secondary); line-height: var(--lh-normal); }
.step--dark .step-body { color: color-mix(in srgb, var(--color-inverse-on-surface) 70%, transparent); }

/* Pull quote / dark authority container */
.pull-quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 28px; }
.pull-quote blockquote { font-size: var(--text-h3); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.pull-quote cite { display: block; font-style: normal; font-size: var(--text-label-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: var(--text-label-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; }
.chip-primary { background: var(--accent); color: var(--color-on-primary); }
.chip-primary .icon { color: var(--color-on-primary) !important; font-size: 13px !important; }
.chip-surface { background: var(--color-surface-container); color: var(--text-secondary); }
.chip-surface .icon { font-size: 13px !important; }
.chip-dark { background: var(--color-on-surface); color: var(--text-inverse); }
.chip-soon { background: var(--color-surface-container); color: var(--text-muted); }

/* ─── FORM ELEMENTS ────────────────────────────────────────── */
.field { margin-bottom: 24px; }
.field label:not(.checkbox), .field .field-label {
  display: block; font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 8px;
}
.field .req { color: var(--accent); }
.field .opt { color: var(--text-muted); font-weight: var(--fw-regular); letter-spacing: var(--ls-wide); }
.input, .field input, .field textarea, .field select {
  width: 100%;
  background: var(--color-surface-container);
  border: none; border-bottom: 2px solid transparent;
  font-family: var(--font-content); font-size: 15px;
  padding: 14px 16px; color: var(--text-primary);
  outline: none; display: block;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.field-error input, .field-error textarea, .field-error select { border-bottom-color: var(--color-error); background: #fff8f7; }
.error-msg { font-size: 11px; color: var(--color-error); margin-top: 6px; font-weight: var(--fw-bold); }

/* Select with custom chevron */
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px; cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; pointer-events: none; background-color: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') center / contain no-repeat;
}

/* Checkbox — DSGVO opt-in, square, never pre-filled */
.checkbox { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  background: var(--color-surface-container);
  box-shadow: inset 0 0 0 2px var(--color-outline-variant);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.checkbox .box .icon { color: var(--color-on-primary) !important; font-size: 18px !important; opacity: 0; transition: opacity 140ms ease; }
.checkbox input:focus-visible + .box { box-shadow: inset 0 0 0 2px var(--accent); }
.checkbox input:checked + .box { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.checkbox input:checked + .box .icon { opacity: 1; }
.checkbox .cb-text { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: var(--lh-normal); }
.checkbox .cb-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ─── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 var(--pad-x);
}
/* No-line rule: nav separates from content through frosted blur + surface tone only (no hairline). */
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 33px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 38px; }
.nav-link {
  font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  transition: color 280ms ease; cursor: pointer; position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-toggle .icon { font-size: 16px !important; color: currentColor; transition: transform 220ms ease; }
.nav-dd:hover .nav-dd-toggle .icon { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--color-surface-lowest);
  box-shadow: 0 20px 40px var(--shadow-ambient);
  min-width: 230px; padding: 10px 0;
  opacity: 0; visibility: hidden; transition: opacity 200ms ease, transform 200ms ease;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dd-item { display: block; padding: 12px 24px; text-decoration: none; transition: background-color 180ms ease; }
.nav-dd-item:hover { background: var(--color-surface-low); }
.nav-dd-item .ddi-title { display: block; font-size: 12px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-primary); }
.nav-dd-item:hover .ddi-title { color: var(--accent); }
.nav-dd-item .ddi-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular); }
/* Active sub-page within the open dropdown */
.nav-dd-item.active { background: var(--color-surface-low); }
.nav-dd-item.active .ddi-title { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }
.nav-burger .icon { color: var(--text-primary) !important; font-size: 28px !important; }

/* Mobile panel */
.nav-mobile { position: fixed; inset: 0; z-index: 300; background: var(--color-surface); transform: translateX(100%); transition: transform 320ms cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; visibility: hidden; }
.nav-mobile.open { transform: translateX(0); visibility: visible; }
.nav-mobile-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 var(--pad-x); }
.nav-mobile-top img { height: 28px; width: auto; }
.nav-mobile-links { display: flex; flex-direction: column; padding: 32px var(--pad-x); gap: 4px; overflow-y: auto; }
.nav-mobile-links a,
.nav-mobile-acc { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-primary); text-decoration: none; padding: 16px 0; transition: color 220ms ease; }
.nav-mobile-links a:hover,
.nav-mobile-acc:hover { color: var(--accent); }
.nav-mobile-acc { background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 8px; width: 100%; }
.nav-mobile-acc .icon { font-size: 22px; }
.nav-mobile-acc-panel { display: none; padding-left: 4px; }
.nav-mobile-links .sub { font-size: var(--text-body-sm); letter-spacing: var(--ls-wider); color: var(--text-secondary); padding: 10px 0 10px 20px; }
.nav-mobile-links .sub.active { color: var(--accent); }
.nav-mobile-sub-label { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-muted); margin-top: 16px; }
.nav-mobile-cta { padding: 24px var(--pad-x) calc(24px + env(safe-area-inset-bottom)); margin-top: auto; }
.nav-close { background: none; border: none; cursor: pointer; }
.nav-close .icon { color: var(--text-primary) !important; font-size: 30px !important; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--color-surface-low); padding: 80px var(--pad-x) 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 33px; width: auto; margin-bottom: 20px; }
.footer-tagline { font-size: var(--text-label-sm); font-weight: var(--fw-bold); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--text-muted); }
.footer-mission { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: var(--lh-editorial); margin-top: 18px; max-width: 320px; }
.footer-col h4 { font-size: 11px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-primary); margin-bottom: 18px; }
.footer-col a { display: block; font-size: var(--text-body-sm); color: var(--text-secondary); text-decoration: none; padding: 7px 0; transition: color 220ms ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 0 calc(var(--pad-x) * -1) -40px; padding: 28px var(--pad-x) 40px; background: var(--color-surface-container); }
.footer-legal { font-size: 11px; letter-spacing: var(--ls-normal); color: var(--text-muted); font-weight: var(--fw-regular); line-height: var(--lh-normal); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-legal-links a { font-size: var(--text-label-sm); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-bold); text-decoration: none; transition: color 220ms ease; }
.footer-legal-links a:hover { color: var(--accent); }

/* ─── PERSISTENT CTA BAR (mobile) ──────────────────────────── */
/* Keeps the primary scan CTA reachable at every scroll depth on ≤1024px,
   where the nav collapses to a hamburger. Floating element → warm ambient
   shadow for separation (no hairline). Omit the markup on Governance-Scan.html. */
.scan-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -14px 34px var(--shadow-ambient);
}
.scan-bar .btn { width: 100%; }

/* ─── UTILITIES ────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.skip-anchor { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-burger { display: inline-flex; }
  .scan-bar { display: block; }
  body:has(.scan-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal-links { gap: 18px; }
}
