/* ---------------------------------------------------------------------------
   Marketing pages (features, about, blog, contact) in the homepage's design
   language. Tokens, header and layout reset come from site.css.
--------------------------------------------------------------------------- */
.sp-page {
    --sp-ink: #05060F;
    --sp-muted: #4a4f6b;
    --sp-surface: #ffffff;
    --sp-page-bg: #f0f1fd;
    --sp-line: rgba(34, 53, 221, .12);
    --sp-brand: #2235DD;
    --sp-brand-soft: rgba(34, 53, 221, .08);
    --sp-radius: 18px;

    font-family: var(--font-body);
    background: var(--sp-page-bg);
    color: var(--sp-ink);
}

body.dark-theme .sp-page {
    --sp-ink: #e4e7fd;
    --sp-muted: #b8bbd5;
    --sp-surface: #1a1d2e;
    --sp-page-bg: #0a0b14;
    --sp-line: rgba(228, 231, 253, .12);
    --sp-brand: #5b8af5;
    --sp-brand-soft: rgba(91, 138, 245, .14);
}

.sp-page * { box-sizing: border-box; }
.sp-page-wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 28px); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.sp-page-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(70px, 10vw, 120px) 0 clamp(46px, 6vw, 72px);
    background:
        radial-gradient(900px 500px at 50% -20%, rgba(53, 100, 228, .22), transparent 62%),
        var(--sp-page-bg);
}

body.dark-theme .sp-page-hero {
    background:
        radial-gradient(900px 520px at 50% -18%, rgba(91, 138, 245, .26), transparent 62%),
        var(--sp-page-bg);
}

.sp-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--sp-brand-soft);
    color: var(--sp-brand);
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 18px;
}

.sp-page h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    line-height: 1.22;
    margin: 0 auto 16px;
    max-width: 900px;
    color: var(--sp-ink);
}

.sp-page-lede {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.85;
    color: var(--sp-muted);
    max-width: 720px;
    margin: 0 auto;
}

.sp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

.sp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .98rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.sp-btn-primary { background: linear-gradient(135deg, #2235DD, #3564e4); color: #fff; box-shadow: 0 12px 30px rgba(34, 53, 221, .32); }
.sp-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 18px 38px rgba(34, 53, 221, .42); }
.sp-btn-ghost { background: transparent; color: var(--sp-brand); border: 2px solid var(--sp-brand); }
.sp-btn-ghost:hover { background: var(--sp-brand); color: #fff; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sp-section { padding: clamp(48px, 7vw, 86px) 0; }
.sp-section-alt { background: var(--sp-surface); }
body.dark-theme .sp-section-alt { background: #131739; }

.sp-section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 4vw, 48px); }
.sp-page h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--sp-ink);
}
.sp-section-head p { color: var(--sp-muted); font-size: 1.02rem; line-height: 1.8; margin: 0; }

.sp-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.sp-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .sp-grid, .sp-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sp-grid, .sp-grid-2 { grid-template-columns: 1fr; } }

.sp-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: 26px 24px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.dark-theme .sp-section-alt .sp-card { background: #1a1d2e; }
.sp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 53, 221, .3);
    box-shadow: 0 18px 40px rgba(34, 53, 221, .14);
}
body.dark-theme .sp-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .5); border-color: rgba(91, 138, 245, .4); }

.sp-card-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sp-brand-soft);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.sp-card h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--sp-ink);
}
.sp-card p { color: var(--sp-muted); font-size: .93rem; line-height: 1.75; margin: 0; }

/* Compact tick list used for capability round-ups */
.sp-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.sp-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--sp-ink); font-size: .96rem; line-height: 1.6; }
.sp-ticks .sp-tick { color: #10b981; font-weight: 900; flex: 0 0 auto; }

.sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
@media (max-width: 900px) { .sp-split { grid-template-columns: 1fr; } }
.sp-split h2 { text-align: start; }
.sp-split p { color: var(--sp-muted); line-height: 1.85; }

.sp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .sp-stats { grid-template-columns: repeat(2, 1fr); } }
.sp-stat { text-align: center; padding: 22px 16px; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); }
.sp-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--sp-brand); }
.sp-stat span { color: var(--sp-muted); font-size: .88rem; }

/* ── Closing call to action ───────────────────────────────────────────── */
.sp-cta-band {
    margin: clamp(40px, 6vw, 70px) auto 0;
    max-width: 1160px;
    border-radius: 22px;
    padding: clamp(36px, 5vw, 60px) clamp(22px, 4vw, 40px);
    text-align: center;
    background: linear-gradient(135deg, #2235DD, #3564e4);
    color: #fff;
}
.sp-cta-band h2 { color: #fff; margin-bottom: 10px; }
.sp-cta-band p { color: rgba(255, 255, 255, .9); margin: 0 auto 22px; max-width: 620px; line-height: 1.8; }
.sp-cta-band .sp-btn { background: #fff; color: #2235DD; box-shadow: none; }
.sp-cta-band .sp-btn:hover { transform: translateY(-2px); color: #2235DD; }

/* ── Blog listing hero sits above the existing post grid ──────────────── */
body.sp-themed .sp-page-hero + .entry-content { padding-top: 0; }

/* ── Contact form card ────────────────────────────────────────────────── */
.sp-form-card {
    max-width: 720px;
    margin-inline: auto;
    background: var(--sp-surface);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius);
    padding: clamp(22px, 3vw, 36px);
}
body.dark-theme .sp-form-card { background: #1a1d2e; }
.sp-form-card .wpforms-field-label { color: var(--sp-ink) !important; font-weight: 700 !important; }
.sp-form-card .wpforms-field-sublabel,
.sp-form-card .wpforms-field-description { color: var(--sp-muted) !important; }
.sp-form-card input,
.sp-form-card textarea,
.sp-form-card select { width: 100%; }

/* ── Blog grid inherits the card treatment from site.css ──────────────── */
#sp-page-blog + .wp-block-uagb-post-grid,
body.sp-themed .uagb-post-grid { padding-block: clamp(20px, 4vw, 40px); }
