/*! Workban Guard website | Copyright (c) 2026 Christian Gluch (cg-labs.dev) | All rights reserved */

/*
 * The look of workban.de's marketing pages: a data sheet on machine steel. Dark only, cold cyan
 * as the one accent, --spec for the one highlighted value. Barlow for words, IBM Plex Mono for
 * data, both served from here. Only opacity and transform move, and nothing under reduced motion.
 */

@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: oklch(0.211 0.011 257);
  --foreground: oklch(0.945 0.004 248);
  --card: oklch(0.244 0.012 257);
  --card-elevated: oklch(0.285 0.013 257);
  --primary: oklch(0.757 0.135 218);
  --primary-foreground: oklch(0.189 0.01 257);
  --muted-foreground: oklch(0.661 0.016 252);
  --border: oklch(0.315 0.015 257);
  --spec: oklch(0.845 0.16 88.7);
  --deny: oklch(0.704 0.191 22.2);
  --footer: oklch(0.178 0.009 257);
  --font: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav: 70px;
}

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

html {
  background: var(--background);
  scroll-padding-top: calc(var(--nav) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

a {
  color: inherit;
}

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

code,
kbd,
pre {
  font-family: var(--mono);
}

p code,
li code,
dd code,
td code,
h2 code,
h3 code {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card);
  padding: 0 0.3em;
  font-size: 0.88em;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* --- the content column ---------------------------------------------------- */
.col {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .col {
    padding: 0 32px;
  }
}
@media (min-width: 1024px) {
  .col {
    padding: 0 64px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

section,
.band {
  border-bottom: 1px solid var(--border);
}
.section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}

/* --- type ------------------------------------------------------------------- */
.eyebrow,
.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--primary);
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(2.375rem, 5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page h1 {
  max-width: 22ch;
  font-size: clamp(2.375rem, 4.4vw, 3.75rem);
  line-height: 1.04;
}
h1 .follow {
  color: var(--muted-foreground);
}

h2 {
  margin: 16px 0 0;
  max-width: 24ch;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--muted-foreground);
}
.intro {
  margin: 24px 0 0;
  max-width: 60ch;
  font-size: 17px;
  color: var(--muted-foreground);
}
.muted {
  color: var(--muted-foreground);
}
.mono-note {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-foreground);
}

/* --- buttons ---------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  padding: 12px 20px;
  color: var(--primary-foreground);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  transition: filter 150ms ease-out;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn:active {
  filter: brightness(0.95);
}
.btn.outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
  transition:
    border-color 150ms ease-out,
    color 150ms ease-out;
}
.btn.outline:hover {
  filter: none;
  border-color: var(--primary);
  color: var(--primary);
}
.btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

/* --- nav -------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--primary);
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .col {
  display: flex;
  height: var(--nav);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand span {
  color: var(--muted-foreground);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--muted-foreground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease-out;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--foreground);
}
.lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.lang strong {
  color: var(--foreground);
  font-weight: 500;
}
.lang a {
  text-decoration: none;
}
.lang a:hover {
  color: var(--foreground);
}
@media (max-width: 767px) {
  .nav-links .hide-sm {
    display: none;
  }
  .nav-links {
    gap: 16px;
  }
  .brand span {
    display: none;
  }
}

/* --- hero ------------------------------------------------------------------- */
.hero .col {
  display: grid;
  min-height: 84svh;
  align-items: center;
  gap: 48px;
  padding-top: calc(var(--nav) + 48px);
  padding-bottom: 64px;
}
@media (min-width: 1280px) {
  .hero .col {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 56px;
    padding-bottom: 88px;
  }
}
.page-head .col {
  padding-top: calc(var(--nav) + 48px);
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .page-head .col {
    padding-bottom: 72px;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* The exhibit: a protocol of real decisions, like a printout on the data sheet. */
.protocol {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
}
.protocol header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.protocol header .label {
  color: var(--muted-foreground);
}
.protocol ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.protocol li {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 4px 16px;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.protocol li:last-child {
  border-bottom: 0;
}
.protocol .cmd {
  color: var(--foreground);
  overflow-wrap: anywhere;
}
.protocol .cmd::before {
  content: "$ ";
  color: var(--muted-foreground);
}
.protocol .why {
  grid-column: 2;
  color: var(--muted-foreground);
  font-family: var(--font);
  font-size: 14px;
}
.protocol .rule {
  grid-column: 2;
  color: var(--primary);
  font-size: 12px;
}
.verdict {
  align-self: start;
  justify-self: start;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.verdict.deny {
  color: var(--deny);
}
.verdict.ask {
  color: var(--spec);
}
.protocol footer {
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

/* --- blocks ----------------------------------------------------------------- */
.cells {
  display: grid;
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--border);
  list-style: none;
}
.cells > * {
  background: var(--background);
  padding: 24px;
}
@media (min-width: 640px) {
  .cells.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .cells.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cells.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fact strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.fact.spec strong {
  color: var(--spec);
}
.fact span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted-foreground);
}
.facts-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--border);
  list-style: none;
}
@media (min-width: 640px) {
  .facts-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.facts-strip li {
  background: var(--background);
  padding: 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-table {
  margin: 48px 0 0;
  border-top: 1px solid var(--border);
}
.spec-table div {
  display: grid;
  gap: 4px 32px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
@media (min-width: 640px) {
  .spec-table div {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  }
}
.spec-table dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}
.spec-table dd {
  margin: 0;
  color: var(--muted-foreground);
}

.points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  max-width: 72ch;
  list-style: none;
}
.points li {
  display: flex;
  gap: 12px;
}
.points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.7em;
  background: var(--primary);
}

.split {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .split > div > .points:first-child,
  .split > div > .spec-table:first-child {
    margin-top: 8px;
  }
  .split .spec-table div {
    grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  }
}

/* --- steps and code --------------------------------------------------------- */
.step {
  scroll-margin-top: calc(var(--nav) + 16px);
}
.step .num {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.step p {
  max-width: 68ch;
}
.code {
  position: relative;
  margin: 20px 0 0;
  max-width: 900px;
}
.code .label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-foreground);
}
.code pre {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
.code pre code {
  color: var(--foreground);
}
.copy {
  position: absolute;
  top: 26px;
  right: 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--card-elevated);
  padding: 6px 8px;
  color: var(--muted-foreground);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover,
.copy[data-done] {
  color: var(--primary);
  border-color: var(--primary);
}
.note {
  margin: 20px 0 0;
  max-width: 68ch;
  border-left: 2px solid var(--spec);
  padding: 2px 0 2px 16px;
  color: var(--muted-foreground);
}

/* --- legal ------------------------------------------------------------------ */
.legal {
  max-width: 76ch;
}
.legal h2 {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: none;
  font-size: 1.25rem;
  line-height: 1.35;
}
.legal h2 .n {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
}
.legal p,
.legal ul {
  margin: 12px 0 0;
}
.legal ul {
  padding-left: 20px;
}
.legal li::marker {
  color: var(--primary);
}
.legal a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 4px;
}
.legal-facts {
  display: grid;
  gap: 4px 24px;
  margin: 16px 0 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  padding: 14px 16px;
}
@media (min-width: 640px) {
  .legal-facts {
    grid-template-columns: 9rem minmax(0, 1fr);
  }
}
.legal-facts dt {
  padding-top: 0.3em;
  color: var(--muted-foreground);
}
.legal-facts dd {
  margin: 0 0 8px;
}
@media (min-width: 640px) {
  .legal-facts dd {
    margin: 0;
  }
}

/* --- call to action band and footer ------------------------------------------ */
.cta h2 {
  max-width: 20ch;
}
.footer {
  border-top: 1px solid var(--primary);
  background: var(--footer);
}
.footer .col {
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}
@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.footer h2 {
  margin: 0;
  max-width: none;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.footer ul a {
  color: var(--muted-foreground);
  text-decoration: none;
}
.footer ul a:hover {
  color: var(--foreground);
}
.footer .tagline {
  margin: 20px 0 0;
  max-width: 36ch;
  color: var(--muted-foreground);
}
.footer-base {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-base p {
  margin: 0;
}

/* --- motion ----------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.rise {
  animation: rise 600ms var(--ease) both;
}
.d1 {
  animation-delay: 40ms;
}
.d2 {
  animation-delay: 120ms;
}
.d3 {
  animation-delay: 200ms;
}
.d4 {
  animation-delay: 280ms;
}
@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
}
