/* ─────────────────────────────────────────────
   Apps page

   Loaded after styles.css, so the tokens, reset,
   .logo, .hero-label and .footer all
   carry over. Only page-specific rules live here.
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   Masthead + hero (one dark block)
───────────────────────────────────────────── */
.apps-top {
    background-color: var(--hero-bg);
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.apps-masthead {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.apps-masthead-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.apps-home-link {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hero-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.apps-home-link:hover {
    color: var(--hero-text);
}

/* The dark band identifies the page rather than making a claim for it.
   The title is set below the app names on purpose, so the apps are the
   largest recurring type and read as the content. */
.apps-hero {
    padding: 3rem 0 3.5rem;
}

.apps-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 3rem;
}

.apps-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero-muted);
    margin-bottom: 0.9rem;
    animation: fade-up 0.7s ease-out both;
}

.apps-headline {
    font-family: var(--f-sans);
    font-size: clamp(1.45rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hero-text);
    font-optical-sizing: auto;
    animation: fade-up 0.7s ease-out 0.15s both;
}

.apps-headline em {
    font-style: normal;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-hero-description {
    max-width: 46ch;
    font-size: 0.95rem;
    color: var(--hero-muted);
    line-height: 1.65;
    animation: fade-up 0.7s ease-out 0.3s both;
}

/* ─────────────────────────────────────────────
   App entries

   The left rail carries how each app runs, which is
   what a reader needs before following the link.
───────────────────────────────────────────── */
.apps-main {
    padding: 1.5rem 0 6rem;
    background: var(--paper);
}

.apps-list {
    border-bottom: 1px solid var(--border);
}

.app {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 3rem;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
}

/* Rules separate one app from the next. The dark band already closes the
   top of the list, so the first row does not carry one. */
.app:first-child {
    border-top: none;
}

.app-rail {
    padding-top: 0.55rem;
}

.app-form {
    font-family: var(--f-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.app-platforms {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    line-height: 1.7;
}

.app-body {
    min-width: 0;
}

.app-name {
    max-width: 20ch;
    font-family: var(--f-sans);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.app-pitch {
    max-width: 62ch;
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin-bottom: 1.75rem;
}

.app-tags li {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    background: var(--paper-2);
    border: 1px solid var(--border);
    padding: 0.3rem 0.65rem;
    letter-spacing: 0.03em;
}

/* ─────────────────────────────────────────────
   Get-it strip

   Every app ends with the literal thing you receive:
   the installer files, or the command that runs it.
───────────────────────────────────────────── */
.app-get {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
    padding: 0.9rem 1.25rem;
    background: var(--paper-2);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

/* Gradient edge as an overlay, so the surrounding hairlines stay
   the same weight as every other rule on the site. */
.app-get::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 3px;
    background: var(--grad);
}

.app-get-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.app-get-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.app-get-action:hover {
    color: var(--accent);
}

.app-get-detail {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
}

.app-source {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.app-source:hover {
    color: var(--ink);
}

.apps-note {
    margin-top: 3rem;
    max-width: 46ch;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* ─────────────────────────────────────────────
   Focus
───────────────────────────────────────────── */
.apps-home-link:focus-visible,
.app-get-action:focus-visible,
.app-source:focus-visible,
.logo:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 860px) {
    .app {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .app-rail {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 0.25rem 0.75rem;
        padding-top: 0;
    }

    .app-form  { margin-bottom: 0; }
}

@media (max-width: 768px) {
    .apps-masthead-inner {
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .apps-hero {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .apps-intro {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .apps-eyebrow { margin-bottom: 0.7rem; }

    .apps-hero-description { max-width: 100%; }

    .apps-main { padding: 1rem 0 4rem; }

    .app { padding: 2.75rem 0; }
}

/* ─────────────────────────────────────────────
   Reduced motion
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .apps-eyebrow,
    .apps-headline,
    .apps-hero-description {
        animation: none;
    }

    .scroll-reveal {
        transition: none;
    }
}
