/* =============================================================================
   yak-seo.css — shared chrome for the server-rendered SEO pages
   (com.aldecorp.seo.SeoPageRenderer). Linked AFTER /css/yak-typography.css,
   which supplies the rem baseline + fluid clamp() heading scale.

   Self-contained and theme-aware via prefers-color-scheme (these are static
   documents — no cookie toggle). The product accent arrives as inline vars
   on :root (--seo-accent for light, --seo-accent-dark for dark); both must
   meet WCAG AA against their respective backgrounds.
   ============================================================================= */

:root {
    --seo-bg:        #ffffff;
    --seo-surface:   #f4f6fa;
    --seo-border:    rgba(17, 28, 51, 0.14);
    --seo-text:      #14213c;
    --seo-muted:     #3f4e68;   /* ≥ 7:1 on white */
    --seo-link:      var(--seo-accent, #1c5fd6);
    --seo-band-bg:   #0e1a2e;
    --seo-band-fg:   #e9edf4;
}
@media (prefers-color-scheme: dark) {
    :root {
        --seo-bg:      #0c1626;
        --seo-surface: #121d31;
        --seo-border:  rgba(255, 255, 255, 0.14);
        --seo-text:    #e9edf4;
        --seo-muted:   #aebbd2;  /* ≥ 7:1 on the dark bg */
        --seo-link:    var(--seo-accent-dark, #9ec1ff);
        --seo-band-bg: #060d18;
        --seo-band-fg: #e9edf4;
    }
}

body.seo-page {
    margin: 0;
    background: var(--seo-bg);
    color: var(--seo-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
}

.seo-page a { color: var(--seo-link); }
.seo-page a:focus-visible,
.seo-page .seo-btn:focus-visible {
    outline: 3px solid var(--seo-link);
    outline-offset: 2px;
}

/* ── Header bar ─────────────────────────────────────────────────────────── */
.seo-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 5vw;
    border-bottom: 1px solid var(--seo-border);
}
.seo-brand {
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--seo-text);
}
.seo-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-right: auto;
}
.seo-nav a { text-decoration: none; }
.seo-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.seo-btn {
    display: inline-block;
    background: var(--seo-accent, #1c5fd6);
    color: #ffffff !important;   /* accents are dark enough for white text (AA) */
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    text-decoration: none;
}
.seo-btn:hover { filter: brightness(1.12); }

/* ── Main content ───────────────────────────────────────────────────────── */
.seo-main {
    max-width: 68rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 5vw 3rem;
}
.seo-main h1 { margin-top: 0; }
.seo-lead { color: var(--seo-muted); max-width: 46em; }
.seo-main p { max-width: 46em; }
.seo-main ul li { margin-bottom: 0.35rem; }

.seo-features {
    columns: 2;
    column-gap: 2.5rem;
    padding-left: 1.2rem;
    max-width: 52em;
}
@media (max-width: 40rem) { .seo-features { columns: 1; } }

/* ── Plan cards ─────────────────────────────────────────────────────────── */
.seo-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}
.seo-plan {
    border: 1px solid var(--seo-border);
    border-radius: 12px;
    background: var(--seo-surface);
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
}
.seo-plan-highlight { border: 2px solid var(--seo-accent, #1c5fd6); }
.seo-plan h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.seo-plan ul { padding-left: 1.2rem; flex: 1 0 auto; }
.seo-price { font-size: 1.9rem; font-weight: 700; margin: 0.2rem 0 0.8rem; }
.seo-price-note { font-size: 0.95rem; font-weight: 400; color: var(--seo-muted); }
.seo-price-custom { font-size: 1.15rem; font-weight: 600; }

/* ── Card grid (integrations etc.) ──────────────────────────────────────── */
.seo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.1rem;
    margin: 1.6rem 0;
}
.seo-card {
    border: 1px solid var(--seo-border);
    border-radius: 12px;
    background: var(--seo-surface);
    padding: 1.1rem 1.2rem;
}
.seo-card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.seo-card p { margin: 0; color: var(--seo-muted); font-size: 0.98rem; }

/* ── CTA band + footer ──────────────────────────────────────────────────── */
.seo-band {
    background: var(--seo-band-bg);
    color: var(--seo-band-fg);
    text-align: center;
    padding: 2.2rem 5vw;
}
.seo-band p { font-size: 1.25rem; margin: 0 0 1rem; }

.seo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.2rem 5vw 2rem;
    border-top: 1px solid var(--seo-border);
    color: var(--seo-muted);
    font-size: 0.95rem;
}
.seo-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Wide content must scroll inside its container, never the page. */
.seo-main table { display: block; overflow-x: auto; }
