:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: #161a23;
  --border: #252b38;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --flint: #38bdf8;
  --flint-2: #0284c7;
  --prog: #a3e635;
  --prog-2: #65a30d;
  --radius: 16px;
  --wrap: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }
:focus-visible {
  outline: 2px solid var(--flint);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--flint);
  color: #04121c;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.nav { display: flex; gap: 24px; }
.nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  padding: 120px 0 100px;
}
h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

/* Projects overview (landing page) */
.hero { padding-bottom: 72px; }
.projects { padding: 0 0 40px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.project-prog .project-visual { order: -1; }
.project h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.project-flint .tagline { color: var(--flint); }
.project-prog .tagline { color: var(--prog); }
.project-text > p:not(.status) { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 20px;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.project-flint .more-link { color: var(--flint); }
.project-prog .more-link { color: var(--prog); }
.project .more-link-quiet { color: var(--text); }
.more-link span { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.more-link:hover span { transform: translateX(3px); }
.project-visual { display: block; pointer-events: none; }
/* The whole project row opens the project page: the main link's hit area is
   stretched over the row, other links sit above it. */
.project { position: relative; }
.project-link::after { content: ""; position: absolute; inset: 0; }
.project .more-link-quiet { position: relative; z-index: 1; }
.project:hover .project-link span { transform: translateX(3px); }
.project .window, .project .phone { transition: border-color 0.2s; }
.project:hover .window, .project:hover .phone { border-color: var(--muted); }
.phone-small { width: 240px; }


.about {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.about-inner { max-width: 720px; }
.about p { margin: 16px 0 0; color: var(--muted); font-size: 19px; }

/* Product sections */
.product {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.product-prog { background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-grid.reverse .product-text { order: 2; }
.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
h2, .product-head h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tagline { margin: 2px 0 0; font-weight: 600; }
.product-flint .tagline { color: var(--flint); }
.product-prog .tagline { color: var(--prog); }
.product-text > p { color: var(--muted); font-size: 17px; }

.features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.features li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--muted);
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--flint);
}
.features strong { color: var(--text); }
.inline-link {
  color: var(--flint);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 16px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps span {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(163, 230, 53, 0.12);
  color: var(--prog);
  font-weight: 700;
}
.steps div { color: var(--muted); }
.steps strong { display: block; color: var(--text); }

.mail-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.mail-fallback a { color: var(--text); text-underline-offset: 3px; }
.copy-btn {
  min-height: 44px;
  margin-left: 4px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-flint { background: var(--flint); color: #04121c; }
.btn-prog { background: var(--prog); color: #10180a; }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-flint:hover { background: #7dd3fc; }
.btn-prog:hover { background: #bef264; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

/* Flint mockup */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.window-shot { display: block; width: 100%; height: auto; }

/* Prog mockup */
.phone {
  position: relative;
  width: 280px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 44px;
  background: #05070a;
  border: 1px solid var(--border);
}
.notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 84px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: #000;
}
.screen.screen-shot { padding: 0; overflow: hidden; }
.screen-shot img { display: block; width: 100%; height: auto; }
.screen {
  border-radius: 32px;
  background: var(--surface);
  padding: 60px 16px 24px;
}

/* Flint screenshots */
.gallery {
  padding: 0 0 100px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.gallery figure { margin: 0; }
.gallery-frame {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: none;
  cursor: zoom-in;
  transition: border-color 0.2s;
}
.gallery-frame:hover { border-color: var(--muted); }

.lightbox {
  width: min(1040px, 92vw);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox img {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.lightbox-caption { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.lightbox-close {
  position: absolute;
  top: -56px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--muted); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.gallery-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

/* Publish on Flint */
.publish-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.publish-lead {
  max-width: 34em;
  margin: 16px 0 36px;
  color: var(--muted);
  font-size: 17px;
}
.publish-points { margin: 0 0 32px; }
.publish-points > div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.publish-points > div:last-child { border-bottom: 1px solid var(--border); }
.publish-points dt { font-weight: 600; }
.publish-points dd { margin: 4px 0 0; color: var(--muted); }
.publish-note { margin: 0 0 20px; color: var(--muted); }

.calc {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}
.calc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.calc-label { color: var(--muted); font-size: 15px; }
.calc-revenue { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.calc-input { margin: 6px 0 -2px; }
.calc-input input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--flint);
  cursor: pointer;
}

.tiers {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.tier {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5em 5.5em;
  gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier.is-active { color: var(--text); }
/* Static fill for the €2,000 default; publish.js updates it live. */
.tier:nth-child(1) { --fill: 1; }
.tier:nth-child(2) { --fill: 0.333; }
.tier-range { white-space: nowrap; }
.tier-rate, .tier-amount { text-align: right; }
.tier-amount { font-weight: 600; }
.tier-bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--flint);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-result {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.calc-keep {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.calc-keep span { font-size: 17px; }
.calc-keep strong {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--flint);
}
.calc-fee, .calc-usual { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.calc-fee span { color: var(--text); }
.calc-foot {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Prog page */
.prog-privacy {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.prog-privacy-inner { display: flex; gap: 20px; align-items: flex-start; }
.prog-privacy-icon { flex: none; margin-top: 4px; color: var(--prog); }
.prog-privacy h2 { font-size: 28px; }
.prog-privacy p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }

.prog-plans { padding: 88px 0; border-top: 1px solid var(--border); }
.prog-plans-lead { max-width: 40em; margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 40px;
}
.plan h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 20px;
}
.plan-pro h3 { color: var(--prog); }
.plan-price { color: var(--muted); font-size: 15px; font-weight: 600; }
.plan-list { margin: 0; }
.plan-list > div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.plan-list dt { font-weight: 600; }
.plan-list dd { margin: 4px 0 0; color: var(--muted); }
.prog-plans-note { margin: 32px 0 0; color: var(--muted); font-size: 13px; }

.cross-link { padding: 40px 0 72px; border-top: 1px solid var(--border); }
.cross-link .more-link { color: var(--flint); }

/* Contact */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact p { color: var(--muted); margin: 12px 0 28px; }
.notfound-title { font-size: 36px; letter-spacing: -0.01em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { display: inline-block; padding: 11px 0; text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Rechtstexte */
.legal { padding: 80px 0 100px; overflow-wrap: break-word; hyphens: auto; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--flint); }

@media (max-width: 860px) {
  .hero { padding: 80px 0 64px; }
  .product { padding: 72px 0; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .product-grid.reverse .product-text { order: 0; }
  .publish-section { padding: 72px 0; }
  .gallery { padding-bottom: 72px; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .prog-plans { padding: 64px 0; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0; }
  .project-prog .project-visual { order: 0; }
  .about { padding: 64px 0; }
  .tier { grid-template-columns: minmax(0, 1fr) 3.2em 4.6em; gap: 8px; }
  .publish-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .calc { padding: 22px 18px; }
  .nav { gap: 16px; }
}

/* Narrow phones: keep the header on one line. Contact stays reachable
   further down the page and through the email links in every section. */
@media (max-width: 400px) {
  .nav .nav-secondary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tier, .tier-bar { transition: none; }
  .more-link span { transition: none; }
}
