/* =============================================================
   Compliance guide pages — /compliance/*.html
   Loaded on top of main.css + blog.css + modules.css + module-detail.css
   ============================================================= */

/* ---------- Key-fact strip under hero ---------- */
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
@media (max-width: 900px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fact-strip { grid-template-columns: 1fr; } }
.fact-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,.02); }
.fact-card dt { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 8px; }
.fact-card dd { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 15px;
  line-height: 1.4; color: var(--foreground); }

/* ---------- On-this-page nav ---------- */
.toc-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, #E8E2D5 5%, var(--background)); padding: 14px 0; }
.toc-list { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.toc-list a { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .02em;
  color: var(--muted-foreground); text-decoration: none; }
.toc-list a:hover { color: #B5451B; }

/* ---------- Data table ---------- */
.reg-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.015); }
.reg-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.reg-table th, .reg-table td { text-align: left; padding: 14px 18px; vertical-align: top;
  border-bottom: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; }
.reg-table thead th { font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground);
  background: rgba(255,255,255,.02); }
.reg-table tbody tr:last-child td { border-bottom: 0; }
.reg-table td strong { color: var(--foreground); font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; }
.reg-table td { color: var(--muted-foreground); }
.form-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: #B5451B; padding: 3px 8px; border-radius: 4px;
  border: 1px solid color-mix(in oklab, #B5451B 32%, transparent);
  background: color-mix(in oklab, #B5451B 8%, transparent); white-space: nowrap; }

/* ---------- Document checklist ---------- */
.doc-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 820px) { .doc-groups { grid-template-columns: 1fr; } }
.doc-group { padding: 22px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.02); }
.doc-group h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  margin: 0 0 14px; color: var(--foreground); letter-spacing: -0.01em; }
.doc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.doc-group li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.6;
  color: var(--muted-foreground); }
.doc-group li::before { content: ''; position: absolute; left: 0; top: 6px;
  width: 11px; height: 11px; border-radius: 3px;
  border: 1px solid color-mix(in oklab, #B5451B 55%, transparent);
  background: color-mix(in oklab, #B5451B 14%, transparent); }

/* ---------- Numbered process steps ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 20px 0 20px 62px;
  border-bottom: 1px solid var(--border); }
.step-list li:last-child { border-bottom: 0; }
.step-list li::before { content: counter(step, decimal-leading-zero); position: absolute;
  left: 0; top: 20px; width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #B5451B;
  border: 1px solid color-mix(in oklab, #B5451B 35%, var(--border));
  background: color-mix(in oklab, #B5451B 9%, transparent); }
.step-list h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  margin: 0 0 6px; color: var(--foreground); letter-spacing: -0.01em; }
.step-list p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground); }
.step-meta { display: inline-block; margin-top: 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em; color: var(--muted-foreground); }

/* ---------- Rejection reasons ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 820px) { .risk-grid { grid-template-columns: 1fr; } }
.risk-card { padding: 20px; border: 1px solid var(--border); border-left: 2px solid #B5451B;
  border-radius: 0 10px 10px 0; background: rgba(255,255,255,.02); }
.risk-card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  margin: 0 0 8px; color: var(--foreground); }
.risk-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); }
.risk-fix { display: block; font-size: 13px; line-height: 1.55;
  color: color-mix(in oklab, var(--foreground) 78%, transparent); }
.risk-fix b { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #B5451B; display: block; margin-bottom: 4px; }

/* ---------- Callout ---------- */
.callout { margin: 26px 0 0; padding: 18px 20px; border-radius: 10px;
  border: 1px solid color-mix(in oklab, #B5451B 28%, var(--border));
  background: color-mix(in oklab, #B5451B 7%, transparent);
  font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground); }
.callout strong { color: var(--foreground); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255,255,255,.02); padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--foreground); display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #B5451B; font-family: 'JetBrains Mono', monospace; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Related links ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card.is-soon {
  opacity: .72;
  cursor: default;
  background: color-mix(in oklab, var(--muted, #f4f1ea) 35%, transparent);
}
.related-card.is-soon:hover { border-color: var(--border); }
.related-card { display: block; padding: 20px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255,255,255,.02); text-decoration: none; }
.related-card:hover { border-color: color-mix(in oklab, #B5451B 45%, var(--border)); }
.related-card span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); display: block; margin-bottom: 10px; }
.related-card h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px;
  margin: 0 0 6px; color: var(--foreground); }
.related-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Renewal timeline widget ---------- */
.tl-widget { margin-top: 30px; padding: 24px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(255,255,255,.02); }
.tl-head { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end; }
.tl-head h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 6px;
  color: var(--foreground); letter-spacing: -0.01em; }
.tl-head p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); max-width: 520px; }
.tl-field { display: grid; gap: 6px; }
.tl-field span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); }
.tl-field input { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--foreground);
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px;
  color-scheme: dark; }
