/* ==========================================================================
   Mastpost design system (E0-T4)
   Light surface + cool-gray structure + signal-orange accent.
   Provisional; accent/finish may be tuned. Customer-facing brand strings come
   from BrandConfig, not CSS.
   ========================================================================== */

:root {
    --surface: #faf9f7;          /* page background — light, faintly warm */
    --surface-raised: #ffffff;   /* cards */
    --ink: #1a1a1a;              /* primary text */
    --ink-soft: #3a3a3a;
    --muted: #6b6b6b;
    --line: rgba(0, 0, 0, 0.10);
    --accent: #e8590c;           /* signal orange */
    --accent-ink: #c2410c;       /* darker accent for hover/text */
    --brand-dark: #1f2937;       /* cool slate — header accents, footer */
    --brand-darker: #111827;
    --radius: 10px;
    --container: 1080px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- Buttons (shared) ---- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn-primary:hover { box-shadow: 0 3px 12px rgba(232, 89, 12, 0.35); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 64px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}
.wordmark svg { color: var(--accent); display: block; }
.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
}
.site-nav .nav-cta:hover { box-shadow: 0 3px 12px rgba(232, 89, 12, 0.35); }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 1024px) {
    .nav-burger { display: block; cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--ink); user-select: none; }
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        background: var(--surface-raised);
        padding: 0.75rem 1.5rem 1rem;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }
    .site-nav a { padding: 0.6rem 0; width: 100%; }
    .site-nav .nav-cta { margin-top: 0.35rem; width: auto; }
    .nav-toggle:checked ~ .site-nav { display: flex; }
}

main { min-height: 60vh; }

/* ---- Footer ---- */
.site-footer { background: var(--brand-darker); color: #cbd5e1; margin-top: 4rem; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.footer-brand .wordmark-light { color: #fff; font-weight: 800; font-size: 1.25rem; }
.footer-brand p { color: #94a3b8; margin: 0.5rem 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #cbd5e1; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}
.footer-legal nav { display: flex; gap: 1.25rem; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #fff; }

/* ---- Framework: error UI + validation (kept from template) ---- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ---- Content pages (about / contact / faq / legal) ---- */
.page-hero { text-align: center; padding: 3.25rem 0 1rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 auto 0.5rem; max-width: 20ch; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 60ch; }

.prose { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.prose h2 { margin: 2rem 0 0.5rem; font-size: 1.4rem; }
.prose p { color: var(--ink-soft); }
.prose a { font-weight: 600; }

.faq-list { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.faq-list summary { font-weight: 600; cursor: pointer; }
.faq-list details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

.cta-band { text-align: center; padding: 1rem 1.5rem 3.5rem; }
.cta-band .btn { margin: 0 0.35rem; }

/* ---- Forms ---- */
.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; max-width: 520px; }
.form-row label { font-weight: 600; font-size: 0.95rem; }
.form-input { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface-raised); color: var(--ink); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.12); }
.contact-sent { background: #e6f4ea; border: 1px solid #b7e0c4; border-radius: 10px; padding: 1.25rem; color: #1e5b34; }
.contact-sent p { margin: 0.5rem 0 0; }

/* ---- Blog ---- */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; padding-top: 1rem; padding-bottom: 3rem; }
.blog-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.12s ease; }
.blog-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.blog-date { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.blog-card h2 { font-size: 1.25rem; margin: 0.4rem 0 0.5rem; }
.blog-card p { color: var(--ink-soft); margin: 0 0 0.75rem; }
.blog-readmore { color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; }
.blog-article { max-width: 720px; padding-top: 2.5rem; padding-bottom: 3rem; }
.blog-back { color: var(--muted); font-weight: 500; }
.blog-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1rem 0 0.5rem; }
.blog-meta { color: var(--muted); margin: 0 0 1.5rem; }
.blog-body { font-size: 1.08rem; line-height: 1.7; }
.blog-body h2 { font-size: 1.35rem; margin: 1.75rem 0 0.5rem; }
.blog-body p { margin: 0 0 1rem; color: var(--ink-soft); }
.blog-cta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.blog-cta p { color: var(--muted); margin-bottom: 0.75rem; }
.blog-cta .btn { margin: 0 0.25rem; }

/* Blog post inline example figures — reusable "show, don't tell" visuals (illustrative mockups).
   Posts can also reuse the .fa-ai / .fa-report / .ci-comp mockups from the marketing sections. */
.post-fig { margin: 1.6rem 0; }
.post-fig-cap { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 0.55rem; font-style: italic; }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,0.10); padding: 1.25rem 1.4rem; text-align: left; }
.ex-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.ex-card-title { font-weight: 700; }
.ex-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(46,125,50,0.12); color: #2e7d32; white-space: nowrap; }
.ex-done { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.ex-done li { padding-left: 1.5rem; position: relative; margin-bottom: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.ex-done li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.ex-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 1rem; text-align: center; }
.ex-metric-num { font-size: 1.4rem; font-weight: 800; color: #2e7d32; line-height: 1.1; }
.ex-metric-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.2rem; }

/* ---- Service detail (/services/{slug}) ---- */
.svc { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem 3.5rem; }
.svc-back { color: var(--muted); font-weight: 500; }
.svc h2 { font-size: 1.4rem; margin: 1.75rem 0 0.5rem; }
.svc-why { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 0.5rem; }
.svc-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.svc-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; color: var(--ink-soft); }
.svc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.svc-list.deliver li::before { content: "★"; }
.svc-cta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.svc-cta p { color: var(--muted); margin-bottom: 0.75rem; }
.svc-cta .btn { margin: 0 0.25rem; }
.svc-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.svc-related h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.svc-related > p { color: var(--ink-soft); margin: 0 0 1rem; }
.svc-related-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.svc-related-links a { color: var(--accent); font-weight: 600; }
.svc-related-links a:hover { text-decoration: underline; }
.svc-hub-verticals .svc-related-links { justify-content: center; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .svc-cols { grid-template-columns: 1fr; } }

