/* ==========================================================================
   Business application page-specific styles — Pulse Intelligence
   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 predictive-forecast mockup -
   Rebuilt 2026-08-16, Track B hero-visual audit (Cluster B fix): replaces
   the generic directory-row shape with a solid "actual" trend line
   continuing into a dashed "predicted" segment — grounded in this page's
   real copy ("executive dashboards, predictive forecasts, and AI-powered
   recommendations"). Deliberately distinct from prime-intelligence's
   donut+bars treatment; specifically visualizes "predictive," the
   differentiating word in this page's own copy. */

.piv-fallback {
    position: absolute;
    inset: 0;
}

.piv-forecast {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.piv-forecast-svg {
    width: 100%;
    height: 70%;
}

.piv-forecast-actual {
    stroke: var(--da-coral-400);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piv-forecast-predicted {
    stroke: rgba(232, 168, 124, 0.5);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 4 4;
}

.piv-forecast-dot {
    fill: var(--da-coral-400);
}

.piv-badge-top {
    top: -6%;
    right: 4%;
}

.piv-badge-top i {
    color: #E8A87C;
}

.piv-badge-bottom {
    bottom: -6%;
    left: 6%;
}

.piv-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);
}

/* ---- Intelligence Domains showcase (unique to this page) ---- */

.app-domains {
    padding: 70px 0;
    background: var(--da-gray-100);
}

.app-domains-stats {
    display: flex;
    gap: 3rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}

.app-domains-stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--da-coral-600);
    line-height: 1;
}

.app-domains-stat-label {
    font-size: 0.9rem;
    color: var(--da-gray-500);
    margin-top: 0.35rem;
}

.domain-card {
    background: var(--da-white);
    border: 1px solid var(--da-gray-300);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(8, 25, 47, 0.1);
    border-color: var(--da-coral-600);
}

.domain-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.domain-title {
    font-weight: 700;
    color: var(--da-navy-900);
    font-size: 1rem;
    line-height: 1.35;
}

.domain-count {
    flex-shrink: 0;
    background: var(--da-coral-100);
    color: var(--da-coral-700);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
}

.domain-text {
    font-size: 0.88rem;
    color: var(--da-gray-500);
    line-height: 1.55;
    margin-bottom: 0;
}

.app-domains-note {
    font-size: 0.85rem;
    color: var(--da-gray-500);
    font-style: italic;
    margin-top: 2rem;
}

/* ---- 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;
    }

    .piv-badge {
        padding: 0.5rem 0.8rem;
    }

    .piv-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;
    }
}
