/* ==========================================================================
   Norvi — Design Tokens
   Ported from tawny-design-system (colors_and_type.css) with the Norvi teal
   brand re-skin. Fonts and Phosphor icons are vendored and served locally via
   AssetMapper — no external CDN (org confidentiality).
   ========================================================================== */

/* ---- Phosphor icon font (vendored regular set) ---- */
@import url("../icons/phosphor/phosphor-dh0xe8z.css");

/* ---- Fonts: @font-face on vendored woff2 (assets/fonts/*) ---- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-400-scmC9DJ.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-500-gR7F0A2.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-600-s3nkSBB.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-700-f4J6bba.woff2") format("woff2"); }

@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-400-7HeKpuq.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/golos-text-500-qVanJtx.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-600-8SltrTN.woff2") format("woff2"); }

@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-400-zjT1pI9.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500-l4pIovd.woff2") format("woff2"); }

:root {
  /* ---- Steppe neutrals (kept verbatim) ---- */
  --steppe-50:  #f7f7f5;
  --steppe-100: #eeeeea;
  --steppe-200: #dcdcd4;
  --steppe-300: #c3c3b7;
  --steppe-400: #a3a394;
  --steppe-500: #84847a;
  --steppe-600: #6a6a61;
  --steppe-700: #56564f;
  --steppe-800: #3a3a35;
  --steppe-900: #232320;
  --steppe-950: #161614;

  /* ---- Köl blue accent (kept verbatim) ---- */
  --kol-50:  #eef6ff;
  --kol-100: #d9eaff;
  --kol-200: #bcdaff;
  --kol-300: #8ec3ff;
  --kol-400: #59a2ff;
  --kol-500: #327dfa;
  --kol-600: #1c5eef;
  --kol-700: #1849db;
  --kol-800: #1a3db1;
  --kol-900: #1b378c;

  /* ---- Norvi brand (teal override of the base amber --tawny-*; registry "Brand tokens") ---- */
  --tawny-50:  #eafaf2;
  --tawny-100: #c9f0dd;
  --tawny-200: #97e2c0;
  --tawny-300: #5fcf9f;
  --tawny-400: #2bb37e;
  --tawny-500: #0c9466;
  --tawny-600: #0a7a54;
  --tawny-700: #0a6044;
  --tawny-800: #0b4d38;
  --tawny-900: #0a3a2b;

  /* ---- Semantic colors (kept verbatim) ---- */
  --success-50:  #ecfdf3;
  --success-100: #d1fadf;
  --success-500: #12b76a;
  --success-600: #039855;
  --success-700: #027a48;

  --warn-50:  #fffaeb;
  --warn-100: #fef0c7;
  --warn-500: #f79009;
  --warn-600: #dc6803;
  --warn-700: #b54708;

  --danger-50:  #fef3f2;
  --danger-100: #fee4e2;
  --danger-500: #f04438;
  --danger-600: #d92d20;
  --danger-700: #b42318;

  /* ---- Surfaces & text roles ---- */
  --bg:            var(--steppe-50);
  --surface:       #ffffff;
  --surface-muted: var(--steppe-100);
  --border:        var(--steppe-200);
  --border-strong: var(--steppe-300);
  --text:          var(--steppe-900);
  --text-muted:    var(--steppe-600);
  --text-subtle:   var(--steppe-500);
  --text-onbrand:  #ffffff;
  --brand:         var(--tawny-500);
  --brand-hover:   var(--tawny-600);
  --brand-soft:    var(--tawny-50);
  --accent:        var(--kol-600);

  /* ---- Typography (families = vendored fonts) ---- */
  --font-sans:    "Manrope", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Golos Text", "Manrope", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-normal:  1.55;

  --tracking-tight: -0.02em;
  --tracking-wide:   0.06em;

  /* ---- Spacing scale (kept verbatim) ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ---- Radius (kept verbatim) ---- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* ---- Shadows (kept verbatim) ---- */
  --shadow-xs: 0 1px 2px rgba(22, 22, 20, 0.05);
  --shadow-sm: 0 1px 3px rgba(22, 22, 20, 0.10), 0 1px 2px rgba(22, 22, 20, 0.06);
  --shadow-md: 0 4px 8px -2px rgba(22, 22, 20, 0.10), 0 2px 4px -2px rgba(22, 22, 20, 0.06);
  --shadow-lg: 0 12px 16px -4px rgba(22, 22, 20, 0.08), 0 4px 6px -2px rgba(22, 22, 20, 0.04);
  --shadow-xl: 0 20px 24px -4px rgba(22, 22, 20, 0.10), 0 8px 8px -4px rgba(22, 22, 20, 0.04);
  /* Brand focus ring (teal override; registry "Brand tokens") */
  --shadow-focus: 0 0 0 3px rgba(12, 148, 102, 0.26);

  /* ---- Motion (kept verbatim) ---- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:     120ms;
  --dur-base:     220ms;
  --dur-slow:     420ms;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Form controls inherit type; brand focus ring ---- */
input,
select,
textarea,
button { font: inherit; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--shadow-focus);
  border-color: var(--brand);
}

/* ---- Wizard motion keyframes ---- */
@keyframes nvrise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nvpulse {
  0%   { box-shadow: 0 0 0 0 rgba(12, 148, 102, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(12, 148, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 148, 102, 0); }
}

/* ---- Reduced motion ---- */
@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;
  }
}

/* ---- Responsive: shrink display sizes / collapse two-column shell below 820px ---- */
@media (max-width: 820px) {
  :root {
    --fs-3xl: 1.625rem;
    --fs-4xl: 1.875rem;
  }
}
