/* apppage.css — a big app's own page (site/landing/page.js), e.g. /pdf-editor/. The sheet of paper in
   the hero is always paper-white, in both themes: it is a document, not part of the interface. */
.ap { --pp-bg: #FFFFFF; --pp-ink: #1C2428; --pp-bar: #DFE4E2; --pp-pen: #2450C8; --pp-fix: #C0362C; --ap-pad: max(24px, calc((100% - 1120px) / 2)); }
.ap > section, .ap > .ap-two { padding-inline: var(--ap-pad); }
.ap h2 { font: 600 clamp(28px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 28px; text-wrap: balance; }
.ap ul, .ap ol { list-style: none; margin: 0; padding: 0; }

/* the page stands alone: the category bar (and its slim copy) belong to browsing the tools */
body.on-app #sections, body.on-app #mini { display: none !important; }

/* ── hero ── */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-block: 56px 88px; }
.ap-hero h1 { font: 600 clamp(42px, 6.2vw, 80px)/.98 var(--display); letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.ap-lede { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 0 0 28px; color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.ap-go { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-go .btn { font-size: 17px; padding: 13px 22px; }
.ap-hint { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.ap.ap-over .ap-paper { outline: 3px dashed var(--yellow); outline-offset: 6px; }

/* the sheet: white paper on a yellow slab, with a second page behind it */
.ap-sheet { position: relative; justify-self: center; width: min(100%, 420px); padding: 28px 22px 34px 30px; }
.ap-sheet::before { content: ""; position: absolute; inset: 0 0 0 8px; background: var(--yellow); border-radius: 28px; transform: rotate(-4deg); }
.ap-sheet::after { content: ""; position: absolute; inset: 40px 30px 30px 18px; background: var(--pp-bg); border-radius: 4px; transform: rotate(-5.5deg); opacity: .7; }
.ap-paper { position: relative; z-index: 1; background: var(--pp-bg); color: var(--pp-ink); border-radius: 4px; }
.ap-sheet .ap-paper { aspect-ratio: 1 / 1.32; padding: 30px 28px; transform: rotate(2deg); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 0 rgb(28 36 40 / .08), 0 34px 50px -30px rgb(28 36 40 / .55); font-size: 13px; }
.ap-bar { display: block; height: 8px; border-radius: 4px; background: var(--pp-bar); }
.ap-para { display: grid; gap: 9px; }
.ap-row { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.ap-head { justify-content: space-between; }
.ap-head .ap-bar { flex: 0 1 34%; }
.ap-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--pp-ink); flex: none; }
.ap-date { margin-left: auto; white-space: nowrap; }
.ap-fix s { text-decoration: line-through 2px var(--pp-fix); color: color-mix(in srgb, var(--pp-ink) 55%, var(--pp-bg)); }
.ap-fix b { margin-left: 4px; font-weight: 650; color: var(--pp-pen); }
.ap-hl { height: 14px; border-radius: 2px; background: var(--yellow); }
.ap-iban span:first-child { font-weight: 650; font-size: 11px; letter-spacing: .04em; }
.ap-black { position: relative; white-space: nowrap; }
.ap-black::after { content: ""; position: absolute; inset: -2px -4px; background: #14181A; border-radius: 1px; transform-origin: left; }
.ap-check .ap-bar { flex: 0 1 52%; }
.ap-box { width: 16px; height: 16px; border: 1.5px solid var(--pp-ink); border-radius: 3px; flex: none; display: grid; }
.ap-tick path { fill: none; stroke: var(--pp-pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ap-signline { margin-top: auto; border-bottom: 1.5px solid color-mix(in srgb, var(--pp-ink) 45%, var(--pp-bg)); }
.ap-sig { display: block; width: 78%; }
.ap-sig path { fill: none; stroke: var(--pp-pen); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }

/* the jobs happen once, in order, when the page opens (the base styles above are the finished sheet) */
@media (prefers-reduced-motion: no-preference) {
  .ap-sheet .ap-fix s { animation: ap-strike .35s .5s both; }
  .ap-sheet .ap-fix b { animation: ap-in .35s .85s both; }
  .ap-sheet .ap-hl { animation: ap-mark .6s 1.4s both cubic-bezier(.3, .7, .2, 1); transform-origin: left; }
  .ap-sheet .ap-black::after { animation: ap-wipe .45s 2.2s both cubic-bezier(.3, .7, .2, 1); }
  .ap-sheet .ap-tick path { animation: ap-draw .3s 2.9s both; }
  .ap-sheet .ap-sig path { animation: ap-draw 1.3s 3.4s both cubic-bezier(.4, .1, .3, 1); }
}
@keyframes ap-strike { from { text-decoration-color: transparent; color: var(--pp-ink); } }
@keyframes ap-in { from { opacity: 0; } }
@keyframes ap-mark { from { background: var(--pp-bar); height: 8px; } }
@keyframes ap-wipe { from { transform: scaleX(0); } }
@keyframes ap-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ── the six jobs ── */
.ap-cases { padding-block: 0 88px; }
.ap-cases > ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
/* the links of one row sit on one line, however long the text above them is */
.ap-cases li { display: flex; flex-direction: column; }
.ap-cases li .ap-link { margin-top: auto; align-self: flex-start; }
.ap-art { height: 150px; border-radius: 16px; background: var(--soft); overflow: hidden; padding: 26px 26px 0; margin-bottom: 18px; }
.ap-art .ap-paper { height: 100%; border-radius: 4px 4px 0 0; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; box-shadow: 0 -1px 0 rgb(28 36 40 / .06), 0 12px 24px -12px rgb(28 36 40 / .35); }
.ap-art .ap-signline { margin-top: 6px; }
.ap-art .ap-sig { width: 66%; }
.ap-art .ap-date { margin-left: 0; font-size: 15px; }
.ap-field { border: 1.5px solid color-mix(in srgb, var(--pp-ink) 40%, var(--pp-bg)); border-radius: 4px; padding: 6px 9px; color: var(--pp-pen); font-weight: 600; }
.ap-pages { display: flex; gap: 12px; justify-content: center; padding-top: 4px; }
.ap-pg { width: 46px; height: 60px; border: 1.5px solid color-mix(in srgb, var(--pp-ink) 35%, var(--pp-bg)); border-radius: 3px; display: grid; place-items: center; font-weight: 650; color: color-mix(in srgb, var(--pp-ink) 60%, var(--pp-bg)); }
.ap-moved { transform: translateY(-9px) rotate(5deg); border-color: var(--pp-ink); color: var(--pp-ink); background: var(--yellow); }
.ap-size { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 14px; font-variant-numeric: tabular-nums; font-weight: 650; }
.ap-big { font-size: 22px; color: color-mix(in srgb, var(--pp-ink) 45%, var(--pp-bg)); text-decoration: line-through 2px var(--pp-fix); }
.ap-small { font-size: 22px; background: var(--yellow); padding: 2px 8px; border-radius: 4px; }
.ap-arrow { width: 22px; height: 0; border-top: 2px solid var(--pp-ink); position: relative; }
.ap-arrow::after { content: ""; position: absolute; right: 0; top: -5px; width: 7px; height: 7px; border: solid var(--pp-ink); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ap-cases h3 { font: 650 22px/1.15 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.ap-cases p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ap-link { font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; padding: 2px 0; cursor: pointer;
  text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }
.ap-link:hover { text-decoration-thickness: 6px; }
.ap-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

/* ── what Save does: the one dark band ── */
.ap > .ap-save { background: #1C2428; color: #EDF0EE; padding-block: 76px; }
.ap-save h2 { font: 600 16px/1.3 var(--body, inherit); letter-spacing: 0; color: #9AA7AD; margin-bottom: 30px; }
.ap-save ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.ap-save strong { display: block; font: 600 clamp(28px, 3.3vw, 44px)/1.04 var(--display); letter-spacing: -.025em; margin-bottom: 12px; }
.ap-save li:first-child strong { color: var(--yellow); }
.ap-save span { color: #C9D1CF; font-size: 16px; line-height: 1.5; }

/* ── proof and limits, side by side ── */
.ap-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding-block: 88px 72px; }
.ap-two li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; max-width: 34em; }
.ap-limits li { color: var(--muted); }

/* ── questions, other tools ── */
.ap-faq { padding-block: 0 72px; }
.ap-faq details { border-top: 1px solid var(--line); max-width: 760px; }
.ap-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.ap-faq summary { font: 650 20px/1.3 var(--display); padding: 16px 0; cursor: pointer; }
.ap-faq details p { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.5; max-width: 38em; }
.ap-near { padding-block: 0 88px; }
.ap-near h2 { font-size: 22px; margin-bottom: 14px; }
.ap-near ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }

@media (max-width: 860px) {
  .ap-hero { grid-template-columns: 1fr; gap: 44px; padding-block: 36px 64px; }
  .ap-sheet { width: min(100%, 300px); }
  .ap-cases > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-save ul { grid-template-columns: 1fr; gap: 28px; }
  .ap-two { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 56px; }
}
@media (max-width: 560px) {
  .ap-cases > ul { grid-template-columns: 1fr; gap: 40px; }
  .ap-go .btn { flex: 1 1 100%; }
}

/* ── more drawings (the workflow steps use them) ── */
.ap-tag { font-size: 20px; color: color-mix(in srgb, var(--pp-ink) 55%, var(--pp-bg)); border: 1.5px solid currentColor; border-radius: 4px; padding: 1px 7px; }
.ap-names { display: grid; grid-template-columns: auto auto; gap: 7px 12px; justify-content: start; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ap-names s { color: color-mix(in srgb, var(--pp-ink) 50%, var(--pp-bg)); text-decoration: line-through 1.5px var(--pp-fix); }
.ap-names b { color: var(--pp-pen); font-weight: 650; }
.ap-pages { align-items: center; }
.ap-pg-s { width: 30px; height: 40px; font-size: 12px; margin-right: -18px; background: var(--pp-bg); }
.ap-pg-s:nth-child(3) { margin-right: 4px; }
.ap-pg-one { transform: none; font-size: 12px; }
.ap-send { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 6px; }
.ap-dev { width: 34px; height: 54px; border: 2px solid var(--pp-ink); border-radius: 7px; background: linear-gradient(var(--pp-pen), var(--pp-pen)) center / 16px 12px no-repeat; }
.ap-dev-b { background-image: linear-gradient(var(--yellow), var(--yellow)); }
.ap-hop { flex: 0 0 56px; border-top: 2.5px dotted var(--pp-pen); }
.ap-draw { display: block; width: 100%; height: auto; }
.ap-trk { fill: none; stroke: var(--pp-pen); stroke-width: 3; stroke-linecap: round; }
.ap-trk.b { stroke: #A87A00; }
.ap-trk.drop { stroke: color-mix(in srgb, var(--pp-ink) 40%, var(--pp-bg)); stroke-width: 2; stroke-dasharray: 4 5; }
.ap-st { fill: #1B7347; stroke: var(--pp-bg); stroke-width: 2; } .ap-en { fill: var(--pp-fix); stroke: var(--pp-bg); stroke-width: 2; }
.ap-stats { display: flex; align-items: flex-end; gap: 7px; height: 64px; padding: 0 4px; }
.ap-stats i { flex: 1; background: var(--pp-pen); border-radius: 3px 3px 0 0; } .ap-stats i:nth-child(3) { background: var(--yellow); }
.ap-trim { display: flex; height: 26px; margin-top: 14px; border-radius: 5px; overflow: hidden; }
.ap-trim i { flex: 1; background: var(--pp-bar); } .ap-trim b { flex: 1.6; background: var(--yellow); border-inline: 3px solid var(--pp-ink); }

.ap-cut { width: 84px; height: 62px; margin: 2px auto 0; border-radius: 4px; display: grid; place-items: center;
  background: repeating-conic-gradient(var(--pp-bar) 0 25%, var(--pp-bg) 0 50%) 0 0 / 14px 14px; }
.ap-cut i { width: 34px; height: 44px; border-radius: 14px 14px 8px 8px; background: var(--pp-pen); }
.ap-resize { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 4px; }
.ap-resize i { width: 64px; height: 46px; border: 2px dashed color-mix(in srgb, var(--pp-ink) 45%, var(--pp-bg)); border-radius: 3px; }
.ap-resize b { width: 40px; height: 40px; background: var(--yellow); border: 2px solid var(--pp-ink); border-radius: 3px; }
.ap-list { display: grid; gap: 5px; font-size: 12.5px; }
.ap-list s { color: color-mix(in srgb, var(--pp-ink) 45%, var(--pp-bg)); text-decoration: line-through 1.5px var(--pp-fix); }

/* ── workflows: the cards (home page, index, "other workflows") ── */
.flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.flows > [role="listitem"] { display: grid; }
.wf-card small { margin-top: auto; }
.wf-card { display: flex; flex-direction: column; gap: 8px; padding: 15px 18px 14px; background: var(--panel); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-left: 6px solid var(--wf-color, var(--yellow)); border-radius: 6px 14px 14px 6px; transition: border-color .15s ease, transform .12s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wf-card:hover { border-color: var(--ink); border-left-color: var(--wf-color, var(--yellow)); } }
.wf-card:active { transform: scale(.985); }
.wf-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wf-card b { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.wf-trail { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.wf-trail span + span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 9px 1px 7px; border: solid var(--ink); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.wf-card small { font-size: 13px; color: var(--muted); }
.flows-all { margin: 12px 0 0; font-size: 15px; }
.flows-all a { color: var(--ink); font-weight: 650; text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }
.flow-hits { max-width: 1240px; margin: 0 auto 22px; padding: 0 24px; }
.flow-hits h3 { font: 700 18px/1.2 var(--display); margin: 0 0 10px; }
.group-flows .flows { max-width: 900px; }
/* on the home page the category bar is one of the ways to a single tool */
#sections-home .sections { max-width: none; padding: 18px 0 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ── a workflow's page ── */
.wf-route { justify-self: center; width: min(100%, 400px); position: relative; padding: 26px 20px 30px 28px; }
.wf-route::before { content: ""; position: absolute; inset: 0 0 0 8px; background: var(--yellow); border-radius: 28px; transform: rotate(-3deg); }
.wf-route ol { position: relative; background: var(--pp-bg); color: var(--pp-ink); border-radius: 4px; padding: 26px 26px 24px; transform: rotate(1.5deg);
  box-shadow: 0 1px 0 rgb(28 36 40 / .08), 0 34px 50px -30px rgb(28 36 40 / .55); display: grid; gap: 0; }
.wf-route li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding-bottom: 22px; position: relative; font: 650 18px/1.25 var(--display); }
.wf-route li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 2px dashed color-mix(in srgb, var(--pp-ink) 35%, var(--pp-bg)); }
.wf-route li i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--body, inherit); font-style: normal; background: var(--pp-ink); color: var(--pp-bg); }
.wf-route li span { padding-top: 3px; }
.wf-route .wf-end { padding-bottom: 0; }
.wf-route .wf-end i { background: var(--yellow); position: relative; }
.wf-route .wf-end i::after { content: ""; width: 11px; height: 6px; border: solid var(--pp-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
/* the steps are the app page's job cards, in order */
.wf-steps > ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.wf-steps > ol > li { display: flex; flex-direction: column; }
.wf-n { margin: 0 0 4px; font-size: 14px; font-weight: 650; color: var(--muted); }
.wf-more { padding-block: 0 88px; }
.wf-tags { padding-block: 0 56px; }
.wf-tags h2 { font-size: 22px; margin-bottom: 12px; }
.wf-tags ul { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-tags li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; color: var(--muted); background: var(--panel); }
.wf-more h2 { font-size: 24px; margin-bottom: 16px; }
.wf-index { padding-block: 56px 88px; }
.wf-index h1 { font: 600 clamp(40px, 5.4vw, 68px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 16px; }
.wf-index .flows { margin-top: 14px; max-width: 900px; }
/* the index by category: links to jump, then a heading in the category's colour over its recipes */
.wf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 900px; }
.wf-jump a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--line);
  box-shadow: inset 3px 0 0 var(--wf-color); color: var(--ink); font: 600 15px/1.2 var(--body); text-decoration: none; }
.wf-jump a small, .wf-group h2 small { color: var(--muted); font: 500 13px var(--body); font-variant-numeric: tabular-nums; }
.wf-group { margin-top: 44px; scroll-margin-top: 120px; text-align: left; }
.wf-group h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-left: 12px; border-left: 5px solid var(--wf-color); font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }

/* ── the strip in the tool window while a workflow runs (site/workflow-run.js) ── */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 8px 14px; background: var(--yellow); color: var(--yellow-ink); flex: none; }
.flow-at { display: flex; align-items: baseline; gap: 10px; }
.flow-at b { font-size: 13px; font-weight: 700; }
.flow-at span { font: 700 17px/1.2 var(--display); }
.flow-hint { margin: 0; font-size: 14px; flex: 1 1 200px; }
.flow-go { display: flex; gap: 6px; margin-left: auto; }
.flow .btn { padding: 7px 12px; font-size: 14px; }
.flow .btn.alt { background: rgb(28 36 40 / .1); color: var(--yellow-ink); }
.flow .btn.go { background: #1C2428; color: #EDF0EE; }

@media (max-width: 860px) {
  .wf-route { width: min(100%, 330px); }
  .wf-steps > ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wf-steps > ol { grid-template-columns: 1fr; gap: 40px; }
  .flows { grid-template-columns: 1fr; }
  #sections-home .sections { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  /* five columns on a phone: the longest one-word names ("Afbeeldingen") must fit one */
  .sections .sec { font-size: clamp(11px, 3.3vw, 14px); }
  .flow-hint { flex-basis: 100%; order: 3; }
  .flow-go { margin-left: 0; flex-wrap: wrap; }
}
