/* The shop's components (2026-11-13), in the portfolio's language: same tokens, faces, exclusion-blended ink, hairlines,
   pills and motion. Everything else comes from site.css unchanged. DESIGN.md "Shop components". */

/* the new text blocks sit in their own exclusion layer, like every block of text in site.css */
.shop-head, .card-text, .shop-empty, .shop-preview { mix-blend-mode: exclusion; }
/* reading text stays in sentence case (site.css rule, extended) */
.case-text li, .card-pitch, .buy-msg, .lost-input, .info-draft, .info-mail, .case-text-body a { text-transform: none; }

/* ---------- the catalogue (home, under the hero) ---------- */
/* min-height: filtering to a small or empty shelf must never make the page shorter than one screen past the catalogue's
   top, or the browser pulls the scroll back up into the hero */
.shop { position: relative; min-height: 100svh; padding: clamp(40px, 8vh, 96px) 0 clamp(72px, 14vh, 160px); }
.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); }
.shop-title { font: 400 clamp(72px, 13vw, 220px)/.8 var(--display); text-transform: uppercase; letter-spacing: .01em; padding-top: .1em; margin-left: -.035em; }

/* the filter: one chip per shelf, the portfolio's pill at a smaller size; the active one is filled like a pill on hover */
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: .4em; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .04em; transition: background .15s, color .15s; }
.chip-n { font: 600 10px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; opacity: .7; }
.chip[aria-current] { background: var(--ink); color: #000; }
@media (hover: hover) { .chip:hover { background: var(--ink); color: #000; } }
.chip:focus-visible { outline-color: var(--ink); }
.shop-preview { padding: 0 var(--gutter) 28px; }
.shop-empty { padding: 0 var(--gutter); font: 400 clamp(22px, 2.6vw, 44px)/1.1 var(--text); letter-spacing: -.02em; text-transform: none; }

/* the cards: picture, name in the display face, type · version + price tag, the pitch, notes */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 9vh, 104px) clamp(12px, 1.6vw, 28px); padding: 0 var(--gutter); }
.card-item[hidden], .shop-empty[hidden] { display: none; }
.card { display: block; text-decoration: none; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card-media > *, .card-media .fill { transition: transform .9s var(--ease); }
.card:hover .card-media > *, .card:focus-visible .card-media > * { transform: scale(1.04); }
.card-media .poster b { font-size: clamp(22px, 3vw, 54px); }
.card-text { display: grid; gap: 10px; margin-top: 16px; }
.card-name { font: 400 clamp(36px, 3.6vw, 68px)/.84 var(--display); text-transform: uppercase; padding-top: .1em; text-wrap: balance; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1px solid var(--hair); }
.card-pitch { max-width: 40ch; font: 400 15px/1.4 var(--text); }
.card-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.card:focus-visible { outline: none; }
.card:focus-visible .card-media { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-item.is-in { animation: card-in .55s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- the price tag: Helvetica Neue Bold, the currency sign in Ivy Presto (the portfolio's mix) ---------- */
.price { font: 700 clamp(18px, 1.5vw, 24px)/1 var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; text-transform: none; }
.price .ivy { font-size: 1.12em; margin-right: .04em; }
.price.is-none { font: 700 12px/1.2 var(--text); text-transform: uppercase; letter-spacing: .04em; }
.price-big { font-size: clamp(48px, 5.4vw, 96px); letter-spacing: -.035em; line-height: .9; }
.price-big.is-none { font-size: 12px; }

/* ---------- notes: draft / placeholder, a dashed hairline (unfinished) in the label style ---------- */
.note { display: inline-block; padding: 5px 8px 4px; border: 1px dashed var(--ink); border-radius: 3px; font: 700 10px/1 var(--text); text-transform: uppercase; letter-spacing: .06em; }
.case-notes { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 5vh, 48px); }

/* ---------- the buy box (product page intro): price tag, Buy, one small line ---------- */
.buy { display: grid; gap: 14px; justify-items: start; align-content: start; min-width: min(100%, 280px); }
.pill-buy { min-height: 52px; padding: 0 28px; gap: 12px; font-size: 14px; background: var(--ink); color: #000; cursor: pointer; }
@media (hover: hover) { .pill-buy:hover { background: none; color: inherit; } .pill-buy:hover .arw { transform: translateX(.18em); } }
.pill-buy .arw { transition: transform .25s var(--ease); }
.pill-buy:active { transform: scale(.97); }
.pill-buy.is-busy { opacity: .6; cursor: progress; }
.pill-buy.is-soon, .pill-buy.is-soon:hover { background: none; color: inherit; border-style: dashed; cursor: default; transform: none; }
.pill-buy.is-soon .arw { display: none; }
.pill-buy:focus-visible { outline-color: var(--ink); }
.buy-msg { font: 400 14px/1.4 var(--text); max-width: 32ch; }
.buy-msg:not(.is-on):empty { display: none; }
.buy-small { font: 700 11px/1.2 var(--text); letter-spacing: .04em; }
.buy-small a, .fact a, .case-text-body a:not(.pill) { text-underline-offset: 3px; }
.product .case-facts { align-items: flex-start; }

/* ---------- the PayPal buy box (2026-11-16, DESIGN.md "Shop components") ---------- */
/* PayPal's buttons are iframes in PayPal's own colours; inside an exclusion layer they would be inverted. So on a
   product page the intro is not one layer: each text block in it is its own (the same look, since none overlap), and
   the button area stays out of the blend. */
.product .case-intro { mix-blend-mode: normal; }
.product .case-intro > :not(.case-facts), .product .case-facts > :not(.buy), .product .buy > :not(.pay),
.product .pay .buy-msg { mix-blend-mode: exclusion; }
/* the choice: the filter's chips, each with its price; the chosen one is filled like the active filter chip */
.plans { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.plan { position: relative; gap: 10px; cursor: pointer; user-select: none; }
.plan:has(input:checked) { background: var(--ink); color: #000; }
.plan:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.price.price-chip { font-size: 13px; letter-spacing: 0; }
.offer-price { display: inline-flex; align-items: baseline; gap: .4em; }
.price-per { font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.plan .price-per { font-size: 10px; margin-left: -.2em; }
.buy.is-pay .offer { display: grid; gap: 12px; justify-items: start; }
/* with a choice, only the chosen offer's price shows (pure CSS, so it is right without script too) */
.buy.is-pay:has(.plans) .offer { display: none; }
.buy.is-pay:has(input[value="monthly"]:checked) .offer[data-plan="monthly"],
.buy.is-pay:has(input[value="lifetime"]:checked) .offer[data-plan="lifetime"] { display: grid; }
.offer-note { max-width: 40ch; }
.pay { width: min(100%, 340px); }
.pay-buttons:empty { display: none; }
/* PayPal's button frames have no color-scheme of their own (= light). On the dark palette the browser would paint an
   opaque white backdrop behind a frame whose scheme differs from its parent's, so the frames get a light scheme. */
.pay-buttons iframe { color-scheme: light; }

/* ---------- the thank-you page (/thanks/<token>): the key in the mono face, the Download pill ---------- */
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.key { font: 600 clamp(17px, 1.6vw, 24px)/1.25 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; text-transform: none; overflow-wrap: anywhere; }
button.pill:not(.pill-buy) { background: none; color: inherit; cursor: pointer; }   /* a <button> pill (Copy, Send): no browser button fill; hover fills as usual */
button.pill:not(.pill-buy):hover { background: var(--ink); color: #000; }
.thanks-file { font-size: 14px; overflow-wrap: anywhere; }
.is-thanks .about-text .pill-buy { margin-top: .2em; }

/* ---------- "Lost your key?" (support): one email field in the pill shape + Send ---------- */
.lost-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.lost-input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: none; color: inherit; font: 400 16px/1 var(--text); }
.lost-input::placeholder { color: inherit; opacity: .55; }
.lost-input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the licence key line in the licence section */
.licence-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- lists on the product page: included, requirements, changelog ---------- */
.ticks { display: grid; gap: .55em; }
.ticks li { position: relative; padding-left: 1.3em; text-wrap: pretty; }
.ticks li::before { content: "—"; position: absolute; left: 0; }
.log { display: grid; gap: 1.8em; }
.log-head { font: 700 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .7em; }

/* ---------- info pages (licence, refunds, support): /about's reading layout ---------- */
.is-info .about-title { font-size: min(19vw, 40svh); }
.info-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 2.4em; font-size: 15px; }
.info-sec + .info-sec { margin-top: 2.4em; }
.info-sec > .label { margin-bottom: .8em; }
.info-mail { font-weight: 700; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .case-notes { grid-column: 1 / -1; }
  .is-info .about-title { font-size: min(21vw, 34svh); }
}
