/*
 * /haltech-nsp-mac. Builds on use-cases.css (hero, sections, rows, cards);
 * everything here is this page's alone.
 */

.nsp-btn-soon { opacity: 0.55; cursor: default; pointer-events: none; }

.nsp-facts {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.nsp-facts li::before { content: '✓'; color: var(--amber); margin-right: 0.45rem; }
.nsp-version { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-muted); opacity: 0.8; }

/* ---- Hero: the launcher's own window ---- */
.nsp-hero-visual {
    position: relative;
    max-width: 580px;
    width: 100%;
    justify-self: center;
}
.nsp-hero-shot {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(255, 140, 0, 0.08));
}

/* ---- The options compared ---- */
.nsp-compare {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}
.nsp-option {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
}
.nsp-option--win { border-color: var(--amber-border-strong); background: var(--amber-faint); }
.nsp-option h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.nsp-option p { flex: 1; font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 1rem; }
.nsp-tag {
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--amber-border);
    border-radius: 2px;
    padding: 0.3rem 0.6rem;
}
.nsp-tag--bad { color: var(--text-muted); border-color: rgba(255, 255, 255, 0.12); }

/* ---- Steps ---- */
.nsp-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.nsp-steps li {
    counter-increment: step;
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 3.4rem 1.5rem 1.5rem;
}
.nsp-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    left: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--amber);
}
.nsp-steps h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.nsp-steps p { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }
.nsp-steps-cta { margin-top: 2rem; }
.nsp-tested { margin: 2rem 0 0; max-width: 46rem; font-size: 0.9rem; line-height: 1.65; }
.nsp-tested p + p { margin-top: 0.5rem; }
.nsp-tested a, .nsp-steps a { color: var(--amber); }

.nsp-more { margin-top: 4rem; }

/* ---- Install guide, opened by the download button ---- */
.nsp-install {
    margin-top: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--amber-border);
    border-radius: 8px;
    scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}
.nsp-install[open] { border-color: var(--amber-border-strong); }
.nsp-install.is-started { animation: nsp-pulse 1.6s ease-out 1; }
@keyframes nsp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.45); }
    100% { box-shadow: 0 0 0 18px rgba(255, 140, 0, 0); }
}
.nsp-install summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    padding-right: 3rem;
}
.nsp-install summary::-webkit-details-marker { display: none; }
.nsp-install summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--amber);
    font-weight: 700;
    font-size: 1.2rem;
}
.nsp-install[open] summary::after { content: '−'; }
.nsp-install-head {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.nsp-install-done { display: none; color: #28c840; font-size: 0.85rem; font-weight: 600; }
.nsp-install.is-started .nsp-install-done { display: block; }
.nsp-install-body { padding: 0 1.5rem 1.75rem; }
.nsp-install-why {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    border-left: 2px solid var(--amber-border-strong);
    padding-left: 0.9rem;
    margin-bottom: 2rem;
    max-width: 52rem;
}
.nsp-install-steps {
    list-style: none;
    counter-reset: istep;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2rem;
}
.nsp-install-steps li {
    counter-increment: istep;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nsp-install-steps li:first-child { border-top: 0; padding-top: 0; }
.nsp-install-steps li:not(:has(img)) { grid-template-columns: 1fr; }
.nsp-install-text { position: relative; padding-left: 3rem; }
.nsp-install-text::before {
    content: counter(istep);
    position: absolute;
    left: 0;
    top: -0.1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.95rem;
    color: #0a0a0a;
    background: var(--amber);
}
.nsp-install-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.nsp-install-text p { font-size: 0.92rem; line-height: 1.65; color: var(--text-muted); }
.nsp-install-text a, .nsp-install-text strong { color: var(--text); }
.nsp-install-text a { color: var(--amber); }
.nsp-shot {
    display: block;
    height: auto;
    justify-self: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.nsp-shot--dialog { width: 100%; max-width: 260px; }
.nsp-shot--wide { width: 100%; max-width: 560px; }

/* ---- FAQ ---- */
.nsp-faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.nsp-faq details {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1rem 1.3rem;
}
.nsp-faq details[open] { border-color: var(--amber-border); }
.nsp-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.nsp-faq summary::-webkit-details-marker { display: none; }
.nsp-faq summary::after { content: '+'; color: var(--amber); font-weight: 700; }
.nsp-faq details[open] summary::after { content: '−'; }
.nsp-faq p { margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.65; color: var(--text-muted); }

.nsp-legal {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-muted);
    opacity: 0.75;
    max-width: 52rem;
}

/* ---- Narrower screens ---- */
@media (max-width: 1000px) {
    .nsp-compare, .nsp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nsp-option--win { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .nsp-install-steps li { grid-template-columns: 1fr; gap: 1.25rem; }
    .nsp-hero-visual { max-width: 420px; order: -1; }
}
@media (max-width: 560px) {
    .nsp-install summary, .nsp-install-body { padding-left: 1rem; padding-right: 2.5rem; }
    .nsp-install-body { padding-right: 1rem; }
    .nsp-install-text { padding-left: 2.6rem; }
    .nsp-compare, .nsp-steps { grid-template-columns: 1fr; }
}
