/* Factsogy homepage: coverage desks and app spec sheet. Section primitives live in chrome.css. */

/* ---------- Coverage desks ---------- */

.desks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin: 0;
    padding: 0;
    list-style: none;
}

.desks li {
    position: relative;
    padding: 28px 24px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s ease;
}

.desks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 0;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.desks li:hover {
    background: var(--surface);
}

.desks li:hover::before {
    width: 100%;
}

.desk-no {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.desks h3 {
    font-size: 34px;
    margin: 36px 0 10px;
}

.desks p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* ---------- App section ---------- */

.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.app-copy p {
    margin: 0 0 1.1em;
}

.app-copy .fine {
    font-size: 15px;
    color: var(--muted);
}

/* Permission "spec sheet" */
.spec {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.spec-head b {
    color: var(--accent);
    font-weight: 500;
}

.spec dl {
    margin: 0;
}

.spec-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec dt {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.spec dd {
    margin: 0;
    font-size: 16px;
}

.spec dd ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .desks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .desks {
        grid-template-columns: 1fr;
    }

    .desks h3 {
        margin-top: 20px;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
