/* Pointmark — shared design tokens (feedback page + admin) */
:root {
  /* ink */
  --ink-900: #15122c;
  --ink-800: #221e3d;
  --ink-700: #36324f;
  --ink-500: #5f5b78;
  --ink-400: #8a87a2;
  --ink-300: #b4b1c7;

  /* surfaces */
  --bg: #f7f6fb;
  --bg-tint: #f1effa;
  --surface: #ffffff;
  --line: #e7e5f0;
  --line-strong: #d6d3e4;

  /* brand — taken from the Pointmark mark */
  --indigo: #23138f;
  --indigo-600: #2c1ba8;
  --indigo-500: #3f2ccc;
  --indigo-050: #eeebff;
  --violet: #8a16ff;
  --blue: #1c8bff;
  --cyan: #5ee6ff;
  --magenta: #f02df0;
  --red: #ff1a2e;
  --orange: #ff8a2a;
  --grad-warm: linear-gradient(90deg, #f02df0 0%, #ff1a2e 52%, #ff8a2a 100%);
  --grad-cool: linear-gradient(90deg, #5ee6ff 0%, #1c8bff 45%, #8a16ff 100%);
  --grad-brand: linear-gradient(90deg, #8a16ff 0%, #f02df0 40%, #ff1a2e 70%, #ff8a2a 100%);

  /* status (always with an icon + a word) */
  --good: #12805c;
  --good-bg: #e6f6ef;
  --warn: #9a5b00;
  --warn-bg: #fff3dc;
  --serious: #b42318;
  --serious-bg: #fdecea;
  --info: #2f4fc9;
  --info-bg: #eaf0ff;

  /* type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(21, 18, 44, 0.06);
  --shadow-2: 0 1px 2px rgba(21, 18, 44, 0.05), 0 8px 24px rgba(21, 18, 44, 0.07);
  --shadow-3: 0 2px 4px rgba(21, 18, 44, 0.05), 0 24px 60px rgba(35, 19, 143, 0.14);
  --focus: 0 0 0 3px rgba(63, 44, 204, 0.28);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}

p {
  margin: 0;
}

a {
  color: var(--indigo-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 30px;
  height: auto;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word b {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--indigo);
}
.brand-word small {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 20px rgba(35, 19, 143, 0.25);
}
.btn-primary:hover {
  background: var(--indigo-600);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 28px rgba(35, 19, 143, 0.3);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink-400);
  background: var(--surface);
}
.btn-quiet {
  background: transparent;
  color: var(--ink-700);
  min-height: 40px;
  padding: 0 12px;
}
.btn-quiet:hover {
  background: var(--bg-tint);
}
.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill svg {
  width: 14px;
  height: 14px;
}

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