/* Notaboek site. Colours, type, radius and spacing come from the brand book
   (v1.0, October 2026). Use the tokens below rather than raw values. */

/* Self-hosted, latin subset. Cambria is metric-compatible with Caladea,
   so the swap on Windows doesn't move the layout. */
@font-face {
  font-family: 'Caladea';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/caladea-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Brand palette */
  --papier: #F7F5EF;
  --ink: #171812;
  --fynbos: #102A26;
  --merkpen: #E6F06C;
  --potlood: #5E6056;
  --bladsy: #EEEBE2;
  --salie: #E3E8DD;
  --mos: #2F6F60;
  --dou: #B8C6BE;

  /* Text: primary, secondary, tertiary (tertiary is for large text only, 3.8:1 on Papier) */
  --text-1: var(--ink);
  --text-2: var(--potlood);
  --text-3: #7C7E73;
  --line: rgb(23 24 18 / 0.12);
  --line-on-dark: rgb(255 255 255 / 0.14);
  --focus: #1C4A46;

  /* The app as it looks on Windows, used inside product mock-ups */
  --app-text: #37352F;
  --app-muted: rgb(55 53 47 / 0.65);
  --app-faint: rgb(55 53 47 / 0.45);
  --app-line: rgb(55 53 47 / 0.09);
  --app-cell: rgb(55 53 47 / 0.16);
  --app-tag: rgb(135 131 120 / 0.15);
  --app-blue: #2383E2;

  /* Type */
  --font-sans: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Caladea', Cambria, Georgia, serif;
  --font-mono: 'Atkinson Hyperlegible Mono', 'Cascadia Code', Consolas, monospace;
  --font-app: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-app-mono: 'Cascadia Code', 'Cascadia Mono', var(--font-mono);

  --fs-display: clamp(48px, 7.4vw, 108px);
  --fs-display-sm: clamp(40px, 5.6vw, 80px);
  --fs-price: clamp(64px, 7vw, 92px);
  --fs-headline: clamp(34px, 4.4vw, 62px);
  --fs-headline-sm: clamp(32px, 3.6vw, 48px);
  --fs-title: clamp(24px, 2.2vw, 30px);
  --fs-lead: clamp(18px, 1.5vw, 21px);
  --fs-body: 17px;
  --fs-body-sm: 16px;
  --fs-label: 15px;
  --fs-caption: 14px;
  --fs-meta: 13px;

  /* Spacing, on a 4 px grid. Sections use 104 and 168 at full width. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --section: clamp(72px, 9vw, 104px);
  --section-lg: clamp(96px, 11.5vw, 168px);
  --page-pad: clamp(24px, 4vw, 40px);
  --art-gutter: clamp(8px, 1.6vw, 24px);
  --card-pad: clamp(24px, 3vw, 40px);

  /* Radius: nested surfaces step down so corners stay concentric */
  --r-pill: 999px;
  --r-xl: clamp(16px, 2.4vw, 32px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Depth: tone first; shadows only under product windows */
  --shadow-window: 0 1px 2px rgb(10 20 18 / 0.1), 0 30px 70px -18px rgb(10 20 18 / 0.6);
  --shadow-window-sm: 0 1px 2px rgb(23 24 18 / 0.06), 0 20px 48px -12px rgb(23 24 18 / 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--papier);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark { flex: none; width: 0.65em; height: 0.78em; }

.skip-link {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--papier);
  font-size: var(--fs-label);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Type */

.display,
.display-sm,
.headline,
.headline-sm {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
}
.display { font-size: var(--fs-display); letter-spacing: -0.03em; line-height: 1.02; }
.display-sm { font-size: var(--fs-display-sm); letter-spacing: -0.028em; line-height: 1.03; }
.headline { font-size: var(--fs-headline); letter-spacing: -0.025em; line-height: 1.05; }
.headline-sm { font-size: var(--fs-headline-sm); letter-spacing: -0.022em; line-height: 1.08; }

.couplet > span { display: block; text-wrap: balance; }
.muted { color: var(--text-2); }
.lead { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }
.caption { color: var(--text-2); font-size: var(--fs-caption); }

.highlight {
  padding: 0 0.1em;
  border-radius: 0.08em;
  background: var(--merkpen);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Buttons: one primary per view */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-5);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: 500 var(--fs-body-sm) / 1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; font-size: var(--fs-label); }

.btn-primary { background: var(--ink); color: var(--papier); }
.btn-primary:hover { background: #34352D; }

.btn-secondary { box-shadow: inset 0 0 0 1px rgb(23 24 18 / 0.2); color: var(--ink); }
.btn-secondary:hover { background: rgb(23 24 18 / 0.05); box-shadow: inset 0 0 0 1px rgb(23 24 18 / 0.32); }

.btn-highlight { background: var(--merkpen); color: var(--ink); }
.btn-highlight:hover { background: #EFF59B; }

.btn-light { background: var(--papier); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; }

.btn:disabled { cursor: default; opacity: 0.72; }
.btn:disabled:active { transform: none; }
.btn-primary:disabled:hover { background: var(--ink); }
.btn-secondary:disabled:hover { background: transparent; box-shadow: inset 0 0 0 1px rgb(23 24 18 / 0.2); }
.btn-light:disabled:hover { background: var(--papier); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(247 245 239 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s-6);
  min-height: 72px;
  padding-block: var(--s-3);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 44px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  column-gap: var(--s-5);
}

.nav-links a {
  display: block;
  padding: var(--s-2) 0;
  color: var(--text-2);
  font-size: var(--fs-label);
  line-height: 28px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: auto;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
  text-align: center;
}
.hero .lead { max-width: 580px; margin: var(--s-5) 0 0; }
.hero .caption { margin: var(--s-4) 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

/* Brand art: painted panels laid on the page, never full bleed */

.art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  background-color: var(--fynbos);
}

.art-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 82%;
}
.art-img--card { object-position: center 70%; }
.art-img--cta { object-position: center 62%; }

.art--scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(16 42 38 / 0.4);
}

.hero-art {
  margin: clamp(40px, 5.4vw, 72px) var(--art-gutter) 0;
  padding: clamp(16px, 2.8vw, 40px) clamp(12px, 6.4vw, 104px) 0;
  background-color: #A9A592;
}

/* Page / Source switch */

.view-switch { display: flex; justify-content: center; }

.view-switch-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1);
  border-radius: var(--r-pill);
  background: rgb(13 34 31 / 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
}

