/* ============================================================
   CRM Hyper Docs — design system
   Cores: azul #00457D (primary) · laranja #FF914D (accent)
   Fontes: Fredoka (títulos) · Montserrat (corpo) · JetBrains Mono (código)
   ============================================================ */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 600 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0F1E2D;
  --ink-2: #4A5A6A;
  --border: #E4E9EF;
  --border-2: #EDF1F5;
  --navy: #00457D;
  --navy-hover: #003A66;
  --navy-800: #00294D;
  --navy-50: #EAF2FA;
  --navy-100: #D4E4F2;
  --orange: #FF914D;
  --orange-hover: #F07D2A;
  --orange-ink: #001F3D;
  --orange-text: #C2410C;
  --orange-icon: #D95912;
  --orange-50: #FFF1E8;
  --danger: #B42318;
  --danger-50: #FDECEA;
  --ok: #146C3F;
  --ok-50: #E8F5EE;
  --warn: #8A5A00;
  --warn-50: #FFF4E0;
  --code-bg: #0D1B2A;
  --code-border: #1B2C40;
  --code-text: #E6EDF3;
  --code-string: #FFB37A;
  --code-key: #8FD3FF;
  --code-num: #F2C97D;
  --code-comment: #94A3B8;
  --code-punct: #7C8BA0;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-btn: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px rgba(0, 45, 85, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 45, 85, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 45, 85, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 45, 85, 0.12);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.375rem; }
code, .mono { font-family: var(--font-mono); font-size: 0.875em; }
code { background: var(--border-2); padding: 0.1em 0.35em; border-radius: 4px; }
code.ph { color: var(--orange-text); }
.mono { font-size: 0.8125rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.footer-brand img { height: 28px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.brand-accent { color: var(--orange-text); }
.main-nav { display: flex; gap: 20px; margin-left: 8px; }
.main-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-btn { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy-50); }
.btn-whatsapp { background: var(--orange); color: var(--orange-ink); }
.btn-whatsapp:hover { background: var(--orange-hover); transform: translateY(-1px); color: var(--orange-ink); }
.btn-icon { padding: 0 16px; }
.btn-link { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 0.875rem; font-family: var(--font-body); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.8125rem; border-radius: var(--radius-md); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-50); color: var(--navy); font-size: 0.8125rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin: 0 0 16px; }
.hero h1 .hl { color: var(--orange-text); }
.hero-sub { font-size: 1.0625rem; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 24px; color: var(--ink-2); }
.hero-code { transform: rotate(1.5deg); box-shadow: var(--shadow-lg); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-xs);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.card-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange-50); color: var(--orange-icon);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 16px; color: var(--ink-2); font-size: 0.875rem; }
.card-link { font-weight: 600; font-size: 0.9375rem; }
.card-meta { color: var(--ink-2); font-size: 0.75rem; display: block; margin-bottom: 8px; }

.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 8px; }
.section-head p { color: var(--ink-2); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.area-card { padding: 20px; }
.area-card h3 { font-size: 1.125rem; }
.area-count { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--orange-text); }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius-md); padding: 16px 20px; font-size: 0.9375rem; margin: 20px 0; }
.callout strong { display: block; margin-bottom: 4px; }
.callout-nondev { border-left: 3px solid var(--navy); background: var(--navy-50); }
.callout-tip { border-left: 3px solid var(--orange); background: var(--orange-50); }
.callout-warn { border-left: 3px solid var(--danger); background: var(--danger-50); }

/* ---------- Layout docs ---------- */
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sidebar {
  position: sticky; top: var(--header-h); align-self: start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 24px 16px 24px 0;
  border-right: 1px solid var(--border);
}
.docs-main { min-width: 0; padding: 48px 0 96px; }
.docs-inner { max-width: 860px; padding: 0 32px; margin: 0 auto; }
.page-head h1 { margin: 0 0 8px; }
.page-sub { color: var(--ink-2); margin: 0 0 20px; }
.head-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hint { color: var(--ink-2); }

