/* =========================================================================
   Dra. Sofia Ferreira — site.css
   Fixed (non-editable) design tokens + full component system (UX §3–§17).
   Editable tokens (--bg,--surface,--ink,--muted,--accent,fonts,--radius) come
   from /theme.css. Dark mode is a deliberate non-goal for v1 (UX §19 D9).
   ========================================================================= */

/* ---- Self-hosted fonts (SIL OFL; no third-party calls) ---- */
@font-face {
  font-family: "Source Serif 4";
  src: url("/static/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ---- Fixed design tokens (UX §17; NOT in theme.css) ---- */
:root {
  --text: #384358;
  --surface-2: #EEF1F5;
  --line: #E2E6EC;
  --accent-strong: #0A5E66;
  --accent-tint: #E6F2F3;
  --on-accent: #FFFFFF;
  --sand: #C8A36A;
  --success: #1E7A4D;
  --error: #B3261E;
  --warning: #8A6D1F;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --container: 1200px; --container-prose: 720px;
  --radius-sm: 8px; --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(22,36,59,.06);
  --shadow-2: 0 8px 24px rgba(22,36,59,.10);

  --ease: cubic-bezier(.2,.6,.2,1);
  --dur-1: 120ms; --dur-2: 200ms;

  /* Fallbacks if /theme.css somehow fails to load. */
  --bg: #FFFFFF; --surface: #F6F8FA; --ink: #16243B; --muted: #5B6473;
  --accent: #0E7C86; --radius: 10px;
  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; }
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 1rem + 0.1vw, 18px);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); line-height: 1.15; margin: 0 0 var(--space-4); font-weight: 600; }
h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }
h4, h5, h6 { font-family: var(--font-body); color: var(--ink); font-weight: 600; margin: 0 0 var(--space-3); }
h4 { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.3; }
p { margin: 0 0 var(--space-4); }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:target { scroll-margin-top: 90px; }  /* sticky header not obscuring focus (WCAG 2.4.11) */
.scroll-anchor { scroll-margin-top: 90px; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: var(--container-prose); }
.prose p, .prose li { font-size: clamp(17px, 1rem, 18px); }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--surface); }
.stack > * + * { margin-top: var(--space-4); }
.muted { color: var(--muted); }
.overline { font-size: clamp(12px,1vw,13px); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-strong); margin: 0 0 var(--space-3); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--text); }
@media (min-width: 1024px) { .container { padding-inline: 40px; } }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1100;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Icons ---- */
.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; }
.icon--sm { width: 20px; height: 20px; }

/* ---- Focus visibility (WCAG 2.4.7) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 12px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.btn-primary { background: var(--accent-strong); color: var(--on-accent); }
.btn-primary:hover { background: #084a51; }
.btn-primary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;  /* white halo so the ring doesn't merge into the fill (UX §9.1) */
}
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--accent-strong); min-height: auto; padding: 6px 4px; border: none; }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn-whatsapp { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-whatsapp:hover { background: var(--surface-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
}
.card:hover { box-shadow: var(--shadow-1); border-color: #cfe3e5; }
.card h3 { font-size: clamp(19px,1.6vw,22px); margin-bottom: var(--space-2); }
.card .stretched-link::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
}
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--surface-2); color: var(--ink); border-radius: var(--radius-pill);
  font-size: clamp(13px,1vw,14px); font-weight: 500; border: 1px solid var(--line); text-decoration: none;
}
.chip--accent { background: var(--accent-tint); border-color: #cde7e8; color: var(--accent-strong); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- Callouts / disclaimers ---- */
.callout {
  background: var(--accent-tint); border-left: 4px solid var(--accent);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm);
  display: flex; gap: var(--space-3); align-items: flex-start; color: var(--accent-strong);
}
.callout .icon { color: var(--accent-strong); flex: 0 0 auto; }
.callout p { margin: 0; color: var(--text); }
.note-quiet { font-size: clamp(13px,1vw,14px); color: var(--muted); }
.privacy-notice { margin-top: var(--space-3); }
.privacy-notice details { margin-top: var(--space-2); }
.privacy-notice summary { cursor: pointer; color: var(--accent-strong); display: inline-block; padding: 2px 0; }
.privacy-notice ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: 4px; }
.privacy-notice a { color: var(--accent-strong); }

/* ---- Trust strip ---- */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; }
.trust-strip li { display: flex; align-items: center; gap: var(--space-2); list-style: none; color: var(--ink); }
.trust-strip ul { display: contents; }
.trust-strip .icon { color: var(--accent); }

/* ---- FAQ groups ---- */
.faq-group + .faq-group { margin-top: var(--space-7); }
.faq-group-title { font-size: clamp(20px, 2vw, 26px); margin-bottom: var(--space-3); }

/* ---- Accordion (FAQ) ---- */
/* Hairline only BETWEEN items: none under the group title, before the first,
   or after the last (keeps the FAQ uncluttered). */
