/*
 * Analytics consent band — styles the cookie bar that /js/consent.js injects.
 *
 * Single source of truth for the self-contained static pages (/demo, /yc) that
 * don't load style.css. Class names match the DOM consent.js builds
 * (.consent-band, .consent-band__inner/__copy/__actions, .button--primary/
 * --secondary). Relies on the CSS custom properties (--bg, --paper, --ink,
 * --ink-muted, --brand, --line, optional --bg-alt) defined in each page's
 * inline :root. Same-origin, so it loads under the static-page CSP
 * (style-src 'self').
 */
.consent-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -12px rgba(0, 67, 74, 0.18);
  animation: rxConsentIn 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.consent-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.consent-band__copy {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}
.consent-band__copy a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-band__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.consent-band .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 80ms ease;
}
.consent-band .button:active {
  transform: translateY(1px);
}
.consent-band .button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.consent-band .button--primary {
  background: var(--brand);
  color: var(--bg);
  box-shadow: 0 6px 16px -10px rgba(0, 109, 119, 0.4);
}
.consent-band .button--primary:hover {
  background: var(--ink);
}
.consent-band .button--secondary {
  color: var(--ink);
  border-color: var(--line);
}
.consent-band .button--secondary:hover {
  background: var(--bg-alt, var(--bg));
  border-color: var(--ink-muted);
}
@keyframes rxConsentIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 560px) {
  .consent-band {
    padding: 13px 16px calc(13px + env(safe-area-inset-bottom));
  }
  .consent-band__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .consent-band__copy {
    font-size: 12.5px;
  }
  .consent-band__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .consent-band .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-band {
    animation: none;
  }
}
