/* ==================================================================
   page.css — v8
   Downloads, changelog, 404. No eyebrow rail, no 4-cell fake-metric
   meta, no uppercase mono labels.
   ================================================================== */

.h-page-intro {
    max-width: min(1120px, 100% - 32px);
    margin: 0 auto;
    padding: clamp(120px, 15vh, 172px) 0 clamp(48px, 6vh, 72px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.6vh, 28px);
    border-bottom: 1px solid var(--line);
}

.h-kicker {
    font-size: 13px;
    color: var(--ink-3);
    align-self: flex-start;
}

.h-display {
    font-family: var(--font-display);
    font-weight: 620;
    font-size: clamp(42px, 6.4vw, 92px);
    line-height: 0.96;
    letter-spacing: -0.036em;
    color: var(--ink);
    text-wrap: balance;
    max-width: 22ch;
}
.h-display-fade,
.h-display em {
    font-weight: 340;
    font-style: normal;
    color: var(--ink-3);
}

.h-deck {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 62ch;
}

/* Compact metadata line (replaces the 4-cell rail) */
.h-page-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13.5px;
    color: var(--ink-3);
    margin-top: 8px;
}
.h-page-intro-meta > span { display: inline-flex; gap: 6px; align-items: baseline; }
.h-page-intro-meta strong { color: var(--ink); font-weight: 500; }
.h-page-intro-meta .sep { color: var(--ink-4); }

/* Sections */
.h-section {
    max-width: min(1120px, 100% - 32px);
    margin: 0 auto;
    padding: clamp(48px, 7vh, 72px) 0;
}

/* Downloads: card grid */
.h-dl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 2.5vh, 28px);
}
.h-dl-card {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
    padding: var(--plate-pad);
    border-radius: var(--plate-outer);
    border: 1px solid var(--line-2);
    background: linear-gradient(180deg, rgba(233, 240, 237, 0.03), transparent 60%), var(--surface);
    box-shadow:
        inset 0 1px 0 var(--inner-hi),
        0 24px 60px -30px rgba(0, 0, 0, 0.72);
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.h-dl-card:hover { border-color: var(--line-3); transform: translate3d(0, -1px, 0); }
.h-dl-card-media {
    width: 100%;
    align-self: start;
    border-radius: var(--plate-inner);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}
.h-dl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.h-dl-card:hover .h-dl-card-media img { transform: scale(1.04); }

.h-dl-card-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(20px, 2.5vh, 28px) clamp(4px, 1vw, 12px) clamp(20px, 2.5vh, 28px) 0;
}
.h-dl-card-meta {
    font-size: 13px;
    color: var(--ink-3);
}
.h-dl-card-meta strong { color: var(--ink); font-weight: 500; }
.h-dl-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.028em;
    color: var(--ink);
    text-wrap: balance;
}
.h-dl-card-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 62ch;
}
.h-dl-card-desc strong { color: var(--ink); font-weight: 500; }

.h-dl-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.h-dl-card-features li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-2);
}
.h-dl-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 1px;
    background: var(--ink-3);
}

/* Setup & requirements disclosure */
.sair-reqs {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: var(--plate-inner);
    background: var(--surface-2);
    overflow: hidden;
}
.sair-reqs > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.sair-reqs > summary::-webkit-details-marker { display: none; }
.sair-reqs > summary:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.sair-reqs-sum-l { display: inline-flex; align-items: center; gap: 10px; }
.sair-reqs-chev {
    transition: transform 0.25s var(--ease);
    color: var(--ink-3);
}
.sair-reqs[open] > summary .sair-reqs-chev { transform: rotate(180deg); }
.sair-reqs-body {
    display: flex;
    flex-direction: column;
    padding: 4px 16px 14px;
    border-top: 1px solid var(--line);
}
.sair-reqs-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    align-items: baseline;
}
.sair-reqs-row:last-child { border-bottom: 0; }
.sair-reqs-k {
    font-size: 13px;
    color: var(--ink-3);
}
.sair-reqs-v {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-2);
}
.sair-reqs-v strong { color: var(--ink); font-weight: 500; }
.sair-reqs-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    font-size: 11px;
    color: var(--ink-3);
    font-style: normal;
    vertical-align: 1px;
}
.sair-reqs-row-warn .sair-reqs-k,
.sair-reqs-row-warn .sair-reqs-v { color: var(--ink); }

