/* ==================================================
   MAKE.COM AUTOMATION PAGE
   Complements marketing/project-pages.css
================================================== */

body.automation-platform-page {
    --make-accent: #6756f5;
    --make-accent-soft: rgba(103, 86, 245, 0.1);
    --make-border: rgba(123, 77, 255, 0.18);
}

.make-hero-content {
    max-width: 920px;
}

.make-platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 26px;
}

.make-platform-badge {
    padding: 8px 12px;

    color: #514475;
    font-size: 0.74rem;
    font-weight: 800;

    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(123, 77, 255, 0.16);
    border-radius: 999px;
}

.make-platform-badge.is-primary {
    color: var(--make-accent);

    background: var(--make-accent-soft);
    border-color: rgba(103, 86, 245, 0.24);
}


/* Section headings */

.make-section-header {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 500px);

    gap: 38px;
    align-items: end;

    margin-bottom: 28px;
}

.make-section-label {
    display: block;
    margin-bottom: 10px;

    color: var(--make-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.make-section-header h2,
.make-case-heading h2 {
    margin: 0;

    color: #2f235f;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.make-section-header p,
.make-case-heading p {
    margin: 0;

    color: #6d6292;
    font-size: 0.94rem;
    line-height: 1.7;
}


/* Shared panels */

.make-capability-card,
.make-workflow-card,
.make-case-panel,
.make-screenshot-card,
.make-blueprint-panel,
.make-evidence-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.92),
            rgba(244, 239, 255, 0.82)
        );

    border: 1px solid var(--make-border);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(123, 77, 255, 0.13);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* Capability cards */

.make-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.make-capability-card {
    position: relative;

    min-height: 270px;
    padding: 28px;
    overflow: hidden;
}

.make-capability-card::after {
    content: "";

    position: absolute;
    right: -50px;
    bottom: -65px;

    width: 170px;
    height: 170px;

    background:
        radial-gradient(
            circle,
            var(--make-accent-soft),
            transparent 68%
        );

    pointer-events: none;
}

.make-capability-number {
    display: block;
    margin-bottom: 34px;

    color: rgba(103, 86, 245, 0.34);
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
}

.make-capability-card h3 {
    margin: 0 0 12px;

    color: #2f235f;
    font-size: 1.38rem;
    letter-spacing: -0.035em;
}

.make-capability-card p {
    margin: 0;

    color: #6d6292;
    font-size: 0.89rem;
    line-height: 1.65;
}


/* Workflow library */

.make-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.make-workflow-card {
    min-height: 390px;
    padding: 26px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.make-workflow-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 23px;
}

.make-workflow-index {
    color: rgba(123, 77, 255, 0.36);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.make-workflow-status {
    padding: 7px 10px;

    color: #287a63;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    background: rgba(40, 122, 99, 0.08);
    border: 1px solid rgba(40, 122, 99, 0.18);
    border-radius: 999px;
}

.make-workflow-card h3 {
    margin: 0 0 13px;

    color: #2f235f;
    font-size: 1.42rem;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.make-workflow-card p {
    margin: 0;

    color: #6d6292;
    font-size: 0.87rem;
    line-height: 1.65;
}

.make-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 22px;
}

.make-tech-list span {
    padding: 6px 9px;

    color: #564680;
    font-size: 0.68rem;
    font-weight: 800;

    background: rgba(123, 77, 255, 0.065);
    border: 1px solid rgba(123, 77, 255, 0.12);
    border-radius: 999px;
}

.make-mini-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 20px;
}

.make-mini-flow span {
    padding: 7px 9px;

    color: #4c378a;
    font-size: 0.68rem;
    font-weight: 800;

    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(123, 77, 255, 0.14);
    border-radius: 999px;
}

.make-mini-flow b {
    color: var(--make-accent);
    font-size: 0.76rem;
}

.make-workflow-link {
    margin-top: 25px;

    color: #4f32a2;
    font-size: 0.82rem;
    font-weight: 800;
}

.make-workflow-link::after {
    content: " →";
}


/* Case studies */

.make-case-section {
    scroll-margin-top: 110px;
}

.make-case-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;

    margin-bottom: 28px;
}

.make-case-heading > div {
    max-width: 850px;
}

.make-case-heading p {
    max-width: 760px;
    margin-top: 17px;
}