.view-options {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.view-options button {
  position: relative;
  z-index: 1;
  min-width: 80px;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: #FFFFFF;
  font: 500 var(--fs-label) / 1 var(--font-sans);
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.view-options button[aria-pressed="true"] { color: var(--ink); }
.view-options button[aria-pressed="false"]:hover { background: rgb(255 255 255 / 0.1); }
.view-options button:focus-visible { outline-color: #FFFFFF; }

/* The thumb slides from the old choice to the one just pressed */
.view-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  transition: transform var(--dur-base) var(--ease-out);
}
.view-options[data-view="source"] .view-thumb { transform: translateX(100%); }
.no-js .view-options { display: none; }

/* The app window */

.app {
  display: flex;
  max-width: 1180px;
  min-height: min(660px, 150vw);
  margin: var(--s-5) auto 0;
  overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(10 20 18 / 0.16), var(--shadow-window);
  color: var(--app-text);
  font-family: var(--font-app);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: left;
}
.app .icon { width: 16px; height: 16px; stroke: var(--app-faint); }

.app-side {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 248px;
  border-right: 1px solid var(--app-line);
  background: #F8F8F7;
}

.app-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 14px;
}

.app-space-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--app-text);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}
.app-space-name { font-weight: 600; }

.app-tree {
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  color: var(--app-muted);
  font-weight: 500;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding-right: 4px;
  border-radius: 6px;
}
.app-row span { margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row.is-nested { padding-left: 20px; }
.app-row.is-active { background: rgb(55 53 47 / 0.1); color: var(--app-text); }

.app-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.app-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 45px;
  padding-left: 12px;
}

.app-crumbs {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--app-muted);
  white-space: nowrap;
}
.app-crumbs > span { padding: 0 4px; }
.app-crumbs > .app-crumb-sep { padding: 0; color: var(--app-faint); }
.app-crumbs > .app-crumb-current { color: var(--app-text); }

.app-saved { flex: none; color: rgb(55 53 47 / 0.55); font-size: 13px; }

.app-more { display: grid; flex: none; place-items: center; width: 28px; height: 28px; }
.app .app-more .icon { width: 18px; height: 18px; stroke: var(--app-muted); }

.app-win { display: flex; flex: none; align-self: stretch; margin-left: 8px; color: var(--app-text); }
.app-win span { display: grid; place-items: center; width: 46px; }

.app-page {
  flex: 1;
  min-width: 0;
  padding: clamp(20px, 3.4vw, 48px) clamp(16px, 6vw, 72px) 32px;
}

