/* OCELLUS LABS — /gadgets/ page. Builds on legal.css (same tokens, fonts and footer).
   One section per kind of thing (Software first), one card per thing. No scripts. */
:root { --card: rgba(238, 233, 223, 0.04); --on-gold: #000; }
:root[data-theme="light"] { --card: rgba(255, 255, 255, 0.55); --on-gold: #fff; }

.gadgets-page .legal-updated { margin-bottom: clamp(28px, 5vw, 48px); }
.gd-cat {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.85rem !important;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold) !important;
    margin: 0 0 14px !important;
}

.app-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    padding: clamp(20px, 4vw, 40px);
}
.app-head { display: flex; gap: 20px; align-items: center; }
.app-icon { width: clamp(64px, 12vw, 96px); height: auto; border-radius: 22%; flex: none; }
.app-name {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.05;
    color: var(--ink);
}
.app-tag { margin: 4px 0 2px; color: var(--ink); }
.app-meta { font-size: 0.9rem; color: var(--muted); margin: 0 !important; }

/* screenshots: side by side on wide screens, a swipeable row on phones */
.app-shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 16px;
    margin: clamp(22px, 4vw, 36px) 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}
.app-shots figure { scroll-snap-align: start; margin: 0; max-width: 300px; }
.app-shots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.app-shots figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); text-align: center; }
@media (max-width: 700px) {
    .app-shots { grid-auto-columns: 72%; }
}

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 8px; }
.app-dl {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
}
.app-dl:hover { color: var(--on-gold); filter: brightness(1.12); }
.app-req { font-size: 0.92rem; color: var(--muted); }

.app-card h4 { margin: 1.4em 0 0.5em; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.app-card em { font-style: normal; color: var(--ink); }
.app-hash { font-size: 0.85rem; color: var(--muted); }
.app-hash code { font-size: 0.78rem; overflow-wrap: anywhere; }
