/*! Ditat Theme v1.2.0 — assets/css/ai-docs.css
 * (c) Ditat — https://ditat.com — All rights reserved */

/* ============ HERO ============ */
.adp-hero {
    background: radial-gradient(circle at 26% 46%, rgb(var(--hero-blue-2)) 0%, rgb(var(--hero-blue-3)) 52%, #102A48 100%);
}

.adp-hero-content {
    max-width: 820px;
    padding-bottom: 80px;
}

.adp-hero .page-hero-title {
    line-height: 1.3;
}

.adp-hero-lead {
    --d: 110ms;
    max-width: 25em;
}

.adp-hero .btn-primary {
    --d: 220ms;
}

.adp-hero-doc {
    --adp-sheet-w: 526px;
    --adp-vw: calc(100vw - var(--sb, 0px));
    --adp-gutter: calc((var(--adp-vw) - min(var(--adp-vw), var(--maxw))) / 2 * 0.67);
    /* how far a chip may hang past the sheet before it would leave the viewport */
    --adp-out-r: min(162px, calc(var(--adp-gutter) - 8px));
    --adp-out-l: min(185px, calc(var(--adp-vw) - var(--adp-gutter) - var(--adp-sheet-w) - 32px));
    position: relative;
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
    align-self: stretch;
    width: var(--adp-sheet-w);
    margin-right: var(--adp-gutter);
    pointer-events: none;
    z-index: 3;
}

.adp-hero-frame {
    --d: 120ms;
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--white);
    box-shadow: 0 30px 70px -20px rgb(var(--navy-deep-rgb) / 0.55);
}

/* the source crop starts at the page's scroll position, so its top margin is
   missing; offset it against the frame's white to match the side margins */
.adp-hero-sheet {
    position: absolute;
    top: calc(var(--adp-sheet-w) * 0.101);
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}

.adp-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--info) 0 3px, rgb(var(--info-rgb) / 0.18) 3px);
    animation: adp-scan 7s cubic-bezier(.45, .05, .55, .95) infinite alternate;
}

.adp-scan-line::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 0;
    right: 0;
    height: 25px;
    background: radial-gradient(ellipse 58% 100% at 50% 50%, rgb(var(--info-rgb) / 0.6) 0%, rgb(var(--info-rgb) / 0) 100%);
}

@keyframes adp-scan {
    from {
        transform: translateY(12%);
    }
    to {
        transform: translateY(62%);
    }
}

.adp-chip {
    --chip-tilt: -2.5deg;
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: var(--white);
    border: 1.5px solid;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 28px -12px rgb(var(--navy-deep-rgb) / 0.45);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--navy);
    white-space: nowrap;
    pointer-events: auto;
}

/* scale/rotate, not transform: the reveal animation owns transform on these */
@media (hover: hover) and (pointer: fine) {
    .adp-chip {
        transition: scale .35s cubic-bezier(0.22, 1, 0.36, 1), rotate .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
    }

    .adp-chip:hover {
        scale: 1.05;
        rotate: var(--chip-tilt);
        box-shadow: 0 22px 44px -14px rgb(var(--navy-deep-rgb) / 0.55);
    }
}