.doc { max-width: 640px; margin: 0 auto; font-size: 15px; }

.doc-title {
  margin: 0 0 12px;
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.doc-props { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--app-line); }
.doc-props > div { display: flex; gap: 12px; padding: 3px 2px; font-size: 0.875em; }
.doc-props dt { flex: none; width: 96px; color: var(--app-muted); }
.doc-props dd { margin: 0; }

.doc-tag {
  display: inline-block;
  margin: 0 5px 2px 0;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--app-tag);
  font-size: 0.93em;
}

.doc-callout {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #EDF3EC;
}
.app .doc-callout .icon { width: 20px; height: 20px; stroke: var(--app-text); stroke-width: 1.8; }

.doc-h2 { margin: 22px 0 6px; font-size: 1.5em; font-weight: 600; line-height: 1.3; }

.doc-todos { margin: 0; padding: 0 0 0 2px; list-style: none; }
.doc-todos label { display: flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; }
.doc-todos input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--app-blue);
  cursor: pointer;
}

.doc-table-wrap { overflow-x: auto; }
.doc-table { min-width: 100%; border-collapse: collapse; }
.doc-table th,
.doc-table td { padding: 4px 8px; border: 1px solid var(--app-cell); text-align: left; }
.doc-table th { background: #F7F6F3; font-weight: 600; }

.doc-source {
  margin: 0;
  font-family: var(--font-app-mono);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.has-switched .doc-view { animation: fade-in var(--dur-base) var(--ease-out); }

@keyframes fade-in {
  from { opacity: 0; }
}

/* Statement */

.statement { padding-block: var(--section-lg) var(--section); }
.statement p {
  max-width: 1040px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-headline);
  letter-spacing: -0.022em;
  line-height: 1.14;
}
.quiet { color: var(--text-3); }

/* Features */

.features { padding-bottom: var(--section); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-9);
}
.section-head .headline { flex: 1 1 min(560px, 100%); min-width: 0; }
.section-head p { flex: 0 1 min(400px, 100%); min-width: 0; margin: 0; color: var(--text-2); }

.cards { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.section-head + .cards { margin-top: var(--s-8); }

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  min-width: 0;
  padding: var(--card-pad);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bladsy);
}
.card-wide { flex: 7 1 min(520px, 100%); min-height: 500px; padding-bottom: 0; }
.card-narrow { flex: 5 1 min(380px, 100%); min-height: 500px; padding-bottom: 0; }
.card-third { flex: 1 1 min(320px, 100%); min-height: 400px; }
.card--salie { background: var(--salie); }
.card--fynbos { background: var(--fynbos); color: var(--papier); }

.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-title);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.card-text { max-width: 460px; margin: var(--s-3) 0 0; color: var(--text-2); font-size: var(--fs-body-sm); }
.card--fynbos .card-text { color: var(--dou); }

/* Product windows inside cards */

.mock {
  height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: #FFFFFF;
  box-shadow: var(--shadow-window-sm);
  color: var(--app-text);
  font-family: var(--font-app);
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.5;
}

.mock-slash { padding: 24px 24px 0; }
.slash-line { display: flex; align-items: center; height: 26px; margin-top: 4px; }
.caret { width: 1.5px; height: 18px; margin-left: 1px; background: var(--app-text); }

.slash-menu {
  max-width: 340px;
  margin-top: 6px;
  padding: 6px;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(15 15 15 / 0.05), 0 3px 6px rgb(15 15 15 / 0.1), 0 9px 24px rgb(15 15 15 / 0.2);
  font-size: 14px;
}
.slash-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 6px; }
.slash-item.is-active { background: rgb(55 53 47 / 0.07); }
.slash-item span { flex: 1; }
.slash-item .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.slash-item kbd { color: var(--app-muted); font-family: var(--font-app-mono); font-size: 12px; }

.mock-shortcuts { padding: 0; list-style: none; line-height: 1.4; }
.shortcut {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 0 20px;
  border-bottom: 1px solid #EFEDE6;
}
.shortcut:last-child { border-bottom: 0; }
.shortcut > code { overflow-wrap: anywhere; color: #6A6C62; font-family: var(--font-mono); font-size: 13px; }
.shortcut > .icon { width: 16px; height: 16px; stroke: #9A9C91; }
.shortcut-heading { font-size: 20px; font-weight: 600; }
.shortcut-todo { display: flex; align-items: center; gap: 8px; }

.fake-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--app-blue);
}
.fake-check .icon { width: 12px; height: 12px; stroke: #FFFFFF; stroke-width: 3.2; }

.inline-code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--app-tag);
  color: #C9423F;
  font-family: var(--font-app-mono);
  font-size: 13px;
}