/* ---- For Agencies (/for-agencies) ---- */
.fa-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 800; text-transform: none; letter-spacing: 0.02em; padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 1rem; }
.page-hero .fa-badge { color: #fff; }
.fa-section { padding: 3rem 0; }
.fa-section.fa-alt { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fa-section.fa-sample { background: rgba(232, 89, 12, 0.05); border-top: 1px solid rgba(232, 89, 12, 0.2); border-bottom: 1px solid rgba(232, 89, 12, 0.2); }
.fa-sample-steps { max-width: 600px; }
.fa-narrow { max-width: 760px; }
.fa-section h2 { text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 1rem; }
.fa-section p { color: var(--ink-soft); }
.fa-center { text-align: center; max-width: 60ch; margin: 1.5rem auto 0; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.fa-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.fa-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.fa-card p { margin: 0; color: var(--ink-soft); }
.fa-steps { max-width: 680px; margin: 1rem auto 0; padding-left: 1.25rem; }
.fa-steps li { margin-bottom: 1rem; color: var(--ink-soft); }
.fa-dont { max-width: 680px; margin: 1rem auto 0; color: var(--ink-soft); }
.fa-final { text-align: center; }
.fa-final h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }

/* How it works — steps beside a sample-report graphic */
.fa-how { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; margin-top: 1rem; }
.fa-how .fa-steps { margin: 0; max-width: none; }
@media (max-width: 820px) { .fa-how { grid-template-columns: 1fr; gap: 1.75rem; } }

.fa-report { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,0.10); padding: 1.25rem 1.4rem; }
.fa-report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 0.5rem; }
.fa-report-title { font-weight: 800; font-size: 1.05rem; }
.fa-report-sub { color: var(--muted); font-size: 0.76rem; margin-top: 0.1rem; }
.fa-report-stars { font-size: 0.95rem; color: #e8a300; white-space: nowrap; }
.fa-report-stars .dim { color: var(--line); }
.fa-report-stars b { color: var(--ink); margin-left: 0.25rem; }
.fa-report-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0.95rem 0 0.45rem; }
.fa-report-themes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fa-report-themes .theme { font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.fa-report-themes .theme.up { background: #e6f4ea; color: #1e7a3d; }
.fa-report-themes .theme.down { background: #fdecec; color: #b3261e; }
.fa-report-themes .theme.flat { background: #eef1f3; color: #5b6670; }
.fa-report-spark { width: 100%; height: 42px; display: block; color: var(--accent); }
.fa-report-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.fa-bar-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--ink-soft); }
.fa-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fa-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.fa-bar.comp i { background: #9aa3ad; }
.fa-report-foot { margin-top: 0.95rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--muted); text-align: center; }

/* Sample AI overview (comparative analysis) */
.fa-ai-lead { text-align: center; max-width: 62ch; margin: 2.75rem auto 0; }
.fa-ai-lead h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin: 0 0 0.5rem; }
.fa-ai-lead p { color: var(--ink-soft); margin: 0; }
.fa-ai { max-width: 880px; margin: 1.5rem auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,0.12); padding: 1.5rem 1.6rem; text-align: left; }
.fa-ai-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.fa-ai-spark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fbe7da; color: var(--accent); font-size: 1.05rem; flex: none; }
.fa-ai-title { font-weight: 800; font-size: 0.95rem; }
.fa-ai-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }
.fa-ai-body p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 1.15rem; }
.fa-ai-body strong { color: var(--ink); }
.fa-ai-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.15rem; }
.fa-ai-col h4 { margin: 0 0 0.5rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fa-ai-col.win h4 { color: #1e7a3d; }
.fa-ai-col.risk h4 { color: #b3261e; }
.fa-ai-col.move h4 { color: var(--accent); }
.fa-ai-col ul { list-style: none; margin: 0; padding: 0; }
.fa-ai-col li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.84rem; padding: 0.32rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.fa-ai-col li:last-child { border-bottom: 0; }
.fa-ai-col li span { color: var(--muted); font-weight: 700; font-size: 0.78rem; white-space: nowrap; }
.fa-ai-col.win li span { color: #1e7a3d; }
.fa-ai-col.risk li span { color: #b3261e; }
.fa-ai-col.move p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.fa-ai-foot { margin-top: 1.15rem; font-size: 0.73rem; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .fa-ai-cols { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---- Competitive-intelligence: tracked-competitor card (used on home + agency) ---- */
.ci-comp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,0.10); padding: 1.25rem 1.4rem; }
.ci-comp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; margin-bottom: 0.85rem; }
.ci-comp-name { font-weight: 800; font-size: 1.05rem; }
.ci-comp-meta { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.ci-comp-sent { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.95rem; }
.ci-comp-sentbar { flex: 1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ci-comp-sentbar i { display: block; height: 100%; background: #1e7a3d; border-radius: 999px; }
.ci-comp-sentval { font-size: 0.74rem; font-weight: 700; color: #1e7a3d; white-space: nowrap; }
.ci-comp-block + .ci-comp-block { margin-top: 0.8rem; }
.ci-comp-label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 0.45rem; }
.ci-comp-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---- Competitive-intelligence: "how it's built" engine strip (used on home + agency) ---- */
.ci-engine { display: flex; align-items: stretch; justify-content: center; gap: 0.6rem; flex-wrap: wrap; max-width: 960px; margin: 2rem auto 0; }
.ci-engine-step { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 0.85rem 1rem; flex: 1 1 200px; }
.ci-engine-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.ci-engine-step strong { display: block; font-size: 0.9rem; color: var(--ink); }
.ci-engine-step span { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.15rem; }
.ci-engine-arrow { align-self: center; color: var(--muted); font-weight: 700; }
@media (max-width: 700px) { .ci-engine-arrow { display: none; } }

/* Competitive-intelligence chips (self-contained, used anywhere .ci-comp appears) */
.ci-chip { font-size: 0.74rem; font-weight: 600; padding: 0.18rem 0.6rem; border-radius: 999px; }
.ci-chip.up { background: #e6f4ea; color: #1e7a3d; }
.ci-chip.down { background: #fdecec; color: #b3261e; }

/* ---- /services/competitor-intelligence — expanded showcase ---- */
.svc-ci { max-width: 940px; margin: 0 auto; padding: 1.5rem 1.5rem 0.5rem; }
.svc-ci-intro { max-width: 70ch; margin: 0 auto 1rem; text-align: center; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.6; }
.svc-ci-intro strong { color: var(--ink); }
.svc-ci-h { text-align: center; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.5rem 0 1rem; }
.svc-ci .fa-ai, .svc-ci .ci-engine { margin-left: auto; margin-right: auto; }
.svc-ci .ci-engine { margin-top: 0; }
.svc-ci-side { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0 0 1rem; }
.svc-ci-avail { text-align: center; max-width: 64ch; margin: 2.25rem auto 0; color: var(--muted); font-size: 0.92rem; }
.svc-ci-avail strong { color: var(--ink); }
.ci-lens-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 680px; margin: 0 auto; }
.ci-lens { font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); background: rgba(232, 89, 12, 0.07); border: 1px solid rgba(232, 89, 12, 0.22); padding: 0.32rem 0.8rem; border-radius: 999px; }
.ci-trend { max-width: 480px; margin: 1.5rem auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1rem 1.25rem; }
.ci-trend .fa-report-label { margin-top: 0; }
.ci-trend .fa-report-spark { color: #b3261e; }
.ci-trend-foot { font-size: 0.8rem; color: #b3261e; font-weight: 600; margin-top: 0.4rem; }

/* ---- Shared add-on cards (clickable) — used on /packages and landing pages ---- */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.addon-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); padding: 1.1rem; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.addon-card[open] { border-color: var(--accent); box-shadow: 0 6px 20px rgba(232, 89, 12, 0.10); }
.addon-card > summary { list-style: none; cursor: pointer; }
.addon-card > summary::-webkit-details-marker { display: none; }
.addon-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.addon-name { font-weight: 700; }
.addon-price { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.addon-note { color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 0.6rem; }
.addon-more { font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.addon-card[open] .addon-more { display: none; }
.addon-detail { margin-top: 0.4rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.addon-detail p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.6rem; line-height: 1.5; }
.addon-avail { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Anchor offset so the sticky header doesn't cover the comparison table */
#compare { scroll-margin-top: 90px; }

/* ---- Checkout (/checkout/{tier}) ---- */
.co { padding: 3rem 0 4rem; max-width: 680px; }
.co a.cd-back { display: inline-block; margin-bottom: 0.5rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.co a.cd-back:hover { color: var(--accent); }
.co h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0.5rem 0; }
.co-base { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 2rem; }
.co-base strong { color: var(--ink); }
.co-addons h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.co-addons-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.co-addon-list { display: flex; flex-direction: column; gap: 0.6rem; }
.co-addon { display: flex; align-items: center; gap: 0.85rem; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.co-addon:hover { border-color: var(--accent); }
.co-addon.on { border-color: var(--accent); background: rgba(232, 89, 12, 0.05); }
.co-check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; font-weight: 800; }
.co-addon.on .co-check { background: var(--accent); border-color: var(--accent); }
.co-addon-main { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.co-addon-name { font-weight: 700; }
.co-addon-note { color: var(--muted); font-size: 0.82rem; }
.co-addon-price { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.co-addon.co-loc { cursor: default; }
.co-stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.co-stepper button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.co-stepper button:hover:not(:disabled) { border-color: var(--accent); }
.co-stepper button:disabled { opacity: 0.4; cursor: default; }
.co-stepper-n { min-width: 1.4rem; text-align: center; font-weight: 700; }
.co-summary { margin: 1.75rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); padding: 1.1rem 1.25rem; }
.co-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; font-size: 0.95rem; }
.co-row.co-muted { color: var(--muted); font-size: 0.85rem; }
.co-row.co-row-addon { color: var(--ink-soft); font-size: 0.9rem; }
.co-row.co-total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.75rem; font-weight: 800; font-size: 1.05rem; }
.co-row.co-total small { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.co-testnote { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; color: var(--muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.co-go { width: 100%; }

/* ---- Ops console (internal, dev-only) ---- */
.ops-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ops-table th, .ops-table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); }
.ops-table thead th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ops-table select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

.ops-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ops-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); padding: 1.1rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.12s ease; }
.ops-card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.ops-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.ops-card-name { font-weight: 700; font-size: 1.05rem; }
.ops-card-tier { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); font-weight: 700; }
.ops-card-meta { display: flex; flex-direction: column; gap: 0.1rem; color: var(--muted); font-size: 0.85rem; margin-top: 0.4rem; }
.ops-card-extras { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }
.ops-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.72rem; color: var(--ink-soft); }
.ops-card-counts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.ops-count { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 6px; }
.ops-count.waiting { background: rgba(232, 89, 12, 0.1); color: var(--accent-ink); }
.ops-count.ready { background: #eef2ff; color: #3b4fb3; }
.ops-count.prog { background: #fff4e0; color: #9a6700; }
.ops-count.done { background: #e6f4ea; color: #1e7a3d; }

.ops-status { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.5rem; border-radius: 6px; white-space: nowrap; }
.ops-status.waiting { background: rgba(232, 89, 12, 0.1); color: var(--accent-ink); }
.ops-status.ready { background: #eef2ff; color: #3b4fb3; }
.ops-status.prog { background: #fff4e0; color: #9a6700; }
.ops-status.review { background: #fef3c7; color: #92400e; }
.ops-status.active { background: #e6f4ea; color: #1e7a3d; }
.ops-status.done { background: #eef1f3; color: #556; }
.ops-status.blocked { background: #fdecec; color: #b3261e; }
.ops-status.muted { background: #eef1f3; color: #889; }

.ops-work-status { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; }
.ops-work-status label { font-weight: 600; }
.ops-work-status select { padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.ops-work-h2 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.ops-inputs { margin: 0; }
.ops-inputs > div { display: flex; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.ops-inputs dt { font-weight: 600; min-width: 200px; margin: 0; color: var(--ink-soft); }
.ops-inputs dd { margin: 0; white-space: pre-wrap; }
.ops-setup { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface-raised); }
.ops-setup summary { font-weight: 600; cursor: pointer; }
.ops-setup h4 { margin: 1rem 0 0.25rem; }

.ops-deliverables { list-style: none; padding: 0; margin: 0.5rem 0; }
.ops-deliverables li { padding: 0.3rem 0; }
.ops-deliverables a { font-weight: 600; }
.ops-deliv-add { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.ops-deliv-input { flex: 1; min-width: 200px; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
