:root {
  color-scheme: light dark;
  --navy: #17386e;
  --blue: #32c4dc;
  --purple: #782f9a;
  --pink: #e40477;
  --green: #b5dc17;
  --ink: #142642;
  --muted: #4f607a;
  --line: #dce4ef;
  --background: #f6f8fc;
  --surface: #fff;
  --platform-surface: #f0f5fc;
  --platform-line: #e2ebf6;
  --release-icon-surface: #e8f8fb;
  --preview-surface: #e8f7fb;
  --preview-violet: #f4eafa;
  --preview-cyan: #d5f4fa;
  --preview-line: #dce7f2;
  --preview-shadow: rgba(23, 56, 110, .20);
  --blue-wash: #e5f8fc;
  --purple-wash: #f1e6f7;
  --pink-wash: #fbe7f1;
  --green-wash: #f0f7d3;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #dce9ff;
    --pink: #ff64ae;
    --ink: #eff4ff;
    --muted: #b5c1d6;
    --line: #324055;
    --background: #111722;
    --surface: #1a2332;
    --platform-surface: #22334d;
    --platform-line: #364c6a;
    --release-icon-surface: #1a384a;
    --preview-surface: #172733;
    --preview-violet: #302341;
    --preview-cyan: #153c4f;
    --preview-line: #324658;
    --preview-shadow: rgba(0, 0, 0, .48);
    --blue-wash: #1d3a49;
    --purple-wash: #3a284a;
    --pink-wash: #48273f;
    --green-wash: #354125;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--surface); }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
}
p, h1, h2, h3 { margin: 0; }
svg { display: block; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-content { background: var(--background); }
.shell { width: min(100% - 4rem, 74rem); margin-inline: auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.5rem; }
.wordmark, .platform { display: flex; align-items: center; gap: .5rem; }
.wordmark { color: var(--navy); font-size: 1.18rem; font-weight: 750; letter-spacing: -.035em; }
.wordmark img { display: block; }
.platform {
  background: var(--platform-surface);
  color: var(--navy);
  padding: .5rem .75rem;
  border: 1px solid var(--platform-line);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.site-header a { text-decoration: none; }
.site-header a:hover, .site-header a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.site-header a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .25rem;
}
.wordmark:focus-visible { border-radius: .3rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(24rem, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(3.8rem, 7.6vw, 7.15rem) clamp(3.2rem, 6.5vw, 6rem);
}
.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--navy);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.eyebrow span { width: .48rem; height: .48rem; background: var(--pink); rotate: 45deg; }
h1 {
  margin-block: 1rem 1.15rem;
  color: var(--navy);
  font-size: clamp(4rem, 7.6vw, 7rem);
  line-height: .93;
  letter-spacing: -.067em;
  font-weight: 760;
}
h1 em { color: var(--pink); font-style: normal; }
.intro { max-width: 27rem; color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.48; }
.release {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 2rem;
  inline-size: 24rem;
  max-inline-size: 100%;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  border-color: var(--navy);
}
.release-download:hover { background: var(--platform-surface); }
.release-download:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.release-title, .release-note { display: block; }
.release-icon {
  display: grid;
  flex: 0 0 2.5rem;
  place-items: center;
  height: 2.5rem;
  background: var(--release-icon-surface);
  border-radius: .75rem;
  color: var(--navy);
}
.release-title { margin-bottom: .18rem; color: var(--navy); font-weight: 700; font-size: .95rem; }
.release-note { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.release-sample {
  margin-top: .65rem;
  padding-block: .55rem;
  border-color: var(--line);
}
.release-sample .release-icon { background: transparent; color: var(--muted); }

.illustration {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.8vw, 2.6rem);
  background: var(--preview-surface);
  background-image: radial-gradient(ellipse at 95% 5%, var(--preview-violet) 0%, transparent 59%),
                    radial-gradient(ellipse at 10% 100%, var(--preview-cyan) 0%, transparent 65%);
  border: 1px solid var(--preview-line);
  border-radius: 1.6rem;
}
.confetti { position: absolute; inset: 0; z-index: -1; }
.confetti i { position: absolute; background: var(--diamond); width: var(--size, .68rem); height: var(--size, .68rem); rotate: 45deg; }
.confetti i:nth-child(1) { --diamond: var(--pink); --size: .8rem; left: 2%; top: 15%; }
.confetti i:nth-child(2) { --diamond: var(--purple); left: 7%; top: 5%; }
.confetti i:nth-child(3) { --diamond: var(--blue); --size: .88rem; right: 9%; top: 5%; }
.confetti i:nth-child(4) { --diamond: #17386e; --size: .45rem; right: 2%; top: 13%; }
.confetti i:nth-child(5) { --diamond: var(--green); --size: .8rem; right: 4%; bottom: 7%; }
.app-screenshot, .app-screenshot img { display: block; }
.app-screenshot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .85rem 1.15rem var(--preview-shadow));
}

