*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: var(--grid-opacity);
  z-index: 0;
}

.landing-page,
.demo-app {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  background: transparent;
  color: var(--foreground);
}

.btn:focus-visible,
.chip:focus-visible,
.persona-card:focus-visible,
.incident-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-yes {
  background: var(--btn-yes-bg);
  color: var(--btn-yes-fg);
  border-color: var(--btn-yes-border);
}

.btn-yes:hover {
  box-shadow: var(--glow-accent);
  transform: scale(1.03);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--panel-shadow);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  background: color-mix(in oklab, var(--panel) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn-yes:hover {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
