/*
 * Malina landing page. Colours and type come from assets/tokens.css (written
 * by docs/brand/logo/build.mjs from docs/brand/tokens.css); this file only
 * lays the page out. The fonts are served with the page: no request leaves it.
 */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --wrap: 1120px;
  --gutter: 16px;
  --header: 64px;
  --shadow: 0 1px 2px rgb(30 23 25 / 0.04), 0 18px 40px -18px rgb(30 23 25 / 0.22);
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--malina-500); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--malina-700);
}
.lead { margin-top: 20px; max-width: 36em; font-size: clamp(17px, 1.9vw, 19px); color: var(--stone-700); }
.small { font-size: 14px; color: var(--stone-600); }

/* Buttons: raspberry marks what to do next (brand.md 5.2) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--malina-600); color: #fff; }
.btn-primary:hover { background: var(--malina-700); }
.btn-secondary { background: #fff; border-color: var(--stone-300); color: var(--ink); }
.btn-secondary:hover { border-color: var(--stone-500); }
.btn-light { background: #fff; color: var(--malina-700); }
.btn-light:hover { background: var(--malina-50); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(253 250 246 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(226 221 216 / 0.7);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header); }
.brand { flex: none; }
.brand img { height: 32px; width: auto; }
.nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--stone-700); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
/* On a phone the hero's button right below asks for the demo */
.header-actions .header-demo { display: none; }
@media (min-width: 480px) {
  .header-actions .header-demo { display: inline-flex; }
}
/* From where the links fit on one line next to both buttons */
@media (min-width: 980px) {
  .nav { display: flex; }
  .header-actions { margin-left: 4px; }
}

/* Hero, with the dot pattern of the brand behind it (brand.md 8). It fills
   the first screen below the header (64px and its 1px border), its content
   centred; svh keeps it inside a phone's toolbars */
.hero {
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header) - 1px);
  min-height: calc(100svh - var(--header) - 1px);
  padding: 48px 0 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--malina-300) 2px, transparent 2.5px), radial-gradient(circle, var(--malina-200) 2px, transparent 2.5px);
  background-size: 26px 22.5px;
  background-position: 0 0, 13px 11.25px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  opacity: 0.8;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--malina-600); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--stone-600); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--malina-400); }
@media (min-width: 980px) {
  .hero { padding: 80px 0 104px; }
  .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; }
}