.tl-field input:focus { outline: none; border-color: color-mix(in oklab, #B5451B 55%, var(--border)); }
.tl-summary { margin: 18px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--foreground); }
.tl-summary:empty { display: none; }
.tl-track { list-style: none; margin: 20px 0 0; padding: 0 0 0 26px; position: relative; }
.tl-track::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: var(--border); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -25px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, #B5451B 45%, var(--border));
  background: var(--background); }
.tl-item.tl-past .tl-dot { background: color-mix(in oklab, #B5451B 65%, transparent); }
.tl-item.tl-near .tl-dot { background: #B5451B; box-shadow: 0 0 0 4px color-mix(in oklab, #B5451B 16%, transparent); }
.tl-key { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #B5451B; margin-right: 10px; }
.tl-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--foreground); margin-right: 8px; }
.tl-rel { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-foreground); }
.tl-item h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14.5px; margin: 6px 0 4px;
  color: var(--foreground); }
.tl-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); max-width: 660px; }
.tl-item.tl-past { opacity: .62; }
.tl-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Multi-step lead form ---------- */
.lead-shell { margin-top: 28px; border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  background: rgba(255,255,255,.02); max-width: 880px; }
.lead-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 24px; padding: 0; }
.lead-dots li { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em; color: var(--muted-foreground); }
.lead-dots li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); font-size: 11px; }
.lead-dots li.is-active { color: var(--foreground); }
.lead-dots li.is-active span { border-color: #B5451B; color: #B5451B;
  background: color-mix(in oklab, #B5451B 12%, transparent); }
.lead-dots li.is-done span { background: color-mix(in oklab, #B5451B 55%, transparent); color: #fff;
  border-color: transparent; }
.lead-step { border: 0; margin: 0; padding: 0; }
.lead-step legend { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px;
  color: var(--foreground); margin-bottom: 16px; padding: 0; letter-spacing: -0.01em; }
.lead-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 640px) { .lead-choices { grid-template-columns: 1fr; } }
.lead-choices label { display: flex; align-items: center; gap: 10px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13.5px;
  color: var(--muted-foreground); background: rgba(255,255,255,.015); }
.lead-choices label:hover { border-color: color-mix(in oklab, #B5451B 40%, var(--border)); }
.lead-choices input { accent-color: #B5451B; }
.lead-choices label:has(input:checked) { border-color: #B5451B; color: var(--foreground);
  background: color-mix(in oklab, #B5451B 8%, transparent); }
.lead-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-field { display: grid; gap: 6px; }
.lead-field label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); }
.lead-field input, .lead-field select { font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--foreground); background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 13px; width: 100%; }
.lead-field select { color-scheme: dark; }
.lead-field input:focus, .lead-field select:focus { outline: none;
  border-color: color-mix(in oklab, #B5451B 55%, var(--border)); }
.lead-field.is-invalid input, .lead-field.is-invalid select,
.lead-choices.is-invalid { border-color: #B5451B; }
.lead-choices.is-invalid { border: 1px solid #B5451B; border-radius: 12px; padding: 8px; }
.lead-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px;
  line-height: 1.55; color: var(--muted-foreground); }
.lead-check input { accent-color: #B5451B; margin-top: 2px; }
.lead-actions { display: flex; gap: 12px; margin-top: 26px; }
.lead-done h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; margin: 8px 0 8px;
  color: var(--foreground); letter-spacing: -0.01em; }
.lead-done p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--muted-foreground);
  max-width: 620px; }
.lead-done:focus { outline: none; }

/* =============================================================
   03 · The file — tabbed split view
   ============================================================= */
.doc-tabs { margin-top: 8px; }
.doc-tablist { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px;
  border-bottom: 1px solid var(--border); scrollbar-width: none; }
.doc-tablist::-webkit-scrollbar { display: none; }
.doc-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 9px 9px 0 0; border: 1px solid transparent; border-bottom: 0;
  background: transparent; cursor: pointer; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--muted-foreground); transition: color .15s, background .15s, border-color .15s; }
.doc-tab:hover { color: var(--foreground); background: rgba(255,255,255,.03); }
.doc-tab-k { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em;
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px;
  border: 1px solid var(--border); color: var(--muted-foreground); }
.doc-tab.is-active { color: var(--foreground);
  border-color: var(--border);
  background: color-mix(in oklab, #B5451B 8%, transparent); }
.doc-tab.is-active .doc-tab-k { color: #B5451B; border-color: color-mix(in oklab, #B5451B 45%, transparent);
  background: color-mix(in oklab, #B5451B 14%, transparent); }

.doc-split { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 20px;
  margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .doc-split { grid-template-columns: 1fr; } }
.doc-panes { border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  background: rgba(255,255,255,.02); min-width: 0; }
.doc-pane[hidden] { display: none; }
.doc-pane { animation: docFade .25s ease; }
@keyframes docFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.doc-pane h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16.5px;
  margin: 0 0 6px; color: var(--foreground); letter-spacing: -0.01em; }
.doc-pane-note { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.doc-pane ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-pane li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.65;
  color: var(--muted-foreground); }
.doc-pane li::before { content: ''; position: absolute; left: 0; top: 6px; width: 11px; height: 11px;
  border-radius: 3px; border: 1px solid color-mix(in oklab, #B5451B 55%, transparent);
  background: color-mix(in oklab, #B5451B 14%, transparent); }

.doc-visual { align-self: stretch; border: 1px solid var(--border); border-radius: 12px;
  background: color-mix(in oklab, #B5451B 5%, rgba(255,255,255,.02)); overflow: hidden; }

.doc-visual-inner { padding: 24px; text-align: center; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.doc-visual-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); }
.doc-bot { width: 100%; max-width: 220px; height: auto; display: block; margin: 4px auto 14px; }
/* Reviewer — business figure (colours live on the SVG itself) */
.doc-bot .bot-eye { animation: botBlink 5s infinite; transform-origin: center; }
@keyframes botBlink { 0%,92%,100% { opacity: 1; } 95% { opacity: .15; } }
.doc-bot .bot-scan { animation: botScan 3.6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes botScan { 0% { transform: translateY(0); } 50% { transform: translateY(78px); } 100% { transform: translateY(0); } }
.doc-bot .bot-lens { transform-origin: 163px 92px; }
@media (prefers-reduced-motion: reduce) {
  /* Soften rather than strip: the scan settles mid-page and fades gently, eyes stop blinking. */
  .doc-bot .bot-eye { animation: none; }
  .doc-bot .bot-scan { animation: botScanSoft 9s ease-in-out infinite; transform: translateY(38px); }
  @keyframes botScanSoft { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
}


.doc-visual-title { margin: 0 0 6px; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 15px; color: var(--foreground); }
.doc-visual-body { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.doc-visual-meter { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.doc-visual-meter span { display: block; height: 100%; background: #B5451B; transition: width .35s ease; }
.doc-visual-step { margin: 10px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }

/* =============================================================
   09 · Checklist CTA band + drawer
   ============================================================= */
.ck-band { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 28px;
  align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 28px;
  background: color-mix(in oklab, #B5451B 5%, rgba(255,255,255,.02)); }
@media (max-width: 820px) { .ck-band { grid-template-columns: 1fr; } }
.ck-band-copy h2 { margin-top: 6px; }
.ck-band-copy .lede { max-width: 560px; }
.ck-band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ck-band-list li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.55;
  color: var(--muted-foreground); }
.ck-band-list li::before { content: '✓'; position: absolute; left: 0; top: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #B5451B; }

.ck-scrim { position: fixed; inset: 0; z-index: 60; opacity: 0; pointer-events: none;
  background: color-mix(in oklab, var(--foreground) 32%, transparent); backdrop-filter: blur(2px);
  transition: opacity .3s ease; }
.ck-scrim.open { opacity: 1; pointer-events: auto; }
.ck-drawer { position: fixed; z-index: 70; background: var(--background);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.22,1,.36,1); }
.ck-grab { display: none; }
.ck-close { background: none; border: 0; cursor: pointer; color: var(--muted-foreground);
  font-size: 15px; line-height: 1; padding: 8px; border-radius: 8px; }
.ck-close:hover { color: var(--foreground); background: rgba(255,255,255,.05); }
.ck-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 16px; border-bottom: 1px solid var(--hairline); }
.ck-drawer-head h3 { margin: 6px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 18px; color: var(--foreground); letter-spacing: -0.01em; }
.ck-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-foreground); }
.ck-drawer-body { flex: 1; overflow-y: auto; padding: 22px 26px 30px; }
.ck-drawer-body .lead-dots { margin-bottom: 22px; }
.ck-drawer-body .lead-grid,
.ck-drawer-body .lead-choices { grid-template-columns: 1fr; }
.ck-drawer-body .lead-actions { position: sticky; bottom: -30px; margin-top: 26px;
  padding: 14px 0; background: linear-gradient(to top, var(--background) 70%, transparent); }

/* Desktop / tablet — slide in from the right */
@media (min-width: 721px) {
  .ck-drawer { top: 0; right: 0; height: 100%; width: 520px; max-width: 100%;
    border-left: 1px solid var(--hairline);
    box-shadow: -16px 0 48px hsla(150, 11%, 20%, .18);
    transform: translateX(100%); }
  .ck-drawer.open { transform: translateX(0); }
}
/* Mobile — slide up from the bottom as a sheet */
@media (max-width: 720px) {
  .ck-drawer { left: 0; right: 0; bottom: 0; max-height: 92vh;
    border-top: 1px solid var(--hairline); border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 48px hsla(150, 11%, 20%, .22);
    transform: translateY(100%); }
  .ck-drawer.open { transform: translateY(0); }
  .ck-grab { display: block; width: 40px; height: 4px; border-radius: 4px; margin: 10px auto 0;
    background: var(--border); }
  .ck-drawer-head { padding: 12px 20px 14px; }
  .ck-drawer-body { padding: 18px 20px calc(26px + env(safe-area-inset-bottom)); }
}
.lead-actions [hidden], .lead-step[hidden], .lead-done[hidden] { display: none !important; }
.ck-drawer-body .lead-choices label { background: rgba(255,255,255,.5); }

/* Header checklist trigger (sits beside Early Access) */
.header-meta { display: flex; align-items: center; gap: 10px; }
.hdr-checklist { white-space: nowrap; }
.hdr-checklist-short { display: none; }
@media (max-width: 900px) {
  .hdr-checklist-full { display: none; }
  .hdr-checklist-short { display: inline; }
}
@media (max-width: 480px) { .hdr-checklist { display: none; } }

/* =============================================================
   Section rhythm — consistent odd/even system
   Odd  (1,3,5…) : plain surface
   Even (2,4,6…) : stone tint
   Every section gets the same vertical spacing + a hairline divider.
   ============================================================= */
.compliance-body .mod-section {
  padding: var(--sec-pad, 76px) 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  /* Perf: let the browser skip layout/paint for offscreen sections */
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
/* Odd / even tint driven by position, not hand-placed classes */
.compliance-body .mod-section:nth-of-type(even),
.compliance-body .mod-section.mod-section-stone:nth-of-type(even) {
  background: color-mix(in oklab, var(--foreground) 3%, var(--background));
}
.compliance-body .mod-section:nth-of-type(odd),
.compliance-body .mod-section.mod-section-stone:nth-of-type(odd) {
  background: var(--background);
}
/* First section after the hero should not double up on the rule */
.compliance-body .module-hero + .mod-section { border-top: 0; }
/* The hero is measured and always visible — never virtualise it */
.compliance-body .module-hero { content-visibility: visible; }

@media (max-width: 720px) {
  .compliance-body .mod-section { --sec-pad: 52px; contain-intrinsic-size: auto 560px; }
}

/* =============================================================
   Mobile interaction performance
   ============================================================= */
.ck-drawer, .ck-scrim { will-change: transform, opacity; }
.ck-drawer { contain: layout paint; }
.doc-pane { contain: content; }
/* Scrim blur is expensive on low-end mobile GPUs — drop it there */
@media (max-width: 720px) {
  .ck-scrim { backdrop-filter: none; }
  .ck-drawer { transition-duration: .28s; }
}
.ck-drawer-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.doc-tablist { overscroll-behavior-x: contain; }
.ck-drawer :focus-visible,
.doc-tab:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ck-drawer, .ck-scrim, .doc-pane { transition: none !important; animation: none !important; }
}
/* Body lock without layout shift while the drawer is open */
body.ck-locked { overflow: hidden; }

