/* Hotel-inspired lower sections for the redesigned product and industry pages.
   This file is loaded only for the templates listed in header.php.
   Scope tokens and rules to content sections so hero styles remain independent. */
#datacrops-site :is(.wd-section, .pm-section, .dcp-section) {
    --dc-content-blue: #018bba;
    --dc-content-orange: #ff914d;
    --dc-content-line: #dce8ed;
    --dc-content-soft: #f7f9fa;
    --dc-content-card: #f7f9fa;
    --dc-content-panel: #f7f9fa;
    --wd-line: #dce8ed;
    --wd-surface: #f7f9fa;
    --pm-line: #dce8ed;
    --pm-surface: #f7f9fa;
    --dcp-line: #dce8ed;
    --dcp-surface: #f7f9fa;
    padding-block: calc(clamp(28px, 3.5vw, 44px) * var(--dc-section-space-before, 1)) calc(clamp(48px, 5.5vw, 76px) * var(--dc-section-space-after, 1));
    border-top: 1px solid var(--dc-content-line);
    color: #4d4d4d;
}

#datacrops-site :is(.wd-section--soft, .pm-section--soft, .dcp-section--soft, .pm-intelligence) {
    --dc-content-card: #fff;
    --dc-content-panel: #fff;
    background: #f7f9fa;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) > :is(.wd-shell, .pm-shell, .dcp-shell) {
    width: min(1220px, calc(100% - 80px));
    min-width: 0;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-section-head, .pm-section-head, .dcp-section-head) {
    margin-bottom: 34px;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-heading, .pm-section-heading, .dcp-section-head h2) {
    font-size: clamp(28px, 3vw, 36px) !important;
    letter-spacing: -.025em;
    line-height: 1.2 !important;
    white-space: normal;
    text-wrap: balance;
    color: #111;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-copy-stack, .pm-copy-stack) > p {
    font-size: 16px !important;
    line-height: 1.8 !important;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-eyebrow, .pm-eyebrow, .dcp-section-head .dcp-eyebrow) {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 7px 14px;
    border-radius: 50px;
    background: #eaf7fb;
    color: #01779f;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-eyebrow, .pm-eyebrow, .dcp-section-head .dcp-eyebrow)::before {
    content: none;
}

/* Keep the existing grid compositions and all of their content. */
#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card-grid, .wd-data-grid, .wd-use-grid, .wd-why-grid, .wd-trust-grid,
    .pm-card-grid, .pm-feature-grid, .pm-use-grid, .pm-audience-grid, .pm-why-grid,
    .dcp-capabilities, .dcp-features
) { gap: 20px; }

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card,
    .wd-three-flow article, .pm-info-card, .pm-feature-card, .pm-step, .pm-use-card,
    .pm-audience-card, .pm-why-card, .pm-workflow-copy-list li, .dcp-card, .dcp-why-list li
) {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--dc-content-line);
    border-radius: 20px;
    background: var(--dc-content-card);
    box-shadow: none;
    color: #4d4d4d;
    transform: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card, .wd-feature-card, .wd-step-card, .wd-step-item, .wd-data-card, .wd-use-card,
    .wd-trust-card, .wd-three-flow article, .pm-info-card, .pm-feature-card, .pm-step,
    .pm-use-card, .pm-audience-card, .pm-why-card, .pm-workflow-copy-list li, .dcp-card
) h3 {
    min-height: 0;
    margin-bottom: 12px;
    color: #111;
    font-size: 19px !important;
    line-height: 1.4 !important;
    letter-spacing: normal;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card,
    .wd-three-flow article, .pm-info-card, .pm-feature-card, .pm-step, .pm-use-card,
    .pm-audience-card, .pm-why-card, .pm-workflow-copy-list li, .dcp-card
) p {
    color: #4d4d4d;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

/* Keep card headings beside their existing icon tiles. */
#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card-heading, .pm-benefit-heading-row, .pm-card-heading-row, .pm-step-heading, .dcp-feature-heading
) {
    display: flex;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

#datacrops-site :is(.web-extraction-page, .price-monitoring-page, .dc-platform-page) :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card-heading, .pm-benefit-heading-row, .pm-card-heading-row, .pm-step-heading, .dcp-feature-heading
) h3 { min-width: 0; flex: 1; margin: 0; }

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card-icon, .pm-card-icon, .pm-benefit-card-icon, .pm-step-icon, .pm-why-icon,
    .pm-use-card > i, .pm-card-heading-row > i, .dcp-card-icon
) {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #eaf7fb;
    box-shadow: none;
    color: #018bba;
    font-size: 20px;
    line-height: 1;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card,
    .pm-info-card, .pm-feature-card, .pm-step, .pm-use-card, .pm-audience-card, .pm-why-card, .dcp-card
):nth-child(even) :is(
    .wd-card-icon, .pm-card-icon, .pm-benefit-card-icon, .pm-step-icon, .pm-why-icon,
    .pm-use-card > i, .pm-card-heading-row > i, .dcp-card-icon
) {
    background: #fff0e6;
    color: #a84b10;
}