.mini-window {
  margin: 0;
  padding: 16px;
  border-radius: var(--r-sm);
  background: #FFFFFF;
  box-shadow: var(--shadow-window-sm);
  color: var(--app-text);
  font-family: var(--font-app);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}
.props > div { display: flex; gap: 12px; padding: 4px 0; }
.props dt { flex: none; width: 72px; color: var(--app-muted); }
.props dd { margin: 0; }
.props-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.props-tags .doc-tag { margin: 0; font-size: 13px; }

.grow-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 6px;
  color: var(--app-text);
  font-family: var(--font-app);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
}
.grow-table .doc-table { width: 100%; background: #FFFFFF; }
.grow-table .doc-table th,
.grow-table .doc-table td { padding: 5px 9px; }
.grow-bar {
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgb(35 131 226 / 0.14);
  color: #1B6DBF;
  font-weight: 600;
}
.grow-bar-row { height: 20px; }

.type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--s-4) var(--s-1) var(--s-3);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  font-size: var(--fs-meta);
}
.type-option.is-active { background: #FFFFFF; box-shadow: none; color: var(--ink); }
.type-sample { font-size: 30px; line-height: 36px; }
.type-sample--default { font-family: 'Segoe UI', system-ui, sans-serif; }
.type-sample--serif { font-family: var(--font-serif); }
.type-sample--mono { font-family: var(--font-mono); font-size: 27px; }

/* Safety: dark section */

.dark {
  margin: 0 var(--art-gutter);
  padding-block: clamp(40px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: var(--fynbos);
  color: var(--papier);
}
.dark .muted { color: var(--dou); }
.dark :focus-visible { outline-color: var(--merkpen); }

.dark-intro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-7) var(--s-9); }
.dark-copy { flex: 1 1 min(420px, 100%); min-width: 0; }
.dark-copy p { max-width: 480px; margin: var(--s-5) 0 0; color: var(--dou); }
.dark-copy code { color: var(--papier); font-family: var(--font-mono); font-size: 0.86em; }

.diff {
  flex: 1 1 min(500px, 100%);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: #0B1F1C;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: #DCE5DF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 26px;
}

.diff-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
  color: #9FB1A8;
  font-size: var(--fs-meta);
}