.make-case-mark {
    width: 72px;
    height: 72px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;

    background:
        linear-gradient(
            135deg,
            #8e80ff,
            #6756f5
        );

    border-radius: 21px;

    box-shadow:
        0 15px 32px rgba(103, 86, 245, 0.22);
}

.make-case-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.make-case-panel {
    padding: 28px;
}

.make-case-panel h3 {
    margin: 0 0 20px;

    color: #2f235f;
    font-size: 1.42rem;
    letter-spacing: -0.035em;
}

.make-architecture {
    display: grid;
    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    gap: 9px;
    align-items: center;
}

.make-architecture.is-compact {
    grid-template-columns:
        1fr auto
        1fr auto
        1fr;

    margin-top: 24px;
}

.make-node {
    min-height: 92px;
    padding: 14px 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(123, 77, 255, 0.15);
    border-radius: 15px;
}

.make-node small {
    display: block;
    margin-bottom: 7px;

    color: var(--make-accent);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.make-node strong {
    color: #40346b;
    font-size: 0.74rem;
    line-height: 1.38;
}

.make-architecture-arrow {
    color: var(--make-accent);
    font-weight: 900;
}

.make-detail-list,
.make-module-list {
    display: grid;
    gap: 11px;

    margin-top: 24px;
}

.make-detail-list > div,
.make-module-list > div {
    padding: 14px 15px;

    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(123, 77, 255, 0.12);
    border-radius: 13px;
}

.make-detail-list span {
    display: block;
    margin-bottom: 6px;

    color: var(--make-accent);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.make-detail-list p {
    margin: 0;

    color: #6d6292;
    font-size: 0.78rem;
    line-height: 1.55;
}

.make-module-list > div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    align-items: center;
}

.make-module-list strong {
    color: #3c2d73;
    font-size: 0.78rem;
}

.make-module-list span {
    color: #756d91;
    font-size: 0.76rem;
    line-height: 1.45;
}

.make-screenshot-card {
    overflow: hidden;
}

.make-screenshot-card img {
    display: block;

    width: 100%;
    min-height: 360px;
    height: 100%;

    object-fit: contain;

    background: #f2f2f2;
}

.make-screenshot-caption {
    padding: 16px 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-top: 1px solid rgba(123, 77, 255, 0.13);
}

.make-screenshot-caption strong {
    color: #3c2d73;
    font-size: 0.78rem;
}

.make-screenshot-caption span {
    color: #8177a6;
    font-size: 0.7rem;
    text-align: right;
}

.make-screenshot-card.is-placeholder {
    min-height: 430px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border-style: dashed;
}

.make-placeholder-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--make-accent);
    font-size: 1.6rem;
    font-weight: 700;

    background: var(--make-accent-soft);
    border: 1px solid rgba(103, 86, 245, 0.2);
    border-radius: 18px;
}

.make-screenshot-card.is-placeholder h3 {
    margin: 0 0 8px;

    color: #2f235f;
}

.make-screenshot-card.is-placeholder p {
    margin: 0 0 10px;

    color: #6d6292;
    font-size: 0.82rem;
}

.make-screenshot-card.is-placeholder code {
    color: #5e3cad;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}


/* Route cards */

.make-route-list {
    display: grid;
    gap: 12px;
}

.make-route-list article {
    padding: 16px;

    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(123, 77, 255, 0.12);
    border-radius: 14px;
}

.make-route-number {
    display: block;
    margin-bottom: 8px;

    color: var(--make-accent);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.make-route-list strong {
    display: block;

    color: #3c2d73;
    font-size: 0.83rem;
}

.make-route-list p {
    margin: 7px 0 0;

    color: #756d91;
    font-size: 0.75rem;
    line-height: 1.55;
}


/* Blueprint Lab */

.make-blueprint-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);

    gap: 24px;
    align-items: stretch;
}

.make-blueprint-panel {
    padding: 28px;
}

.make-blueprint-panel h3 {
    margin: 0 0 9px;

    color: #2f235f;
    font-size: 1.42rem;
    letter-spacing: -0.035em;
}

.make-blueprint-panel > p {
    margin: 0 0 22px;

    color: #6d6292;
    font-size: 0.86rem;
    line-height: 1.65;
}

.make-field {
    display: grid;
    gap: 8px;

    color: #3c2d73;
    font-size: 0.82rem;
    font-weight: 800;
}

