/*
 * BlackWall public site — marketing surfaces.
 *
 * Layered on top of theme.css and home.css: this file only adds the
 * components the platform pages need (page heroes, product screenshots,
 * capability grids, metric rows) and re-uses the existing tokens for
 * colour, radius and shadow so the marketing site and the product read
 * as one system.
 */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--ns-radius-card) 0;
    background: var(--ns-color-action);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* ── Page hero ───────────────────────────────────────────────────
   Shorter than the landing hero: these pages lead with substance. */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--ns-color-border);
    background:
        radial-gradient(circle at 85% -20%, rgba(34, 184, 207, 0.10) 0, transparent 26rem),
        radial-gradient(circle at 10% 120%, rgba(12, 120, 201, 0.08) 0, transparent 24rem),
        var(--ns-color-surface);
}

.page-hero__title {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ns-color-brand);
}

.page-hero__lead {
    max-width: 46rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ns-color-text-muted);
}

.breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ns-color-text-muted);
}

.breadcrumb-trail a {
    color: var(--ns-color-action);
    text-decoration: none;
}

.breadcrumb-trail a:hover {
    text-decoration: underline;
}

.breadcrumb-trail span[aria-hidden] {
    opacity: 0.45;
}

/* ── Product screenshots ─────────────────────────────────────────
   A restrained browser frame. The chrome is decorative, so it is
   hidden from assistive technology and the image carries the alt. */

.screenshot-frame {
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    overflow: hidden;
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.screenshot-frame:hover {
    box-shadow: var(--ns-shadow-card-hover);
}

.screenshot-frame--lift:hover {
    transform: translateY(-3px);
}

.screenshot-frame__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--ns-color-border);
    background: var(--ns-color-surface-subtle);
}

.screenshot-frame__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d9e2ec;
}

.screenshot-frame__label {
    margin-left: 0.5rem;
    font-family: var(--tblr-font-monospace, monospace);
    font-size: 0.72rem;
    color: var(--ns-color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-caption {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ns-color-text-muted);
}

/* ── Metric row ──────────────────────────────────────────────────
   Numbers that describe the shape of the product, not invented
   marketing statistics. */

.metric-tile {
    height: 100%;
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
}

.metric-tile__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ns-color-brand);
}

.metric-tile__label {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ns-color-text);
}

.metric-tile__note {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--ns-color-text-muted);
}

/* ── Capability cards (platform index) ───────────────────────────── */

.capability-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ns-shadow-card-hover);
    border-color: rgba(12, 120, 201, 0.35);
}

.capability-card__title {
    margin: 1rem 0 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ns-color-brand);
}

.capability-card__body {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ns-color-text-muted);
}

.capability-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ns-color-action);
}

.capability-card:hover .capability-card__more svg {
    transform: translateX(3px);
}

.capability-card__more svg {
    transition: transform 0.22s ease;
}

/* ── Specification list ──────────────────────────────────────────── */

.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.9rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ns-color-text);
}

.spec-list li + li {
    border-top: 1px dashed var(--ns-color-border);
}

.spec-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--ns-color-success);
    border-bottom: 2px solid var(--ns-color-success);
    transform: rotate(-45deg);
}

.spec-list strong {
    color: var(--ns-color-brand);
}

/* ── Panels ──────────────────────────────────────────────────────── */

.panel {
    padding: 1.75rem;
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
}

.panel--tint {
    background: var(--ns-color-surface-subtle);
    box-shadow: none;
}

.panel--brand {
    border: none;
    background: linear-gradient(135deg, var(--ns-color-brand) 0%, #0d2f52 55%, var(--ns-color-brand-soft) 100%);
    color: #e8f1f9;
}

.panel--brand .panel__title {
    color: #fff;
}

.panel--brand p {
    color: rgba(232, 241, 249, 0.82);
}

.panel__title {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ns-color-brand);
}

.panel__body {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--ns-color-text-muted);
}

/* ── Section rhythm ──────────────────────────────────────────────── */

.section-pad {
    padding: 5rem 0;
}

.section-pad--tight {
    padding: 3.5rem 0;
}

.section-tint {
    background: var(--ns-color-surface-subtle);
    border-top: 1px solid var(--ns-color-border);
    border-bottom: 1px solid var(--ns-color-border);
}

/* ── Numbered rail ───────────────────────────────────────────────── */

.rail {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rail;
}

.rail li {
    position: relative;
    counter-increment: rail;
    padding: 0 0 1.9rem 3.25rem;
}

.rail li:last-child {
    padding-bottom: 0;
}

.rail li::before {
    content: counter(rail);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--ns-color-action);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.rail li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.07rem;
    top: 2.5rem;
    bottom: 0.35rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(12, 120, 201, 0.35), rgba(12, 120, 201, 0.05));
}

.rail h4 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ns-color-brand);
}

.rail p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--ns-color-text-muted);
}

/* ── CTA band ────────────────────────────────────────────────────── */

.cta-band {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--ns-color-brand) 0%, #0c2b4c 60%, var(--ns-color-brand-soft) 100%);
    color: #fff;
}

.cta-band__title {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.cta-band__lead {
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.cta-band .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.cta-band .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

/* ── Footer additions ────────────────────────────────────────────── */

.footer-heading {
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ns-color-brand);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li + li {
    margin-top: 0.45rem;
}

.footer-list a {
    font-size: 0.86rem;
}

.footer-blurb {
    max-width: 22rem;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--ns-color-text-muted);
}

.footer-base {
    padding-top: 1.5rem;
    border-top: 1px solid var(--ns-color-border);
}

/* ── Comparison table ────────────────────────────────────────────── */

.compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    background: var(--ns-color-surface);
}

.compare-table {
    width: 100%;
    min-width: 34rem;
    margin: 0;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 0.85rem 1.15rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--ns-color-border);
}

.compare-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ns-color-text-muted);
    background: var(--ns-color-surface-subtle);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody th {
    font-weight: 600;
    color: var(--ns-color-brand);
}

.compare-table td {
    color: var(--ns-color-text-muted);
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .section-pad {
        padding: 3.25rem 0;
    }
}
