:root {
  --motion-feedback: 100ms;
  --motion-popup: 160ms;
  --motion-panel: 200ms;
  --motion-out: cubic-bezier(.23, 1, .32, 1);
  --motion-in-out: cubic-bezier(.45, 0, .25, 1);
  --focus-ring: #6f5bd4;
}

:where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

[data-excalirec-site] :is(.btn, summary, .nav-links a) {
  transition-property: background-color, color, border-color, opacity;
  transition-duration: var(--motion-feedback);
}

[data-excalirec-site] .mock-rec .dot { animation: none; }
[data-excalirec-site] [id] { scroll-margin-top: 88px; }
[data-excalirec-site] video { max-width: 100%; }

@media (max-width: 480px) {
  [data-excalirec-site] .nav { min-height: 56px; height: auto; gap: 8px; padding-block: 7px; }
  [data-excalirec-site] .nav :is(.lang-toggle, .btn) { white-space: nowrap; padding: 7px 9px; font-size: 13px; }
  [data-excalirec-site] .nav .logo { flex-shrink: 0; }
}

@media (max-width: 360px) {
  [data-excalirec-site] .nav { gap: 6px; padding-inline: 10px; }
  [data-excalirec-site] .nav .logo { font-size: 13px; gap: 4px; }
  [data-excalirec-site] .nav .logo .mark { width: 21px; height: 21px; }
  [data-excalirec-site] .nav :is(.lang-toggle, .btn) { padding-inline: 7px; font-size: 12px; }
}

@media (prefers-color-scheme: dark) {
  [data-excalirec-site] {
    color-scheme: dark;
    --ink: #edf0fb;
    --muted: #b8c0d7;
    --line: #373c52;
    --bg: #151826;
    --bgsoft: var(--bg);
    --card: #202438;
    --indigo: #a9a5ff;
    --focus-ring: #c0aaff;
  }
  [data-excalirec-site] body { background: var(--bg); color: var(--ink); }
  [data-excalirec-site] :is(header, .hero, .band, .ghost, .btn-ghost, .proof, .feat, .step, .card, .faq details,
    .price-card, .price, .mock, .demo-video, section[style*="background:#fff"]) {
    background: var(--card) !important;
    border-color: var(--line);
  }
  [data-excalirec-site] :is(.lead, .context-links, .foot, .foot-support, .foot-disclaimer, .mock-rec) {
    color: var(--muted);
  }
  [data-excalirec-site] :is(.primary, .btn-primary) { background: #5850bc; color: white; }
  [data-excalirec-site] :is(.lang-toggle, .spec-grid div, .tag) {
    background: #2d334c; color: #e1e5fb; border-color: var(--line);
  }
  [data-excalirec-site] :is(.hero, .proof) :is(.eyebrow, .pill, .badge) { color: #c4bbff; background: #303052; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
