/* superclaim content pages: the call back sheet (lifted from site/index.html, which keeps its own inline copy),
   the "Prefer a call?" link, the sticky WhatsApp bar and the lead sheet. Loaded after pages.css, whose tokens it
   uses. Light only. WhatsApp green stays on WhatsApp buttons; the call back controls are accent. */
:root { --field: #8b877d; --err: #b3261e; }
@keyframes fade { from { opacity: 0; } }
.cta-alt { margin: var(--s-2) 0 0; }
/* Call back sheet. A native dialog: a bottom sheet on phones, a centred panel from 768px.
   Entry is a quiet accent text link under the WhatsApp buttons (never on the sticky bar).
   Groups are split by hairlines, no boxes. Accent, never WhatsApp green. Needs JS, so hidden without it. */
.cb-alt { display: none; }
.js .cb-alt { display: block; }
.cbl { font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--accent); background: none; border: 0; padding: 6px 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cbl span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .cbl:hover { color: var(--accent-hover); } }
html.cb-lock, html.cb-lock body { overflow: hidden; }
.cb { border: 0; padding: 0; color: var(--ink); background: var(--bg); width: 100%; max-width: 100%;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0;
  overflow-y: auto; overscroll-behavior: contain; }
.cb::backdrop { background: rgba(21, 23, 28, 0.45); }
.cb[open] { animation: cb-up 280ms var(--ease-out); }
.cb[open]::backdrop { animation: fade 200ms ease; }
@keyframes cb-up { from { transform: translateY(100%); } }
@keyframes cb-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes cb-spin { to { transform: rotate(360deg); } }
.cb-in { padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); }
.cb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.cb-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; outline: none; }
.cb-x { flex: none; width: 44px; height: 44px; margin: -10px -12px 0 0; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.cb-x svg { width: 20px; height: 20px; }
.cb-lede { margin-top: var(--s-2); color: var(--ink-soft); font-size: 1rem; }
.cb-f { margin-top: var(--s-5); }
.cb-g { margin: 0; padding: var(--s-4) 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
/* A floated legend sits inside the fieldset, so the hairline runs above it, not through it. */
.cb-g legend { float: left; width: 100%; margin-bottom: var(--s-3); }
.cb-g legend + * { clear: both; }
.cb-g legend, .cb-lab { display: block; padding: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.cb-op { font-weight: 400; color: var(--muted); }
.cb-inp { display: block; width: 100%; height: 48px; margin-top: var(--s-2); padding: 0 14px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--field); border-radius: 10px; -webkit-appearance: none; appearance: none; }
.cb-inp[aria-invalid="true"] { border-color: var(--err); }
.cb-err { margin-top: 6px; color: var(--err); font-size: var(--fs-sm); }
.cb-err:empty { display: none; }
.cb-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.cb-row + .cb-row { margin-top: var(--s-2); }
.cb-o { position: relative; display: inline-flex; }
.cb-o input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.cb-p { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.cb-o input:checked + .cb-p, .cb-p[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cb-o input:focus-visible + .cb-p { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cb-o input:not(:checked):hover + .cb-p, .cb-p[aria-pressed="false"]:hover { border-color: var(--field); background: var(--tint); } }
.cb-tz { margin-top: var(--s-2); color: var(--muted); font-size: var(--fs-sm); }
.cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-fine { padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.cb-go { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 52px; margin-top: var(--s-4); padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.cb-go:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cb-go:hover { background: var(--accent-hover); } }
.cb-go[disabled] { cursor: progress; opacity: 0.8; }
.cb-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cb-spin 700ms linear infinite; }
.cb-spin[hidden] { display: none; }
.cb-msg { margin-top: var(--s-3); color: var(--err); font-size: 0.9375rem; }
.cb-msg:empty { display: none; }
.cb-done { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 1.125rem; line-height: 1.5; outline: none; }
.cb-done[hidden], .cb-f[hidden] { display: none; }
@media (min-width: 768px) {
  .cb { width: min(520px, calc(100% - 48px)); margin: auto; border-radius: var(--r-card); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); }
  .cb[open] { animation-name: cb-pop; animation-duration: 220ms; }
  .cb-in { padding: var(--s-6); }
  .cb-go { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cb[open], .cb[open]::backdrop { animation: none; }
  .cb-go, .cb-p { transition: none; }
  .cb-go:active { transform: none; }
  .cb-spin { animation: none; }
}


/* Sticky WhatsApp bar, phones only: shown once the top CTA has scrolled away, hidden at the end CTA. */
.bar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bar {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10; height: 52px;
    justify-content: center; align-items: center; gap: 10px; border-radius: 999px; box-shadow: 0 12px 32px -8px rgba(20, 24, 40, 0.35);
    background: var(--wa); color: var(--on-wa); font-weight: 600; font-size: 1rem; text-decoration: none;
    -webkit-tap-highlight-color: transparent; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .bar.on { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .bar svg.i { width: 20px; height: 20px; }
  .nav .btn { display: none; }
}

/* Lead sheet: non-blocking, at the foot of the screen, never on arrival (see lead.js). */
.ls { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 440px;
  padding: var(--s-5) var(--s-5) var(--s-4); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 24px 48px -16px rgba(20, 24, 40, 0.28); opacity: 0; transform: translateY(16px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.ls[hidden] { display: none; }
.ls.on { opacity: 1; transform: none; }
.ls-t { margin: 0 36px var(--s-1) 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.ls-s { margin: 0 0 var(--s-4); color: var(--muted); font-size: 0.9375rem; }
.ls-a { display: grid; gap: var(--s-2); justify-items: center; }
.ls-a .btn { width: 100%; }
.ls-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.ls-x svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .ls { left: auto; right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .ls { transition: none; transform: none; } .bar, .bar.on { transition: none; transform: none; } }
