/* Self-hosted fonts — replaces the two render-blocking external @imports
   (fonts.googleapis + the slow fonts.cdnfonts Satoshi) that were adding
   seconds to every page load. Inter v20 ships as a variable woff2 (one file
   covers 400–600); Satoshi is the Fontshare variable (300–900). Local files
   = zero CDN round-trips, works offline, and font-display:swap paints text
   immediately in the fallback then swaps — never blocks render. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/satoshi-variable.woff2") format("woff2");
}

:root {
  color-scheme: only light;
  --ink: #1c2438;
  --ink-muted: rgba(28, 36, 56, 0.7);
  --accent: #3f68ff;
  --accent-soft: rgba(63, 104, 255, 0.12);
  --accent-rgb: 63, 104, 255;
  --danger: #a74444;
  --danger-soft: rgba(167, 68, 68, 0.12);
  --success: #1e6e44;
  --success-soft: rgba(34, 134, 89, 0.1);
  --success-border: rgba(34, 134, 89, 0.22);
  --brand-yellow: #f0c24d;
  --outline: rgba(28, 36, 56, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(248, 249, 253, 0.98);
  --shadow: 0 24px 48px rgba(18, 22, 36, 0.12);
  --page-bg: radial-gradient(900px 520px at 15% 0%, rgba(63, 104, 255, 0.12), transparent 65%),
    radial-gradient(800px 420px at 85% 10%, rgba(54, 162, 190, 0.12), transparent 70%),
    linear-gradient(180deg, #f5f6fa 0%, #eef1f7 55%, #f9fafc 100%);
  --org-login-bg: transparent;
  --org-login-bg-image: none;
}

body:not([data-role]) [data-admin-only],
body:not([data-role]) [data-org-admin-only],
body:not([data-role]) [data-module-admin-only],
body:not([data-role]) [data-people-admin-only],
body:not([data-role]) [data-super-admin-only],
body[data-role="employee"] [data-admin-only],
body[data-role="employee"] [data-org-admin-only],
body[data-role="employee"] [data-module-admin-only],
body[data-role="employee"] [data-people-admin-only],
body:not([data-role="super_admin"]) [data-super-admin-only] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--page-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding-bottom: 140px;
}

h1,
h2,
h3 {
  font-family: "Satoshi", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

p {
  margin: 0;
}

.eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
}

.footer {
  padding: 34px 8vw 54px;
  color: var(--ink-muted);
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  display: grid;
  gap: 18px;
}

.footer-kicker {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.trust-strip span {
  position: relative;
  padding-left: 19px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-50%);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-left: auto;
}

.trust-strip .footer-status::before {
  display: none;
}

.footer-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31a56b;
  box-shadow: 0 0 0 4px rgba(49, 165, 107, 0.12);
}

@media (max-width: 720px) {
  main {
    gap: 110px;
  }

  .trust-strip {
    gap: 12px 20px;
  }

  .trust-strip .footer-status {
    margin-left: 0;
  }
}

.toast-container {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--error {
  background: rgba(128, 55, 55, 0.94);
}

.toast--hide {
  opacity: 0;
  transform: translateY(6px);
}

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