.make-field select {
    width: 100%;
    padding: 14px 15px;

    color: #2f235f;
    font: inherit;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(123, 77, 255, 0.2);
    border-radius: 14px;

    outline: none;
}

.make-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 17px;
}

.make-secondary-button,
.make-file-button {
    padding: 12px 17px;

    color: #5e3cad;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;

    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 999px;

    cursor: pointer;
}

.make-file-button {
    display: inline-flex;
    align-items: center;
}

.make-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.make-secondary-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.make-blueprint-status {
    min-height: 22px;
    margin: 15px 0 0;

    color: var(--make-accent);
    font-size: 0.77rem;
    font-weight: 800;
    line-height: 1.5;
}

.make-blueprint-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 18px;
}

.make-blueprint-summary > div {
    padding: 13px 14px;

    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(123, 77, 255, 0.12);
    border-radius: 13px;
}

.make-blueprint-summary span {
    display: block;
    margin-bottom: 5px;

    color: #8177a6;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.make-blueprint-summary strong {
    display: block;

    color: #4a3a7a;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.make-blueprint-paths {
    display: grid;
    gap: 8px;

    margin-top: 20px;
}

.make-blueprint-paths strong {
    color: #3c2d73;
    font-size: 0.76rem;
}

.make-blueprint-paths code {
    padding: 9px 10px;

    color: #5e3cad;
    font-size: 0.67rem;
    overflow-wrap: anywhere;

    background: rgba(123, 77, 255, 0.055);
    border-radius: 9px;
}

.make-blueprint-output-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 17px;
}

.make-blueprint-code {
    min-height: 520px;
    margin: 0;
    padding: 22px;

    overflow: auto;

    color: #eeeaff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.75rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;

    background:
        linear-gradient(
            145deg,
            #211848,
            #33266b
        );

    border: 1px solid rgba(155, 109, 255, 0.36);
    border-radius: 17px;
}

.make-blueprint-note {
    margin-top: 20px;
    padding: 18px 20px;

    color: #6d6292;

    background: rgba(123, 77, 255, 0.06);
    border-left: 4px solid var(--make-accent);
    border-radius: 13px;
}

.make-blueprint-note strong {
    display: block;
    margin-bottom: 7px;

    color: #3c2d73;
    font-size: 0.83rem;
}

.make-blueprint-note p {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.6;
}


/* Evidence */

.make-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.make-evidence-card {
    min-height: 240px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.make-evidence-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--make-accent);
    font-size: 0.78rem;
    font-weight: 900;

    background: var(--make-accent-soft);
    border: 1px solid rgba(103, 86, 245, 0.2);
    border-radius: 17px;
}

.make-evidence-card h3 {
    margin: 0 0 9px;

    color: #2f235f;
    font-size: 1.16rem;
}

.make-evidence-card p {
    margin: 0;

    color: #6d6292;
    font-size: 0.8rem;
    line-height: 1.6;
}


/* Responsive */

@media (max-width: 1000px) {

    .make-section-header,
    .make-capability-grid,
    .make-workflow-grid,
    .make-case-layout,
    .make-blueprint-grid,
    .make-evidence-grid {
        grid-template-columns: 1fr;
    }

    .make-workflow-card {
        min-height: auto;
    }

    .make-screenshot-card img {
        min-height: auto;
    }
}

@media (max-width: 760px) {

    .make-case-heading,
    .make-blueprint-output-heading {
        flex-direction: column;
    }

    .make-architecture,
    .make-architecture.is-compact {
        grid-template-columns: 1fr;
    }

    .make-architecture-arrow {
        text-align: center;
        transform: rotate(90deg);
    }

    .make-module-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 620px) {

    .make-capability-card,
    .make-workflow-card,
    .make-case-panel,
    .make-blueprint-panel,
    .make-evidence-card {
        padding: 22px;
    }

    .make-mini-flow {
        align-items: flex-start;
        flex-direction: column;
    }

    .make-mini-flow b {
        margin-left: 16px;
        transform: rotate(90deg);
    }

    .make-blueprint-summary {
        grid-template-columns: 1fr;
    }

    .make-blueprint-code {
        min-height: 390px;
        padding: 17px;
        font-size: 0.68rem;
    }

    .make-screenshot-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .make-screenshot-caption span {
        text-align: left;
    }
}
