/* Wirevo landing page. Set like an issue of a trade magazine: masthead, contents, folios,
   column rules. Brand from the app (frontend/src/styles/tokens.css): orange, ink, paper,
   Archivo with its width axis, IBM Plex Mono for figures and sources. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f4f2ec;
  --paper-2: #ebe7dd;
  --sheet: #ffffff;
  --ink: #1b1b18;
  --ink-2: #45443e;
  --ink-3: #5f5d56;
  --rule: #cfcabd;
  --orange: #fe9900;
  --orange-ink: #2b1400;
  --orange-text: #8a4b00;
  --signal: #d95425;
  --ok: #1f6f4a;
  --bad: #b3261e;
  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .01em; }
.num { font-family: var(--sans); font-stretch: 62%; font-weight: 800; font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* --- Buttons ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: 700 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9375rem; }
.btn-solid { background: var(--orange); color: var(--orange-ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.btn-solid:hover { background: #f08c00; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* --- Top bar -------------------------------------------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(244 242 236 / .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.bar-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--bar-h); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
/* Navigation: "Funktionen" opens a panel of the six feature pages; on phones one menu. */
.bar-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink-2); cursor: pointer; list-style: none; }
.nav-top::-webkit-details-marker { display: none; }
summary.nav-top::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav-top:hover, .nav-top[aria-current="page"], .nav-menu[data-current] > .nav-top, .nav-menu[open] > .nav-top { color: var(--ink); background: var(--paper-2); }
.nav-features { position: relative; }
.nav-panel {
  /* Hangs to the left of the menu entry, so it stays on screen next to the right-hand bar. */
  position: absolute; top: calc(100% + 10px); right: -12px; z-index: 60; width: min(560px, calc(100vw - 32px));
  list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--ink); box-shadow: 0 20px 40px -20px rgb(27 27 24 / .35);
}
.nav-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: var(--paper); }
.nav-panel b { font-weight: 800; }
.nav-panel a[aria-current="page"] b { color: var(--orange-text); }
.nav-panel span { font-size: .875rem; color: var(--ink-3); }
.bar-cta { margin-left: 8px; }
/* Login to the app: in the bar on wide screens, in the menu and the footer on narrow ones. */
.bar-login { margin-left: 4px; padding: 8px 4px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.bar-login:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nav-mobile { display: none; }
@media (max-width: 1060px) {
  .bar-nav { display: none; }
  .bar-login { display: none; }
  .nav-mobile { display: block; margin-left: auto; }
  .nav-mobile > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 700; cursor: pointer; }
  .nav-mobile > summary::-webkit-details-marker { display: none; }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; } .burger::after { top: 5px; }
  .nav-mobile[open] .burger { background: transparent; }
  .nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
  .nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
  /* The bar's backdrop-filter makes it the containing block of fixed children, so the panel
     hangs from the bar (full width) with the screen's height below it. */
  .nav-mobile-panel {
    position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h));
    z-index: 60; overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border-top: 1px solid var(--rule); padding: 12px var(--gutter) 32px;
  }
  .nav-mobile-panel .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-group { margin: 6px 0 2px; color: var(--orange-text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
  .nav-mobile-panel .nav-panel { position: static; width: auto; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; box-shadow: none; background: none; }
  .nav-mobile-panel .nav-panel a, .nav-mobile-panel .nav-top { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav-mobile-panel .nav-top { display: flex; color: var(--ink); font-weight: 800; }
  .bar-cta { margin-left: 8px; }
}
@media (max-width: 420px) {
  .nav-mobile-label { display: none; }
  .bar-in { gap: 10px; }
  .bar-cta { padding: 0 12px; }
}

/* --- Shared section layout ------------------------------------------------------------- */
.section, .hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); position: relative; }
.section + .section { border-top: 1px solid var(--rule); }
.kicker {
  font-family: var(--mono); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--orange-text); margin-bottom: 14px;
}
.section h2 {
  font-stretch: 68%; font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: .98; letter-spacing: -.015em;
  max-width: 16ch; text-wrap: balance;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin-top: 20px; text-wrap: pretty; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 20ch; }
.section-head .lede { max-width: 58ch; }

