/*
 * Elglide apex landing page (elglide.com).
 * Brand tokens mirror the pilot app's marketing.css so apex + pilot read
 * as one brand. A real palette/logo swap is a one-file change here.
 */

:root {
    --brand-primary: #0d6efd;
    --brand-primary-dark: #0a58ca;
    --brand-text: #1c2024;
    --brand-muted: #6c757d;
    --brand-bg: #ffffff;
    --brand-bg-soft: #f6f8fb;
    --brand-border: #eef0f3;

    --shell-max: 64rem;
    --shell-pad: 1.25rem;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--brand-text);
    background: var(--brand-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); }

.shell {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding-left: var(--shell-pad);
    padding-right: var(--shell-pad);
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
    border-bottom: 1px solid var(--brand-border);
    background: #fff;
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-text);
}

.wordmark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.site-nav .quiet-link {
    font-size: 0.95rem;
    color: var(--brand-muted);
}
.site-nav .quiet-link:hover { color: var(--brand-primary); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(180deg, var(--brand-bg-soft) 0%, var(--brand-bg) 100%);
    padding: 5rem 0 4rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw + 0.5rem, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    max-width: 36rem;
}

.hero .lead {
    font-size: 1.125rem;
    color: var(--brand-muted);
    max-width: 38rem;
    margin: 0 0 2rem;
    line-height: 1.55;
}

.cta-row { margin: 0; }

.btn-primary {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.12s ease, transform 0.12s ease;
}
.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.availability {
    color: var(--brand-muted);
    font-size: 0.9rem;
    margin: 1.25rem 0 0;
}

/* ── Features strip ─────────────────────────────────────────────────── */

.features {
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--brand-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.features article h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--brand-text);
}

.features article p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .features-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .features { padding: 2.5rem 0 3rem; }
}

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

.site-footer {
    border-top: 1px solid var(--brand-border);
    background: #fff;
}

.site-footer .shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--brand-muted);
    font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--brand-primary); }

@media (max-width: 540px) {
    .footer-row { flex-direction: column; align-items: flex-start; }
}
