/* ASCII Art Library sales pages (/ascii-art-pack/ and /ascii-art-pack/thanks/).
 * Loaded after /styles.css, which supplies the site tokens, Inter + Roboto
 * Mono, the header and the footer.
 *
 * The page is drawn like a text-mode window, with three devices used sparingly:
 *   .pk-frame / .pk-ftop  a ruled box whose title sits in the top rule: the
 *                         file or folder on show, with its file count on the right
 *   .pk-key               keycaps for the price picker and the buy buttons
 *   .pk-ramp              one line of the Classic Gradient character ramp
 *                         (@%#*+=-:.) as texture, twice on the page
 * The art carries the rest. Numbers that count things are set in Roboto Mono.
 *
 * Colour: the site tokens. Indigo marks what is selected. Green is for buy
 * actions only, from styles.css :root (--pk-buy, --pk-buy-hover, --pk-buy-ink;
 * the var() fallbacks cover a cached styles.css). Dark ink on the green: white
 * on #10b981 is 2.5:1, #0b0b0e on it is 7.6:1. Links use the site's visited
 * indigo #8b8cf8 (--accent is 4.2:1 on --bg-primary). */

.pk, .pk-bar {
  --pk-rule: #34343c;          /* frame and divider lines */
  --pk-cell: #19191c;          /* behind small art */
  --pk-keycap: #26262c;
  --pk-keyedge: #3d3d46;
  --pk-link: #8b8cf8;
  --pk-mono: 'Roboto Mono', 'Roboto Mono Fallback', 'Courier New', monospace;
}