/* Sits in the section's top padding, clear of the content in both columns. */
.folio {
  position: absolute; top: clamp(20px, 3vw, 40px); right: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: .8125rem; color: var(--ink-3); text-align: right;
}
.folio .mono { color: var(--ink); font-weight: 600; font-size: .9375rem; }
@media (max-width: 760px) { .folio { position: static; flex-direction: row; gap: 10px; margin-bottom: 20px; justify-content: flex-start; } }

/* A screenshot as a printed sheet: white margin, crop marks at the corners. */
.sheet { margin: 0; position: relative; background: var(--sheet); padding: 10px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgb(27 27 24 / .35); }
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--ink-3); border-style: solid;
}
.sheet::before { top: -12px; left: -12px; border-width: 0 1px 1px 0; }
.sheet::after { bottom: -12px; right: -12px; border-width: 1px 0 0 1px; }
.sheet img { width: 100%; }
.demo-note { display: block; margin-top: 12px; font-family: var(--mono); font-size: .75rem; color: var(--ink-3); }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 52ch; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='%232b1400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* --- Hero ------------------------------------------------------------------------------ */
.hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 72px); }
.masthead {
  display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 3px solid var(--ink); color: var(--ink-2);
}
.masthead-rule { flex: 1; height: 1px; background: var(--rule); }
@media (max-width: 760px) { .masthead { flex-wrap: wrap; gap: 4px 12px; } .masthead-rule { display: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 {
  font-stretch: 62%; font-weight: 850; font-size: clamp(3.5rem, 10.5vw, 9.5rem); line-height: .86; letter-spacing: -.02em;
}
.hero h1::after { content: ""; display: block; width: 1.1em; height: .09em; background: var(--signal); margin-top: .14em; }
.hero .lede { max-width: 40ch; margin-top: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.toc { margin-top: clamp(40px, 5vw, 64px); max-width: 520px; border-top: 6px solid var(--ink); padding-top: 14px; }
.toc-title { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink-2);
}
.toc a:hover { color: var(--ink); }
.toc a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }

.hero-figure { margin-top: 8px; }
.hero-shot { position: relative; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 700 .875rem/1 var(--mono);
  box-shadow: 0 0 0 4px rgb(254 153 0 / .9);
}
@media (max-width: 600px) { .pin { width: 22px; height: 22px; font-size: .6875rem; box-shadow: 0 0 0 3px rgb(254 153 0 / .9); } }
.pins { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: pin; display: grid; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.pins li { counter-increment: pin; position: relative; padding-left: 26px; }
.pins li::before { content: counter(pin); position: absolute; left: 0; top: .1em; font: 600 .8125rem/1.6 var(--mono); color: var(--orange-text); }
.pins b { color: var(--ink); }

.facts {
  list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.facts li { padding: 22px 20px 24px; border-left: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .num { font-size: clamp(3rem, 6vw, 5rem); line-height: .9; }
.facts span { color: var(--ink-2); font-size: .9375rem; max-width: 24ch; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 620px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 460px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { border-left: 0; padding-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* --- Split sections -------------------------------------------------------------------- */
.section-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.section-split-rev .split-copy { order: 2; }
.split-media { display: grid; gap: 40px; }
.sheet-crop { max-width: 560px; }
.sheet-narrow { max-width: 460px; justify-self: center; }
@media (max-width: 900px) {
  .section-split { grid-template-columns: minmax(0, 1fr); }
  .section-split-rev .split-copy { order: 0; }
}

.rules { margin: 32px 0 0; display: grid; gap: 0; max-width: 56ch; }
.rules div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.rules dt { font-weight: 800; }
.rules dd { margin: 0; color: var(--ink-2); }
@media (max-width: 460px) { .rules div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* KI proposal, drawn after the app's own diff on the page. */
.proposal { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid #5b4bd1; padding: 22px 24px; box-shadow: 0 18px 40px -26px rgb(27 27 24 / .4); }
.proposal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: var(--ink-3); }
.badge { background: #ece9ff; color: #3a2fa0; font-weight: 700; font-size: .8125rem; padding: 4px 10px; border-radius: 999px; }
.proposal-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.1875rem; line-height: 1.6; }
.proposal del { color: var(--bad); text-decoration-thickness: 1.5px; background: #fdecea; }
.proposal ins { color: var(--ok); text-decoration: none; background: #e3f3ea; border-bottom: 2px solid var(--ok); }
.proposal mark.keep { background: #fff1dc; box-shadow: inset 0 -2px 0 var(--orange); color: inherit; }
.proposal-checks { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--rule); display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
.ok { color: var(--ok); font-weight: 800; margin-right: 6px; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Several people in one paragraph. */
.collab { margin: 0; background: var(--sheet); border: 1px solid var(--rule); padding: 22px 26px 24px; box-shadow: 0 18px 40px -26px rgb(27 27 24 / .4); }
.collab-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.collab-bar .mono { margin-left: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 .75rem/1 var(--sans); }
.collab-kicker { font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #a83a12; }
.collab-head { font-stretch: 70%; font-weight: 800; font-size: 1.75rem; line-height: 1.05; margin: 8px 0 12px; }
.collab-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.sel { background: color-mix(in srgb, var(--c) 18%, transparent); }
.caret { position: relative; display: inline-block; width: 2px; height: 1.2em; vertical-align: -.2em; background: var(--c); margin: 0 1px; }
.caret::after {
  content: attr(data-who); position: absolute; left: -1px; top: -1.25em;
  font: 700 .625rem/1 var(--sans); color: #fff; background: var(--c); padding: 3px 4px; border-radius: 3px 3px 3px 0;
}
.caret-type { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .caret-type { animation: none; } }
.collab-suggest { margin-top: 16px; padding: 10px 12px; background: #eef0fb; border-left: 3px solid #3b4bb0; font-size: .9375rem; }
.collab-suggest .mono { color: #3b4bb0; font-weight: 600; margin-right: 6px; }

/* --- MCP (dark) ------------------------------------------------------------------------ */
.section-ink { max-width: none; background: var(--ink); color: #f4f2ec; border-top: 0 !important; }
.section-ink > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section-ink .folio { right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); color: #b9b5a9; }
.section-ink .folio .mono { color: #fff; }
.section-ink .kicker { color: var(--orange); }
.section-ink .lede { color: #d9d5ca; }
.mcp-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.mcp-grid h2 { max-width: 18ch; }
.ticks-ink li { color: #d9d5ca; }
.terminal { background: #0f0f0d; border: 1px solid #3a3933; border-radius: 10px; overflow: hidden; }
.terminal-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #3a3933; }
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: #3a3933; }
.terminal-head b { margin-left: 8px; color: #b9b5a9; font-weight: 400; }
.terminal-body { padding: 16px 20px 20px; font-size: .8125rem; line-height: 1.75; color: #f4f2ec; }
.terminal-body p { margin: 0; }
.t-c { color: var(--orange); }
.t-c:not(:first-child) { margin-top: 10px; }
.t-x { color: #b9b5a9; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); column-gap: 16px; }
.t-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.t-list li { overflow-wrap: anywhere; }
@media (max-width: 900px) { .mcp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .terminal-body { font-size: .75rem; } }

/* --- Migration ------------------------------------------------------------------------- */
.stages { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: stage; }
.stages li { position: relative; padding: 26px 22px 0 0; border-top: 3px solid var(--ink); }
.stages li::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink);
}
.stages li:last-child::before { background: var(--orange); }
.stages .mono { color: var(--orange-text); font-weight: 600; }
.stages h3 { font-stretch: 75%; font-size: 1.5rem; line-height: 1.1; margin: 6px 0 8px; }
.stages p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 900px) {
  .stages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 36px; }
}
@media (max-width: 520px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
}
.umzug-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sources { list-style: none; margin: 0; padding: 0; columns: 1; }
.sources li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 800; font-size: 1.125rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sources small { font-weight: 400; font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 900px) { .umzug-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Cases ----------------------------------------------------------------------------- */
.section-paper { max-width: none; background: var(--paper-2); border-top: 0 !important; }
.section-paper > * { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section-paper .folio { right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.case { padding: 28px 32px 36px 0; border-bottom: 1px solid var(--rule); }
.case:nth-child(even) { padding: 28px 0 36px 32px; border-left: 1px solid var(--rule); }
.case-tag { color: var(--orange-text); font-weight: 600; }
.case h3 { font-stretch: 75%; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08; margin: 10px 0 18px; max-width: 22ch; text-wrap: balance; }
.case-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.case-big .num { font-size: clamp(3rem, 6vw, 4.75rem); line-height: .9; color: var(--ink); }
.case-big span { color: var(--ink-2); font-weight: 600; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dl div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
.case dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: .25em; }
.case dd { margin: 0; color: var(--ink-2); }
.pilot-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; color: var(--ink-2); }
.pilot-note .mono { background: var(--ink); color: var(--paper); padding: 3px 8px; border-radius: 3px; }
@media (max-width: 900px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case, .case:nth-child(even) { padding: 26px 0 30px; border-left: 0; }
}
@media (max-width: 460px) { .case dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* --- Roles ----------------------------------------------------------------------------- */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.role { padding: 22px 20px 8px; border-left: 1px solid var(--rule); }
.role:first-child { border-left: 0; padding-left: 0; }
.role h3 { font-stretch: 75%; font-size: 1.5rem; margin-bottom: 8px; }
.role p { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1000px) {
  .roles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .role, .role:first-child { border-left: 0; padding: 20px 20px 16px 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* --- Phones ---------------------------------------------------------------------------- */
.phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: end; }
.phones figure { margin: 0; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px -24px rgb(27 27 24 / .45); }
.phones figure:nth-child(2) { transform: translateY(-28px); }
.phones img { border-radius: 19px; }

/* --- Contact --------------------------------------------------------------------------- */
.contact { text-align: left; }
.contact-in { border-top: 6px solid var(--ink); padding-top: 28px; display: grid; justify-items: start; }
.contact h2 { max-width: 18ch; }

/* --- Footer ---------------------------------------------------------------------------- */
.foot { border-top: 3px solid var(--ink); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; color: var(--ink-2); }
.brand-foot { font-size: 1.125rem; color: var(--ink); }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot-note { flex-basis: 100%; color: var(--ink-3); }

/* --- Packages and prices --------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); margin-bottom: clamp(36px, 5vw, 56px); }
.pillars div { padding: 18px 24px 4px 0; }
.pillars div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.pillars .mono { color: var(--orange-text); font-weight: 600; }
.pillars h3 { font-stretch: 75%; font-size: 1.625rem; margin: 4px 0 8px; }
.pillars p { color: var(--ink-2); font-size: .9375rem; max-width: 40ch; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars div, .pillars div + div { padding: 16px 0 14px; border-left: 0; }
  .pillars div + div { border-top: 1px solid var(--rule); }
}

/* Three columns whose rows (head, system, feed, AI, setup) line up across the tiers. */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 20px; }
.tier { display: grid; grid-row: span 5; grid-template-rows: subgrid; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--ink); }
.tier-mid { border-top-color: var(--orange); }
.tier-pro { background: var(--ink); color: #f4f2ec; border-color: var(--ink); border-top-color: var(--orange); }
.tier-head, .tier-pillar, .tier-setup { padding: 18px 22px; }
.tier-pillar, .tier-setup { border-top: 1px solid var(--rule); }
.tier-pro .tier-pillar, .tier-pro .tier-setup { border-top-color: #3a3933; }
.tier-head h3 { font-stretch: 68%; font-size: 2.5rem; line-height: 1; }
.tier-head p { color: var(--ink-2); margin-top: 6px; }
.tier-pro .tier-head p, .tier-pro .ticks li { color: #d9d5ca; }
.tier-name { color: var(--orange-text); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.tier-pro .tier-name { color: var(--orange); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 4px; }
.price .num { font-size: 2.75rem; line-height: 1; }
.price-add .num { font-size: 2rem; }
.price-add .num::before { content: "+ "; }
.price span { color: var(--ink-3); font-size: .875rem; }
.tier-pro .price span { color: #b9b5a9; }
.tier-pro-price .num { color: var(--orange); font-size: 3.25rem; }
.ticks-sm { margin-top: 12px; gap: 6px; font-size: .9375rem; }
.ticks-sm li { padding-left: 24px; }
.ticks-sm li::before { width: 14px; height: 14px; top: .35em; background-size: 14px; }
.tier-setup { font-size: .875rem; color: var(--ink-3); align-self: end; }
.tier-pro .tier-setup { color: #b9b5a9; }
.tier-pro .tier-setup b, .tier-pro .ticks b { color: #fff; }
@media (max-width: 1000px) {
  .tiers { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 24px; }
  .tier { grid-row: auto; grid-template-rows: none; }
}

.calc {
  margin-top: clamp(36px, 5vw, 56px); padding: 26px 28px 28px; border: 1px solid var(--ink); background: var(--paper-2);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 18px 32px; align-items: start;
}
.calc h3 { grid-column: 1 / -1; font-stretch: 75%; font-size: 1.75rem; }
.calc fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.calc legend { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; padding: 0; }
.calc label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 32px; }
.calc input[type="radio"], .calc input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.calc input:disabled + * , .calc label:has(input:disabled) { color: var(--ink-3); }
.calc-nums { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.calc-nums label { flex-direction: column; align-items: flex-start; gap: 4px; font-family: var(--mono); font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.calc-nums input { width: 7.5rem; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; font: 600 1.125rem var(--sans); color: var(--ink); }
.calc-hint { grid-column: 1 / -1; min-height: 1.5em; color: var(--ink-2); font-weight: 600; }
.calc-invalid .calc-hint { color: var(--bad); }
.calc-out { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.calc-out div { padding: 14px 18px 0 0; }
.calc-out div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.calc-out dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.calc-out dd { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.calc-out div:first-child dd { color: var(--orange-text); }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 24px; }
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .calc-out div, .calc-out div + div { padding: 12px 0; border-left: 0; }
  .calc-out div + div { border-top: 1px solid var(--rule); }
}
.price-note { margin-top: 20px; font-size: .875rem; color: var(--ink-3); max-width: 80ch; }

.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; }

/* --- Sub pages ------------------------------------------------------------------------- */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(20px, 3vw, 32px); position: relative; }
.page-head h1 { hyphens: auto; overflow-wrap: break-word; font-stretch: 64%; font-weight: 850; font-size: clamp(2.75rem, 7vw, 6rem); line-height: .9; letter-spacing: -.02em; max-width: 15ch; text-wrap: balance; }
.page-head h1::after { content: ""; display: block; width: 1.1em; height: .09em; background: var(--signal); margin-top: .18em; }
.page-head .lede { max-width: 56ch; }
.page-head + .section { border-top: 0; }
.section-tight { padding-top: clamp(24px, 3vw, 40px); }
.section h2 + .lede, .feature-copy .lede { margin-top: 14px; }

/* A feature: text beside a fixed demo video. */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.feature-rev > :first-child { order: 2; }
.feature h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.feature .ticks { margin-top: 22px; }
@media (max-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-rev > :first-child { order: 0; }
}

.demo { margin: 0; }
.window { position: relative; background: var(--ink); border-radius: 10px; padding: 0 0 2px; box-shadow: 0 24px 48px -28px rgb(27 27 24 / .55); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #4a4943; }
.window-bar b { margin-left: 8px; font-weight: 400; color: #b9b5a9; font-size: .75rem; }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #f4f2ec; }
.window .demo-video { border-radius: 0 0 8px 8px; }
.demo-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
.demo-steps li { counter-increment: step; position: relative; padding-left: 28px; }
.demo-steps li::before { content: counter(step); position: absolute; left: 0; top: .15em; width: 19px; height: 19px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font: 600 .6875rem/19px var(--mono); text-align: center; }

/* Feature cards on the start page. */
.fcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.fcard a { display: grid; gap: 6px; text-decoration: none; }
.fcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border: 1px solid var(--rule); border-top: 4px solid var(--ink); background: var(--sheet); transition: border-color .15s; }
.fcard a:hover img { border-top-color: var(--orange); }
.fcard .mono { color: var(--orange-text); font-weight: 600; margin-top: 8px; }
.fcard b { font-stretch: 72%; font-size: 1.75rem; line-height: 1.05; }
.fcard a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.fcard span:last-child { color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 960px) { .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fcards { grid-template-columns: minmax(0, 1fr); } }

/* "Weiter" at the end of a feature page. */
.next { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); }
.next a { display: grid; gap: 2px; justify-items: end; text-align: right; padding: 22px 0 0; border-top: 3px solid var(--ink); text-decoration: none; }
.next .mono { color: var(--orange-text); font-weight: 600; }
.next b { font-stretch: 68%; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.next b::after { content: " →"; }
.next span:last-child { color: var(--ink-2); }
.next a:hover b { color: var(--orange-text); }

/* --- iPhone ----------------------------------------------------------------------------- */
/* Drawn to the proportions of a 6.1" iPhone: screen 393 x 852 pt, 9 pt bezel and frame,
   corner radius 55 pt (screen) and 64 pt (body), Dynamic Island 126 x 37 pt. 1 pt = 100cqw / 411. */
.iphone { margin: 0; width: 100%; max-width: 300px; container-type: inline-size; }
.iphone-body {
  --pt: calc(100cqw / 411);
  position: relative; aspect-ratio: 411 / 870; padding: calc(9 * var(--pt));
  border-radius: calc(64 * var(--pt));
  background: #1b1b1d;
  box-shadow: inset 0 0 0 calc(2.5 * var(--pt)) #8d8a86, inset 0 0 0 calc(4 * var(--pt)) #2a2a2c, 0 30px 50px -28px rgb(27 27 24 / .6);
}
.iphone-body::before, .iphone-body::after { content: ""; position: absolute; width: calc(3 * var(--pt)); background: #6e6b67; border-radius: calc(2 * var(--pt)); }
.iphone-body::before { left: calc(-2.5 * var(--pt)); top: calc(120 * var(--pt)); height: calc(32 * var(--pt));
  box-shadow: 0 calc(66 * var(--pt)) 0 0 #6e6b67, 0 calc(140 * var(--pt)) 0 0 #6e6b67; }
.iphone-body::before { height: calc(32 * var(--pt)); }
.iphone-body::after { right: calc(-2.5 * var(--pt)); top: calc(215 * var(--pt)); height: calc(100 * var(--pt)); }
.iphone-screen { position: relative; height: 100%; border-radius: calc(55 * var(--pt)); overflow: hidden; background: #fff; display: grid; grid-template-rows: calc(54 * var(--pt)) minmax(0, 1fr) calc(34 * var(--pt)); }
.iphone-screen > img, .iphone-screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; aspect-ratio: auto; background: #fff; }
.iphone-status { position: relative; display: flex; align-items: center; justify-content: space-between; padding: calc(6 * var(--pt)) calc(30 * var(--pt)) 0 calc(48 * var(--pt)); color: #000; }
.iphone-time { font: 600 calc(17 * var(--pt)) / 1 -apple-system, "SF Pro Text", var(--sans); letter-spacing: -.01em; }
.iphone-island { position: absolute; left: 50%; top: calc(11 * var(--pt)); width: calc(126 * var(--pt)); height: calc(37 * var(--pt)); transform: translateX(-50%); background: #000; border-radius: calc(20 * var(--pt)); }
.iphone-icons { display: flex; align-items: center; gap: calc(6 * var(--pt)); }
.iphone-icons svg { height: calc(12 * var(--pt)); width: auto; fill: currentColor; }
.iphone-home { position: relative; }
.iphone-home::after { content: ""; position: absolute; left: 50%; bottom: calc(8 * var(--pt)); width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); transform: translateX(-50%); border-radius: 99px; background: #000; }
.iphone figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-3); text-align: center; }

.mobile-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.phones-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); align-items: end; }
.phones-row .iphone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 960px) {
  .mobile-sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .phones-row { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; }
  .phones-row .iphone { max-width: 270px; }
  .phones-row .iphone:nth-child(2) { transform: none; order: -1; }
  .phones-row .iphone:nth-child(3) { display: none; }   /* two phones are enough on a phone */
}

/* --- Legal pages ------------------------------------------------------------------------ */
.legal { max-width: calc(72ch + 2 * var(--gutter)); margin-left: 0; padding-top: clamp(16px, 2vw, 24px); }
@media (min-width: 1100px) { .legal { margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); } }
.legal h2 { font-stretch: 80%; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; margin: 34px 0 10px; max-width: none; letter-spacing: 0; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.6; overflow-wrap: break-word; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal b { color: var(--ink); }
.legal a { color: var(--orange-text); text-underline-offset: 3px; }
.legal-stand { margin-top: 40px !important; padding-top: 14px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: .8125rem; }
.foot nav { flex-wrap: wrap; row-gap: 8px; }
.price-note a { color: var(--orange-text); }
