/*
 * APlayout service page (coming soon). Product-led: show, then say.
 * Cue amber (#F4A934) is APlayout's own accent: the playhead, the lit tile and
 * key marks only — never a section fill, never next to parent vermilion.
 * Mobile first (390 px), widened at 768 / 992 / 1200. Spec:
 * docs/brand/APLAYOUT_INTEGRATION.md. Motion runs only under html.amtecco-motion
 * and stops for prefers-reduced-motion.
 */

.aplayout-page {
    --ap-cue: var(--amtecco-aplayout, #f4a934);
    --ap-cue-hover: #f7ba57;
    --ap-cue-wash: rgba(244, 169, 52, 0.12);
    --ap-ok: #4ade80; /* functional "signal OK" only (APlayout bible §4) */
    --ap-card: var(--amtecco-graphite, #1a1d20);
    --ap-radius: 6px;
    --ap-k: 0.6px; /* rundown scale: pixels per second of programme */
    /* Decorative frame marks inside this page go neutral, so cue amber never
       sits beside parent vermilion. The navigation lockup is outside <main>. */
    --amtecco-mark: var(--amtecco-steel);
}

.sf-site .aplayout-page .amtecco-kicker {
    color: var(--ap-cue) !important; /* amber never sits beside vermilion */
}

.sf-site .aplayout-page .amtecco-section {
    padding-block: clamp(4rem, 9vw, 8rem);
}

/* ---------- Section heads: label, one headline, at most one sentence ---------- */

.ap-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.sf-site .ap-head h2 {
    max-width: 20ch;
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.sf-site .ap-answer__text {
    max-width: 44rem;
    margin: 1.25rem 0 0;
    color: var(--amtecco-paper-soft);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.55;
}

/* ---------- 1. Hero: copy, then the real console, full width ---------- */

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual {
    background:
        radial-gradient(60rem 28rem at 50% 108%, rgba(244, 169, 52, 0.1), transparent 70%),
        var(--amtecco-carbon-deep);
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__mast {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual";
    align-items: start;
    gap: clamp(2.5rem, 5vw, 3.5rem);
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 6vw, 4.75rem) !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
}

.sf-site .amtecco-service-hero__title-accent {
    display: block;
    color: var(--ap-cue);
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__lead {
    max-width: 36rem;
    margin-top: 1.25rem;
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__relationship .amtecco-soon {
    margin: 0;
}

/* Standards strip in place of the facts row: what buyers check. An even grid
   of equal cells, so the names line up on every width (4 per row on phones,
   all 7 in one row from 768 px). Every inherited facts-row padding is reset. */
.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual > .container > .amtecco-service-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: 0;
    border: 0;
    border-block: 1px solid var(--amtecco-line);
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual > .container > .amtecco-service-hero__facts :is(li, li:first-child, li:last-child, li + li) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin: 0;
    padding: 0.75rem 0.25rem;
    border: 0;
    opacity: 1;
    text-align: center;
    transform: none;
}

.sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual > .container > .amtecco-service-hero__facts strong {
    color: var(--amtecco-steel);
    font-family: var(--amtecco-display);
    font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual > .container > .amtecco-service-hero__facts {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        border-block: 0;
    }
}

@media (min-width: 992px) {
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__copy {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "rel rel" "title lead" "title actions";
        column-gap: clamp(3rem, 6vw, 6rem);
        align-items: end;
    }

    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__relationship { grid-area: rel; }
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual h1 { grid-area: title; }
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__lead { grid-area: lead; align-self: end; margin-top: 0; }
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__actions { grid-area: actions; margin-top: 1.5rem; }
}

/* The tour: real console in a graphite frame, chapters underneath. */
.ap-tour__frame {
    position: relative;
    aspect-ratio: 1920 / 1084;
    overflow: hidden;
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: 10px;
    background: var(--amtecco-graphite);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.ap-tour__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-tour__play {
    position: absolute;
    inset: auto auto 1rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.55rem 1rem 0.55rem 0.65rem;
    border: 1px solid var(--amtecco-line-strong);
    border-radius: 999px;
    background: rgba(9, 11, 13, 0.82);
    color: var(--amtecco-paper);
    font-size: 0.9375rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.ap-tour__play span {
    width: 1.75rem;
    height: 1.75rem;
    position: relative;
    border-radius: 50%;
    background: var(--ap-cue);
}

.ap-tour__play span::after {
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 0.4rem solid transparent;
    border-bottom: 0.4rem solid transparent;
    border-left: 0.6rem solid var(--amtecco-carbon);
    transform: translate(-50%, -50%);
    content: "";
}

.ap-tour__play:focus-visible {
    outline: 2px solid var(--amtecco-paper);
    outline-offset: 2px;
}

.ap-tour__chapters {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ap-tour__chapters::-webkit-scrollbar {
    display: none;
}

.ap-tour__chapters button {
    position: relative;
    flex: 1 0 auto;
    min-width: 7.5rem;
    min-height: 48px;
    padding: 0.85rem 0.25rem 0.5rem;
    border: 0;
    background: none;
    color: var(--amtecco-steel);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
}

.ap-tour__chapters button i {
    position: absolute;
    top: 0;
    right: 0.25rem;
    left: 0;
    height: 2px;
    overflow: hidden;
    background: var(--amtecco-line-strong);
}

.ap-tour__chapters button i::after {
    position: absolute;
    inset: 0;
    background: var(--ap-cue);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    content: "";
}

.ap-tour__chapters button[aria-current="true"] {
    color: var(--amtecco-paper);
}

.ap-tour__chapters button:focus-visible {
    outline: 2px solid var(--amtecco-paper);
    outline-offset: -2px;
}

.ap-tour__caption {
    min-height: 1.5em;
    margin: 0.5rem 0 0;
    color: var(--amtecco-paper-soft);
    font-size: 0.9375rem;
}

/* ---------- 2. One service: six tiles on one rail ---------- */

.ap-path__stops {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-path__stop {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.35rem;
    text-align: center;
}

.ap-path__tile {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.4rem;
    border: 1px solid var(--ap-cue);
    border-radius: 12px;
    background: var(--ap-card);
    color: var(--ap-cue);
    font-size: 1.375rem;
    box-shadow: 0 0 0 4px var(--ap-cue-wash);
    transition: border-color 280ms var(--amtecco-ease-standard), color 280ms var(--amtecco-ease-standard), box-shadow 280ms var(--amtecco-ease-standard);
}

.ap-path__stop strong {
    max-width: 100%;
    color: var(--amtecco-paper);
    hyphens: auto;
    overflow-wrap: normal;
    font-family: var(--amtecco-display);
    font-size: 1.0625rem;
    font-weight: 600;
}

.ap-path__stop > span:last-child {
    color: var(--amtecco-steel);
    font-size: 0.875rem;
    line-height: 1.35;
}

/* Under motion the tiles light stop by stop, once; at rest all are lit. */
.amtecco-motion .ap-path__stops[data-motion-diagram]:not(.is-diagram-visible) .ap-path__tile {
    border-color: var(--amtecco-graphite-2);
    color: var(--amtecco-paper-soft);
    box-shadow: none;
}

.amtecco-motion .ap-path__stops[data-motion-diagram] .ap-path__tile {
    transition-delay: calc(var(--stop) * 160ms);
}

@media (min-width: 992px) {
    .ap-path__stops {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* The rail joins the tiles and fills left to right. */
    .ap-path__stops::before,
    .ap-path__stops::after {
        position: absolute;
        top: 1.75rem;
        right: calc(100% / 12);
        left: calc(100% / 12);
        height: 1px;
        background: var(--amtecco-line-strong);
        content: "";
    }

    .ap-path__stops::after {
        height: 2px;
        margin-top: -0.5px;
        background: var(--ap-cue);
        transform-origin: left;
    }

    .amtecco-motion .ap-path__stops[data-motion-diagram]::after {
        transition: transform 960ms var(--amtecco-ease-standard);
    }

    .amtecco-motion .ap-path__stops[data-motion-diagram]:not(.is-diagram-visible)::after {
        transform: scaleX(0);
    }
}

/* ---------- 3. Bento: each detail with its own picture ---------- */

.ap-bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.ap-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: var(--ap-radius);
    background: var(--ap-card);
    transition: border-color 200ms var(--amtecco-ease-standard);
}

.ap-card:hover {
    border-color: #2c3136;
}

.sf-site .ap-card h3 {
    margin: 0;
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sf-site .ap-card p {
    max-width: 30rem;
    margin: 0.5rem 0 0;
    color: var(--amtecco-steel);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ap-card__shot {
    position: relative;
    aspect-ratio: 1280 / 723;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: 6px;
    background: var(--amtecco-carbon);
}

.ap-card__shot video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini mock-ups: drawn interfaces, labels in mono, amber only for "on air". */
.ap-mini {
    display: grid;
    gap: 0;
    margin: auto 0 0;
    padding: 1.5rem 0 0;
    list-style: none;
}

.ap-mini--states li,
.ap-mini--epg li,
.ap-mini--checks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--amtecco-graphite-2);
    border-top-width: 0;
    background: var(--amtecco-carbon);
    color: var(--amtecco-paper);
    font-size: 0.9375rem;
}

.ap-mini--states li:first-child,
.ap-mini--epg li:first-child,
.ap-mini--checks li:first-child {
    border-top-width: 1px;
    border-radius: 6px 6px 0 0;
}

.ap-mini--states li:last-child,
.ap-mini--epg li:last-child,
.ap-mini--checks li:last-child {
    border-radius: 0 0 6px 6px;
}

.ap-mini em {
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: 0.75rem;
    font-style: normal;
    white-space: nowrap;
}

.ap-mini .is-cue { color: var(--ap-cue); }
.ap-mini .is-ok { color: var(--ap-ok); }
.ap-mini .is-muted { color: #65717b; }

.ap-mini--epg li {
    justify-content: flex-start;
}

.ap-mini--epg b {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 4px;
    background: var(--amtecco-graphite-2);
    color: var(--amtecco-paper-soft);
    font-family: var(--amtecco-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ap-mini--epg .is-now b {
    background: var(--ap-cue);
    color: var(--amtecco-carbon);
}

.ap-mini--epg span {
    display: grid;
    font-weight: 600;
}

.ap-mini--epg small {
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: 0.75rem;
    font-weight: 400;
}

.ap-mini--stack {
    gap: 0.5rem;
}

.ap-mini--stack li {
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: 6px;
    background: var(--amtecco-carbon);
    color: var(--amtecco-paper-soft);
    font-size: 0.9375rem;
}

.ap-mini--stack li.is-cue {
    border-style: dashed;
    border-color: rgba(244, 169, 52, 0.5);
    background: transparent;
    font-family: var(--amtecco-mono);
    font-size: 0.8125rem;
}

.ap-mini--stack li.is-strong {
    border-color: var(--ap-cue);
    color: var(--amtecco-paper);
    font-weight: 600;
}

.ap-mini--stack .ap-mini__outs {
    display: flex;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    background: none;
}

.ap-mini__outs span {
    flex: 1;
    padding: 0.4rem;
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: 4px;
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: 0.75rem;
    text-align: center;
}

.ap-mini--checks li {
    justify-content: flex-start;
    gap: 0.65rem;
    color: var(--amtecco-paper-soft);
}

.ap-mini--checks .amtecco-icon {
    flex: none;
    color: var(--ap-ok);
    font-size: 1.125rem;
}

.ap-card--rundown .ap-rundown {
    margin-top: 1.5rem;
    background: var(--amtecco-carbon);
}

@media (min-width: 768px) {
    .ap-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-card--wide,
    .ap-card--full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .ap-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ap-card--wide {
        grid-column: span 2;
    }

    .ap-card--full {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        align-items: center;
        gap: 2.5rem;
    }

    .ap-card--rundown .ap-rundown {
        margin-top: 0;
    }
}

/* ---------- Rundown strip (bento card) ---------- */

.ap-rundown {
    display: grid;
    min-width: 0;
    gap: 0.875rem;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: var(--ap-radius);
}

.ap-rundown__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.ap-rundown__clock {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.ap-rundown__onair {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--amtecco-paper-soft);
    font-family: var(--amtecco-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ap-rundown__onair::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ap-cue);
    content: "";
}

.ap-rundown__tc {
    color: var(--amtecco-paper);
    font-family: var(--amtecco-mono);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-variant-numeric: tabular-nums slashed-zero;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ap-rundown__tc span {
    color: var(--amtecco-steel);
}

.ap-rundown__nownext {
    display: grid;
    gap: 0.25rem;
    min-width: 11rem;
    margin: 0;
}

.ap-rundown__nownext div {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: baseline;
}

.ap-rundown__nownext dt {
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ap-rundown__nownext dd {
    overflow: hidden;
    margin: 0;
    color: var(--amtecco-paper);
    font-size: 0.9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-rundown__nownext div:first-child dd {
    color: var(--ap-cue);
}

.ap-rundown__window {
    position: relative;
    height: 4.5rem;
    overflow: hidden;
    border-block: 1px solid var(--amtecco-line);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ap-rundown__reel {
    --ap-offset: 105; /* seconds into the reel at the playhead (static frame) */
    position: absolute;
    inset-block: 0.625rem;
    left: 30%;
    display: flex;
    gap: 2px;
    transform: translate3d(calc(var(--ap-offset) * var(--ap-k) * -1), 0, 0);
    will-change: transform;
}

.ap-rundown__slot {
    position: relative;
    flex: none;
    display: flex;
    align-items: end;
    width: calc(var(--slot-seconds) * var(--ap-k));
    min-width: 6px;
    overflow: hidden;
    padding: 0.4rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 2px;
}

.ap-rundown__slot b {
    overflow: hidden;
    color: var(--amtecco-paper-soft);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-rundown__slot--programme {
    border-color: var(--amtecco-graphite-2);
    background: var(--amtecco-graphite);
}

.ap-rundown__slot--ad {
    border-color: var(--ap-cue);
    background: var(--ap-cue-wash);
}

.ap-rundown__slot--ad b {
    color: var(--ap-cue);
}

.ap-rundown__tick {
    position: absolute;
    top: 0.3rem;
    left: 0.5rem;
    color: var(--ap-cue);
    font-family: var(--amtecco-mono);
    font-size: 0.5625rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ap-rundown__slot--promo {
    border: 1px dashed var(--amtecco-steel);
}

.ap-rundown__slot--filler {
    border-color: var(--amtecco-graphite-2);
    background: repeating-linear-gradient(135deg, var(--amtecco-graphite-2) 0 2px, transparent 2px 6px);
}

.ap-rundown__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30%;
    width: 2px;
    margin-left: -1px;
    background: var(--ap-cue);
}

.ap-rundown__playhead::before {
    position: absolute;
    top: 0;
    left: -4px;
    border-top: 6px solid var(--ap-cue);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: "";
}

.ap-rundown__outputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-rundown__outputs li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--amtecco-line-strong);
    border-radius: var(--amtecco-radius);
    color: var(--amtecco-paper-soft);
    font-family: var(--amtecco-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.ap-rundown__outputs li::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-ok);
    content: "";
}

.sf-site .ap-rundown__label {
    justify-self: start;
    max-width: 100%;
    margin: 0;
    white-space: normal;
}

/* ---------- 4. Where it fits: one row ---------- */

.ap-fits__path {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-fits__path li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--amtecco-line);
    border-left: 3px solid var(--path-accent);
    border-radius: var(--amtecco-radius);
    background: var(--amtecco-carbon);
}

.ap-fits__path li.is-current {
    border-color: var(--ap-cue);
    background: var(--ap-cue-wash);
}

.ap-fits__path a,
.ap-fits__check a {
    color: inherit;
    text-decoration: none;
}

.ap-fits__path strong,
.ap-fits__check strong {
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: 1.0625rem;
    font-weight: 600;
}

.ap-fits__path a:hover strong,
.ap-fits__check a:hover strong {
    text-decoration: underline;
    text-decoration-color: var(--path-accent, var(--amtecco-steel));
    text-underline-offset: 4px;
}

.ap-fits__path span,
.ap-fits__check span {
    color: var(--amtecco-paper-soft);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.sf-site .ap-fits__check {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    max-width: none;
    margin: 0.75rem 0 0;
    padding: 0.875rem 1rem;
    border: 1px dashed var(--amtecco-line-strong);
    border-radius: var(--amtecco-radius);
}

@media (min-width: 992px) {
    .ap-fits__path {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ap-fits__path li {
        display: grid;
        align-content: start;
        border-top: 3px solid var(--path-accent);
        border-left-width: 1px;
    }

    .ap-fits__path li.is-current {
        border-top-color: var(--ap-cue);
    }
}

/* ---------- 5. Engineers: compact spec grid ---------- */

.ap-spec {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    margin: 1.25rem 0 0;
    overflow: hidden;
    border: 1px solid var(--amtecco-line);
    border-radius: var(--ap-radius);
    background: var(--amtecco-line);
}

.ap-spec > div {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    background: var(--amtecco-carbon);
}

.ap-spec dt {
    color: var(--ap-cue);
    font-family: var(--amtecco-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ap-spec dd {
    margin: 0;
    color: var(--amtecco-paper-soft);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.sf-site .ap-not-yet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: none;
    margin: 1.25rem 0 0;
}

.ap-not-yet strong {
    margin-right: 0.25rem;
    color: var(--amtecco-paper);
    font-size: 0.9375rem;
}

.ap-not-yet span {
    padding: 0.2rem 0.6rem;
    border: 1px dashed var(--amtecco-line-strong);
    border-radius: 999px;
    color: var(--amtecco-steel);
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .ap-spec {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- 6. Questions: always visible, two columns on wide screens ---------- */

.sf-site .ap-faq h2 {
    margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.ap-faq__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 0;
}

.ap-faq__item {
    padding: 1.25rem 1.25rem 1.35rem;
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: var(--ap-radius);
    background: var(--ap-card);
}

.ap-faq__item dt {
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
}

.ap-faq__item dd {
    margin: 0.5rem 0 0;
    color: var(--amtecco-steel);
    font-size: 0.9375rem;
    line-height: 1.55;
}

@media (min-width: 768px) {
    .ap-faq__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Closing action ---------- */

.ap-cta {
    padding-block: 0 clamp(4rem, 9vw, 7rem);
}

.ap-cta__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--amtecco-graphite-2);
    border-radius: var(--ap-radius);
    background:
        radial-gradient(30rem 14rem at 0% 0%, rgba(244, 169, 52, 0.1), transparent 70%),
        var(--ap-card);
}

.ap-cta__mark {
    width: 2.5rem;
    height: auto;
}

.sf-site .ap-cta__panel h2 {
    margin: 0.75rem 0 0;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.sf-site .ap-cta__panel p:not(.amtecco-soon) {
    margin: 0.5rem 0 0;
    color: var(--amtecco-paper-soft);
    font-size: 1rem;
    line-height: 1.5;
}

.ap-cta__panel .amtecco-soon {
    margin: 0;
}

@media (min-width: 992px) {
    .ap-cta__panel {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 2rem;
    }
}

/* ---------- Buttons: cue amber with a carbon label (9.3:1) ---------- */

.sf-site .aplayout-page .amtecco-service-hero .btn-primary,
.sf-site .aplayout-page .ap-cta .btn-primary {
    min-height: 48px;
    border-color: var(--ap-cue) !important;
    background: var(--ap-cue) !important;
    color: var(--amtecco-carbon) !important;
    font-weight: 700;
}

.sf-site .aplayout-page .amtecco-service-hero .btn-primary:hover,
.sf-site .aplayout-page .ap-cta .btn-primary:hover {
    border-color: var(--ap-cue-hover) !important;
    background: var(--ap-cue-hover) !important;
}

.sf-site .aplayout-page .btn-primary:focus-visible {
    outline: 2px solid var(--amtecco-paper);
    outline-offset: 2px;
}

/* ---------- Phone ---------- */

@media (max-width: 479.98px) {
    /* Two tiles per row keeps long words (Programmführer) whole. */
    .ap-path__stops {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-rundown__head {
        display: grid;
    }

    .ap-rundown__nownext {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .sf-site .amtecco-service-hero--aplayout.amtecco-service-hero--has-visual .amtecco-service-hero__actions {
        margin-top: 1.5rem;
    }

    .ap-tour__frame {
        border-radius: 8px;
    }

    .ap-tour__chapters button {
        min-width: 6.5rem;
        font-size: 0.875rem;
    }

    .ap-cta__panel .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-rundown__reel {
        will-change: auto;
    }

    .ap-path__tile,
    .ap-path__stops::after,
    .ap-card {
        transition: none !important;
    }

    .ap-path__stops::after {
        transform: none !important;
    }
}
