/* ============================
   MERDIGIT — SOLUTION / WORK PAGES
   Shared styles for /solutions/* and /work: the placeholder shell
   (still used by pages not yet built out) plus the generic content
   blocks (hero CTAs, step lists, platform cards, closing CTA) used
   by pages that are.
   ============================ */
.page-shell-hero {
    padding: 110px 0 70px;
    /* No fill of its own: the hero shows the body's brand gradient, like the ERP, Automation and AI
       heroes, so it flows into the next section instead of ending in a hard edge. */
    min-height: 48vh;
}
.page-shell-inner { max-width: 720px; }
.page-shell-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 16px 0 20px;
    color: #fff;
}
.page-shell-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 28px;
}
.page-shell-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primirey);
    border: 1px solid rgba(208, 46, 244, 0.4);
    background: rgba(208, 46, 244, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.page-shell-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius);
}
.page-shell-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.page-shell-links a {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.page-shell-links a:hover {
    border-color: var(--primirey);
    color: var(--primirey);
}
.page-shell-back { margin-top: 40px; }
.page-shell-back a {
    font-size: 14px;
    color: var(--primirey);
}

/* ---- Hero CTAs (built-out solution pages) ---- */
.page-shell-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}
.page-shell-supporting {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}
.solution-secondary-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: var(--transition);
}
.solution-secondary-link:hover { color: var(--primirey); border-color: var(--primirey); }

/* ---- Generic solution-page section rhythm ---- */
.solution-section { padding: 72px 0; position: relative; }
.solution-section:nth-of-type(even) { background: rgba(255, 255, 255, 0.028); }
.solution-section:nth-of-type(3n) { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
/* One accent glow per page (behind the platform/capability grid — the
   commercially important moment on each solution page) for visual
   rhythm within the existing purple brand atmosphere, not a new color. */
.solution-section--glow { overflow: hidden; }
/* ::after (not ::before) — ::before is reserved for the shared
   background-image readability overlay (public/css/app.css), which
   must win regardless of whether a bg_image happens to be set here. */
.solution-section--glow::after {
    content: '';
    position: absolute;
    top: -160px; left: 50%;
    width: 900px; height: 460px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(208, 46, 244, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.solution-section--glow > .container { position: relative; z-index: 1; }

/* ---- What Merdigit Does: numbered steps ---- */
.solution-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    margin-top: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.solution-step { display: flex; gap: 16px; }
.solution-step-num {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--primirey);
}
.solution-step h4 {
    font-family: var(--font-display);
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}
.solution-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Platform cards ---- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 12px;
}
.platform-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}
.platform-role {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primirey);
    margin-bottom: 8px;
}
.platform-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}
.platform-card p {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}
.platform-card-logo {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
}

/* ---- Demo vs implementation messaging (Phase 16) ---- */
.erp-demo-note {
    display: block;
    max-width: 640px;
    margin: 28px auto 0;
    text-align: center;
    line-height: 1.6;
}

/* ---- Agent status badges (claims discipline: Available vs In Development / Future) ---- */
.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.agent-status--available {
    color: var(--primirey);
    background: rgba(208, 46, 244, 0.1);
    border: 1px solid rgba(208, 46, 244, 0.35);
}
.agent-status--pending {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

/* ---- Single highlighted agent (Available AI Agents) ---- */
.agent-feature {
    max-width: 640px;
    margin: 24px auto 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
    text-align: center;
}
.agent-feature h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
}
.agent-feature p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.agent-feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.agent-feature-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius);
}

/* ---- Vertical labeled flow (Customer Support use case) ---- */
.usecase-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 440px;
    margin: 20px auto 0;
}
.usecase-step {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    width: 100%;
}
.usecase-connector {
    color: var(--primirey);
    opacity: 0.7;
    font-size: 16px;
    line-height: 1;
    padding: 8px 0;
}
.usecase-connector::before { content: '\2193'; }

/* ---- Process flow (e.g. Map / Connect / Automate / Optimize) ---- */
.flow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 16px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.flow-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 14px;
}
.flow-step .solution-step-num { margin: 0 auto 14px; }
.flow-step h4 {
    font-family: var(--font-display);
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}
.flow-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}
.flow-connector {
    flex: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 18px;
    color: var(--primirey);
    opacity: 0.6;
    font-size: 18px;
    line-height: 1;
}
.flow-connector::before { content: '\2192'; }

/* ---- Connected-system AI dual CTA ---- */
.layer-link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}
.layer-link--external { color: var(--white); opacity: 0.85; }
.layer-link--external:hover { color: var(--primirey); opacity: 1; }

/* ---- Closing CTA ---- */
.solution-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.solution-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    color: #fff;
}
.solution-cta p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .page-shell-hero { padding: 100px 0 50px; }
    .solution-section { padding: 50px 0; }
    .solution-steps { grid-template-columns: 1fr; gap: 22px; }
    .platform-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; gap: 24px; max-width: 420px; }
    .flow-step { padding: 0; }
    .flow-connector { width: auto; padding-top: 0; transform: rotate(90deg); }
    .agent-feature { padding: 28px 22px; }
    .usecase-flow { max-width: 100%; }
}