.workflow { padding-bottom: clamp(2.8rem, 5vw, 4.8rem); }
.workflow h2 { margin-bottom: 1rem; color: var(--navy); font-size: clamp(1.27rem, 2.1vw, 1.56rem); letter-spacing: -.025em; }
.workflow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.workflow li { display: flex; align-items: flex-start; gap: .72rem; min-width: 0; padding: 1.12rem .9rem; }
.workflow li + li { border-left: 1px solid var(--line); }
.step-number {
  flex: 0 0 auto;
  min-width: 1.95rem;
  padding: .27rem .35rem;
  border-radius: .45rem;
  border-top: 2px solid var(--step);
  background: var(--step-wash);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.step-blue { --step: var(--blue); --step-wash: var(--blue-wash); }
.step-purple { --step: var(--purple); --step-wash: var(--purple-wash); }
.step-pink { --step: var(--pink); --step-wash: var(--pink-wash); }
.step-green { --step: var(--green); --step-wash: var(--green-wash); }
.workflow h3 { color: var(--navy); margin-block: .13rem .25rem; font-size: .98rem; }
.workflow p { color: var(--muted); font-size: .86rem; line-height: 1.4; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 4rem; padding-block: .8rem; }
.footer-product { color: var(--navy); font-weight: 650; font-size: .83rem; }
.footer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }

.footer-privacy a:any-link { color: inherit; text-decoration: none; }
.footer-privacy a:hover, .footer-privacy a:focus-visible {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: .18em;
}

