/* Accedi.Me institutional site. Tokens from DESIGN.md: blue ink on white,
   the five flat bands, hairlines, 4px corners, no shadows or cards. */

:root {
  --scale-blue: #0636ff;
  --step-2: #0a5cff;
  --step-3: #0a7dff;
  --step-4: #0aa5e8;
  --step-5: #00c8d8;
  --ink: #0f2557;
  --muted-ink: #4b5a80;
  --ground: #ffffff;
  --mist: #eef2fc;
  --hairline: #e1e6f2;
  --control-line: #7c88a8;
  --focus: #0a5cff;
  --on-primary: #ffffff;
  --display:
    "Montserrat Variable", Montserrat, "Segoe UI", system-ui, sans-serif;
  --body: "Geist Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --scale-blue: #2a63ff;
    --step-2: #2f7bff;
    --step-3: #2e93ff;
    --step-4: #1fb4ee;
    --step-5: #2ad6e0;
    --ink: #eef2ff;
    --muted-ink: #a9b4d6;
    --ground: #0a1033;
    --mist: #18224f;
    --hairline: #24305e;
    --control-line: #6b78a3;
    --focus: #6f9bff;
  }
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2.4px;
}

.wrap {
  max-width: 64rem;
  padding: 0 16px;
  margin: 0 auto;
}

.skip {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 8px 12px;
  background: var(--ground);
  border: 1px solid var(--control-line);
  border-radius: 4px;
}

.skip:focus {
  top: 16px;
}

/* The Five Steps Rule: equal flat cells, scale blue to cyan. */
.bands {
  display: flex;
  height: 8px;
}

.bands span {
  flex: 1;
}

.bands span:nth-child(1) {
  background: var(--scale-blue);
}

.bands span:nth-child(2) {
  background: var(--step-2);
}

.bands span:nth-child(3) {
  background: var(--step-3);
}

.bands span:nth-child(4) {
  background: var(--step-4);
}

.bands span:nth-child(5) {
  background: var(--step-5);
}

.header {
  border-bottom: 1px solid var(--hairline);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: inline-flex;
}

.logo img {
  display: block;
  width: auto;
  height: 36px;
}

.header-nav {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-nav a {
  color: var(--muted-ink);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
}

.hero {
  max-width: 44rem;
  padding: 64px 0 40px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  margin: 24px 0 0;
  font-size: 1.125rem;
  color: var(--muted-ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--on-primary);
  background: var(--scale-blue);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--scale-blue) 80%, var(--ground));
}

.button-outline {
  color: var(--ink);
  border-color: var(--control-line);
}

.button-outline:hover {
  background: var(--mist);
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Ruled rows, never cards (The Hairline Rule). */
.ruled {
  display: grid;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.ruled li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.ruled li:first-child {
  border-top: 1px solid var(--ink);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

.ruled p {
  margin: 4px 0 0;
  color: var(--muted-ink);
}

.step {
  min-width: 3ch;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--scale-blue);
  letter-spacing: -0.03em;
}

.closing {
  padding: 40px 0 64px;
  border-top: 1px solid var(--hairline);
}

.closing p {
  max-width: 40rem;
  color: var(--muted-ink);
}

.not-found {
  padding: 40px 0;
}

.not-found p {
  color: var(--muted-ink);
}

.footer {
  font-size: 0.875rem;
  color: var(--muted-ink);
  border-top: 1px solid var(--hairline);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 40px;
}

.footer p {
  margin: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 96px 0 64px;
  }

  .section {
    display: grid;
    grid-template-columns: 15rem 1fr;
    gap: 32px;
    padding: 64px 0;
  }

  .section .ruled {
    margin: 0;
  }

  .button {
    height: 36px;
  }
}
