/* Copyright (c) 2026 Alpas Made. All rights reserved. */
/* Shared pieces for the Apps pages (/apps and /apps/*). Sticker look: 3px charcoal
   borders and hard offset shadows. Tokens, nav, footer, .page-title and .section-* come from style.css. */

/* ---------- Layout ---------- */
.pg-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); }
.pg-hero .page-title { margin-top: 20px; }
.pg-sec { padding: clamp(56px, 8vw, 96px) 0; }
.pg-sec--tint { background: var(--off-white); border-block: 3px solid var(--charcoal); }
.pg-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.pg-head .section-label + .section-title { margin-top: 4px; }
.pg-head .pg-lede { margin-top: 16px; }
.pg-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .pg-split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.pg-split-copy > * + * { margin-top: 24px; }
.pg-art img { display: block; width: 100%; height: auto; }

/* ---------- Text ---------- */
.pg-lede { font-family: var(--font-body); font-size: clamp(1.0625rem, 2vw, 1.2rem); line-height: 1.65; color: var(--ink-light); max-width: 56ch; }
.pg-note { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5; color: var(--ink-light); }
.link-arrow { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--font-bubble); font-weight: 800; font-size: 1rem; color: var(--charcoal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-arrow:hover { text-decoration-color: var(--magenta); }

/* ---------- Buttons (sticker, from style.css) ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-row .btn-primary, .cta-row .btn-secondary { min-height: 52px; justify-content: center; align-items: center; display: inline-flex; gap: 0.5rem; }
.btn-primary svg, .btn-secondary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.page-main a:focus-visible, .pg-sec a:focus-visible, .pg-hero a:focus-visible, .pg-sec button:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }

/* ---------- Badge ---------- */
.badge { display: inline-block; font-family: var(--font-pixel); font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; color: var(--charcoal); background: var(--lime); padding: 9px 14px; border: 2.5px solid var(--charcoal); border-radius: var(--radius-pill); box-shadow: 3px 3px 0 var(--charcoal); }

/* ---------- Legal block ---------- */
.legal-block { background: var(--paper-dark); border: 3px dashed var(--charcoal); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.legal-block p { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.6; color: var(--ink); max-width: 72ch; }
.legal-block p + p { margin-top: 12px; }
.legal-block a { text-decoration: underline; text-underline-offset: 3px; }
.legal-band { padding-top: 0; }

/* ---------- App cards ---------- */
.app-grid { list-style: none; display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .app-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { display: grid; grid-template-columns: 112px 1fr; height: 100%; background: var(--white); color: var(--ink); border: 3px solid var(--charcoal); border-radius: 20px; box-shadow: 5px 5px 0 var(--charcoal); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.app-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--charcoal); }
.app-card:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--charcoal); }
.app-card img { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; background: var(--paper-dark); border-right: 3px solid var(--charcoal); }
.app-card .body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 18px 20px; }
.app-card .ep { font-family: var(--font-pixel); font-size: 0.5rem; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; background: var(--charcoal); color: var(--lime); padding: 6px 9px; border-radius: 8px; }
.app-card .name { font-family: var(--font-bubble); font-weight: 900; font-size: 1.1rem; line-height: 1.25; color: var(--charcoal); }
.app-card .more { margin-top: auto; font-family: var(--font-bubble); font-weight: 800; font-size: 0.95rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.app-card:hover .more { text-decoration-color: var(--magenta); }

/* ---------- Closing band ---------- */
.pg-close { text-align: center; background: var(--paper-dark); }
.pg-close .section-label { justify-content: center; }
.pg-close .pg-lede { margin: 16px auto 0; }
.pg-close .cta-row { justify-content: center; margin-top: 32px; }