@media (max-width: 62rem) {
  .workflow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow li:nth-child(3) { border-left: 0; }
  .workflow li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 48rem) {
  .shell { width: min(100% - 2.5rem, 38rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 3rem; }
  h1 { font-size: clamp(3.6rem, 12vw, 6rem); }
  .illustration { padding: clamp(.8rem, 4vw, 1.8rem); }
}
@media (max-width: 32rem) {
  .workflow ol { grid-template-columns: minmax(0, 1fr); }
  .workflow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 25rem) {
  .header-inner { gap: .5rem; }
  .home-actions { gap: .35rem; }
  .home-actions > .platform { padding-inline: .45rem; }
}
@media (max-width: 23rem) {
  .shell { width: calc(100% - 1.75rem); }
  .hero { padding-top: 2.5rem; }
  .illustration { padding: .75rem; }
}

/* Illustration motion */
@media (prefers-reduced-motion: no-preference) {
  .illustration {
    --sweep-cyan: #8de0eb;
    --sweep-violet: #ddbbea;
    --sweep-base: #f0f0fa;
    background-image: none;
  }

  .confetti {
    overflow: hidden;
    border-radius: inherit;
  }

  .confetti::before,
  .confetti::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  .confetti::before {
    inset: -75%;
    background: linear-gradient(118deg, var(--sweep-cyan) 34%, var(--sweep-base) 47% 52%, var(--sweep-violet) 65%);
    animation: nakijken-color-sweep 14s linear infinite;
  }

  .confetti::after {
    inset: -30%;
    background: radial-gradient(ellipse at 58% 48%, var(--sweep-cyan), transparent 54%);
    opacity: .65;
    animation: nakijken-light-sweep 9s ease-in-out -4s infinite alternate;
  }

  .confetti i {
    width: .75rem;
    height: .75rem;
    background: none;
    animation: nakijken-diamond-orbit var(--orbit-duration) linear var(--orbit-phase) infinite;
  }

  .confetti i::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--diamond);
    animation: nakijken-diamond-size 8s ease-in-out var(--size-phase) infinite alternate;
  }

  .confetti i:nth-child(1) { --orbit-radius: .25rem; --orbit-duration: 9s; --orbit-phase: -2.8s; --size-phase: -.8s; }
  .confetti i:nth-child(2) { --orbit-radius: .44rem; --orbit-duration: 13s; --orbit-phase: -7.5s; --size-phase: -13.7s; }
  .confetti i:nth-child(3) { --orbit-radius: .56rem; --orbit-duration: 16s; --orbit-phase: -4.9s; --size-phase: -3.8s; }
  .confetti i:nth-child(4) { --orbit-radius: .2rem; --orbit-duration: 11s; --orbit-phase: -3.4s; --size-phase: -10.6s; }
  .confetti i:nth-child(5) { --orbit-radius: .5rem; --orbit-duration: 19s; --orbit-phase: -12.7s; --size-phase: -7s; }
  .confetti i:nth-child(even) { animation-direction: reverse; }
}

@media (prefers-color-scheme: dark) and (prefers-reduced-motion: no-preference) {
  .illustration {
    --sweep-cyan: #105769;
    --sweep-violet: #60377e;
    --sweep-base: #212943;
  }
}

@keyframes nakijken-color-sweep {
  0% { transform: translate3d(-5%, 0, 0) rotate(0turn); }
  25% { transform: translate3d(0, -4%, 0) rotate(.25turn); }
  50% { transform: translate3d(5%, 0, 0) rotate(.5turn); }
  75% { transform: translate3d(0, 4%, 0) rotate(.75turn); }
  100% { transform: translate3d(-5%, 0, 0) rotate(1turn); }
}

@keyframes nakijken-light-sweep {
  from { transform: translate3d(23%, -15%, 0); }
  to { transform: translate3d(-23%, 15%, 0); }
}

@keyframes nakijken-diamond-orbit {
  from { transform: rotate(0turn) translateX(var(--orbit-radius)) rotate(0turn); }
  to { transform: rotate(1turn) translateX(var(--orbit-radius)) rotate(-1turn); }
}

@keyframes nakijken-diamond-size {
  from { scale: .6; }
  to { scale: 1.25; }
}

/* Documents */
.notes-shell {
  max-width: 49rem;
}

.notes-main {
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

.notes-title {
  margin-block: 1rem .85rem;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.053em;
}

.notes-intro {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
}

.notes-history {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 5vw, 3.25rem);
}

