/* Base — reset + page background + layout primitives.
   Loaded after tokens.css, before any component or page stylesheet. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(1200px 800px at 10% 10%, var(--fill-1), transparent 60%),
    radial-gradient(900px 700px at 85% 30%, color-mix(in srgb, var(--color-blue) 10%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Default page container — pages may override margin/padding. */
.container {
  position: relative;
}

/* Performance hints for frequently-repainted surfaces. */
.hero,
.card {
  will-change: auto;
  contain: layout style;
}

/* Accessibility: visually hide but keep for screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.demo-mode-exit {
  display: inline-flex;
  margin: 0;
}

.demo-mode-exit button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-control);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.demo-mode-exit button:hover {
  background: var(--surface-control-hover);
  color: var(--color-text);
}

.demo-mode-exit button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.client-preview-exit button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.client-preview-exit-text {
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--surface-deep);
  font-weight: 800;
  letter-spacing: .3px;
}

.client-preview-exit button:hover .client-preview-exit-text {
  background: var(--gold);
}

/* Theme-specific copies of an image (the logos): only the one for the current theme shows. */
:root:not([data-theme="light"]) .theme-light-only,
:root[data-theme="light"] .theme-dark-only { display: none !important; }

/* A theme switch in place: no transitions, so every colour changes in the same frame. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
