/* /templates/, the three template-pack sales pages and the private delivery pages. Loaded only on those pages (src/templates-render.mjs),
   so style.css is untouched. Uses the site's own tokens and components (group-head, section, record, split, ticks, steps, faq, block, button). */

.tp-kicker { margin: 0 0 8px; font-size: var(--small); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.tp-price { margin: 0 0 20px; font-size: 1.375rem; }
.tp-price strong { font-size: 1.75rem; font-weight: 650; }
.tp-amount { margin: 0 0 16px; font-size: 2rem; font-weight: 650; }
.tp-amount .muted { font-size: 1rem; font-weight: 500; }
.tp-pending { max-width: 52ch; margin: 0 0 12px; }

/* the sales-page hero: words left, one real preview right */
.tp-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.tp-hero .lead { margin-bottom: 20px; }
.tp-hero .actions { margin-bottom: 14px; }
.tp-hero-shot { min-width: 0; }

/* a preview: a framed real image, opened full size when clicked */
.tp-shot { margin: 0; min-width: 0; }
.tp-shot a { display: block; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-ui); }
.tp-shot img { display: block; width: 100%; height: auto; }
.tp-shot figcaption { margin-top: 10px; font-size: var(--small); color: var(--muted); }
.tp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* what is inside */
.tp-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tp-files li { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.tp-files li:first-child { border-top: 0; padding-top: 0; }
.tp-files p { margin: 4px 0 0; color: var(--muted); }
.tp-file-name { font-weight: 650; overflow-wrap: anywhere; }
.tp-file-size { font-size: var(--small); white-space: nowrap; }

/* price block */
.tp-buy .ticks { margin-bottom: 20px; }
.tp-buy .actions { margin-bottom: 14px; }
.tp-more { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.tp-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* the hub */
.tp-hub-head { padding-bottom: 24px; }
.tp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tp-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tp-card h2 { font-size: 1.375rem; margin: 6px 0 0; }
.tp-card h2 a { text-decoration: none; }
.tp-card p { margin: 0; }
.tp-card .tp-price { margin: 6px 0 0; font-size: 1.125rem; }
.tp-card .tp-price strong { font-size: 1.375rem; }
.tp-card .actions { margin-top: auto; padding-top: 12px; }
.tp-card-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.tp-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* the private delivery page */
.tp-thanks .lead { margin-bottom: 24px; }
.tp-downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tp-downloads li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.tp-downloads li:first-child { border-top: 0; }
.tp-downloads li > div { flex: 1 1 320px; min-width: 0; }
.tp-downloads p { margin: 4px 0 0; color: var(--muted); }
.tp-start { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 10px; max-width: 66ch; }
.tp-thanks + .section h2, #start-h { margin-bottom: 8px; }

@media (max-width: 959px) {
  .tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tp-gallery { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tp-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .tp-amount { font-size: 1.75rem; }
  .tp-downloads li .button { width: 100%; }
  .tp-thanks .actions .button { width: 100%; text-align: center; }
}
