/* Beamtouch website-measurement notice — a quiet, secondary corner notice, not an
   alert or banner. Locked palette + type tokens only; styles.css untouched. No
   overlay/backdrop, no page dimming. Shown only in consent-required regions. */

.bt-measure {
  position: fixed;
  right: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  bottom: clamp(1rem, 0.6rem + 1vw, 1.5rem);
  left: auto;
  z-index: 1000;
  width: min(20rem, calc(100vw - 2rem));   /* ~320px, compact */
}

.bt-measure-card {
  background: var(--surface, #f8f6f2);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.85rem;
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.16);   /* barely-there lift */
}

.bt-measure-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 0.92rem;          /* modest — does not compete with page headings */
  line-height: 1.25;
  margin: 0 0 0.3rem;
}
.bt-measure-body {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.bt-measure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.5rem;
}
/* Both choices: identical compact controls integrated into the card — equal, quiet,
   not oversized CTAs. */
.bt-measure-btn {
  flex: 0 1 auto;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.44rem 0.72rem;
  cursor: pointer;
}
.bt-measure-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--muted); }
.bt-measure-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bt-measure-privacy {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--faint);            /* low-salience */
  text-decoration: none;
}
.bt-measure-privacy:hover { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .bt-measure-card { animation: bt-measure-in 0.2s ease both; }   /* opacity only, no slide/glow */
  .bt-measure-btn { transition: background 0.15s ease, border-color 0.15s ease; }
  @keyframes bt-measure-in { from { opacity: 0; } to { opacity: 1; } }
}

/* Mobile: compact bottom card with safe margins, still visually secondary. */
@media (max-width: 480px) {
  .bt-measure {
    left: clamp(0.75rem, 4vw, 1rem);
    right: clamp(0.75rem, 4vw, 1rem);
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: auto;
  }
}