#datacrops-site .pm-section .pm-feature-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#datacrops-site .pm-section .pm-feature-card > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

#datacrops-site .pm-section .pm-feature-card h3 { display: block; }

#datacrops-site .pm-section .pm-feature-card > .pm-card-heading-row {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin: 0;
}
#datacrops-site .pm-section .pm-card-heading-row > :is(.pm-card-icon, .pm-why-icon, i) { margin: 0; }

#datacrops-site .pm-section :is(.pm-feature-description, .pm-feature-best) { min-height: 0; }
#datacrops-site .wd-section .wd-benefit-card :is(.wd-benefit-desc, .wd-highlight-box) { min-height: 0; flex: initial; }

/* Retain every benefit and use-case note, with the Hotel divider treatment. */
#datacrops-site :is(.wd-section, .pm-section) :is(.wd-feature-card, .wd-benefit-card, .pm-info-card, .pm-feature-card) :is(
    .wd-business-benefit, .wd-highlight-box, .pm-benefit-highlight, .pm-feature-best
) {
    display: block;
    margin-top: auto;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--dc-content-line);
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

/* Larger copy, technology and workflow panels use the Hotel panel scale. */
#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-panel, .wd-workflow-panel, .wd-legal-panel, .wd-fit-panel, .pm-question-panel,
    .pm-workflow-panel, .pm-tech-card, .pm-fit-panel, .pm-intelligence-flow,
    .dcp-trust-panel, .dcp-diagram
) {
    min-width: 0;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--dc-content-line);
    border-radius: 26px;
    background: var(--dc-content-panel);
    box-shadow: none;
    color: #4d4d4d;
    transform: none;
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-panel--accent, .pm-question-panel, .pm-audience-card)::before { content: none; }

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.pm-tech-card--accent, .dcp-trust-panel) {
    background: linear-gradient(135deg, #edf9fc, #fff 55%, #fff2e9);
}

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-workflow-panel, .wd-legal-panel, .pm-workflow-panel, .pm-tech-card--accent, .pm-intelligence
) :is(h2, h3) { color: #111; }

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-workflow-panel, .wd-legal-panel, .pm-workflow-panel, .pm-tech-card--accent, .pm-intelligence
) :is(p, li) { color: #4d4d4d; }

#datacrops-site :is(.wd-section, .pm-section) :is(.wd-workflow li, .wd-pipeline > span, .wd-example-flow > span, .pm-workflow li, .pm-intelligence-flow > span) {
    min-width: 0;
    border: 1px solid var(--dc-content-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: #01779f;
    line-height: 1.6;
}

/* Override the existing inline white case-study text on the light panel. */
#datacrops-site .wd-section .wd-legal-panel p { color: #4d4d4d !important; }

#datacrops-site .pm-section.pm-intelligence :is(h2, h3) { color: #111; }
#datacrops-site .pm-section.pm-intelligence :is(p, li) { color: #4d4d4d; }

#datacrops-site .pm-section .pm-intelligence-flow > p { color: #4d4d4d; }
#datacrops-site .pm-section .pm-intelligence-flow > span > i { color: #018bba; }

#datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
    .wd-conclusion-box, .pm-panel-conclusion, .pm-fit-content, .dcp-callout
) {
    padding: 18px;
    border: 1px solid var(--dc-content-line);
    border-radius: 16px;
    background: #fff;
}

#datacrops-site :is(.wd-section, .pm-section) :is(.wd-table-wrap, .pm-table-wrap) {
    border-color: var(--dc-content-line);
    border-radius: 22px;
    box-shadow: none;
}