.accordion-item + .accordion-item { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) 0; font-family: var(--font-body); font-size: clamp(17px,1.3vw,19px);
  font-weight: 600; color: var(--ink); min-height: 44px;
}
.accordion-trigger .icon { color: var(--accent); transition: transform var(--dur-2) var(--ease); flex: 0 0 auto; }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion-panel { overflow: hidden; padding: 0 0 var(--space-4); }
.accordion-panel[hidden] { display: none; }

/* ---- Forms ---- */
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field--error input, .field--error textarea { border-color: var(--error); }
.field .error-msg { color: var(--error); font-size: 14px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.field .help { color: var(--muted); font-size: 14px; margin-top: 6px; }
.error-summary { background: #fdecea; border: 1px solid var(--error); color: var(--error); padding: var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-5); }
.form-success { display: flex; gap: var(--space-3); align-items: flex-start; background: #eaf6ef; border: 1px solid var(--success); color: #145c3a; padding: var(--space-5); border-radius: var(--radius); }
.form-success .icon { color: var(--success); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 600; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark .name { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--ink); }
.wordmark .role { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-desktop { display: none; align-items: center; gap: var(--space-4); }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 2px; }
.nav-desktop a[aria-current="page"] { color: var(--accent-strong); box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
/* Compact CTA in the header bar (full-size .btn elsewhere). */
.header-actions .btn { min-height: 38px; padding: 8px 16px; font-size: 15px; }
.nav-toggle, .lang-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer; padding: 0 10px; font: inherit;
}
.lang-trigger .icon { color: var(--accent); }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* Language menu */
.lang-menu { position: relative; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2); padding: 6px; min-width: 180px; list-style: none; margin: 0; z-index: 50;
}
.lang-list[hidden] { display: none; }
.lang-list button, .lang-list a { display: block; width: 100%; text-align: left; background: none; border: none; padding: 10px 12px; border-radius: 6px; color: var(--ink); cursor: pointer; font: inherit; text-decoration: none; }
.lang-list button:hover, .lang-list a:hover { background: var(--surface-2); }
.lang-list [aria-current="true"] { font-weight: 600; color: var(--accent-strong); }

/* Mobile overlay menu — z-index must exceed .mobile-action-bar (700) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 750; background: #fff; padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + 56px); /* clear the action bar */
  display: flex; flex-direction: column; gap: var(--space-4); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a { display: block; padding: var(--space-3) 0; font-size: 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .menu-head { display: flex; justify-content: space-between; align-items: center; }

/* ---- Hero ---- */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
.hero-portrait img, .hero-portrait .placeholder {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 0.85fr 1fr; gap: var(--space-8); } .hero-portrait { order: -1; } }

/* ---- Process stepper ---- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; }
.step .num { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: var(--space-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---- Two-column (contact) ---- */
.two-col { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }
.channel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.channel-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.channel-list .icon { color: var(--accent); flex: 0 0 auto; }
.map-static img, .map-static .placeholder { width: 100%; aspect-ratio: 3/4; max-height: 520px; border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.map-embed { margin-bottom: var(--space-3); }
.map-embed iframe { width: 100%; aspect-ratio: 3/4; max-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.map-facade { width: 100%; aspect-ratio: 3/4; max-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-strong); }
.map-facade .icon { color: var(--accent); }

/* ---- Table of contents ---- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6); }
.toc ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.toc a { color: var(--accent-strong); }

/* ---- Prose tables (e.g. cookie policy) ---- */
.prose table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: clamp(15px,1vw,16px); }
.prose th, .prose td { text-align: left; padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose h2 { margin-top: var(--space-6); }

/* ---- Footer (dark) ---- */
.site-footer { background: var(--ink); color: #fff; padding-block: var(--space-8) var(--space-5); margin-top: var(--space-9); }
.site-footer a,
.site-footer .btn-quiet { color: #5FB3BC; text-decoration: none; }  /* NOT var(--accent): 3.15:1 fails AA on --ink (UX §3.4) */
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer .muted { color: #9AA6B6; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--space-7); padding-top: var(--space-4); font-size: 13px; color: #9AA6B6; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; }
.footer-brand .name { font-family: var(--font-heading); font-size: 20px; color: #fff; }
.footer-brand .role { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9AA6B6; }

/* ---- Mobile sticky action bar ---- */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 700; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--ink); text-decoration: none; font-size: 12px; }
.mobile-action-bar .icon { color: var(--accent); }
@media (min-width: 1024px) { .mobile-action-bar { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ---- Back to top ---- */
.back-to-top { position: fixed; right: 16px; bottom: 76px; z-index: 650; width: 44px; height: 44px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); display: none; align-items: center; justify-content: center; cursor: pointer; }
.back-to-top.show { display: flex; }
@media (min-width: 1024px) { .back-to-top { bottom: 16px; } }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 76px; z-index: 1000;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: var(--space-5); max-width: 640px; margin-inline: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-buttons { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-3); margin-top: var(--space-4); }
.cookie-buttons .btn { min-height: 44px; padding: 10px; }
@media (min-width: 1024px) { .cookie-banner { bottom: 16px; } }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(22,36,59,.4); display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius); padding: var(--space-6); max-width: 480px; width: 100%; box-shadow: var(--shadow-2); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }

/* ---- Chat launcher + panel (shell here; JS wires it in M5) ---- */
.chat-launcher {
  position: fixed; right: 16px; bottom: 140px; z-index: 800;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 56px;
  padding: 0 24px; border-radius: var(--radius-pill); background: var(--accent-strong);
  color: var(--on-accent); border: none; cursor: pointer; box-shadow: var(--shadow-2);
  font-family: var(--font-body); font-weight: 600; font-size: 18px;
}
.chat-launcher .icon { color: #fff; width: 22px; height: 22px; }
@media (min-width: 1024px) { .chat-launcher { bottom: 16px; } }
.chat-launcher[hidden] { display: none; }

.chat-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; width: min(520px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 24px)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
@media (max-width: 640px) { .chat-panel { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
.chat-header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.chat-header .chat-ai-label { font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; margin-right: auto; }
.chat-header .icon { color: var(--accent); }
.chat-close { background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; color: var(--muted); }
.chat-disclaimer { background: var(--accent-tint); color: var(--text); font-size: 13px; padding: var(--space-3) var(--space-4); display: flex; gap: var(--space-2); }
.chat-disclaimer .icon { color: var(--accent-strong); flex: 0 0 auto; }
.chat-messages { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.chat-bubble { max-width: 90%; padding: 10px 14px; border-radius: var(--radius); line-height: 1.5; overflow-wrap: anywhere; }
.chat-bubble.assistant { background: var(--surface); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-bubble.user { background: var(--accent-tint); border-bottom-right-radius: 4px; align-self: flex-end; }
/* Rendered Markdown inside assistant bubbles */
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble > :last-child { margin-bottom: 0; }
.chat-bubble ul, .chat-bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.chat-bubble li { margin: 2px 0; }
.chat-bubble h3, .chat-bubble h4, .chat-bubble h5, .chat-bubble h6 {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); margin: 10px 0 4px;
}
.chat-bubble code { background: rgba(22,36,59,.07); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.chat-bubble a { color: var(--accent-strong); text-decoration: underline; }
.chat-bubble hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; }
.chat-bubble strong { font-weight: 600; color: var(--ink); }
.chat-caret::after { content: "▋"; animation: blink 1s steps(2,start) infinite; }
@media (prefers-reduced-motion: reduce) { .chat-caret::after { animation: none; } }
@keyframes blink { to { visibility: hidden; } }
.chat-handoff { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.chat-input-row { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); align-items: flex-end; }
.chat-input-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.chat-input-row button[type=submit] { min-width: 44px; min-height: 44px; border-radius: var(--radius-sm); border: none; background: var(--accent-strong); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-footer { font-size: 12px; color: var(--muted); padding: var(--space-2) var(--space-4) var(--space-3); }
.chat-footer a { color: var(--accent-strong); }

/* ---- Skeleton shimmer ---- */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; background: var(--surface-2); } }

/* ---- Video gallery (privacy-first click-to-load facades) ---- */
.video-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { display: flex; flex-direction: column; gap: var(--space-2); text-decoration: none; color: inherit; margin: 0; }
.video-facade { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 5; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play .icon { width: 64px; height: 64px; color: #fff; background: rgba(10,94,102,.92); border-radius: var(--radius-pill); padding: 16px; box-shadow: var(--shadow-2); transition: transform var(--dur-2) var(--ease); }
.video-card:hover .video-play .icon { transform: scale(1.06); }
.video-card figcaption, .video-caption { display: flex; flex-direction: column; gap: 2px; padding-top: var(--space-2); }
.video-card figcaption strong, .video-caption strong { color: var(--ink); }
.video-consent { font-size: 12px; }
.video-card iframe { width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: var(--radius); display: block; }

/* ---- Utilities (keep CSP style-src 'self'; no inline style attributes) ---- */
.text-center { text-align: center; }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.my-5 { margin-block: var(--space-5); }
.mb-2 { margin-bottom: var(--space-2); }
.btn-row--center { justify-content: center; }
.field--narrow { max-width: 420px; }
.step .muted { margin: 4px 0 0; }
.h-overline { font-size: 16px; margin: 0 0 var(--space-2); }
.h-modal { font-size: 20px; }

/* ---- Visually hidden ---- */
.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; }

/* ---- Print (UX §14) ---- */
@media print {
  .site-header, .mobile-action-bar, .chat-launcher, .chat-panel,
  .cookie-banner, .back-to-top, .lang-menu, .mobile-menu { display: none !important; }
  body { color: #000 !important; background: #fff !important; font-size: 12pt; padding-bottom: 0; }
  a[href]:not([href^="#"]):not([href^="javascript"])::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; }
  .card, .accordion-panel, .step { break-inside: avoid; }
  .site-footer { background: #fff !important; color: #000 !important; margin-top: var(--space-6); border-top: 1px solid #000; }
  .site-footer a, .footer-legal, .site-footer .muted { color: #000 !important; }
}
