@font-face {
    font-family: "PipeDeck Exo";
    src: url("../assets/pipedeck/Exo-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

.pd-product, .pd-document {
    --pd-graphite: #101f24;
    --pd-steel: #a4bbc5;
    --pd-silver: #d7e3e7;
    --pd-emerald: #2edda0;
    font-size: max(1rem, 16px);
    line-height: 1.65;
}

.pd-product {
    overflow-wrap: anywhere;
    background: var(--pd-graphite);
    color: var(--pd-silver);
    border-radius: 1rem;
}

.pd-product h1, .pd-product h2, .pd-product h3,
.pd-document h1, .pd-document h2 {
    font-family: "PipeDeck Exo", system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.16;
    margin-bottom: .8rem;
}

.pd-product h1 {
    color: #f4fafb;
    font-size: clamp(2.3rem, 5.4vw, 4.6rem);
    letter-spacing: -.045em;
}

.pd-product h2 { color: #f4fafb; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.pd-product h3 { color: #f4fafb; font-size: 1.3rem; }

.pd-hero, .pd-section { padding: clamp(1.25rem, 5vw, 4.5rem); }
.pd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    border-radius: inherit;
    background: linear-gradient(115deg, var(--pd-graphite) 15%, #153438);
}

.pd-wordmark, .pd-symbol { display: block; max-width: 100%; height: auto; }
.pd-wordmark { width: 12rem; margin-bottom: 1.25rem; }
.pd-symbol { width: 29rem; justify-self: center; }
.pd-hero p { max-width: 53ch; }
.pd-platforms, .pd-note { color: var(--pd-steel); }

.pd-stores, .pd-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; }
.pd-stores span {
    padding: .35rem .85rem;
    border: 1px solid var(--pd-steel);
    border-radius: .45rem;
    color: var(--pd-silver);
    font-weight: 600;
}

.pd-section { border-top: 1px solid #35505a; }
.pd-workflow, .pd-screenshots, .pd-connection {
    display: grid;
    gap: 1.25rem;
}
.pd-workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.75rem; }
.pd-workflow > div { padding: 1.3rem; background: #1a3038; border-radius: .65rem; }
.pd-workflow img { display: block; margin-bottom: .85rem; }
.pd-workflow p, .pd-connection p:last-child { margin-bottom: 0; }
.pd-screenshots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.pd-screenshots img { display: block; width: 100%; height: auto; }
.pd-capabilities ul { columns: 2; column-gap: 3rem; margin-bottom: 0; }
.pd-capabilities li { break-inside: avoid; padding-bottom: .55rem; }
.pd-capabilities li::marker { color: var(--pd-emerald); }
.pd-connection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; background: #142a31; }
.pd-closing .pd-note { margin: 1.2rem 0 0; }
.pd-product a { color: var(--pd-emerald); }
.pd-product a:hover { color: #b8ffe5; }
.pd-product a:focus, .pd-document a:focus { outline: 2px solid currentColor; outline-offset: 4px; }
.pd-links a { text-underline-offset: .2em; font-weight: 600; }

.pd-document { max-width: 72ch; margin: 0 auto; padding-block: 1rem 2rem; color: var(--pd-graphite); }
.pd-document h1 { font-size: clamp(2rem, 5vw, 3rem); }
.pd-document h2 { margin-top: 1.75rem; font-size: 1.4rem; }
.pd-document a { color: #07594c; overflow-wrap: anywhere; }
.pd-document .pd-links { border-top: 1px solid var(--pd-silver); margin-top: 2rem; padding-top: 1rem; }

@media (max-width: 767.98px) {
    .pd-hero, .pd-workflow, .pd-connection { grid-template-columns: 1fr; }
    .pd-symbol { width: min(55%, 13rem); }
    .pd-capabilities ul { columns: 1; }
}

body:has(.pd-product, .pd-document) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}

body:has(.pd-product, .pd-document) > .container { flex: 1; }

body:has(.pd-product, .pd-document) > .footer {
    position: static;
    white-space: normal;
    line-height: 1.5;
    padding-block: 1rem;
}