.notes-entry {
  padding: clamp(1.2rem, 4vw, 2.15rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.notes-entry + .notes-entry {
  border-radius: .9rem;
}

.notes-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .5rem;
}

.notes-entry-heading h2 {
  color: var(--navy);
  font-size: clamp(1.4rem, 3.8vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.notes-build {
  flex: none;
  padding: .2rem .5rem;
  border-radius: .4rem;
  background: var(--purple-wash);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.notes-date {
  color: var(--muted);
  font-size: .9rem;
}

.notes-summary {
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 650;
  line-height: 1.48;
}

.notes-changes {
  margin-block: .8rem 0;
  padding-inline-start: 1.2rem;
  line-height: 1.52;
}

.notes-changes li + li {
  margin-top: .45rem;
}

.notes-changes > li {
  position: relative;
}

.notes-changes > li::marker {
  color: transparent;
}

.notes-changes > li::before {
  content: "";
  position: absolute;
  inset-inline-start: -.95rem;
  top: .76em;
  top: .5lh;
  inline-size: .42rem;
  block-size: .42rem;
  background: var(--pink);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* Account and Beheer */
.account-page, .account-content {
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, sans-serif;
}
.account-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.account-header a {
  display: block;
  max-width: 50rem;
  margin-inline: auto;
  padding: .9rem 1.5rem;
  font-weight: 750;
  color: var(--navy);
  text-decoration: none;
}
.account-header a::before {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-right: .6em;
  background: var(--pink);
  vertical-align: .15em;
  transform: rotate(45deg);
}
.account-main { padding-block: 2.5rem; background: var(--background); }
.account-content { max-width: 50rem; margin-inline: auto; padding: clamp(1rem, 4vw, 2rem); }
@media (max-width: 48rem) { .account-main { padding-block: .5rem; } }
.account-content a { color: inherit; text-underline-offset: .18em; }
.account-content a:hover { color: var(--pink); }
.account-content h1 {
  margin: .35rem 0 1.2rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.account-content h2 { margin: 0 0 .55rem; font-size: 1.15rem; }
.account-content section {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.account-content .intro, .account-content .hint { color: var(--muted); }
.account-content .intro { max-width: none; font-size: inherit; line-height: inherit; }
.account-content p { margin: 1em 0; overflow-wrap: anywhere; }
.account-content [role="alert"] { color: var(--pink); font-weight: 600; }
.account-content .balance { margin: .25rem 0; color: var(--navy); font-size: 1.75rem; font-weight: 750; }
.account-content progress { display: block; width: 100%; accent-color: var(--pink); }
.account-content form { margin: 1rem 0; }
.account-content label { display: block; margin: .6rem 0; }
.account-content input:not([type=hidden]):not([type=checkbox]), .account-content select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: inherit;
  background: var(--background);
  padding: .65rem;
  font: inherit;
}
.account-content :focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.account-content button, .account-content a.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  color: white;
  background: #bd005a;
  border: 0;
  border-radius: .65rem;
  padding: .45rem .8rem;
  text-decoration: none;
  cursor: pointer;
}
.account-content button:hover, .account-content a.button:hover { color: white; background: #9c004b; }
.account-content .trial-account .button {
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--surface);
}
.account-content .trial-account .button:hover { color: var(--pink); border-color: currentColor; }
.account-content li { overflow-wrap: anywhere; }
.account-content li form { display: inline-block; margin: .2rem; }
.account-content details { margin: .8rem 0; }
.account-content summary { cursor: pointer; font-weight: 650; }
.account-content .danger { border-color: var(--pink); }
#beheer-users { display: grid; gap: .45rem; margin: .65rem 0 1.25rem; padding: 0; list-style: none; }
#beheer-users > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
#beheer-users > li[data-drop-position="before"] { box-shadow: 0 -2px var(--pink); }
#beheer-users > li[data-drop-position="after"] { box-shadow: 0 2px var(--pink); }
.account-content .beheer-user-card { min-width: 0; margin: 0; }
.beheer-user-card > summary { padding: .6rem .9rem; }
.beheer-user-info { padding: .15rem .9rem .75rem; }
.beheer-user-info > p:first-child { margin-top: 0; }
.account-content li > .beheer-reorder { display: flex; align-items: center; margin: .3rem .4rem .3rem 0; }
.account-content .beheer-reorder button, .account-content .beheer-grip {
  border-radius: .4rem;
  padding: .3rem .4rem;
  color: var(--muted);
  background: transparent;
  line-height: 1;
}
.account-content .beheer-reorder button[hidden] { display: none; }
.account-content .beheer-reorder button:disabled { opacity: .35; cursor: default; }
.account-content .beheer-reorder button:hover:not(:disabled), .account-content .beheer-grip:hover {
  color: var(--pink);
  background: transparent;
}
.account-content .beheer-grip { cursor: grab; }
.account-content .beheer-grip:active { cursor: grabbing; }
