/* MouseWork — tokens, reset and base typography.
   Values mirror what the previous React/Tailwind build rendered, so pages look identical. */

:root {
  /* Brand */
  --blue: #5dade2;
  --blue-hover: #4a9dd1;

  /* Neutrals (oklch, same as the old build) */
  --gray-50: oklch(98.5% .002 247.839);
  --gray-100: oklch(96.7% .003 264.542);
  --gray-200: oklch(92.8% .006 264.531);
  --gray-300: oklch(87.2% .01 258.338);
  --gray-400: oklch(70.7% .022 261.325);
  --gray-500: oklch(55.1% .027 264.364);
  --gray-600: oklch(44.6% .03 256.802);
  --gray-700: oklch(37.3% .034 259.733);
  --gray-800: oklch(27.8% .033 256.848);
  --gray-900: oklch(21% .034 264.665);

  --blue-50: oklch(97% .014 254.604);
  --blue-100: oklch(93.2% .032 255.585);
  --blue-200: oklch(88.2% .059 254.128);
  --blue-300: oklch(80.9% .105 251.813);
  --blue-400: oklch(70.7% .165 254.624);
  --blue-500: oklch(62.3% .214 259.815);
  --blue-600: oklch(54.6% .245 262.881);
  --blue-700: oklch(48.8% .243 264.376);
  --blue-800: oklch(42.4% .199 265.638);
  --blue-900: oklch(37.9% .146 265.522);

  --green-50: oklch(98.2% .018 155.826);
  --green-100: oklch(96.2% .044 156.743);
  --green-200: oklch(92.5% .084 155.995);
  --green-300: oklch(87.1% .15 154.449);
  --green-400: oklch(79.2% .209 151.711);
  --green-500: oklch(72.3% .219 149.579);
  --green-600: oklch(62.7% .194 149.214);
  --green-700: oklch(52.7% .154 150.069);
  --green-800: oklch(44.8% .119 151.328);

  --emerald-50: oklch(97.9% .021 166.113);
  --emerald-200: oklch(90.5% .093 164.15);
  --emerald-500: oklch(69.6% .17 162.48);
  --emerald-600: oklch(59.6% .145 163.225);
  --emerald-700: oklch(50.8% .118 165.612);

  --red-50: oklch(97.1% .013 17.38);
  --red-100: oklch(93.6% .032 17.717);
  --red-200: oklch(88.5% .062 18.334);
  --red-300: oklch(80.8% .114 19.571);
  --red-400: oklch(70.4% .191 22.216);
  --red-500: oklch(63.7% .237 25.331);
  --red-600: oklch(57.7% .245 27.325);
  --red-700: oklch(50.5% .213 27.518);
  --red-800: oklch(44.4% .177 26.899);

  --amber-50: oklch(98.7% .022 95.277);
  --amber-100: oklch(96.2% .059 95.617);
  --amber-200: oklch(92.4% .12 95.746);
  --amber-400: oklch(82.8% .189 84.429);
  --amber-500: oklch(76.9% .188 70.08);
  --amber-600: oklch(66.6% .179 58.318);
  --amber-700: oklch(55.5% .163 48.998);
  --amber-800: oklch(47.3% .137 46.201);

  --orange-50: oklch(98% .016 73.684);
  --orange-100: oklch(95.4% .038 75.164);
  --orange-200: oklch(90.1% .076 70.697);
  --orange-500: oklch(70.5% .213 47.604);
  --orange-600: oklch(64.6% .222 41.116);
  --orange-700: oklch(55.3% .195 38.402);
  --orange-800: oklch(47% .157 37.304);

  --yellow-50: oklch(98.7% .026 102.212);
  --cyan-50: oklch(98.4% .019 200.873);
  --cyan-400: oklch(78.9% .154 211.53);
  --sky-50: oklch(97.7% .013 236.62);
  --sky-200: oklch(90.1% .058 230.902);
  --purple-50: oklch(97.7% .014 308.299);
  --purple-100: oklch(94.6% .033 307.174);
  --purple-200: oklch(90.2% .063 306.703);
  --purple-600: oklch(55.8% .288 302.321);
  --purple-800: oklch(43.8% .218 303.724);
  --pink-100: oklch(94.8% .028 342.258);
  --pink-800: oklch(45.9% .187 3.815);

  /* Type */
  --font-body: "DM Sans", Inter, system-ui, sans-serif;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --shadow-2xl: 0 25px 50px -12px #00000040;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

/* ---------- Reset ---------- */

*, ::after, ::before, ::backdrop, ::file-selector-button {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: var(--font-system);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

hr { height: 0; color: inherit; border-top-width: 1px; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; font-family: var(--font-display); }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 1em; }
small { font-size: 80%; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
summary { display: list-item; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { vertical-align: middle; display: block; }
img, video { max-width: 100%; height: auto; }

button, input, select, optgroup, textarea, ::file-selector-button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  background-color: transparent;
  border-radius: 0;
}

::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
textarea { resize: vertical; }
button, input:where([type=button], [type=reset], [type=submit]), ::file-selector-button { appearance: button; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
::-webkit-date-and-time-value { min-height: 1lh; text-align: inherit; }
::-webkit-datetime-edit { display: inline-flex; padding-block: 0; }
::-webkit-datetime-edit-fields-wrapper { padding: 0; }
::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field { padding-block: 0; }
::-webkit-calendar-picker-indicator { line-height: 1; }
[hidden]:where(:not([hidden=until-found])) { display: none !important; }

/* ---------- Shared helpers ---------- */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (width >= 40rem) { .container { max-width: 40rem; } }
@media (width >= 48rem) { .container { max-width: 48rem; } }
@media (width >= 64rem) { .container { max-width: 64rem; } }
@media (width >= 80rem) { .container { max-width: 80rem; } }
@media (width >= 96rem) { .container { max-width: 96rem; } }

/* lucide icons: <svg class="icon"><use href="/assets/icons.svg#name"/></svg> */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spin { animation: spin 1s linear infinite; }
.pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .5; } }

/* Scroll reveal (replaces framer-motion whileInView, once) */
[data-reveal]:not(.is-visible) { opacity: 0; }
[data-reveal].is-visible { animation: reveal .6s var(--ease-out) var(--reveal-delay, 0s) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(var(--reveal-y, 20px)); } }

/* Test-mode banner (shown on every page for logged-in users while Dodo runs in test mode) */
.test-banner {
  position: relative;
  z-index: 50;
  background: var(--amber-500);
  color: #fff;
  text-align: center;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
  padding: .375rem 1rem;
}

/* Loading screen of pages behind login (old ProtectedRoute) */
.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--gray-50);
  > div { text-align: center; }
  .icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--blue); }
  & p { color: var(--gray-600); }
}

/* Dashboard 'gradient' pattern variant */
.grid-gradient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
