/* The website – colours of the program's "Klar" theme, system fonts
   (nothing loaded from elsewhere). */
:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --sunken: #ebeef3;
  --border: #dce1e8;
  --text: #141820;
  --text-2: #434c5b;
  --muted: #5c6575;
  --accent: #2356d4;
  --accent-dark: #1a44ab;
  --accent-soft: #e6edfb;
  --success: #17703e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 32, 0.06), 0 12px 32px rgba(20, 24, 32, 0.1);
  --width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Jump targets clear of the sticky header. */
[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 245, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  margin-right: auto;
}
.brand img { width: 32px; height: 32px; }
.top .brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--accent); }
/* On product pages the product's own bar stays on top instead. */
.top.static { position: static; }

/* Product bar */
.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.subnav .wrap { display: flex; align-items: center; gap: 22px; min-height: 58px; }
.subnav .product {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  margin-right: auto;
}
.subnav .links { display: flex; gap: 22px; }
.subnav .links a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.subnav .links a:hover { color: var(--accent); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button.small { padding: 8px 16px; font-size: 0.92rem; }
.button svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { max-width: 820px; margin: 0 auto 18px; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 720px; margin: 0 auto 28px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

.screen {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero .screen { margin-top: 48px; }

/* Three points */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 24px;
}
.point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.point h3 { margin-bottom: 6px; }
.point p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.icon svg { width: 22px; height: 22px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.head p { color: var(--text-2); font-size: 1.1rem; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.feature:last-child { margin-bottom: 0; }
.feature.flip > .text { order: 2; }
.feature .text p { color: var(--text-2); }
.feature ul, .product-card ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.feature li, .product-card li { padding-left: 28px; position: relative; margin-bottom: 6px; color: var(--text-2); }
.feature li::before, .product-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }

/* Products on the start page */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.product-card p { color: var(--text-2); }
.product-card .actions { justify-content: flex-start; }
.product-card .screen { box-shadow: none; }
.product-name { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-name img { width: 48px; height: 48px; flex: none; }
.product-name h3 { font-size: 1.5rem; margin: 0; }
.product-name span { color: var(--muted); font-size: 0.95rem; }
.soon {
  margin-top: 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.soon p { margin: 0; color: var(--text-2); }

.about-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.about-teaser p { color: var(--text-2); max-width: 680px; margin: 0; }
.contact { text-align: center; }
.contact p { color: var(--text-2); font-size: 1.1rem; }

/* Phone */
.phone {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.phone .device {
  max-width: 300px;
  margin: 0 auto;
  border-radius: 34px;
  border: 10px solid #1d222c;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Prices */
.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 24px;
  justify-content: center;
}
.price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.price.best { border: 2px solid var(--accent); }
.badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}
.amount { font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.amount small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price ul { padding-left: 20px; color: var(--text-2); margin: 16px 0 0; }
.note { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 720px; margin: 28px auto 0; }

/* Download */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.download {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download p { color: var(--text-2); margin: 0; }
.download .button { align-self: flex-start; margin: 8px 0; }
.download ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; }
.with-qr { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.with-qr > div { display: flex; flex-direction: column; gap: 10px; }
.qr { margin: 0; text-align: center; flex: none; }
.qr img { width: 140px; height: 140px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: #fff; }
.qr figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}
.platforms .label { color: var(--muted); font-size: 0.92rem; margin-right: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.9rem;
}
.chip svg { width: 18px; height: 18px; color: var(--muted); }
.soon-line { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.soon-line .chip { padding: 2px 10px; font-size: 0.8rem; border-color: #f0b84a; color: #8a5a00; background: #fff8e6; }

/* Text pages (help, legal) */
.page { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.page h1 { font-size: 2.2rem; }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.page .stand { color: var(--muted); }
.page li { margin-bottom: 6px; }
.page ol, .page ul { padding-left: 24px; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.hint {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-2);
}
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; }
.toc ul { margin: 0; }
.todo { background: #fff4ce; border: 1px dashed #b38600; border-radius: 10px; padding: 14px 18px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Tablet and phone */
@media (max-width: 900px) {
  .feature, .feature.flip, .phone { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip > .text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .points { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; padding: 24px; }
  .about-teaser { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 0.9rem; }
  .brand { font-size: 1rem; }
  .subnav .wrap { flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
  .subnav .links { order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
  .subnav .links a { white-space: nowrap; }
  .hero { padding: 40px 0 24px; }
  .hero .screen { margin-top: 32px; }
  section { padding: 48px 0; }
  .grid, .downloads, .prices { grid-template-columns: 1fr; }
  .qr, .desktop-only { display: none; }
  .feature { margin-bottom: 48px; }
  footer nav { margin-left: 0; }
}

/* Motion – only for visitors who haven't asked their system for less.
   Pure CSS: page load animations everywhere; the scroll effects in
   browsers that know scroll-driven animations (Edge, Chrome, Safari),
   elsewhere the content is simply there. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: none; }
  }
  .hero > *, .page > :nth-child(-n+4) { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > :nth-child(2), .page > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3), .page > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4), .page > :nth-child(4) { animation-delay: 0.24s; }
  .hero > :nth-child(5) { animation-delay: 0.32s; }
  .hero > :nth-child(6) { animation-delay: 0.4s; }

  .button { transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
  .button:hover { transform: translateY(-2px); }
  .button.primary:hover { box-shadow: 0 8px 20px rgba(35, 86, 212, 0.3); }
  .card, .point, .price, .download { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
  .card:hover, .point:hover, .price:hover, .download:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #c5cede;
  }
  .screen img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .feature .screen:hover img, .product-card .screen:hover img { transform: scale(1.025); }

  @supports (animation-timeline: view()) {
    @keyframes reveal {
      from { opacity: 0; translate: 0 90px; scale: 0.96; }
      to { opacity: 1; translate: none; scale: none; }
    }
    @keyframes from-left {
      from { opacity: 0; translate: -120px 0; }
      to { opacity: 1; translate: none; }
    }
    @keyframes from-right {
      from { opacity: 0; translate: 120px 0; }
      to { opacity: 1; translate: none; }
    }
    @keyframes settle {
      from { scale: 0.86; translate: 0 40px; }
      to { scale: none; translate: none; }
    }
    @keyframes shadow {
      to { box-shadow: 0 8px 24px rgba(20, 24, 32, 0.08); }
    }
    .head, .card, .point, .price, .download, .soon, .product-card,
    .about-teaser, .contact, .platforms, .feature .text, .phone > :first-child {
      animation: reveal both cubic-bezier(0.2, 0.7, 0.2, 1);
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    .grid > :nth-child(3n+2), .points > :nth-child(2), .prices > :nth-child(2),
    .downloads > :nth-child(2) { animation-range: entry 5% cover 52%; }
    .grid > :nth-child(3n), .points > :nth-child(3) { animation-range: entry 10% cover 58%; }
    .feature .screen, .phone .device {
      animation: from-right both cubic-bezier(0.2, 0.7, 0.2, 1);
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
    .feature.flip .screen { animation-name: from-left; }
    .hero .screen {
      animation: settle both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    .top:not(.static), .subnav {
      animation: shadow linear both;
      animation-timeline: scroll();
      animation-range: 0 120px;
    }
  }
}
