/* Self-hosted (SIL OFL, see /fonts/OFL.txt): no request to Google. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --surface: #f3f6f9;
  --ink: #0f1b2a;
  --muted: #4b5a69;
  --line: #e2e8f0;
  --action: #1b5e9b;
  --action-hover: #164d80;
  --on-action: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1419;
    --surface: #18212b;
    --ink: #e6e9ec;
    --muted: #a7b0b9;
    --line: #2a3440;
    --action: #3a8fd4;
    --action-hover: #5aa3de;
    --on-action: #0b1620;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 40px;
}

main > section {
  margin-top: 112px;
}

.logo {
  display: block;
  width: 44px;
  height: 44px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 8.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

/* The 4Pro mark is part of the headline and scales with it. */
.mark {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.12em;
  vertical-align: -0.16em;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin: 40px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

section > h2 {
  margin: 0 0 40px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  max-width: 36em;
  margin: 0 0 16px;
}

a {
  color: var(--action);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

main > .hero {
  margin-top: 96px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.shots {
  position: relative;
  padding: 0 8% 48px 0;
}

.shots img {
  display: block;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.shot-desktop {
  width: 100%;
  border-radius: 12px;
}

.shot-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  border-radius: 20px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--surface);
}

.benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.action {
  max-width: none;
  margin: 56px 0 0;
  text-align: center;
}

.cta {
  display: inline-block;
  min-height: 52px;
  padding: 14px 40px;
  border-radius: 12px;
  background: var(--action);
  color: var(--on-action);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.cta:hover {
  background: var(--action-hover);
}


/* Reference customers roll at the foot of the page. The list holds each name
   four times, so shifting it by half its width loops without a jump. */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee ul {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: roll 32s linear infinite;
}

.marquee:hover ul,
.marquee:focus-within ul {
  animation-play-state: paused;
}

.marquee li {
  display: flex;
  align-items: center;
  padding: 16px 48px;
}

/* Logos sit straight on the page; each SVG switches its dark lettering for
   light in dark mode itself. */
.marquee a {
  display: flex;
  align-items: center;
  height: 80px;
}

.marquee img {
  display: block;
}

@keyframes roll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    mask-image: none;
  }

  .marquee ul {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }

  .marquee li[aria-hidden] {
    display: none;
  }

  .cta {
    transition: none;
  }
}

main > .refs {
  margin-top: 96px;
}

footer {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 48px;
  padding-block: 24px 40px;
  font-size: 0.875rem;
}

footer a {
  padding: 12px 0;
  color: var(--muted);
}

/* Impressum and Datenschutz: one readable column. */
.legal {
  max-width: 800px;
  padding-block: 48px 64px;
}

.legal h1 {
  margin-top: 48px;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
}

@media (max-width: 900px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 20px;
  }

  main > section {
    margin-top: 80px;
  }

  main > .hero {
    margin-top: 56px;
  }

  section > h2 {
    margin-bottom: 28px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .marquee li {
    padding-inline: 16px;
  }

  .shots {
    padding: 0;
  }

  .shot-phone {
    position: static;
    width: 56%;
    margin: 24px auto 0;
  }
}