#datacrops-site :is(.wd-section, .pm-section) :is(.wd-table, .pm-table) th {
    padding: 20px 22px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.6;
    text-transform: uppercase;
}

#datacrops-site :is(.wd-section, .pm-section) :is(.wd-table, .pm-table) td {
    padding: 18px 22px;
    border-color: var(--dc-content-line);
    font-size: 15px;
    line-height: 1.7;
}

#datacrops-site .wd-section .wd-step-item {
    border-color: var(--dc-content-line);
    border-radius: 20px;
    background: var(--dc-content-card);
    box-shadow: none;
}

#datacrops-site .wd-section .wd-step-item summary { padding: 24px 64px 24px 24px; }
#datacrops-site .wd-section .wd-step-item summary .wd-card-heading { flex-direction: row; align-items: center; margin: 0; }
#datacrops-site .wd-section .wd-step-body { padding: 24px; }

#datacrops-site .dcp-section .dcp-capability {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: left;
}

#datacrops-site .dcp-section .dcp-capability .dcp-card-icon { margin: 0 0 20px; }
#datacrops-site .dcp-section .dcp-capability h3 { max-width: none; margin: 0 0 12px; }
#datacrops-site .dcp-section .dcp-capability-copy p { margin: 0; text-align: left; }

#datacrops-site :is(.wd-section, .pm-section) :is(.wd-icon-list li, .pm-data-list li, .pm-tech-list li) {
    border: 1px solid var(--dc-content-line);
    border-radius: 14px;
    background: #fff;
    color: #4d4d4d;
}

#datacrops-site .wd-section .wd-legal-panel .wd-check-list li::before {
    background: #eaf7fb;
    color: #018bba;
}

#datacrops-site .pm-section .pm-advantage-conclusion p { white-space: normal; }

@media (min-width: 1440px) {
    #datacrops-site :is(.wd-section, .pm-section, .dcp-section) > :is(.wd-shell, .pm-shell, .dcp-shell) {
        width: min(1220px, calc(100% - 120px));
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    #datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
        .wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card,
        .wd-three-flow article, .pm-info-card, .pm-feature-card, .pm-step, .pm-use-card,
        .pm-audience-card, .pm-why-card, .pm-workflow-copy-list li, .dcp-card, .dcp-why-list li
    ):is(:hover, :focus-within) {
        transform: translateY(-5px);
        border-color: #018bba;
        box-shadow: 0 18px 42px rgba(1, 139, 186, .16);
    }
}

@media (max-width: 700px) {
    #datacrops-site :is(.wd-section, .pm-section, .dcp-section) > :is(.wd-shell, .pm-shell, .dcp-shell) {
        width: calc(100% - 40px);
    }
    #datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(.wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card, .pm-info-card, .pm-feature-card, .pm-step, .pm-use-card, .pm-audience-card, .pm-why-card, .dcp-card) {
        padding: 24px;
    }
    #datacrops-site :is(.wd-section, .pm-section) :is(.wd-workflow-panel, .wd-legal-panel, .wd-fit-panel, .pm-workflow-panel, .pm-tech-card, .pm-fit-panel, .pm-intelligence-flow) {
        padding: 24px 20px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    #datacrops-site :is(.wd-section, .pm-section, .dcp-section) :is(
        .wd-card, .wd-feature-card, .wd-step-card, .wd-data-card, .wd-use-card, .wd-trust-card,
        .wd-three-flow article, .wd-step-item, .pm-info-card, .pm-feature-card, .pm-step,
        .pm-use-card, .pm-audience-card, .pm-why-card, .pm-workflow-copy-list li, .dcp-card, .dcp-why-list li
    ) {
        transform: none;
        box-shadow: none;
        transition: none;
    }
}

/* Retail workflow: readable introductory copy and Hotel-style heading dots. */
#datacrops-site .pm-section[aria-labelledby="actionable-intelligence-title"] .pm-section-copy {
    max-width: 1120px;
    margin-inline: auto;
    text-wrap: balance;
}

#datacrops-site .pm-section[aria-labelledby="actionable-intelligence-title"] .pm-workflow-copy-list h3 {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

#datacrops-site .pm-section[aria-labelledby="actionable-intelligence-title"] .pm-workflow-copy-list h3::before {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #018bba;
    content: "";
}