/* The product, drawn from the app's tokens; fictional data */
.product { position: relative; margin: 0; min-width: 0; container-type: inline-size; }
.window { background: #fff; border: 1px solid var(--stone-200); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--stone-50); border-bottom: 1px solid var(--stone-200); }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--stone-300); }
.app { display: grid; font-size: 13px; }
.app-side { display: none; padding: 14px 10px; background: var(--stone-50); border-right: 1px solid var(--stone-200); }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 17px; font-weight: 600; }
.app-brand img { width: 18px; height: auto; }
.app-side ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.app-side li { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 6px; color: var(--stone-600); white-space: nowrap; }
.app-side li.is-active { background: var(--malina-50); color: var(--malina-800); font-weight: 500; }
.app-side b { padding: 0 6px; border-radius: 999px; background: var(--malina-600); color: #fff; font-size: 11px; font-weight: 600; }
.app-main { min-width: 0; padding: 16px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-kicker { font-size: 11px; color: var(--stone-600); }
.app-title { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 19px; font-weight: 600; line-height: 1.2; }
.app-period { padding: 2px 10px; border: 1px solid var(--stone-200); border-radius: 999px; color: var(--stone-600); font-size: 12px; white-space: nowrap; }
.app-table { width: 100%; border-collapse: collapse; }
.app-table th { padding: 6px 8px; border-bottom: 1px solid var(--stone-200); color: var(--stone-600); font-size: 11px; font-weight: 500; text-align: left; }
.app-table td { padding: 8px; border-bottom: 1px solid var(--stone-100); white-space: nowrap; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table td:first-child { white-space: normal; }
.app-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.app-table code { font-family: var(--font-mono); font-size: 12px; color: var(--stone-700); }
.col-date, .col-account { display: none; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 500; }
/* The app's status badges (lib/status-style.ts): 5 % tint, border, colour as text */
.tag.ok { color: var(--success); border-color: rgb(57 124 78 / 0.3); background: rgb(57 124 78 / 0.05); }
.tag.warn { color: var(--warning-text); border-color: rgb(230 163 19 / 0.5); background: rgb(230 163 19 / 0.05); }
.tag.info { color: var(--info); border-color: rgb(56 108 160 / 0.3); background: rgb(56 108 160 / 0.05); }
.note { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--stone-200); border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.note-title { margin-bottom: 2px; font-weight: 600; color: var(--warning-text); }
.note-action { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px; background: var(--malina-600); color: #fff; font-size: 12px; font-weight: 600; }
.note-count { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* The mock-up adapts to its own width: columns first, the sidebar when there
   is room for it next to the table */
@container (min-width: 430px) {
  .col-date, .col-account { display: table-cell; }
}
@container (min-width: 540px) {
  .app { grid-template-columns: 128px minmax(0, 1fr); }
  .app-side { display: block; }
  .col-date { display: none; }
}
@container (min-width: 680px) {
  .col-date { display: table-cell; }
}
@media (min-width: 980px) {
  .note { position: absolute; margin: 0; }
  .note-missing { left: -32px; top: calc(100% - 14px); max-width: 250px; }
  .note-count { top: -18px; right: -12px; }
}

/* The idea: the mark assembles from scattered points (site.js) */
.idea { overflow: clip; padding: 72px 0; border-block: 1px solid var(--stone-200); background: #fff; }
.idea-grid { display: grid; gap: 40px; align-items: center; }
.idea-mark { margin: 0; }
.idea-mark svg { width: min(230px, 56vw); height: auto; margin: 0 auto; overflow: visible; }
.idea-mark.is-ready circle, .idea-mark.is-ready path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease-out;
}
.idea h2 { font-size: clamp(32px, 4.6vw, 46px); }
.idea p { margin-top: 18px; max-width: 34em; color: var(--stone-700); font-size: 17px; }
.idea .aside { padding-left: 14px; border-left: 2px solid var(--malina-200); color: var(--stone-600); font-size: 15px; }
@media (min-width: 860px) {
  .idea { padding: 96px 0; }
  .idea-grid { grid-template-columns: 320px 1fr; gap: 72px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--stone-50); border-block: 1px solid var(--stone-200); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 46px); }
@media (min-width: 860px) {
  .section { padding: 104px 0; }
}

.cards { display: grid; gap: 16px; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--stone-200); border-radius: 12px; background: #fff; }
.card h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 600; }
.card p { color: var(--stone-700); }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--malina-50); color: var(--malina-700); }
@media (min-width: 760px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Steps */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { min-width: 0; padding: 24px; border: 1px solid var(--stone-200); border-radius: 12px; background: #fff; }
.step-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--malina-600); color: #fff; }
.step-n { margin-top: 16px; color: var(--malina-700); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.step h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 600; }
.step p:last-child { color: var(--stone-700); font-size: 15px; }
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* The flow above the steps: the Mandant's sources, Malina, the Kanzlei with
   BMD. Top to bottom on a phone, left to right from 900px. flow.js draws the
   wires between the boxes and moves the tokens along them. */
.flow { margin: 0 0 48px; }
.flow-stage { position: relative; display: grid; max-width: 640px; margin: 0 auto; }
.flow-wires, .flow-tokens { position: absolute; inset: 0; pointer-events: none; }
.flow-wires { z-index: 0; width: 100%; height: 100%; overflow: visible; }
.flow-tokens { z-index: 1; }
.flow-side, .flow-hub { position: relative; z-index: 2; min-width: 0; }
.flow-wire { fill: none; stroke: var(--stone-300); stroke-width: 1.5; transition: stroke 0.5s ease-out; }
.flow-wire.is-live { stroke: var(--malina-300); }
.flow-arrow { fill: none; stroke: var(--stone-400); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.flow-label { margin-bottom: 10px; color: var(--stone-600); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; }
.flow-kanzlei .flow-label { order: 2; margin: 10px 0 0; }
.flow-kanzlei { display: flex; flex-direction: column; }
.flow-nodes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.flow-kanzlei .flow-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-node { display: flex; flex-direction: column-reverse; justify-content: flex-start; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.flow-kanzlei .flow-node { flex-direction: column; }
.flow-icon { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--stone-200); border-radius: 12px; background: #fff; color: var(--malina-700); box-shadow: 0 1px 2px rgb(30 23 25 / 0.05); }
.flow-bmd .flow-icon { border-color: var(--malina-600); background: var(--malina-600); color: #fff; }
.flow-n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--malina-600); color: #fff; font-family: var(--font-sans); font-size: 10px; font-weight: 700; line-height: 1; }
.flow-icon .flow-n { position: absolute; top: -6px; right: -6px; box-shadow: 0 0 0 2px var(--stone-50); }
.flow-bmd .flow-icon .flow-n { background: var(--ink); }
.flow-text { display: grid; min-width: 0; }
.flow-text b { font-size: 12px; font-weight: 600; line-height: 1.25; -webkit-hyphens: manual; hyphens: manual; }
.flow-text small { display: none; color: var(--stone-600); font-size: 11px; line-height: 1.3; }
.flow-bmd .flow-text small { display: grid; }
.flow-counts > span { display: block; }
.flow-counts [data-count] { font-variant-numeric: tabular-nums; }
.flow-gap { height: 64px; }

/* Malina in the middle: what it is doing, the four stages, the newest lines */
.flow-hub { padding: 14px; border: 1px solid var(--stone-200); border-radius: 14px; background: #fff; box-shadow: var(--shadow); container-type: inline-size; }
.flow-hub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-hub-brand { display: flex; flex: none; align-items: center; gap: 8px; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 18px; font-weight: 600; }
.flow-hub-brand img { width: 18px; height: auto; }
.flow-status { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--stone-600); font-size: 12px; }
.flow-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-pulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-500); box-shadow: 0 0 0 3px var(--leaf-100); }
.flow-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.flow-stages li { padding: 1px 9px; border: 1px solid var(--stone-200); border-radius: 999px; color: var(--stone-600); font-size: 11.5px; font-weight: 500; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.flow-stages li.is-on { border-color: var(--malina-300); background: var(--malina-50); color: var(--malina-800); }
.flow-stages.is-done li { border-color: rgb(57 124 78 / 0.3); background: rgb(57 124 78 / 0.05); color: var(--success); }
.flow-journal { border-top: 1px solid var(--stone-200); }
.flow-cols, .flow-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px 56px 34px 66px 14px; gap: 8px; align-items: center; }
.flow-cols { padding: 8px 0 6px; color: var(--stone-600); font-size: 11px; font-weight: 500; }
.flow-rows { position: relative; height: 102px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.flow-row { height: 34px; border-top: 1px solid var(--stone-100); font-size: 12.5px; }
.flow-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-row code { font-family: var(--font-mono); font-size: 12px; color: var(--stone-700); }
.flow-amt { text-align: right; font-variant-numeric: tabular-nums; }
.flow-cols .flow-amt { text-align: right; }
.flow-ok {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23397c4e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.flow-cols .flow-ok, .flow-cols span:empty { background: none; }
@container (max-width: 380px) {
  .flow-cols, .flow-row { grid-template-columns: minmax(0, 1fr) 42px 66px 14px; }
  .flow-gk, .flow-pct { display: none; }
}

/* What travels on the wires; the legend uses the same shapes */
.flow-token { display: inline-block; flex: none; }
.flow-token-doc {
  width: 14px;
  height: 18px;
  border: 1.5px solid var(--stone-500);
  border-radius: 2px 5px 2px 2px;
  background-color: #fff;
  background-image: linear-gradient(var(--stone-400), var(--stone-400)), linear-gradient(var(--stone-300), var(--stone-300)), linear-gradient(var(--stone-300), var(--stone-300));
  background-position: 2px 3px, 2px 7px, 2px 11px;
  background-size: 7px 1.5px, 7px 1.5px, 5px 1.5px;
  background-repeat: no-repeat;
}
.flow-token-bank { width: 18px; height: 18px; border-radius: 50%; background: var(--slate-600); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.flow-token-bank::before { content: '€'; }
.flow-token-msg { width: 20px; height: 15px; border-radius: 7px 7px 7px 2px; background: var(--honey-400); }
.flow-token-line { width: 24px; height: 8px; border-radius: 999px; background: var(--malina-500); }
.flow-tokens .flow-token { position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity; }
.flow-tokens .flow-token-doc { margin: -9px 0 0 -7px; }
.flow-tokens .flow-token-bank { margin: -9px 0 0 -9px; }
.flow-tokens .flow-token-msg { margin: -7.5px 0 0 -10px; }
.flow-tokens .flow-token-line { margin: -4px 0 0 -12px; }
.flow-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 0; padding: 0; color: var(--stone-600); font-size: 13px; list-style: none; }
.flow-legend li { display: flex; align-items: center; gap: 8px; }

/* Without flow.js there are no wires: an arrow in each gap says which way */
.flow:not(.is-wired) .flow-gap { display: grid; place-items: center; color: var(--stone-400); font-size: 22px; line-height: 1; }
.flow:not(.is-wired) .flow-gap-in::before { content: '↓'; }
.flow:not(.is-wired) .flow-gap-out::before { content: '⇅'; }

@media (min-width: 900px) {
  .flow { margin-bottom: 56px; }
  .flow-stage {
    grid-template-columns: minmax(190px, 236px) minmax(64px, 1fr) minmax(320px, 440px) minmax(64px, 1fr) minmax(190px, 236px);
    align-items: center;
    max-width: none;
  }
  .flow-gap { height: auto; align-self: stretch; }
  .flow:not(.is-wired) .flow-gap-in::before { content: '→'; }
  .flow:not(.is-wired) .flow-gap-out::before { content: '⇄'; }
  .flow-label { text-align: left; }
  .flow-kanzlei .flow-label { order: 0; margin: 0 0 10px; }
  .flow-nodes, .flow-kanzlei .flow-nodes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow-node, .flow-kanzlei .flow-node { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--stone-200); border-radius: 10px; background: #fff; text-align: left; }
  .flow-icon { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--malina-50); box-shadow: none; }
  .flow-icon .flow-n { box-shadow: 0 0 0 2px #fff; }
  .flow-text b { font-size: 14px; }
  .flow-text small { display: block; font-size: 12px; }
  .flow-bmd { border-color: var(--malina-300); box-shadow: 0 0 0 3px var(--malina-50); }
  .flow-bmd .flow-text small { display: block; }
}

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

/* For both sides */
.split { display: grid; gap: 16px; }
.card-lg { padding: 28px; }
.card-lg h3 { margin-top: 0; font-size: 24px; }
.checklist { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; color: var(--stone-700); }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23397c4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.whitelabel { display: grid; gap: 28px; align-items: center; margin-top: 16px; padding: 28px; border-radius: 12px; background: var(--malina-50); }
.whitelabel h3 { font-size: 24px; }
.whitelabel p { margin-top: 10px; max-width: 30em; color: var(--stone-700); }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.theme { --t-primary: var(--malina-600); display: grid; gap: 8px; padding: 16px; border: 1px solid var(--stone-200); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.theme-kanzlei { --t-primary: #2f6b9a; }
.theme-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 16px; font-weight: 600; }
.theme-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-brand img { width: 20px; height: auto; flex: none; }
.theme-monogram { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--t-primary); color: #fff; font-family: var(--font-sans); font-size: 10px; font-weight: 700; }
.theme-field { height: 26px; border: 1px solid var(--stone-200); border-radius: 6px; }
.theme-button { display: grid; place-items: center; height: 28px; border-radius: 6px; background: var(--t-primary); color: #fff; font-size: 12px; font-weight: 600; }
@media (min-width: 860px) {
  .whitelabel { grid-template-columns: 1fr 1fr; padding: 36px; }
}

/* Security, on night */
.section-dark { background: var(--night); color: var(--paper); }
.section-dark .eyebrow { color: var(--malina-300); }
.section-dark .lead { color: var(--stone-300); }
.trust { display: grid; gap: 32px; }
.trust h3 { margin: 14px 0 6px; font-size: 20px; font-weight: 600; }
.trust p { color: var(--stone-300); font-size: 15px; }
.trust-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--night-border); border-radius: 10px; color: var(--malina-300); }
@media (min-width: 700px) {
  .trust { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  /* icon, heading and text of the cards side by side share their rows: the
     texts start on one line however the headings wrap */
  .trust > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  /* a shorter heading sits right above its text */
  .trust > div > h3 { align-self: end; }
}
@media (min-width: 1040px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
}

/* Pricing */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--stone-200); border-radius: 14px; background: #fff; }
.plan-featured { border-color: var(--malina-300); box-shadow: 0 0 0 3px var(--malina-50); }
.plan h3 { font-size: 26px; }
.plan-for { margin-top: 4px; color: var(--stone-600); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price b { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--stone-600); font-size: 15px; }
.plan-note { margin-top: 8px; color: var(--stone-700); }
.pricing-details { display: grid; gap: 28px; margin-top: 40px; }
.pricing-details h3 { font-size: 20px; font-weight: 600; }
.usage { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.usage th, .usage td { padding: 8px 0; border-bottom: 1px solid var(--stone-200); vertical-align: top; }
.usage th { padding-right: 16px; color: var(--stone-700); font-weight: 400; text-align: left; white-space: nowrap; }
/* The one long label wraps on a phone instead of squeezing the prices */
.usage th.usage-wrap { white-space: normal; }
.usage td { font-variant-numeric: tabular-nums; text-align: right; }
.pricing-details .small { margin-top: 10px; }
.examples { display: grid; gap: 12px; margin: 14px 0 0; }
.examples div { padding: 14px 16px; border-radius: 10px; background: var(--stone-50); border: 1px solid var(--stone-200); }
.examples dt { color: var(--stone-700); font-size: 14px; }
.examples dd { margin: 4px 0 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 28px; max-width: 60em; }
@media (min-width: 820px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .pricing-details { grid-template-columns: 1fr 1.15fr 1fr; gap: 40px; }
}

/* Questions */
.faq { max-width: 780px; border-top: 1px solid var(--stone-200); }
.faq details { border-bottom: 1px solid var(--stone-200); }
.faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--malina-600); font-size: 22px; font-weight: 400; line-height: 1.1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { max-width: 40em; padding: 0 0 20px; color: var(--stone-700); }

/* Contact: the one full-bleed raspberry moment, the mono mark reversed */
.cta { position: relative; overflow: clip; padding: 80px 0; background: var(--malina-600); color: #fff; }
.cta .wrap { position: relative; }
.cta h2 { max-width: 14em; font-size: clamp(34px, 5.4vw, 56px); font-weight: 500; }
.cta p { margin-top: 18px; max-width: 34em; color: #fff; font-size: 18px; }
.cta-mail { color: #fff; font-weight: 500; }
.cta-mark { position: absolute; right: -80px; bottom: -110px; width: 260px; color: rgb(255 255 255 / 0.12); pointer-events: none; }
.cta-mark svg { width: 100%; height: auto; }
@media (min-width: 860px) {
  .cta { padding: 112px 0; }
  .cta-mark { right: 6%; bottom: -60px; width: 380px; }
}

/* Footer */
.site-footer { padding: 48px 0 32px; color: var(--stone-600); font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid img { height: 32px; width: auto; }
.footer-claim { margin-top: 10px; }
.footer-title { margin-bottom: 10px; color: var(--ink); font-weight: 600; }
.footer-grid ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--stone-200); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