/* ---------- Sidebar nav ---------- */
.search-box { position: relative; margin-bottom: 16px; }
.search-box input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); font-family: var(--font-body);
  font-size: 0.875rem; color: var(--ink);
}
.search-box input:focus { outline: 2px solid var(--navy); outline-offset: 2px; border-color: transparent; }
.search-icon { position: absolute; left: 12px; top: 12px; color: var(--ink-2); pointer-events: none; }
.search-results {
  position: absolute; z-index: 40; left: 0; right: 0; top: 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto;
}
.search-results a { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border-2); }
.search-results a:hover { background: var(--navy-50); }
.search-results .m { flex-shrink: 0; }
.search-results .p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results .no-results { padding: 14px; font-size: 0.875rem; color: var(--ink-2); }
.side-nav { font-size: 0.875rem; }
.side-nav details { border-bottom: 1px solid var(--border-2); }
.side-nav summary {
  cursor: pointer; padding: 10px 8px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary::before { content: "▸"; color: var(--ink-2); font-size: 0.75rem; transition: transform 150ms; }
.side-nav details[open] > summary::before { transform: rotate(90deg); }
.side-nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-2); background: var(--border-2); border-radius: 999px; padding: 1px 8px; }
.side-nav ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 8px; }
.side-nav li a {
  display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-2); font-size: 0.8125rem;
  border-left: 3px solid transparent;
}
.side-nav li a:hover { background: var(--navy-50); color: var(--ink); }
.side-nav li a.active { background: var(--navy-50); color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.side-nav li a .p { font-family: var(--font-mono); font-size: 0.6875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Métodos ---------- */
.m {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.6875rem; text-transform: uppercase; border-radius: var(--radius-sm);
  padding: 2px 6px; letter-spacing: 0.02em;
}
.m-get { color: var(--ok); background: var(--ok-50); }
.m-post { color: var(--navy); background: var(--navy-50); }
.m-put, .m-patch { color: var(--warn); background: var(--warn-50); }
.m-delete { color: var(--danger); background: var(--danger-50); }

/* ---------- Seções da referência ---------- */
.api-section { margin-top: 64px; }
.sec-title { margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sec-meta { color: var(--ink-2); margin: 0 0 24px; }
.ep-list { display: flex; flex-direction: column; gap: 16px; }

.endpoint {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.endpoint:hover { border-color: var(--navy-100); box-shadow: var(--shadow-md); }
.ep-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--border-2);
}
.ep-path { font-size: 0.875rem; font-weight: 500; word-break: break-all; background: none; padding: 0; }
.ep-actions { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.ep-body { padding: 20px; }
.ep-summary { margin: 0 0 8px; font-weight: 600; }
.ep-desc { margin: 0 0 16px; color: var(--ink-2); font-size: 0.9375rem; }
.ep-sub { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); margin: 24px 0 10px; }
.ep-sub:first-of-type { margin-top: 8px; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.params { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--surface); }
.params th {
  text-align: left; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg); white-space: nowrap;
}
.params td { padding: 10px 14px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.params tr:last-child td { border-bottom: 0; }
.params td code { background: none; padding: 0; font-size: 0.8125rem; }
.params .t-type { color: var(--ink-2); font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }
.params .ex { color: var(--orange-text); font-size: 0.75rem; }
.req { font-size: 0.75rem; font-weight: 600; border-radius: 4px; padding: 1px 8px; }
.req-yes { color: var(--danger); background: var(--danger-50); }
.req-no { color: var(--ink-2); background: var(--border-2); }

/* ---------- Blocos de código ---------- */
.codeblock { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius-lg); overflow: hidden; margin: 8px 0 16px; }
.cb-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--code-border); }
.cb-file { font-family: var(--font-mono); font-size: 0.75rem; color: var(--code-comment); }
.cb-copy {
  background: transparent; border: 1px solid #2A3D54; color: var(--code-text);
  font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 12px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 150ms;
}
.cb-copy:hover { background: #1B2C40; }
.cb-copy.copied { color: #4ADE80; border-color: #4ADE80; }
.codeblock pre { margin: 0; padding: 16px 20px; overflow-x: auto; }
.codeblock code { background: none; padding: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--code-text); white-space: pre; }

/* ---------- Guias ---------- */
.guide { max-width: 760px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 24px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.guide-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 0.8125rem; margin: 0 0 32px; }
.guide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; }
.step { position: relative; padding: 0 0 32px 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange-50); color: var(--orange-text);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.step::after {
  content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 2px; background: var(--border);
}
.step:last-child::after { display: none; }
.step h3 { margin: 4px 0 8px; }
.step p, .step ul { margin: 0 0 12px; color: var(--ink-2); }
.step ul { padding-left: 20px; }
.step code { background: var(--border-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #fff; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.footer-brand img { margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav a { color: #B8C7D8; text-decoration: none; font-size: 0.9375rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8FA3B8; font-size: 0.8125rem; }
.footer-bottom a { color: #B8C7D8; }

/* ---------- Botão/painel de ajuda ---------- */
.help-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: var(--orange-ink); box-shadow: var(--shadow-md);
  transition: background 150ms, transform 150ms;
}
.help-btn:hover { background: var(--orange-hover); transform: translateY(-2px); }
.help-panel {
  position: fixed; right: 20px; bottom: 80px; z-index: 46;
  width: 300px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px;
}
.help-panel h4 { margin: 0 0 12px; }
.help-panel a { display: block; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-2); }
.help-panel a:last-child { border-bottom: 0; }

/* ---------- Drawer / scrim ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 30, 45, 0.5); z-index: 55; }
.menu-btn { z-index: 60; }
.main-nav.mobile-open {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; top: 56px; left: 16px; right: 16px; z-index: 57;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 12px;
}
.main-nav.mobile-open a { padding: 10px 12px; border-radius: var(--radius-md); border-bottom: 0; }
.main-nav.mobile-open a:hover { background: var(--navy-50); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70;
  background: var(--navy-800); color: #fff; padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; box-shadow: var(--shadow-lg); animation: toast-in 150ms ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 24px; }
.error-code { font-family: var(--font-mono); font-size: 5rem; color: var(--navy-100); font-weight: 700; line-height: 1; }
.error-page h1 { margin: 16px 0 8px; }
.error-page p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 32px; }

/* ---------- Hero code demo (home) ---------- */
.codeblock.demo { margin: 0; }
.demo .cb-file { color: var(--code-comment); }

/* ---------- Responsivo ---------- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .header-actions .hide-sm { display: none; }
  .docs-layout { grid-template-columns: 1fr; padding: 0; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 58;
    width: min(84vw, 320px); background: var(--surface); padding: 88px 20px 24px;
    transform: translateX(-105%); transition: transform 240ms ease-out;
    max-height: none; border-right: 1px solid var(--border);
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .docs-main { padding: 32px 0 64px; }
  .docs-inner { padding: 0 16px; }
  .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-code { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ep-actions { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (max-width: 639px) {
  :root { --header-h: 56px; }
  .container { padding: 0 16px; }
  .header-actions .btn:not(.btn-whatsapp):not(.btn-primary) { display: none; }
  .btn-primary { padding: 0 14px; font-size: 0.875rem; }
  .btn-whatsapp .wa-label { display: none; }
  .btn-whatsapp { padding: 0 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-left: 56px; }
  .step::before { width: 40px; height: 40px; font-size: 1rem; }
  .step::after { left: 19px; }
  .help-panel { width: calc(100vw - 40px); }
  .params td, .params th { padding: 8px 10px; }
  .hero-proof { font-size: 0.8125rem; }
}

/* ---------- Impressão (guias) ---------- */
@media print {
  .site-header, .site-footer, .help-btn, .help-panel, .scrim, .menu-btn, .btn-copy, .cb-copy { display: none !important; }
  body { background: #fff; }
  .codeblock { break-inside: avoid; }
  .step { break-inside: avoid; }
  a { color: var(--ink); }
}

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