/*
 * Public marketing site.
 *
 * Loaded after pingmon.css and reuses its theme tokens, so the site follows the visitor's system
 * light/dark preference for free. It has no tenant theming — this is the product's own site,
 * served to visitors who have no tenant.
 *
 * Wider measure and larger type than the application: this is prose to be read, not a dense
 * operational UI to be scanned.
 */

.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.site-brand {
    font-weight: 700;
    font-size: 21px;
    color: var(--text);
}
.site-brand:hover { text-decoration: none; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.site-nav a { color: var(--text); }
.site-nav .btn-primary { color: var(--on-accent); }

.site-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* Prose sizing: ~65 characters a line is the readable range, and the max-width above holds it. */
.site-article {
    font-size: 18px;
    line-height: 1.7;
}
.site-article h1 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 24px;
}
.site-article h2 {
    font-size: 26px;
    line-height: 1.3;
    margin: 40px 0 12px;
}
.site-article h3 {
    font-size: 19px;
    margin: 32px 0 8px;
}
.site-article p { margin: 0 0 18px; }
.site-article ul, .site-article ol { margin: 0 0 18px; padding-left: 24px; }
.site-article li { margin-bottom: 6px; }
.site-article blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
}
.site-article img { max-width: 100%; height: auto; border-radius: 6px; }
.site-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}
.site-article th, .site-article td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.site-article pre {
    padding: 14px 16px;
    border-radius: 6px;
    background: var(--surface-2);
    overflow-x: auto;
}

.site-footer {
    padding: 28px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}
.site-footer p { margin: 4px 0; }

.preview-banner { max-width: 760px; margin: 0 auto 24px; }

@media (max-width: 640px) {
    .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
    .site-main { padding: 32px 20px 48px; }
    .site-article { font-size: 17px; }
    .site-article h1 { font-size: 30px; }
}

/* ── Signup ─────────────────────────────────────────────────────────────────── */

.signup-wrap { max-width: 520px; margin: 0 auto; }
.signup-centred { text-align: center; }
.signup-wrap h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.signup-intro { font-size: 17px; color: var(--text-muted); margin: 0 0 28px; }

.signup-section {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 30px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.signup-section:first-of-type { margin-top: 0; }

/* The subdomain field reads as one control with its fixed suffix, so what the visitor is
   actually choosing — and what it becomes — is visible in one glance. */
.slug-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 6px;
}
.slug-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    margin: 0;
    background: transparent;
    color: var(--text);
    padding: 9px 12px;
    font-size: 15px;
    outline: none;
}
.slug-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--surface-2);
    border-left: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    white-space: nowrap;
}
.slug-row:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.slug-status { font-size: 14px; margin: 0 0 18px; }
.slug-ok { color: var(--ok); }
.slug-bad { color: var(--crit); }

.signup-foot { margin-top: 22px; font-size: 14px; text-align: center; }

/* ── Agent downloads ────────────────────────────────────────────────────────── */

.download-list { margin: 20px 0 28px; }
.download-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.download-row:last-child { border-bottom: 0; }
.download-meta { flex: 1; min-width: 0; }
.download-meta h3 { margin: 0 0 4px; font-size: 18px; }
.download-meta p { margin: 0; font-size: 15px; }
.download-action {
    flex: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
/* Unbuilt platforms stay listed but visibly secondary — the gap is information, not something
   to hide, and hiding it would mean a visitor never learns the build exists at all. */
.download-unavailable .download-meta h3 { color: var(--text-muted); }

.download-sum { margin-top: 8px !important; font-size: 13px !important; }
.download-sum code { word-break: break-all; font-size: 12px; }

@media (max-width: 640px) {
    .download-row { flex-direction: column; gap: 10px; }
    .download-action { align-items: flex-start; text-align: left; }
}