/* Discontinued notice */
.h-dl-discontinued {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 2px solid var(--ink-3);
    border-radius: var(--plate-inner);
    background: var(--surface-2);
}
.h-dl-discontinued-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}
.h-dl-discontinued-head svg { color: var(--ink-3); }
.h-dl-discontinued-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-2);
}
.h-dl-discontinued-body strong { color: var(--ink); font-weight: 500; }

.h-dl-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.h-dl-card-foot-label {
    font-size: 13px;
    color: var(--ink-3);
}

/* Legacy .h-btn primary/ghost (used on downloads + 404) */
.h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--line-2);
    background: var(--surface);
    cursor: pointer;
    transition: transform 0.2s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.h-btn:hover { border-color: var(--signal); }
.h-btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.h-btn-primary:hover { background: var(--signal-hover); }
.h-btn-ghost { background: transparent; }
.h-btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.h-btn:active { transform: translateY(1px) scale(0.99); }

/* ---- Changelog timeline ---- */
.h-changelog,
.h-cl {
    max-width: min(920px, 100% - 32px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.h-changelog-item,
.h-cl-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(28px, 4vh, 40px) 0;
    border-bottom: 1px solid var(--line);
}
.h-changelog-item:last-child,
.h-cl-item:last-child { border-bottom: 0; }
.h-cl-marker { display: none; }
.h-cl-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 5px;
    align-items: flex-start;
}
.h-changelog-date,
.h-cl-date {
    font-size: 13px;
    color: var(--ink-3);
}
.h-cl-item > .h-cl-title,
.h-cl-item > .h-cl-body {
    grid-column: 2 / 3;
}
.h-changelog-body,
.h-cl-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.h-changelog-title,
.h-cl-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ink);
    margin-bottom: 8px;
}
.h-changelog-title em,
.h-cl-title em { font-style: normal; color: var(--ink-3); font-weight: 340; }
.h-changelog-body p,
.h-cl-body p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 62ch;
}
.h-changelog-body p strong,
.h-cl-body p strong { color: var(--ink); font-weight: 500; }
.h-changelog-body ul,
.h-cl-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.h-changelog-body li,
.h-cl-body li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
}
.h-changelog-body li::before,
.h-cl-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 1px;
    background: var(--ink-3);
}

.h-cl-body code,
.h-changelog-body code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink);
    white-space: nowrap;
}
.h-cl-body a,
.h-changelog-body a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-3);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.h-cl-body a:hover,
.h-changelog-body a:hover {
    color: var(--signal);
    border-bottom-color: var(--signal);
}
.h-cl-body em,
.h-changelog-body em {
    font-style: italic;
    color: var(--ink);
}

/* Simple tag pill (Fix/Content/Release/Update) */
.h-cl-tag,
.h-changelog-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line-2);
    align-self: flex-start;
}

/* ---- 404 ---- */
.h-404 {
    min-height: 100dvh;
    justify-content: center;
    text-align: left;
    padding-top: 0;
    padding-bottom: 96px;
    border-bottom: 0;
    display: flex;
    align-items: center;
}
.h-404 .h-kicker { align-self: flex-start; }
.h-404-actions,
.h-404-cta,
.h-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .h-page-intro { padding-top: 96px; }
    .h-dl-card { grid-template-columns: 1fr; padding: 12px; }
    .h-dl-card-media { min-height: 220px; }
    .h-dl-card-body { padding: 12px 12px 20px; }

    .h-changelog-item, .h-cl-item { grid-template-columns: 1fr; gap: 8px; }
    .h-changelog-date, .h-cl-date { padding-top: 0; }
}
