/* ==========================================================================
   Business application page-specific styles — Pulse Processing
   Uses tokens from css/brand-v1.6.css. Coral accent throughout (Pulse).
   Class names use a generic ".app-" prefix so this file is the reusable
   template for all 24 business-application pages — copy, recolor
   (Indigo <-> Coral), and re-point content for the next application.
   ========================================================================== */

/* ---- Breadcrumb ---- */

/* Structural merge (2026-08-16, Track B): breadcrumb moved inside
   .da-hero--compact (see dataartha.css), so it shares one box and one
   continuous 135deg gradient with the hero — no separate background to
   keep in sync. Two prior attempts (flat navy-700, then a copied gradient
   on the separate box) both failed under computed math — see
   docs/known-issues.md for the full write-up. .da-hero--compact's
   padding-top now absorbs the fixed-nav clearance this rule used to
   provide alone; this rule's own margin-bottom preserves the prior visual
   gap before the H1 row. */
.app-breadcrumb {
    margin-bottom: 64px;
    font-size: 0.85rem;
}

.app-breadcrumb a {
    color: color-mix(in srgb, var(--da-white) 70%, transparent);
    text-decoration: none;
    font-weight: 500;
}

.app-breadcrumb a:hover {
    color: var(--da-white);
    text-decoration: underline;
}

.app-breadcrumb i {
    font-size: 0.65rem;
    margin: 0 0.5rem;
    color: color-mix(in srgb, var(--da-white) 70%, transparent);
    vertical-align: middle;
}

.app-breadcrumb span {
    color: var(--da-white);
    font-weight: 600;
}

/* ---- Hero ---- */

/* ---- Hero visual: browser-chrome card with a yield/batch-progress mockup -
   Rebuilt 2026-08-16, Track B hero-visual audit (Cluster B fix): replaces
   the generic directory-row shape with a yield gauge (ring) + batch
   progress bar — grounded in this page's real copy ("production planning,
   work orders, batch processing, yield, and resource utilisation"). */

.ppcv-fallback {
    position: absolute;
    inset: 0;
}

.ppcv-yield {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.ppcv-yield-gauge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--da-coral-400) 0% 87%, rgba(255, 255, 255, 0.1) 87% 100%);
    position: relative;
}

.ppcv-yield-gauge::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--da-navy-900);
}

.ppcv-yield-track {
    width: 80%;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ppcv-yield-fill {
    display: block;
    height: 100%;
    width: 62%;
    border-radius: 5px;
    background: var(--da-coral-400);
}

.ppcv-badge-top {
    top: -6%;
    right: 4%;
}

.ppcv-badge-top i {
    color: #E8A87C;
}

.ppcv-badge-bottom {
    bottom: -6%;
    left: 6%;
}

.ppcv-badge-bottom i {
    color: #3FBF6F;
}

/* ---- Shared section label / title pattern ---- */

/* ---- Overview ---- */

.app-intro {
    padding: 70px 0 20px;
    background: var(--da-white);
}

.app-intro-text {
    font-size: 1.05rem;
    color: var(--da-gray-500);
    line-height: 1.8;
    max-width: 820px;
    margin-bottom: 1.25rem;
}

.app-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

/* ---- Key Features ---- */

.app-features {
    padding: 60px 0 70px;
    background: var(--da-gray-100);
}

/* ---- Business Value ---- */

.app-value {
    background: var(--da-navy-900);
    padding: 60px 0;
}

/* ---- Platform Integrations & Deployment ---- */

.app-foundation {
    padding: 70px 0;
    background: var(--da-white);
}

.app-foundation-text {
    font-size: 1rem;
    color: var(--da-gray-500);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.app-foundation-item {
    background: var(--da-gray-100);
    border: 1px solid var(--da-gray-300);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 100%;
    transition: border-color 0.25s ease;
}

.app-foundation-item:hover {
    border-color: var(--da-coral-600);
}

.app-foundation-item i {
    font-size: 1.1rem;
    color: var(--da-coral-600);
    flex-shrink: 0;
}

.app-foundation-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--da-navy-900);
    line-height: 1.3;
}

/* ---- Target Industries & Users ---- */

.app-built-for {
    padding: 70px 0;
    background: var(--da-gray-100);
}

.app-tag-link {
    text-decoration: none;
}

/* ---- Why This Application ---- */

.app-why {
    padding: 70px 0;
    background: var(--da-white);
}

/* ---- Closing CTA band ---- */

.app-cta-band {
    background: var(--da-navy-700);
    padding: 60px 0;
}

.app-cta-content {
    text-align: center;
    color: var(--da-white);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {

    .app-hero-title {
        font-size: 2rem;
    }

    .app-hero-visual {
        max-width: 380px;
        margin-top: 1rem;
    }

    .ppcv-badge {
        padding: 0.5rem 0.8rem;
    }

    .ppcv-badge-line {
        width: 44px;
    }

    .app-section-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 575.98px) {
    .app-hero-title {
        font-size: 1.65rem;
    }

    .app-section-title {
        font-size: 1.4rem;
    }

    .app-feature-card {
        padding: 1.4rem;
    }

    .app-cta-title {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-feature-card,
    .app-value-item,
    .app-why-item,
    .app-tag,
    .app-deploy-chip,
    .app-btn-primary,
    .app-btn-secondary,
    .app-cta-actions a {
        transition: none;
    }

    .app-feature-card:hover,
    .app-value-item:hover,
    .app-why-item:hover,
    .app-deploy-chip:hover,
    .app-btn-primary:hover,
    .app-cta-actions a:hover {
        transform: none;
    }
}