.adp-chip i {
    display: inline-flex;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.adp-chip i svg {
    width: 100%;
    height: 100%;
}

.adp-chip--blue {
    border-color: rgb(var(--info-rgb) / 0.55);
}

.adp-chip--blue i {
    color: var(--info);
}

.adp-chip--green {
    border-color: rgb(var(--green-soft-rgb) / 0.75);
}

.adp-chip--green i {
    color: var(--green-text);
}

.adp-chip--1 {
    --d: 420ms;
    top: 140px;
    right: calc(var(--adp-out-r) * -1);
}

.adp-chip--2 {
    --d: 560ms;
    --chip-tilt: 2.5deg;
    bottom: 100px;
    left: calc(var(--adp-out-l) * -1);
}

.adp-chip--3 {
    --d: 700ms;
    bottom: 56px;
    right: calc(var(--adp-out-r) * -1);
}

/* ============ REDUCE MANUAL ENTRY ============ */
.adp-scan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ============ APP SCREEN SHOTS ============ */
.adp-review,
.adp-ship {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}

.adp-review.is-revealed,
.adp-ship.is-revealed {
    opacity: 1;
    transform: none;
}

.adp-review img,
.adp-ship img {
    display: block;
    width: 100%;
    height: auto;
}

.adp-review,
.adp-ship {
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.adp-review {
    margin-bottom: 96px;
    border-radius: var(--radius-lg);
}

/* fixed at its native size so a wider viewport reveals more of the panel
   instead of upscaling it; the section clips the overhang */
.adp-ship {
    width: 1476px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* ============ SHIPMENT WORKFLOW ============ */
.adp-workflow {
    position: relative;
    overflow-x: clip;
    background: linear-gradient(58deg, #295383 0%, rgb(var(--hero-blue-2)) 34%, rgb(var(--hero-blue-3)) 72%, #122F51 100%);
    color: var(--white);
}

.adp-workflow .eyebrow {
    color: var(--coral-bright);
}

.adp-workflow-grid {
    display: grid;
    grid-template-columns: minmax(300px, 490px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-right: calc(50% - 50vw + var(--sb, 0px) / 2);
}

.adp-workflow-title {
    text-align: left;
    margin: 0 0 14px;
}

.adp-workflow-lead {
    font-size: 1.125rem;
    line-height: 1.4;
    color: rgb(255 255 255 / 0.75);
    margin: 0 0 48px;
}

.adp-workflow-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.adp-workflow-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
}

.adp-workflow-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    color: var(--coral-bright);
}

.adp-workflow-icon svg {
    width: 100%;
    height: 100%;
    /* some FA composites draw past their viewBox; without this they clip */
    overflow: visible;
}

.adp-workflow-item-title {
    grid-column: 2;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--white);
    margin: 0;
}

.adp-workflow-item-desc {
    grid-column: 2;
    font-size: .9375rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.7);
    margin: 10px 0 0;
}

/* ============ MULTIPLE SCANS ============ */
.adp-multi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.adp-multi-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
}

.adp-multi-title {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--navy);
    margin: 20px 0 12px;
}

@media (hover: hover) and (pointer: fine) {
    .adp-multi-card:hover .icon-tile {
        background: rgb(var(--cta-rgb) / 0.14);
        transform: translateY(-2px);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 959px) {
    .adp-scan .section-sub br,
    .adp-flow .section-sub br,
    .adp-multi .section-sub br,
    .adp-cta .section-sub br {
        display: none;
    }
}

@media (max-width: 1200px) {
    .adp-hero {
        grid-template-rows: auto auto;
        padding-top: 72px;
    }

    .adp-hero-content {
        max-width: 720px;
        margin: 0 auto;
        padding-bottom: 0;
        text-align: center;
    }

    .adp-hero-lead {
        max-width: none;
        margin-inline: auto;
    }

    .adp-hero-doc {
        grid-row: 2;
        grid-column: 1;
        justify-self: center;
        align-self: start;
        height: 460px;
        margin: 48px auto 0;
    }

    .adp-chip--1 {
        top: 96px;
        right: 4%;
    }

    .adp-chip--2 {
        bottom: 137px;
        left: 8%;
    }

    .adp-chip--3 {
        bottom: 33px;
        right: 12%;
    }
}

@media (max-width: 1100px) {
    .adp-workflow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
        margin-right: calc(50% - 50vw + var(--sb, 0px) / 2);
        padding-right: 0;
    }

    .adp-workflow-text {
        padding-right: 32px;
    }

    .adp-ship {
        width: auto;
    }
}

@media (max-width: 900px) {
    .adp-scan-grid,
    .adp-multi-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .adp-hero-doc {
        --adp-sheet-w: 420px;
        height: 380px;
    }

    .adp-chip {
        display: none;
    }

    .adp-review {
        margin-bottom: 72px;
    }

    .adp-workflow-lead {
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .adp-hero-doc {
        --adp-sheet-w: 330px;
        height: 300px;
    }

    .adp-multi-card {
        padding: 24px;
    }
}

