/* "Try it right here": a small pretend window where a visitor takes a screenshot the way Prap does it on a PC.
   Hold until Prap fills up, let go, move over what you want, click, Save. Uses the site's --s-* colours. */
.try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 26px; border-top: 1px solid var(--s-line); }
@media (min-width: 820px) { .try { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4vw, 56px); } }
.try h2 { margin: 0; font-size: clamp(25px, 2.9vw, 34px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.try .sub { margin: 8px 0 0; color: var(--s-soft); font-size: 17px; line-height: 1.5; max-width: 42ch; }
.try ol { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.try li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--s-muted); font-size: 16px; line-height: 1.45; transition: color .2s; }
.try li::before { content: counter(s); font: 500 12px var(--s-mono); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--s-line); display: inline-flex; align-items: center; justify-content: center; flex: none; transform: translateY(-1px); background: var(--s-paper); }
.try li.on { color: var(--s-ink); }
.try li.on::before { background: var(--s-ink); color: var(--s-on-ink); border-color: var(--s-ink); }
.try li.done { color: var(--s-soft); }
.try li.done::before { content: "\2713"; }
.try .note { margin: 18px 0 0; color: var(--s-muted); font-size: 13.5px; line-height: 1.5; max-width: 46ch; }

.try-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--s-line); background: #f5f5f2; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; cursor: default; }
.try-screen:focus-visible { outline: 2px solid var(--s-dot); outline-offset: 3px; }
.try-screen { container-type: inline-size; }
.try-screen .bar { position: absolute; left: 0; right: 0; top: 0; height: 4.2cqw; background: #222220; display: flex; align-items: center; gap: 1cqw; padding: 0 1.6cqw; }
.try-screen .bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #5a5a56; }
.try-screen .doc { position: absolute; left: 4cqw; right: 4cqw; top: 7.4cqw; bottom: 3.2cqw; background: #fff; border-radius: 1.2cqw; padding: 3.2cqw 3.6cqw; display: flex; flex-direction: column; justify-content: space-between; color: #111; font-family: var(--s-sans); overflow: hidden; }
.try-screen .doc span, .try-screen .doc b { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.try-screen .tp-hd { display: flex; justify-content: space-between; align-items: baseline; }
.try-screen .tp-t { font-size: 2.9cqw; font-weight: 600; letter-spacing: -.02em; }
.try-screen .tp-mut { font-size: 1.75cqw; color: #6f6f69; }
.try-screen .tp-err { background: #fdecec; color: #b3261e; border: 1px solid #f3c2c4; border-radius: .8cqw; padding: 1.1cqw 1.6cqw; font-size: 1.8cqw; font-weight: 500; white-space: nowrap; overflow: hidden; }
.try-screen .tp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.try-screen .tp-card { background: #fff; border: 1px solid #e4e3de; border-radius: .9cqw; padding: 1.3cqw 1.6cqw; display: flex; flex-direction: column; gap: .35cqw; min-width: 0; }
.try-screen .tp-lab { font-size: 1.5cqw; color: #6f6f69; text-transform: uppercase; letter-spacing: .04em; }
.try-screen .tp-val { font-size: 2cqw; font-weight: 600; }
.try-screen .tp-tbl { display: flex; flex-direction: column; border-top: 1px solid #e4e3de; }
.try-screen .tp-tr { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr .9fr; gap: 1cqw; align-items: center; padding: .85cqw 0; border-bottom: 1px solid #efeee9; font-size: 1.75cqw; }
.try-screen .tp-tr.tp-th { font-size: 1.5cqw; color: #6f6f69; text-transform: uppercase; letter-spacing: .04em; }
.try-screen .tp-num { text-align: right; font-variant-numeric: tabular-nums; }
.try-screen .tp-chip { display: inline-block; font-size: 1.45cqw; font-weight: 600; padding: .25cqw .9cqw; border-radius: 99px; background: #e5f4e4; color: #1f6b2a; }
.try-screen .tp-chip.tp-red { background: #fdecec; color: #b3261e; }
.try-screen .tp-ft { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.try-screen .tp-btnx { font-size: 1.75cqw; font-weight: 600; background: #111; color: #fff; border-radius: 99px; padding: .9cqw 2cqw; }
.try-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 14px var(--s-sans); color: #111; background: #fff; border: 1px solid #e4e3de; border-radius: 999px; padding: 8px 16px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.08); width: max-content; max-width: calc(100% - 32px); text-align: center; line-height: 1.35; }
.try-ico { position: absolute; width: 46px; height: 46px; margin: -58px 0 0 -23px; pointer-events: none; }
.try-ico span { position: absolute; inset: 0; border-radius: 12px; background: #fff; padding: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.try-ico img { width: 100%; height: 100%; display: block; }
.try-ico .grey { filter: grayscale(1); opacity: .5; }
.try-ico .colour { clip-path: inset(100% 0 0 0); }
.try-ico.pop { animation: try-pop .35s ease-out; }
@keyframes try-pop { 50% { transform: scale(1.18); } }
.try-sel { position: absolute; border: 1.5px solid #2f6fed; pointer-events: none; box-shadow: 0 0 0 9999px rgba(17, 17, 16, .32); }
.try-size { position: absolute; font: 500 11px var(--s-mono); background: #111; color: #fff; border-radius: 4px; padding: 2px 5px; pointer-events: none; transform: translateY(-120%); }

.try-result { margin-top: 14px; border: 1px solid var(--s-line); border-radius: 14px; padding: 12px; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; background: var(--s-paper); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.try-thumb { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 7px; cursor: zoom-in; line-height: 0; }
.try-thumb:focus-visible { outline: 2px solid var(--s-dot); outline-offset: 3px; }
.try-thumb canvas { width: 120px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--s-line); background: #fff; display: block; transition: transform .2s ease; }
.try-thumb:hover canvas { transform: scale(1.04); }
.try-zoomi { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--s-ink); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.try-zoomi::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border: 1.6px solid var(--s-on-ink); border-radius: 50%; }
.try-zoomi::after { content: ""; position: absolute; left: 13px; top: 13px; width: 5px; height: 1.6px; background: var(--s-on-ink); transform: rotate(45deg); transform-origin: left center; }
.try-tip { color: var(--s-muted); font-size: 12.5px; }
.try-zoom { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(17, 17, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; animation: try-fade .2s ease-out; }
.try-zoom figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; cursor: default; }
.try-zoom img { display: block; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; margin: 0 auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform-origin: var(--from-x, 50%) var(--from-y, 50%); animation: try-grow .32s cubic-bezier(.2, .8, .2, 1); }
.try-zoom figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 14px; }
.try-zoom figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-zoom .btn.primary { background: #fff; color: #111; cursor: pointer; }
@keyframes try-fade { from { opacity: 0; } }
@keyframes try-grow { from { transform: scale(.25); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .try-zoom, .try-zoom img { animation: none; } .try-thumb:hover canvas { transform: none; } }
.try-result .meta { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.try-result .meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try-result .meta small { color: var(--s-muted); font-size: 13px; }
.try-result .acts { display: flex; gap: 8px; }
.try-again { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .try-ico.pop { animation: none; } }
.try .btn.quiet { background: transparent; color: var(--s-ink); border-color: var(--s-line); cursor: pointer; }
.try .btn.quiet:hover { border-color: var(--s-muted); }
.try .btn.primary { cursor: pointer; }
/* The hidden attribute must win over the display rules above (the large view and the result card start hidden). */
.try-zoom[hidden], #try-result[hidden], .try-hint[hidden] { display: none !important; }