/* ---- column, type ---- */
.pk { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.pk [hidden] { display: none !important; }
.pk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-todo { background: #4a3a10; color: #ffe6a6; border: 1px dashed var(--warning); border-radius: 4px; padding: 0 .35em; font: 600 .8em/1.6 monospace; }
.pk a:not(.pk-btn), .pk a:not(.pk-btn):visited { color: var(--pk-link); }
.pk a:not(.pk-btn):hover { color: var(--pk-link); }
.pk :focus-visible, .pk-bar :focus-visible, .pk .pk-key:has(input:focus-visible) { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.pk code { font-family: var(--pk-mono); font-size: .88em; background: rgba(255, 255, 255, .08); padding: .08rem .3rem; border-radius: 3px; }
.pk pre { font-family: var(--pk-mono); }
.pk li { color: var(--text-secondary); }

.pk-crumb { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }
.pk-h1 { display: block; margin: 10px 0 0; max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; color: var(--text-primary); text-wrap: balance; }
.pk-intro { margin: 18px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.pk-lede { max-width: 70ch; color: var(--text-secondary); font-size: 16px; margin: 0 0 1rem; }

/* Section heading ruled out to the right edge, like a text-mode divider. */
.pk-sec { margin-top: 88px; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.pk .pk-h2 { display: flex; align-items: center; gap: 18px; width: 100%; margin: 0 0 14px; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.01em; color: var(--text-primary); }
.pk .pk-h2::after { content: ""; flex: 1 1 40px; align-self: flex-end; margin-bottom: .6em; border-top: 1px solid var(--pk-rule); }
.pk h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.35; color: var(--text-primary); }

/* ---- frames ---- */
.pk-frame { position: relative; margin-top: 36px; padding: 30px 26px 24px; border: 1px solid var(--pk-rule); border-radius: 3px; background: none; box-shadow: none; }
.pk-frame > p { max-width: 70ch; color: var(--text-secondary); font-size: 15px; margin: 0; }
.pk-ftop { position: absolute; top: 0; left: 14px; right: 14px; transform: translateY(-50%); display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.pk-ftop span { min-width: 0; padding: 0 8px; background: var(--bg-primary); font: 400 12.5px/1.5 var(--pk-mono); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-ftop .r { flex-shrink: 0; }
.pk-ftop b { color: var(--text-primary); font-weight: 500; }
.pk-fine { margin-top: 14px !important; font-size: 13px !important; }

/* ---- density ramp ---- */
.pk-ramp { margin: 0; overflow: hidden; white-space: pre; font: 400 13px/1.15 var(--pk-mono); color: #5a5b78; user-select: none; }

/* ---- hero window: art pane | buy pane, status line under both ---- */
.pk-window { position: relative; margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 344px; border: 1px solid var(--pk-rule); border-radius: 3px; }
.pk-pane-art { position: relative; min-width: 0; margin: 0; padding: 30px 24px 18px; border-right: 1px solid var(--pk-rule); display: flex; flex-direction: column; }
.pk-stage { container-type: size; flex: 1 1 auto; height: clamp(260px, 30vw, 390px); display: flex; align-items: center; justify-content: center; }
.pk-art { --cols: 60; --rows: 30; margin: 0; color: var(--text-primary); white-space: pre; overflow: hidden; line-height: 1.02; font-size: 9px; font-size: min(17px, calc(100cqw / (var(--cols) * 0.62)), calc(100cqh / (var(--rows) * 1.03))); }
.pk-menu { display: grid; gap: 6px; margin: 18px -24px 0; padding: 14px 24px 0; border-top: 1px solid var(--pk-rule); }
.pk-menu-row { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.pk-menu-k { width: 7.5rem; flex: none; font: 500 13.5px/1.2 Inter, 'Inter Fallback', sans-serif; color: var(--text-secondary); }
.pk-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.pk .pk-tab { width: auto; margin: 0; min-height: 36px; padding: 6px 11px; background: transparent; border: 1px solid transparent; border-radius: 3px; color: var(--text-secondary); font: 500 14px/1.2 Inter, 'Inter Fallback', sans-serif; transition: none; }
.pk .pk-tab:hover { background: transparent; border-color: var(--pk-rule); color: var(--text-primary); transform: none; }
.pk .pk-tab[aria-pressed="true"], .pk .pk-tab[aria-pressed="true"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.pk-num { font-family: var(--pk-mono); font-variant-numeric: tabular-nums; }
.pk-ftop .pk-badge { color: #8b8cf8; }
.pk-ftop .pk-badge.is-free { color: var(--text-secondary); }

.pk-pane-buy { display: flex; flex-direction: column; gap: 18px; padding: 30px 24px 24px; background: var(--bg-secondary); border-top-right-radius: 2px; }
.pk-amounts { border: 0; padding: 0; margin: 0; min-width: 0; }
.pk-amounts legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.pk-amounts legend span { display: block; font-weight: 400; font-size: 13.5px; color: var(--text-secondary); }
.pk-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* Keycaps: a 3px lower edge, pressed down when chosen. */
.pk-key { position: relative; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--pk-keycap); border: 1px solid var(--pk-keyedge); border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .5); color: var(--text-primary); cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.pk-key input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pk-key > span { font: 600 18px/1.1 var(--pk-mono); font-variant-numeric: tabular-nums; }
.pk-amount-custom > span { font: 600 14px/1.1 Inter, 'Inter Fallback', sans-serif; }
.pk-key em { font: 500 10.5px/1.1 Inter, 'Inter Fallback', sans-serif; font-style: normal; color: #c3c6cf; }
.pk-key:hover { border-color: #5a5a66; }
.pk .pk-key:has(input:checked), .pk .pk-key:has(input:checked):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35); transform: translateY(2px); }
.pk-key:has(input:checked) em { color: #e0e7ff; }
.pk-custom label { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--text-secondary); }
.pk-custom-field { display: flex; align-items: center; gap: 8px; font: 500 18px var(--pk-mono); color: var(--text-secondary); }
.pk-input { width: 8rem; min-height: 46px; padding: 8px 12px; background: var(--bg-primary); border: 1px solid var(--pk-keyedge); border-radius: 5px; color: var(--text-primary); font: 500 18px var(--pk-mono); }
.pk-input:focus { border-color: var(--accent); }
.pk-custom-err { margin: 8px 0 0; color: var(--danger); font-size: 13.5px; }
.pk-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.pk-note strong { color: var(--text-primary); font-weight: 600; }

/* The buy key. Same keycap edge, in the buy green. */
.pk button.pk-cta, .pk-btn.pk-cta, .pk-btn.pk-cta:visited { background-color: var(--pk-buy, var(--success-green)); color: var(--pk-buy-ink, #0b0b0e); }
.pk button.pk-cta:hover, .pk-btn.pk-cta:hover { background-color: var(--pk-buy-hover, #34d399); color: var(--pk-buy-ink, #0b0b0e); }
.pk button.pk-cta { width: 100%; margin: 0; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28); font: 700 17px/1.2 Inter, 'Inter Fallback', sans-serif; transition: background-color .15s ease, transform .08s ease; }
.pk button.pk-cta:hover { transform: none; }
.pk button.pk-cta:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28); }

.pk-status { grid-column: 1 / -1; display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pk-rule); }
.pk-status li { flex: 1 1 auto; margin: 0; padding: 12px 16px; border-left: 1px solid var(--pk-rule); font-size: 13.5px; line-height: 1.35; color: var(--text-secondary); }
.pk-status li:first-child { border-left: 0; }
.pk-status strong { font-weight: 600; color: var(--text-primary); }
.pk-status strong.pk-num { font: 600 14px/1.35 var(--pk-mono); }

/* ---- what's in the download ---- */
.pk-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pk-spec { margin: 0; min-width: 0; }
.pk-cell { container-type: inline-size; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--pk-cell); border-radius: 2px; overflow: hidden; }
.pk-cell pre { margin: 0; white-space: pre; line-height: 1.02; color: var(--text-primary); font-size: min(11px, calc(86cqw / (var(--cols) * 0.62))); }
.pk-spec figcaption, .pk-png figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.pk-spec .n, .pk-png .n { font-size: 14px; color: var(--text-primary); }
.pk-chars { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; font-size: 12px !important; color: var(--text-secondary); }

.pk-sizes .pk-size-tabs { margin-top: 16px; }
.pk-sizes .pk-tab { border-color: var(--pk-rule); }
/* One font size for all four sizes, fitted so 120 columns fit, under a ruler
   marked at 40, 60, 80 and 120: the art is measured, not rescaled. */
.pk-sizes .pk-stage { container-type: inline-size; display: block; height: auto; margin-top: 14px; padding: 18px 18px 22px; background: var(--pk-cell); border-radius: 2px; }
.pk-scale { position: relative; width: max-content; margin: 0 auto; font: 400 min(11px, calc(100cqw / (120 * 0.605))) / 1.03 var(--pk-mono); }
.pk-ruler { width: 120ch; height: 34px; margin-bottom: 10px; border-bottom: 1px solid #3b3b46; background: repeating-linear-gradient(to right, transparent 0 calc(10ch - 1px), #3b3b46 calc(10ch - 1px) 10ch) left bottom / 100% 6px no-repeat; }
.pk-mark { position: absolute; top: 0; bottom: 0; width: 0; border-right: 1px solid #34343e; }
.pk-mark b { position: absolute; top: 4px; right: 5px; font: 500 11.5px/1 var(--pk-mono); color: var(--text-secondary); }
.pk-stage[data-cur="small"] [data-k="small"], .pk-stage[data-cur="medium"] [data-k="medium"],
.pk-stage[data-cur="large"] [data-k="large"], .pk-stage[data-cur="xl"] [data-k="xl"] { border-right: 1px dashed #7c7ff5; }
.pk-stage[data-cur="small"] [data-k="small"] b, .pk-stage[data-cur="medium"] [data-k="medium"] b,
.pk-stage[data-cur="large"] [data-k="large"] b, .pk-stage[data-cur="xl"] [data-k="xl"] b { color: #c7c9ff; }
.pk-sizes .pk-art { font: inherit; min-height: calc(var(--maxr) * 1.03em); }

.pk-pngs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pk-png { margin: 0; min-width: 0; }
.pk-swatch { aspect-ratio: 1 / 1; border: 1px solid var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; padding: 8%; overflow: hidden; }
.pk-png img { max-width: 100%; max-height: 100%; height: auto; display: block; }
.pk-png code { background: none; padding: 0; font-size: 11.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.pk-checker-light { background: #fff conic-gradient(#e5e7eb 25%, #fff 0 50%, #e5e7eb 0 75%, #fff 0) 0 0 / 14px 14px; }
.pk-checker-dark { background: #1f2937 conic-gradient(#111827 25%, #1f2937 0 50%, #111827 0 75%, #1f2937 0) 0 0 / 14px 14px; }
.pk-svgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pk-svg { border-radius: 2px; padding: 18px; display: flex; align-items: center; justify-content: center; }
.pk-svg svg { width: 100%; max-width: 250px; height: auto; display: block; }
.pk-svg.a { background: var(--pk-cell); color: var(--accent); }
.pk-svg.b { background: #f6f3ea; color: #7a3e12; }

.pk-tree { margin: 18px 0 0; padding: 0; overflow-x: auto; white-space: pre; font-size: 12.5px; line-height: 1.7; color: var(--text-primary); background: none; }
.pk-tree i { font-style: normal; color: var(--text-secondary); }
.pk-tree b { font-weight: 500; color: #c7c9ff; }

.pk-offline { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; }
.pk-offline-text p { color: var(--text-secondary); font-size: 15px; margin: 0; }
/* A drawing of the offline browser's grid view. */
.pk-mock { padding: 16px 14px 14px; background: var(--bg-primary); border: 1px solid var(--pk-rule); border-radius: 6px; box-shadow: 0 0 0 6px var(--pk-cell); }
.pk-mock-head { text-align: center; font-weight: 700; font-size: 17px; color: #8b8cf8; }
.pk-mock-tools { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 6px 8px; margin: 12px 0; font-size: 11px; color: var(--text-secondary); }
.pk-mock-tools .f { padding: 4px 7px; border: 1px solid var(--pk-rule); border-radius: 4px; background: var(--bg-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-mock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-mock-card { min-width: 0; padding: 6px 6px 8px; background: var(--bg-secondary); border: 1px solid var(--pk-rule); border-radius: 4px; display: flex; flex-direction: column; gap: 2px; }
.pk-mock-art { container-type: inline-size; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #0f0f11; border-radius: 3px; margin-bottom: 4px; }
.pk-mock-art pre { margin: 0; line-height: 1.02; color: #c9ccd3; font-size: min(8.5px, calc(88cqw / (var(--cols) * 0.62))); }
.pk-mock-card .n { font-size: 11.5px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-mock-card .c { font-size: 10.5px; color: var(--text-secondary); }

/* ---- categories: the folders, with a bar drawn in characters ---- */
.pk-cats { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 56px; }
.pk-cats li { break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 11rem); align-items: center; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid #222227; font-size: 15px; }
.pk-cats .n { color: var(--text-primary); }
.pk-cats .c { text-align: right; font: 500 14px var(--pk-mono); font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.pk-cats .b { overflow: hidden; white-space: nowrap; }
.pk-cats .b::before { content: attr(data-bar); font: 500 12px/1 var(--pk-mono); color: #5d60d6; }

/* ---- compare ---- */
.pk-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0 18px; }
.pk-compare th, .pk-compare td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid #26262b; }
.pk-compare thead th { font-weight: 600; color: var(--text-primary); border-bottom-color: var(--pk-rule); }
.pk-compare tbody th { width: 22%; font-weight: 500; color: var(--text-secondary); padding-left: 0; }
.pk-compare td { color: var(--text-secondary); }
.pk-compare .pk-col-pack { color: var(--text-primary); background: var(--bg-secondary); border-left: 1px solid var(--pk-rule); }
.pk-compare thead .pk-col-pack { border-top: 2px solid var(--accent); }

/* ---- license ---- */
.pk-lic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 24px; }
.pk-lic-cols ul { margin: 8px 0 0; padding-left: 1.2rem; }
.pk-lic-cols li { margin-bottom: .55rem; font-size: 15px; }
.pk-credit-frame { padding: 24px 22px 20px; }
.pk-credit { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; color: var(--text-primary); background: none; }
.pk-lic-para { margin-top: 24px; font-size: 15px; }

/* ---- FAQ ---- */
.pk-faq { max-width: 820px; }
.pk-faq .faq-item { padding: 20px 0; border-bottom: 1px solid #26262b; }
.pk-faq .faq-item:last-child { border-bottom: 0; }
.pk-faq .faq-q { margin: 0 0 8px; font-size: 16.5px; }
.pk-faq .faq-a { color: var(--text-secondary); font-size: 15px; line-height: 1.65; max-width: 70ch; }
.pk-faq .faq-a > * + * { margin-top: .6rem; }
.pk-faq .faq-a ul { margin-bottom: 0; padding-left: 1.2rem; }
.pk-faq .faq-a li { margin-bottom: .3rem; }

/* ---- closing CTA ---- */
.pk-final { margin-top: 72px; }
.pk-final h2 { display: block; margin: 40px 0 10px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.pk-final > p { max-width: 62ch; color: var(--text-secondary); font-size: 16px; margin: 0; }
.pk-final-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 24px; }
.pk-final-form button.pk-cta { width: auto; min-width: 300px; padding-left: 28px; padding-right: 28px; }
.pk-change, .pk-back a, .pk-actions a:not(.pk-btn) { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- thanks ---- */
.pk-thanks .pk-sec { margin-top: 56px; }
.pk-thanks [data-state] { margin-top: 0; }
.pk-thanks .pk-sec > p:not(.pk-back) { max-width: 70ch; color: var(--text-secondary); }
.pk-steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: pk-step; max-width: 70ch; }
.pk-steps li { counter-increment: pk-step; position: relative; padding: 14px 0 14px 52px; margin: 0; border-top: 1px solid #26262b; }
.pk-steps li:last-child { border-bottom: 1px solid #26262b; }
.pk-steps li::before { content: counter(pk-step); position: absolute; left: 0; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--pk-keycap); border: 1px solid var(--pk-keyedge); border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .5); font: 600 14px var(--pk-mono); color: var(--text-primary); }
.pk-steps strong, .pk-tips strong { color: var(--text-primary); }
.pk-tips { padding-left: 1.2rem; max-width: 70ch; }
.pk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.pk-back { margin-top: 2.5rem; }

/* Link-buttons (<a>): the portal link, the thanks retry and the sticky bar. */
.pk-btn, .pk-btn:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; background-color: var(--accent); color: #fff; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28); font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s ease; }
.pk-btn:hover { background-color: var(--accent-hover); color: #fff; text-decoration: none; }

/* ---- phones: the sticky buy bar ---- */
.pk-bar { display: none; }
@media (max-width: 760px) {
  .pk-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) 16px; background: #19191c; border-top: 1px solid var(--pk-rule); color: var(--text-primary); transition: transform .2s ease; }
  .pk-bar.is-hidden { transform: translateY(110%); }
  .pk-bar-amount, .pk-bar-amount:visited, .pk-bar-amount:hover { display: flex; align-items: baseline; gap: .5em; min-height: 44px; align-items: center; color: var(--text-primary); text-decoration: none; }
  .pk-bar-amount strong { font: 600 18px var(--pk-mono); }
  .pk-bar-amount span { color: var(--text-secondary); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
  .pk-bar .pk-btn { min-height: 46px; padding: .6rem 1.1rem; }
  body.pk-has-bar { padding-bottom: 5rem; }
}

/* ---- tablet: the hero window stacks ---- */
@media (max-width: 920px) {
  .pk-window { grid-template-columns: minmax(0, 1fr); }
  .pk-pane-art { border-right: 0; }
  .pk-pane-buy { border-top: 1px solid var(--pk-rule); border-radius: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 28px; }
  .pk-pane-buy .pk-amounts, .pk-pane-buy .pk-custom { grid-column: 1; }
  .pk-pane-buy .pk-cta, .pk-pane-buy .pk-min, .pk-pane-buy .pk-note { grid-column: 2; }
  .pk-pane-buy .pk-amounts { grid-row: 1 / span 3; }
  .pk-stage { height: clamp(240px, 46vw, 380px); }
  .pk-status li { flex-basis: 30%; }
  .pk-status li:nth-child(4) { border-left: 0; }
  .pk-status li:nth-child(n+4) { border-top: 1px solid var(--pk-rule); }
  .pk-offline { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse), (max-width: 768px) {
  .pk .pk-tab { min-height: 44px; }
}
@media (max-width: 768px) {
  .pk { padding: 0; }
  .pk-sec { margin-top: 64px; }
  .pk-specs, .pk-pngs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-cats { columns: 1; }
  .pk-lic-cols { grid-template-columns: minmax(0, 1fr); }
}
/* ---- phones ---- */
@media (max-width: 600px) {
  .pk-h1 { font-size: 2.15rem; }
  .pk-intro { font-size: 16px; }
  .pk-window { margin-top: 32px; }
  .pk-pane-art { padding: 26px 14px 14px; }
  .pk-stage { height: 76vw; max-height: 340px; }
  .pk-menu { margin: 14px -14px 0; padding: 10px 14px 0; gap: 8px; }
  .pk-menu-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pk-menu-k { width: auto; }
  .pk-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .pk-menu-pieces .pk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk .pk-tab { padding: 6px 4px; font-size: 13.5px; }
  .pk-pane-buy { display: flex; padding: 24px 14px 20px; }
  .pk-status { display: grid; grid-template-columns: 1fr 1fr; }
  .pk-status li { border-left: 0; border-top: 1px solid var(--pk-rule); padding: 10px 14px; }
  .pk-status li:nth-child(-n+2) { border-top: 0; }
  .pk-status li:nth-child(even) { border-left: 1px solid var(--pk-rule); }
  .pk-frame { padding: 28px 14px 18px; }
  .pk-ftop { left: 8px; right: 8px; }
  .pk-ftop span { font-size: 11.5px; padding: 0 6px; }
  .pk .pk-h2 { font-size: 1.4rem; gap: 12px; }
  .pk-sizes .pk-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-tree { font-size: 11px; }
  .pk-svgs { gap: 8px; }
  .pk-svg { padding: 10px; }
  .pk-cats li { grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 6.5rem); gap: 10px; }
  .pk-final-form button.pk-cta { width: 100%; min-width: 0; }
  .pk-mock-tools { grid-template-columns: auto 1fr; }
  .pk-mock-tools span:nth-child(n+3) { display: none; }
}
/* Compare table on a phone: each feature is a row heading with the two
   answers side by side under it. */
@media (max-width: 600px) {
  .pk-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-compare, .pk-compare tbody { display: block; }
  .pk-compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid #26262b; }
  .pk-compare th, .pk-compare td { border: 0; padding: 6px 10px; }
  .pk-compare tbody th { grid-column: 1 / -1; width: auto; padding: 12px 0 2px; color: var(--text-primary); font-weight: 600; }
  .pk-compare td { padding-left: 0; }
  .pk-compare .pk-col-pack { padding-left: 10px; }
  .pk-compare td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-secondary); }
}
@media (prefers-reduced-motion: reduce) {
  .pk-bar, .pk-btn, .pk-key, .pk button.pk-cta { transition: none; }
  .pk .pk-key:has(input:checked), .pk button.pk-cta:active { transform: none; }
}

/* Headline number in the brand indigo, as in v1. Large text, so --accent passes AA large (3:1). */
.pk-h1 .pk-h1-n { color: var(--accent); }

/* Small print under the buy button: the minimum price, as a disclaimer. */
.pk-min { margin: -10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-secondary); text-align: center; }

/* Decorative art samples: styles.css gives every <pre> overflow:auto, and line
   rounding makes these 1-2px taller than their box, which drew scrollbars.
   Clip instead (nothing visible is lost). */
.pk-cell pre, .pk-mock pre { overflow: hidden; }
/* The folder tree is wider than a phone: keep it swipeable, hide the bar. */
.pk-tree { scrollbar-width: none; }
.pk-tree::-webkit-scrollbar { display: none; }
