/* Labform website: the app's dark tokens, Archivo from this folder, one left-aligned column. No external resources. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1e1e1e;
  --line: #333333;
  --text: #f2f0f7;
  --dim: #a09cab;
  --accent: #9d5cff;
  --accent-text: #b994ff;
  --warn: #ffc24b;
  --measure: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

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

.page {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header: the icon and the name, link to the start page. */
.site-header {
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
}

/* The same page in the other language, at the right of the header, centred on the icon. */
.lang {
  float: right;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
}

/* Start page: the headline over the curve of the app icon. */
.hero {
  position: relative;
  padding: 3rem 0 10.5rem;
}

.hero h1 {
  position: relative;
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.hero .lead {
  position: relative;
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--dim);
  font-size: 1.1875rem;
}

.curve {
  position: absolute;
  right: -1.25rem;
  bottom: 0;
  width: min(100%, 44rem);
  height: auto;
}

/* Google's badge, unchanged. Its PNG has 29 of 250 px of transparent space above and below the badge and none at the
   sides; the gaps here keep a quarter of the badge's height clear on every side (Google Partner Marketing Hub). */
.get {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
}

.badge {
  display: block;
}

.badge img {
  display: block;
  width: 12.5rem;
  height: auto;
}

.get .note {
  margin: 0;
  color: var(--dim);
  font-size: 0.9375rem;
}

/* The store screenshots side by side without gaps: the curve behind the phones runs on from one image to the next.
   On phones the row scrolls from edge to edge; from 48rem all three stand in the column. */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.screens img {
  display: block;
  width: 100%;
  height: auto;
  scroll-snap-align: start;
}

.features h2,
.faq h2,
.closing h2,
.contact h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 108%;
}

.features {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0 3rem;
}

.features h2 {
  grid-column: 1 / -1;
  margin: 0;
}

/* What needs Labform Pro, before the features (the store listing's sentence). */
.features-note {
  grid-column: 1 / -1;
  max-width: var(--measure);
  margin: -1rem 0 0;
  color: var(--dim);
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 106%;
}

.feature p,
.contact p {
  max-width: var(--measure);
  margin: 0;
  color: var(--dim);
}

.faq {
  padding: 1rem 0 3rem;
}

.faq h2 {
  margin-bottom: 1rem;
}

.faq details {
  max-width: 48rem;
  border-bottom: 1px solid var(--line);
}

.faq h2 + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-text);
}

/* A plus from two bars, so screen readers read only the question; open, it turns into a cross. */
.faq summary::after {
  content: '';
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] > summary::after {
  transform: rotate(45deg);
}

.faq details p,
.faq details ul {
  max-width: var(--measure);
  margin: 0 0 1rem;
  color: var(--dim);
}

.faq details ul {
  padding-left: 1.2em;
}

.faq details li + li {
  margin-top: 0.3rem;
}

.closing {
  padding: 1rem 0 1.5rem;
}

.closing .get {
  margin-top: 1rem;
}

.contact {
  padding: 2.5rem 0 3rem;
}

.contact .note {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  color: var(--dim);
  font-size: 0.9375rem;
}

/* Legal pages: plain reading text. */
.doc {
  max-width: var(--measure);
  padding: 1rem 0 3rem;
}

.doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 7.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  font-stretch: 112%;
  /* "Datenschutzerklärung" is one long word: on very narrow screens it breaks instead of overflowing. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.doc h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.3;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 0.3rem;
}

.doc .meta {
  color: var(--dim);
}

/* Visible until the owner has the pages checked; then delete the line. */
.draft {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--warn);
  border-radius: 0.5rem;
  color: var(--warn);
  font-weight: 600;
}

.placeholder {
  color: var(--warn);
  font-weight: 600;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9375rem;
}

.site-footer .trademark {
  flex-basis: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

@media (min-width: 48rem) {
  .page {
    padding: 0 2.5rem;
  }

  .hero {
    padding: 5rem 0 6rem;
  }

  .curve {
    right: -2.5rem;
    bottom: 1rem;
    width: 46%;
  }

  .screens {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 2.5rem;
  }
}

@media (min-width: 60rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