#datacrops-site .pm-section[aria-labelledby="actionable-intelligence-title"] .pm-workflow-copy-list li:nth-child(even) h3::before {
    background: #ff914d;
}

/* Ecommerce: show the existing six stages as a connected intelligence flow. */
#datacrops-site .wd-section .wd-intelligence-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border-color: #bde5f2;
    border-radius: 28px;
    background: linear-gradient(135deg, #edf9fc 0%, #fff 52%, #fff5ed 100%);
}

#datacrops-site .wd-section .wd-intelligence-panel::before {
    position: absolute;
    z-index: -1;
    top: -170px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(1, 139, 186, .05);
    pointer-events: none;
    content: "";
}

#datacrops-site .wd-section .wd-intelligence-head { max-width: 1000px; margin: 0 auto 30px; text-align: center; }
#datacrops-site .wd-section .wd-intelligence-head .wd-heading { max-width: none; }
#datacrops-site .wd-section .wd-intelligence-head .wd-section-copy { max-width: 920px; margin-inline: auto; text-wrap: balance; }

#datacrops-site .wd-section .wd-intelligence-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

#datacrops-site .wd-section .wd-intelligence-flow > article {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 152px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 22px;
    border-color: #dce8ed;
    border-radius: 20px;
    background: #fff;
    text-align: left;
}

#datacrops-site .wd-section .wd-intelligence-step-index {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    margin-bottom: 14px;
    padding: 4px 8px;
    border: 1px solid #dce8ed;
    border-radius: 50px;
    background: #f7f9fa;
    color: #01779f;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

#datacrops-site .wd-section .wd-intelligence-flow .wd-card-heading { min-height: 54px; margin: 0; }
#datacrops-site .wd-section .wd-intelligence-flow h3 { margin: 0; font-size: 18px !important; line-height: 1.4 !important; text-align: left; }
#datacrops-site .wd-section .wd-intelligence-flow > article:nth-child(even) .wd-card-icon { background: #fff0e6; color: #a84b10; }

#datacrops-site .wd-section .wd-intelligence-flow > article:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: calc(50% - 14px);
    right: -27px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #bde5f2;
    border-radius: 50%;
    background: #fff;
    color: #018bba;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    pointer-events: none;
    content: "\f061";
}

#datacrops-site .wd-section .wd-intelligence-flow > article:nth-child(3n)::after { display: none; }
#datacrops-site .wd-section .wd-intelligence-flow > article:last-child { border-color: #01779f; background: #01779f; box-shadow: 0 12px 28px rgba(1, 139, 186, .16); }
#datacrops-site .wd-section .wd-intelligence-flow > article:last-child h3 { color: #fff; }
#datacrops-site .wd-section .wd-intelligence-flow > article:last-child .wd-card-icon { background: rgba(255, 255, 255, .16); color: #fff; }
#datacrops-site .wd-section .wd-intelligence-flow > article:last-child .wd-intelligence-step-index { border-color: rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .08); color: #fff; }

#datacrops-site .wd-section .wd-intelligence-outcome { margin-top: 28px; padding-top: 24px; border-top: 1px solid #dce8ed; text-align: center; }
#datacrops-site .wd-section .wd-intelligence-outcome p { max-width: 1000px; margin: 0 auto; font-size: 15px !important; line-height: 1.75 !important; }
#datacrops-site .wd-section .wd-intelligence-outcome p + p { margin-top: 12px; font-size: 14px !important; }

@media (max-width: 1000px) {
    #datacrops-site .wd-section .wd-intelligence-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #datacrops-site .wd-section .wd-intelligence-flow > article:nth-child(3n):not(:last-child)::after { display: grid; }
    #datacrops-site .wd-section .wd-intelligence-flow > article:nth-child(2n)::after { display: none; }
}

@media (max-width: 600px) {
    #datacrops-site .wd-section .wd-intelligence-panel { padding: 28px 20px; border-radius: 22px; }
    #datacrops-site .wd-section .wd-intelligence-flow { grid-template-columns: minmax(0, 1fr); }
    #datacrops-site .wd-section .wd-intelligence-flow > article { min-height: 0; padding: 20px; }
    #datacrops-site .wd-section .wd-intelligence-flow > article:nth-child(n):not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -27px;
        left: calc(50% - 14px);
        display: grid;
        content: "\f063";
    }
}
