/* Mago do Pism — design tokens extracted from Figma */
:root {
  /* Brand */
  --brand-blue: rgb(14, 147, 242);
  --brand-blue-dark: rgb(22, 134, 216);
  --brand-blue-soft: rgba(14, 147, 242, 0.6);

  /* Neutrals */
  --neutral-0: rgb(255, 255, 255);
  --neutral-50: rgb(252, 252, 252);
  --neutral-100: rgb(250, 250, 250);
  --neutral-150: rgb(245, 245, 245);
  --neutral-200: rgb(240, 240, 240);
  --neutral-250: rgb(235, 235, 235);
  --neutral-300: rgb(230, 230, 230);
  --neutral-350: rgb(224, 224, 224);
  --neutral-400: rgb(217, 217, 217);
  --neutral-450: rgb(222, 222, 222);
  --neutral-500: rgb(160, 160, 160);
  --neutral-600: rgb(138, 138, 138);
  --neutral-700: rgb(117, 117, 117);
  --neutral-800: rgb(78, 78, 78);
  --neutral-900: rgb(43, 43, 43);
  --neutral-950: rgb(0, 0, 0);

  /* Semantic */
  --text-primary: rgb(78, 78, 78);
  --text-secondary: rgb(117, 117, 117);
  --text-muted: rgb(138, 138, 138);
  --text-faint: rgb(160, 160, 160);
  --text-on-blue: rgb(245, 245, 245);

  --bg-app: rgb(245, 245, 245);
  --bg-surface: rgb(252, 252, 252);
  --bg-card: rgb(255, 255, 255);

  --border-default: rgb(222, 222, 222);
  --border-strong: rgb(208, 208, 208);

  --color-success: rgb(39, 133, 86);
  --color-success-stroke: rgb(33, 194, 48);
  --color-danger: rgb(208, 62, 62);
  --color-warn: rgb(151, 71, 255);

  /* Sidebar / dark accents */
  --sidebar-bg: rgb(38, 50, 56);
  --sidebar-bg-light: rgb(55, 71, 79);
  --sidebar-bg-deeper: rgb(69, 90, 100);

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(95, 95, 95, 0.25);
  --shadow-soft: 0 2px 10px rgba(150, 150, 150, 0.25);
  --shadow-deep: 0 8px 24px rgba(0, 0, 0, 0.18);

  /* Radii — taken from Figma */
  --radius-xs: 4px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --radius-pill: 999px;

  /* Type — substitutes until original fonts are uploaded */
  --font-display: "Quicksand", "Akagi Pro", "Othello MT Std", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", "Akagi Pro", "Inter", system-ui, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --font-akagi: "Nunito Sans", "Akagi Pro", "Montserrat", system-ui, sans-serif;
  --font-othello: "Cormorant Garamond", "Othello MT Std", serif;

  /* Layout */
  --content-max: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--neutral-150);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Generic Figma-fidelity primitives reused across screens */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--brand-blue);
  color: var(--text-on-blue);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary:hover { background: var(--brand-blue-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary--minor { height: 40px; font-size: 14px; border-radius: var(--radius-md); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}
.btn-ghost:hover { background: rgba(14,147,242,0.06); }

.input {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-default);
  background: var(--neutral-50);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.444px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--border-default); }
.input:focus { border-color: var(--brand-blue); }

.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.444px;
}

/* Index navigation */
.screen-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--neutral-0);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.screen-nav a {
  color: var(--brand-blue);
  text-decoration: none;
}
.screen-nav a:hover { text-decoration: underline; }
