:root {
  --tillsatt-ink: #081421;
  --tillsatt-text: #203348;
  --tillsatt-muted: #5d6b7a;
  --tillsatt-page: #f5f8fb;
  --tillsatt-surface: #ffffff;
  --tillsatt-line: #d6e0ea;
  --tillsatt-teal: #247f83;
  --tillsatt-gold: #b87924;
  --tillsatt-red: #9a3f3f;
  --tillsatt-shadow: 0 22px 54px rgba(8, 20, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.tillsatt-page {
  min-width: 320px;
  margin: 0;
  color: var(--tillsatt-text);
  background:
    linear-gradient(90deg, rgba(8, 20, 33, 0.04) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(0deg, rgba(36, 127, 131, 0.06) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--tillsatt-page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.tillsatt-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 18px 42px;
  background: rgba(245, 248, 251, 0.88);
  border-bottom: 1px solid rgba(214, 224, 234, 0.72);
  backdrop-filter: blur(16px);
}

.tillsatt-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--tillsatt-ink);
  text-decoration: none;
}

.tillsatt-brand img {
  display: block;
  width: clamp(148px, 15vw, 184px);
  max-width: 52vw;
  height: auto;
  max-height: 54px;
}

.tillsatt-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tillsatt-nav a,
.tillsatt-login {
  color: var(--tillsatt-ink);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.tillsatt-nav a {
  min-height: 40px;
  padding: 9px 0;
}

.tillsatt-login,
.tillsatt-primary,
.tillsatt-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tillsatt-login {
  padding: 0 18px;
  color: #ffffff;
  background: var(--tillsatt-ink);
}

.tillsatt-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(540px, calc(100svh - 142px));
  overflow: hidden;
  padding: 78px 42px 70px;
  isolation: isolate;
}

.tillsatt-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.tillsatt-hero-bg img {
  position: absolute;
  right: 8%;
  bottom: -72px;
  width: 360px;
  height: 360px;
  opacity: 0.055;
}

.tillsatt-rail {
  position: absolute;
  right: 9%;
  width: 460px;
  max-width: 42vw;
  height: 72px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--tillsatt-line);
  border-radius: 8px;
  box-shadow: var(--tillsatt-shadow);
}

.tillsatt-rail::before,
.tillsatt-rail::after {
  position: absolute;
  top: 22px;
  height: 12px;
  content: "";
  border-radius: 999px;
}

.tillsatt-rail::before {
  left: 24px;
  width: 42%;
  background: rgba(36, 127, 131, 0.22);
}

.tillsatt-rail::after {
  right: 24px;
  width: 22%;
  background: rgba(184, 121, 36, 0.2);
}

.tillsatt-rail-a {
  top: 112px;
}

.tillsatt-rail-b {
  top: 206px;
  right: 14%;
  border-left: 6px solid var(--tillsatt-teal);
}

.tillsatt-rail-c {
  top: 300px;
  border-left: 6px solid var(--tillsatt-gold);
}

.tillsatt-copy {
  width: min(100%, 760px);
}

.tillsatt-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 18px;
  padding: 0 14px;
  color: var(--tillsatt-teal);
  background: rgba(36, 127, 131, 0.1);
  border: 1px solid rgba(36, 127, 131, 0.24);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}

.tillsatt-copy h1 {
  margin: 0;
  color: var(--tillsatt-ink);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
}

.tillsatt-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--tillsatt-text);
  font-size: 23px;
  line-height: 1.45;
}

.tillsatt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.tillsatt-primary,
.tillsatt-secondary {
  min-width: 150px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 820;
}

.tillsatt-primary {
  color: #ffffff;
  background: var(--tillsatt-ink);
}

.tillsatt-secondary {
  color: var(--tillsatt-ink);
  background: var(--tillsatt-surface);
  border: 1px solid var(--tillsatt-line);
}

.tillsatt-login:hover,
.tillsatt-login:focus-visible,
.tillsatt-primary:hover,
.tillsatt-primary:focus-visible {
  background: #13283e;
  transform: translateY(-1px);
}

.tillsatt-secondary:hover,
.tillsatt-secondary:focus-visible {
  border-color: rgba(36, 127, 131, 0.5);
  transform: translateY(-1px);
}

.tillsatt-brand:focus-visible,
.tillsatt-nav a:focus-visible,
.tillsatt-login:focus-visible,
.tillsatt-primary:focus-visible,
.tillsatt-secondary:focus-visible,
.tillsatt-footer a:focus-visible {
  outline: 3px solid rgba(36, 127, 131, 0.28);
  outline-offset: 4px;
}

.tillsatt-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.tillsatt-status article {
  min-height: 162px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--tillsatt-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(8, 20, 33, 0.08);
}

.tillsatt-status span {
  display: block;
  margin-bottom: 12px;
  color: var(--tillsatt-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tillsatt-status strong {
  display: block;
  color: var(--tillsatt-ink);
  font-size: 24px;
  line-height: 1.15;
}

.tillsatt-status p {
  margin: 12px 0 0;
  color: var(--tillsatt-muted);
  font-size: 16px;
}

.tillsatt-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px;
  color: var(--tillsatt-muted);
  border-top: 1px solid var(--tillsatt-line);
  font-size: 15px;
}

.tillsatt-footer a {
  color: var(--tillsatt-ink);
  font-weight: 760;
}

@media (max-width: 860px) {
  .tillsatt-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px 20px;
  }

  .tillsatt-nav {
    display: none;
  }

  .tillsatt-hero {
    min-height: auto;
    padding: 54px 20px 46px;
  }

  .tillsatt-hero-bg img {
    right: -74px;
    bottom: -70px;
    width: 260px;
    height: 260px;
  }

  .tillsatt-rail {
    display: none;
  }

  .tillsatt-copy h1 {
    font-size: 54px;
  }

  .tillsatt-lead {
    font-size: 20px;
  }

  .tillsatt-status {
    grid-template-columns: 1fr;
    padding: 0 20px 42px;
  }
}

@media (max-width: 520px) {
  .tillsatt-header {
    grid-template-columns: 1fr;
  }

  .tillsatt-brand img {
    width: 156px;
    max-width: 100%;
  }

  .tillsatt-login {
    width: 100%;
  }

  .tillsatt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tillsatt-primary,
  .tillsatt-secondary {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