.diff-body { padding: var(--s-3) 0; }
.diff-line { display: flex; }
.diff-no { flex: none; width: 48px; padding-right: var(--s-4); color: #8FA39A; text-align: right; }
.diff-sign { flex: none; width: 16px; }
.diff-text { flex: 1; min-width: 0; padding-right: var(--s-4); white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line.is-removed { background: rgb(240 130 100 / 0.13); color: #F4BBA8; }
.diff-line.is-added { background: rgb(255 255 255 / 0.07); color: var(--merkpen); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  column-gap: var(--s-7);
  margin-top: clamp(40px, 5vw, 64px);
}
.fact { padding: var(--s-4) 0 var(--s-5); border-top: 1px solid var(--line-on-dark); }
.fact h3 { margin: 0; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.fact p { margin: var(--s-1) 0 0; color: var(--dou); font-size: var(--fs-label); }

/* Pricing */

.pricing { padding-block: var(--section-lg) var(--section); }
.pricing-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing-head .lead { max-width: 580px; margin: var(--s-5) 0 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: var(--s-4);
  max-width: 1040px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgb(23 24 18 / 0.07);
}

.plan-name { margin: 0; color: var(--text-2); font-size: var(--fs-label); font-weight: 500; line-height: 1.6; }

.plan-price {
  margin: var(--s-2) 0 0;
  font-family: var(--font-serif);
  font-size: var(--fs-price);
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price--soon { font-size: var(--fs-display-sm); letter-spacing: -0.028em; }

.plan-note { margin: var(--s-2) 0 0; color: var(--text-2); }

.plan-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-7);
  padding: var(--s-5) 0 0;
  border-top: 1px solid rgb(23 24 18 / 0.09);
  list-style: none;
}
.plan-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.plan-list .icon { margin-top: 4px; color: var(--mos); stroke-width: 2.2; }
.plan .btn { margin-top: auto; }

.plan--cloud { background: var(--fynbos); box-shadow: none; color: var(--papier); }
.plan--cloud .plan-name,
.plan--cloud .plan-note { color: var(--papier); }
.plan--cloud .plan-list { border-top-color: rgb(255 255 255 / 0.2); }
.plan--cloud .plan-list .icon { color: var(--merkpen); }
.plan--cloud :focus-visible { outline-color: var(--merkpen); }

/* Source */

.source { padding-bottom: var(--section); }

.source-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6) var(--s-9);
  padding: clamp(24px, 4.4vw, 64px);
  border-radius: var(--r-lg);
  background: var(--bladsy);
}
.source-copy { flex: 1 1 min(420px, 100%); min-width: 0; }
.source-copy p { margin: var(--s-4) 0 0; color: var(--text-2); }

/* Links in running text are underlined; navigation links are not */
.source-copy a,
.prose a,
.page-head a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.source-copy a:hover,
.prose a:hover,
.page-head a:hover { color: var(--focus); }

.terminal {
  flex: 1 1 min(420px, 100%);
  min-width: 0;
  margin: 0;
  padding: var(--s-5);
  overflow-x: auto;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #E9E7DF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 28px;
}
.terminal-comment { color: #A3A398; }

/* FAQ */

.faq { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-9); padding-bottom: var(--section); }
.faq > .headline { flex: 1 1 min(320px, 100%); min-width: 0; }
.faq-list { flex: 2 1 min(560px, 100%); min-width: 0; }
.faq-item { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.faq-item p { margin: var(--s-2) 0 0; color: var(--text-2); }

/* Closing call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(440px, 44vw, 640px);
  margin: 0 var(--art-gutter);
  padding: var(--s-9) clamp(24px, 5vw, 64px);
  color: var(--papier);
  text-align: center;
}
.cta .display-sm { max-width: 860px; }
.cta p { margin: var(--s-5) 0 0; font-size: var(--fs-lead); }
.cta .btn { margin-top: var(--s-6); }
.cta :focus-visible { outline-color: var(--merkpen); }

/* Footer */

.site-footer { padding-top: clamp(48px, 6vw, 80px); }

.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-6) var(--s-9); }
.footer-brand { flex: 1 1 min(320px, 100%); min-width: 0; }
.footer-brand .logo { display: inline-flex; line-height: 1.2; }
.footer-brand p { margin: var(--s-2) 0 0; color: var(--text-2); font-size: var(--fs-label); }

.footer-cols { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-9); }
.footer-col { display: flex; flex-direction: column; }
.footer-label { margin: 0; padding-bottom: var(--s-2); color: var(--text-2); font-size: var(--fs-caption); }
.footer-col a { padding: var(--s-1) 0; color: var(--ink); font-size: var(--fs-label); text-decoration: none; }
.footer-held { padding: var(--s-1) 0; color: var(--text-2); font-size: var(--fs-label); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-copy { margin: clamp(32px, 4vw, 56px) 0 0; color: var(--text-2); font-size: var(--fs-caption); }

/* The whole word shows, sitting on the bottom edge of the page */
.footer-wordmark {
  margin-top: var(--s-4);
  padding-bottom: var(--s-4);
  overflow-x: clip;
  color: #E9E5DB;
  font-family: var(--font-serif);
  font-size: clamp(84px, 20.6vw, 306px);
  letter-spacing: -0.035em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* Text pages: privacy, terms, licence, not found */

.page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.page-head { max-width: 720px; }
.page-head .lead { margin: var(--s-5) 0 0; }
.page-head .caption { margin: var(--s-4) 0 0; }

.prose { max-width: 65ch; margin-top: var(--s-8); }
.prose h2 {
  margin: var(--s-7) 0 0;
  font-family: var(--font-serif);
  font-size: var(--fs-title);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose ul { margin: var(--s-3) 0 0; color: var(--text-2); }
.prose ul { display: flex; flex-direction: column; gap: var(--s-2); padding-left: var(--s-5); }

.licence-text {
  max-width: 72ch;
  margin-top: var(--s-8);
  padding: var(--card-pad);
  border-radius: var(--r-lg);
  background: var(--bladsy);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.7;
}
.licence-text p { margin: 0; }
.licence-text p + p { margin-top: var(--s-4); }

.page--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}
.page--center .lead { margin: var(--s-5) 0 0; }

/* Small screens */

@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .nav { column-gap: var(--s-4); }
  .nav-actions { gap: var(--s-4); }
  .nav-links { order: 3; width: 100%; }
  .card-wide,
  .card-narrow,
  .card-third { min-height: 0; }
  .app-side,
  .app-win { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
