/* ---------------------------------------------------------------------------
   Shared content blocks
   ---------------------------------------------------------------------------
   Section primitives used across the home page and (from the next pass) the
   How it works, Workflows and About pages. Built entirely from the existing
   --al-* tokens: no new colours, no new type, no animation, no shadows.

   Rules held here deliberately:
   - Parallel columns sit on ONE grid. A long string in one cell can never push
     its neighbour out of step, because every row is a grid row.
   - No hover lift, no glow, no bloom on any card.
   - Borders are self-coloured (white at low alpha) so they read as a lip
     catching light rather than a drawn contrasting outline.
   - No metadata pills, no icon tiles, no decorative rules beside labels.
--------------------------------------------------------------------------- */

/* ---- section shell ---- */

.blk {
    position: relative;
    background: var(--al-black);
    padding: var(--al-space-4xl) 0;
}

/* Adjacent blocks share one continuous surface; collapse the doubled gap so
   the page reads as one scroll rather than a stack of welded bands. */
.blk + .blk { padding-top: 0; }

/* The head sets no measure of its own. The headline and the body each carry
   their own, because they want different ones: a display line needs to stay
   inside two lines, body copy needs a comfortable reading measure. Constraining
   both together is what pushed headlines onto a third and fourth line. */
.blk-head {
    margin: 0 0 var(--al-space-3xl);
}

.blk-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blk-eyebrow {
    display: block;
    font-family: var(--al-font-body);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--al-gray-400);
    margin: 0 0 var(--al-space-md);
}

/* `ch` is font-relative, so this measure holds the headline to roughly two
   lines at every size the clamp produces - no headline on this page stacks to
   three. Verified against the longest string in the copy. */
.blk-title {
    font-family: var(--al-font-display);
    font-weight: 650;
    /* The lower bound keeps long words inside the phone container without
       sacrificing the scale of shorter section statements. */
    font-size: clamp(1.45rem, 4.6vw, 2.9rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--al-white);
    margin: 0;
    max-width: 42ch;
    text-wrap: balance;
    /* Safety net: no future headline can overflow, whatever word it contains. */
    overflow-wrap: break-word;
}

.blk-head--center .blk-title { margin-left: auto; margin-right: auto; }

.blk-body {
    color: var(--al-gray-200);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: var(--al-space-lg) 0 0;
    max-width: 68ch;
    overflow-wrap: break-word;
}

.blk-head--center .blk-body { margin-left: auto; margin-right: auto; }

.blk-body + .blk-body { margin-top: var(--al-space-md); }

/* A closing statement that carries its own weight. Not a pull quote, not
   ornamented — just given room and a lighter ink than the headline. */
.blk-close {
    margin: var(--al-space-2xl) 0 0;
    padding-top: var(--al-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--al-gray-200);
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    line-height: 1.5;
    max-width: 54ch;
}

.blk-head--center .blk-close { margin-left: auto; margin-right: auto; }

/* ---- inline forward link ---- */

.blk-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6ch;
    margin-top: var(--al-space-xl);
    font-family: var(--al-font-body);
    font-size: 0.92rem;
    color: var(--al-gray-200);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 2px;
    transition: color var(--al-transition-base), border-color var(--al-transition-base);
}

.blk-link:hover,
.blk-link:focus-visible {
    color: var(--al-white);
    border-bottom-color: var(--al-primary);
}

/* The mark shifts, the link does not move. */
.blk-link span[aria-hidden] { transition: transform var(--al-transition-base); }
.blk-link:hover span[aria-hidden],
.blk-link:focus-visible span[aria-hidden] { transform: translate(2px, -2px); }

/* ---- card grid ---- */

.blk-grid {
    display: grid;
    gap: var(--al-space-lg);
    align-items: stretch;
}

.blk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blk-grid--4 { grid-template-columns: repeat(4, 1fr); }

.blk-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--al-radius-lg);
    padding: var(--al-space-xl) var(--al-space-lg);
}

/* Every row of every card sits on ONE shared grid line: titles, bodies and the
   status labels each align across the whole row, however long the copy in any
   single cell happens to be. A three-line title in one card cannot push its
   neighbour's body down. Subgrid does this properly; the flex fallback below
   keeps the status pinned to the bottom edge where it is not supported. */
@supports (grid-template-rows: subgrid) {
    /* Columns keep the full gutter; rows are tighter, since the status label
       carries its own padding and rule. */
    .blk-grid--rows2,
    .blk-grid--rows3 { row-gap: var(--al-space-sm); }

    .blk-grid--rows2 { grid-template-rows: auto auto; }
    .blk-grid--rows3 { grid-template-rows: auto auto auto; }

    .blk-grid--rows2 .blk-card,
    .blk-grid--rows3 .blk-card {
        display: grid;
        grid-template-rows: subgrid;
        align-content: start;
    }

    .blk-grid--rows2 .blk-card { grid-row: span 2; }
    .blk-grid--rows3 .blk-card { grid-row: span 3; }

    /* Inside a subgrid the rows do the spacing, so the margins that separated
       these in the flex version would double up. */
    .blk-grid--rows2 .blk-card-title,
    .blk-grid--rows3 .blk-card-title { margin-bottom: 0; }

    .blk-grid--rows3 .blk-card-body + .blk-card-status { margin-top: 0; }
}

.blk-card-title {
    color: var(--al-white);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--al-space-sm);
    overflow-wrap: break-word;
}

.blk-card-body {
    color: var(--al-gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Maturity label. Deliberately NOT a chip — an honest line of text under the
   card body, pinned to the bottom so it sits on one baseline across the row. */
.blk-card-status {
    margin: var(--al-space-lg) 0 0;
    padding-top: var(--al-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--al-font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--al-gray-300);
}

/* Push the status to the card's bottom edge so a longer body above it cannot
   knock the labels out of line with each other. */
.blk-card-body + .blk-card-status { margin-top: auto; }

/* ---- numbered steps ---- */

.blk-step-num {
    display: block;
    font-family: var(--al-font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--al-primary);
    margin: 0 0 var(--al-space-md);
}

/* ---- two-column list (AI handles / You keep, Good fit / Not a fit) ---- */

/* `stretch`, not `start`: the two boxes match height even when one list is a
   row shorter, so the pair reads as a considered comparison rather than two
   boxes that happened to land at different sizes. */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--al-space-lg);
    align-items: stretch;
}

.split-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--al-radius-lg);
    padding: var(--al-space-xl) var(--al-space-lg);
}

.split-label {
    font-family: var(--al-font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--al-white);
    margin: 0 0 var(--al-space-lg);
    padding-bottom: var(--al-space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.split-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.split-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--al-gray-200);
    font-size: 0.97rem;
    line-height: 1.55;
}

.split-list li + li { margin-top: var(--al-space-md); }

/* One marker shape across the whole page - a short rounded stroke, drawn here
   rather than pulled from an icon set, with no box behind it. The meaning is
   carried by tone, not by inventing a second glyph: lit for what stays with
   you, muted for what does not. The column label says the rest. */
.split-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 11px;
    height: 2px;
    border-radius: 1px;
    background: var(--al-gray-500);
}

.split-col--held .split-list li::before { background: var(--al-primary); }

.split-col--negative .split-list li::before { background: var(--al-gray-600); }

/* ---- FAQ ---- */

.faq {
    width: min(100%, 76rem);
    max-width: none;
    margin-inline: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

.faq-q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--al-space-lg);
    width: 100%;
    padding: var(--al-space-lg) 0;
    cursor: pointer;
    color: var(--al-white);
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    transition: color var(--al-transition-base);
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q:hover { color: var(--al-primary); }

.faq-item[open] .faq-q { color: var(--al-primary); }

/* Custom open/close mark: a plus that loses its upright to become a minus.
   Two rounded strokes, no container, no rotation wobble. */
.faq-mark {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 0.3em;
}

.faq-mark::before,
.faq-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.faq-mark::before { width: 14px; height: 2px; }

.faq-mark::after {
    width: 2px;
    height: 14px;
    transition: transform var(--al-transition-base), opacity var(--al-transition-base);
}

.faq-item[open] .faq-mark::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

.faq-answer,
.faq-item:not([open]) > .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 320ms cubic-bezier(0.22, 0.75, 0.24, 1);
}

.faq-item[open] > .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-a {
    margin: 0;
    padding: 0 var(--al-space-3xl) var(--al-space-lg) 0;
    color: var(--al-gray-200);
    font-size: 0.99rem;
    line-height: 1.68;
    max-width: 80ch;
}

.blk--faq .blk-head {
    margin-bottom: var(--al-space-2xl);
}

.blk--faq .blk-link {
    display: flex;
    width: fit-content;
    margin-right: auto;
    margin-left: auto;
}

/* ---- closing call to action ---- */

.blk-cta { text-align: center; }

.blk-cta .blk-head { margin-bottom: var(--al-space-xl); }

/* The label is long. Without this the button keeps its intrinsic width on a
   narrow screen and pushes the whole document into a horizontal scroll. It is
   allowed to wrap rather than to overflow. */
.blk-cta .al-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.blk-cta-note {
    margin: var(--al-space-lg) 0 0;
    font-family: var(--al-font-body);
    font-size: 0.84rem;
    color: var(--al-gray-400);
}

/* ---- responsive ---- */

@media (max-width: 1000px) {
    .blk-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .blk { padding: var(--al-space-3xl) 0; }
    .home-page .blk-cta { padding-top: 3rem; padding-bottom: 2.5rem; }
    .home-page .al-footer { margin-top: 0; padding-top: 2.5rem; }
    .home-page .al-clients-heading .al-mobile-green { color: var(--al-primary); }
    .home-page .al-footer-brand {
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .home-page .al-footer-tagline,
    .home-page .al-footer-description {
        margin-right: auto;
        margin-left: auto;
    }
    .home-page .al-footer-tagline { color: var(--al-white); }
    .blk-grid--3,
    .blk-grid--4 { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .blk-card-body + .blk-card-status { margin-top: var(--al-space-lg); }
    .faq-a { padding-right: var(--al-space-xl); }
}

@media (prefers-reduced-motion: reduce) {
    .blk-link,
    .blk-link span[aria-hidden],
    .faq-q,
    .faq-answer,
    .faq-mark,
    .faq-mark::before,
    .faq-mark::after { transition: none !important; }
}

/* ---------------------------------------------------------------------------
   Home problem trace
   ---------------------------------------------------------------------------
   One interrupted handoff replaces the generic symptom cards. The connector
   carries meaning: an assistant reaches an output, then the workflow stops and
   the longer manual tail begins. Text is always visible; only the small pixel
   travelling toward the break is animated.
--------------------------------------------------------------------------- */

/* On desktop the customer proof resolves into one oversized scroll question.
   Mobile uses the timed print sequence instead and never adds the tall stages;
   without JavaScript, both statements remain static. */
.al-clients {
    padding-bottom: 0;
}

.al-clients-heading p {
    margin-bottom: 0;
}

.al-clients-scroll-container {
    margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
}

.client-reason {
    position: relative;
    display: grid;
    place-items: center;
    padding-top: clamp(7rem, 12vw, 11rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.client-reason-question {
    position: relative;
    display: block;
    width: fit-content;
    color: var(--al-primary);
    font-size: clamp(2.8rem, 7vw, 7.4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.95;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
}

.client-reason-question > span {
    position: relative;
    display: block;
}

.client-reason-question > .client-reason-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.22em;
}

.client-reason-word {
    display: inline-flex;
}

.client-reason-letter {
    display: inline-block;
}

.client-reason-question > i {
    position: absolute;
    bottom: -1.35rem;
    left: 0;
    display: block;
    width: 36px;
    height: 8px;
    background:
        linear-gradient(var(--al-primary), var(--al-primary)) 28px 0 / 8px 8px no-repeat,
        linear-gradient(rgba(0, 255, 78, 0.48), rgba(0, 255, 78, 0.48)) 14px 0 / 8px 8px no-repeat,
        linear-gradient(rgba(0, 255, 78, 0.2), rgba(0, 255, 78, 0.2)) 0 0 / 8px 8px no-repeat;
    opacity: 0;
}

.has-problem-scroll-story .client-reason {
    display: block;
    height: max(44rem, 110vh);
    margin-top: clamp(5rem, 8vw, 8rem);
    padding-top: 0;
    padding-bottom: 0;
}

.has-problem-scroll-story .client-reason-question {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
}

.has-problem-scroll-story .client-reason-letter {
    color: transparent;
    transform: scaleY(0.2);
    transform-origin: center bottom;
    transition: color 90ms steps(1, end), transform 120ms steps(2, end);
}

.has-problem-scroll-story .client-reason-letter.is-visible {
    color: var(--al-primary);
    transform: scaleY(1);
}

.has-problem-scroll-story .client-reason-question > i {
    right: auto;
    bottom: auto;
    transition: left 80ms linear, top 80ms linear, opacity 100ms linear;
}

.has-problem-scroll-story .client-reason-question > i.is-visible {
    opacity: 1;
}

@media (max-width: 700px) {
    .al-clients-scroll-container {
        margin-top: 2rem;
    }

    .client-reason {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .client-reason-question {
        max-width: 9ch;
        font-size: clamp(2.45rem, 13vw, 3.5rem);
        line-height: 0.98;
        white-space: normal;
    }
}

.problem {
    padding-top: clamp(4.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(6rem, 9vw, 8.5rem);
}

.problem-copy {
    margin-bottom: clamp(4rem, 7vw, 6rem);
}

.problem-copy .blk-title {
    position: relative;
    max-width: none;
    font-size: clamp(2rem, 3.6vw, 4.1rem);
    text-align: center;
}

.problem-title-wide > span,
.problem-title-compact > span {
    display: block;
    white-space: nowrap;
}

.problem-title-compact { display: none; }

.problem-print-word {
    display: inline-flex;
}

.problem-print-letter {
    display: inline-block;
}

.problem-print-hand {
    position: absolute;
    z-index: 4;
    top: var(--print-hand-y, 0);
    left: var(--print-hand-x, 0);
    display: none;
    width: clamp(2rem, 3vw, 2.8rem);
    height: clamp(2rem, 3vw, 2.8rem);
    opacity: 0;
    pointer-events: none;
    transform: translate(-18%, -72%);
    transition: left 80ms linear, top 80ms linear, opacity 120ms linear;
}

.problem-print-hand img {
    display: block;
    width: 100%;
    height: 100%;
}

.problem-print-hand::before,
.problem-print-hand::after {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #b8ffc9;
    content: '';
    opacity: 0;
}

.problem-print-hand::before { top: 0; left: -4px; }
.problem-print-hand::after { top: -5px; right: 0; }

.has-problem-scroll-story .problem {
    padding-top: clamp(2.5rem, 3.5vw, 3.5rem);
}

.has-problem-scroll-story .problem-copy {
    min-height: max(44rem, 110vh);
    margin-bottom: 0;
}

.has-problem-scroll-story .problem-copy .blk-title {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
}

.has-problem-scroll-story .problem-print-letter {
    color: transparent;
    clip-path: inset(0 100% 0 0);
    transform: scaleY(0.35);
    transform-origin: center bottom;
}

.has-problem-scroll-story .problem-print-letter.is-printed {
    animation: problem-letter-print 180ms steps(2, end) forwards;
}

.has-problem-scroll-story .problem-print-hand {
    display: none;
}

.has-problem-scroll-story .problem-print-hand.is-visible {
    display: block;
    opacity: 1;
}

.problem-print-hand.is-stamping img {
    animation: problem-print-clap 180ms steps(2, end);
}

.problem-print-hand.is-stamping::before,
.problem-print-hand.is-stamping::after {
    animation: problem-print-pixel 180ms steps(2, end);
}

.problem-print-hand.is-stamping::after {
    animation-name: problem-print-pixel-right;
}

@keyframes problem-letter-print {
    0% { color: var(--al-primary); clip-path: inset(0 100% 0 0); transform: scaleY(0.35); }
    50% { color: #b8ffc9; clip-path: inset(0 0 0 0); transform: scaleY(1); }
    100% { color: var(--al-white); clip-path: inset(0 0 0 0); transform: scaleY(1); }
}

@keyframes problem-print-clap {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(0.82) rotate(-5deg); }
}

@keyframes problem-print-pixel {
    0% { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 0; transform: translate(-7px, -6px); }
}

@keyframes problem-print-pixel-right {
    0% { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 0; transform: translate(7px, -6px); }
}

/* If a desktop-initialized session is narrowed after load, shorten its sticky
   stage and enlarge the hand instead of leaving a phone-height field of black. */
@media (max-width: 700px) {
    .has-problem-scroll-story .client-reason {
        height: max(26rem, 72vh);
        margin-top: clamp(7rem, 20vw, 9rem);
    }

    .has-problem-scroll-story .problem-copy {
        min-height: max(26rem, 72vh);
    }

    .has-problem-scroll-story .client-reason-question,
    .has-problem-scroll-story .problem-copy .blk-title {
        top: 38vh;
    }

    .problem-print-hand {
        width: 3.5rem;
        height: 3.5rem;
    }

    .problem-print-hand::before,
    .problem-print-hand::after {
        width: 5px;
        height: 5px;
    }

    .client-reason-question > i {
        width: 48px;
        height: 10px;
        background:
            linear-gradient(var(--al-primary), var(--al-primary)) 38px 0 / 10px 10px no-repeat,
            linear-gradient(rgba(0, 255, 78, 0.48), rgba(0, 255, 78, 0.48)) 19px 0 / 10px 10px no-repeat,
            linear-gradient(rgba(0, 255, 78, 0.2), rgba(0, 255, 78, 0.2)) 0 0 / 10px 10px no-repeat;
    }
}

.problem-copy .blk-body {
    margin-top: var(--al-space-xl);
    max-width: 58ch;
    color: var(--al-gray-300);
}

.problem-trace {
    margin: 0;
}

.problem-flow {
    display: grid;
    grid-template-columns: minmax(13rem, 0.72fr) clamp(3.5rem, 6vw, 6rem) minmax(0, 1.5fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
    min-height: 20rem;
}

.problem-flow-label {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    color: var(--al-gray-400);
    font-family: var(--al-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.problem-automated,
.problem-manual,
.problem-break {
    position: relative;
    min-height: 18rem;
}

.problem-automated::before,
.problem-manual ol::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--al-gray-600);
    content: '';
}

.problem-node {
    position: absolute;
    top: 50%;
    width: 8rem;
    height: 0;
}

.problem-node i {
    position: absolute;
    z-index: 2;
    top: -3px;
    width: 9px;
    height: 9px;
    background: var(--al-gray-300);
}

.problem-node b {
    position: absolute;
    bottom: 1.35rem;
    color: var(--al-gray-200);
    font-family: var(--al-font-mono);
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    font-weight: 600;
    white-space: nowrap;
}

.problem-node--input { left: 0; }
.problem-node--input i,
.problem-node--input b { left: 0; }

.problem-node--output { right: 0; }
.problem-node--output i,
.problem-node--output b { right: 0; }

.problem-runner {
    position: absolute;
    z-index: 3;
    top: calc(50% + 1px);
    left: 1px;
    width: 7px;
    height: 7px;
    background: var(--al-primary);
    transform: translateY(-50%);
    animation: problem-runner-stop 5.6s cubic-bezier(0.58, 0, 0.24, 1) infinite;
}

@keyframes problem-runner-stop {
    0% { left: 1px; }
    52%, 100% { left: calc(100% - 8px); }
}

.problem-break {
    color: var(--al-gray-500);
    animation: problem-break-hit 5.6s linear infinite;
}

@keyframes problem-break-hit {
    0%, 50% { color: var(--al-gray-500); }
    55%, 100% { color: var(--al-gray-100); }
}

.problem-break-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%);
}

.problem-break-mark i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.problem-break-mark i:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.problem-break-mark i:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.problem-break-label {
    position: absolute;
    top: calc(50% + 2.2rem);
    left: 50%;
    color: currentColor;
    font-family: var(--al-font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
    transform: translateX(-50%);
}

.problem-manual ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 18rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.problem-manual li {
    position: relative;
    color: var(--al-gray-400);
    animation: problem-manual-step 5.6s linear infinite;
}

.problem-manual li::before { content: none; }

.problem-manual li:nth-child(2) { animation-delay: 0.14s; }
.problem-manual li:nth-child(3) { animation-delay: 0.28s; }
.problem-manual li:nth-child(4) { animation-delay: 0.42s; }
.problem-manual li:nth-child(5) { animation-delay: 0.56s; }

@keyframes problem-manual-step {
    0%, 57% { color: var(--al-gray-400); }
    63%, 72% { color: var(--al-white); }
    80%, 100% { color: var(--al-gray-400); }
}

.problem-manual li i {
    position: absolute;
    z-index: 2;
    top: calc(50% - 3px);
    left: calc(50% - 4px);
    width: 9px;
    height: 9px;
    background: currentColor;
}

.problem-manual li span {
    position: absolute;
    left: 50%;
    width: min(11rem, 145%);
    font-size: clamp(0.78rem, 1vw, 0.95rem);
    line-height: 1.45;
    text-align: center;
    transform: translateX(-50%);
}

.problem-manual li:nth-child(odd) span {
    bottom: calc(50% + 1.6rem);
}

.problem-manual li:nth-child(even) span {
    top: calc(50% + 1.6rem);
}

.problem-manual li:first-child span {
    left: 0;
    text-align: left;
    transform: none;
}

.problem-manual li:last-child span {
    right: 0;
    left: auto;
    text-align: right;
    transform: none;
}

.problem-status {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: var(--al-space-md);
    margin-top: var(--al-space-lg);
    color: var(--al-gray-500);
    font-family: var(--al-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.problem-status strong {
    color: var(--al-gray-200);
    font-size: 0.92rem;
    font-weight: 650;
}

@media (max-width: 900px) {
    .problem-title-wide > span { white-space: normal; }

    .problem-flow {
        grid-template-columns: minmax(10rem, 0.65fr) 4rem minmax(0, 1.35fr);
        gap: var(--al-space-md);
    }
}

@media (max-width: 700px) {
    .problem {
        padding-top: var(--al-space-4xl);
        padding-bottom: var(--al-space-4xl);
    }

    .problem-copy { margin-bottom: var(--al-space-3xl); }

    .problem-copy .blk-title {
        font-size: clamp(1.15rem, 6.4vw, 1.5rem);
        letter-spacing: -0.03em;
    }

    .problem-title-wide { display: none; }

    .problem-title-compact { display: block; }

    .problem-flow {
        grid-template-columns: 1fr;
        gap: var(--al-space-lg);
        min-height: 0;
    }

    .problem-automated {
        min-height: 9rem;
    }

    .problem-automated::before,
    .problem-node { top: 64%; }

    .problem-runner { top: calc(64% + 1px); }

    .problem-flow-label {
        position: static;
        margin-bottom: var(--al-space-lg);
    }

    .problem-break {
        width: 100%;
        min-height: 5rem;
    }

    .problem-break-mark { top: 1rem; }

    .problem-break-label { top: 2.9rem; }

    .problem-manual {
        min-height: 0;
        margin-top: var(--al-space-sm);
    }

    .problem-manual ol {
        grid-template-columns: 1fr 1fr;
        gap: var(--al-space-md) var(--al-space-lg);
        height: auto;
    }

    .problem-manual ol::before { display: none; }

    .problem-manual li {
        min-height: 2.8rem;
        padding-left: 1.2rem;
    }

    .problem-manual li i {
        top: 0.48rem;
        left: 0;
        width: 7px;
        height: 7px;
    }

    .problem-manual li span,
    .problem-manual li:nth-child(odd) span,
    .problem-manual li:nth-child(even) span {
        position: static;
        display: block;
        width: auto;
        font-size: 0.9rem;
        text-align: left;
        transform: none;
    }

    .problem-status {
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: var(--al-space-2xl);
    }

}

@media (prefers-reduced-motion: reduce) {
    .problem-runner { left: calc(100% - 8px); animation: none; }
    .problem-break { color: var(--al-gray-100); animation: none; }
    .problem-manual li { color: var(--al-gray-200); animation: none; }
}

/* Explicit before/after traces. Desktop compares the actual ownership rows in
   parallel; phones keep the same rows stacked for a single reading column. */
.problem-comparison {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 0;
    margin: 0;
}

.problem-lane {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--al-radius-lg);
    background: rgba(255, 255, 255, 0.014);
}

.problem-lane--future {
    position: relative;
    border-color: rgba(0, 255, 78, 0.14);
    background: rgba(0, 255, 78, 0.022);
}

.problem-versus {
    position: relative;
    z-index: 5;
    align-self: center;
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    gap: 0.05em;
    padding: clamp(1.4rem, 2.4vw, 1.9rem) 0;
    font-family: var(--al-font-body);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.14em;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-0.08em) rotate(-6deg);
}

.problem-versus span:first-child {
    color: var(--al-gray-200);
}

.problem-versus span:last-child {
    color: var(--al-primary);
    transform: translateY(0.16em);
}

.problem-lane > header,
.problem-lane > footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--al-space-lg);
}

.problem-lane > footer span {
    color: var(--al-gray-400);
    font-family: var(--al-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.problem-lane > header strong {
    color: var(--al-white);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.3;
}

.problem-lane > header p {
    margin: 0;
    color: var(--al-gray-300);
    font-family: var(--al-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.problem-lane-summary {
    display: none;
}

.problem-lane-stage {
    position: relative;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.problem-lane-stage ol {
    position: relative;
    z-index: 2;
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.problem-lane--today .problem-lane-stage ol {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.problem-lane--future .problem-lane-stage ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.problem-lane-step {
    position: relative;
    min-width: 0;
    padding: 1.55rem 0.45rem 0;
    color: var(--al-gray-300);
    text-align: center;
}

.problem-lane-step i {
    --problem-node-shift: -50%;
    position: absolute;
    top: 1px;
    left: 50%;
    width: 9px;
    height: 9px;
    background: var(--al-gray-400);
    transform: translateX(-50%);
}

.problem-lane-step--workflow i,
.problem-lane-step--ai-tool i {
    background: var(--al-primary);
}

.problem-lane-step--you i {
    background: var(--al-gray-100);
}

.problem-lane-step span {
    display: block;
    color: var(--al-gray-200);
    font-family: var(--al-font-body);
    font-size: clamp(0.88rem, 1.15vw, 1rem);
    font-weight: 600;
    line-height: 1.4;
}

.problem-lane-step small {
    display: block;
    margin-top: 0.35rem;
    color: var(--al-gray-400);
    font-family: var(--al-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.problem-lane > footer {
    padding-top: var(--al-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.problem-lane > footer strong {
    color: var(--al-gray-200);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.problem-lane--future > footer strong {
    color: var(--al-white);
}

.problem-outcome {
    display: grid;
    justify-items: center;
    margin-top: clamp(2.5rem, 5vw, 4.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
    color: var(--al-gray-400);
    text-align: center;
}

.problem-outcome-intro {
    max-width: 34rem;
    margin: 0 0 clamp(1.2rem, 3vw, 2rem);
    color: var(--al-gray-200);
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: 1.35;
}

.problem-outcome-value {
    max-width: 22ch;
    color: var(--al-white);
    font-family: var(--al-font-display);
    font-size: clamp(1.25rem, 6.7vw, 5.8rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 0.94;
    text-align: center;
    text-wrap: balance;
}

.problem-outcome-value > span {
    display: block;
    white-space: nowrap;
}

.problem-outcome-note {
    max-width: 38rem;
    margin-top: var(--al-space-lg);
    color: var(--al-gray-300);
    font-size: 0.9rem;
    line-height: 1.5;
}

.problem-outcome-note > span {
    display: block;
    white-space: nowrap;
}

@media (min-width: 701px) {
    .problem-comparison {
        grid-template-rows: auto auto auto;
    }

    .problem-lane {
        display: grid;
        grid-template-rows: auto 1fr;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .problem-lane--today {
        grid-row: 1;
        margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
    }

    .problem-lane--future {
        grid-row: 2;
        border-color: transparent;
        background: none;
    }

    .problem-versus {
        display: none;
    }

    .problem-lane > header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title summary"
            "description summary";
        align-items: start;
        column-gap: clamp(1.5rem, 3vw, 2.5rem);
        row-gap: 0.3rem;
    }

    .problem-lane > header strong {
        grid-area: title;
    }

    .problem-lane > header p {
        grid-area: description;
        text-align: left;
    }

    .problem-lane-summary {
        grid-area: summary;
        align-self: center;
        display: block;
        max-width: 11rem;
        color: var(--al-gray-300);
        font-family: var(--al-font-body);
        font-size: 0.9rem;
        font-weight: 500;
        line-height: 1.4;
        text-align: right;
    }

    .problem-lane-summary b {
        color: var(--al-white);
        font-size: 1.15em;
        font-weight: 700;
    }

    .problem-lane--future .problem-lane-summary b {
        color: var(--al-primary);
    }

    .problem-lane-stage {
        margin: clamp(1.5rem, 2.4vw, 2rem) 0 0;
    }

    .problem-lane--today .problem-lane-stage ol,
    .problem-lane--future .problem-lane-stage ol {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .problem-lane-step {
        --problem-desktop-base: rgba(255, 255, 255, 0.018);
        --problem-desktop-focus: rgba(255, 255, 255, 0.075);
        --problem-desktop-ink: var(--al-gray-200);
        --problem-desktop-owner: var(--al-gray-200);
        --problem-desktop-delay: 0s;
        --problem-desktop-cycle: 7.6s;
        display: grid;
        grid-template-columns: 0.65rem minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0.75rem;
        min-height: 3.65rem;
        padding: 0.7rem 0.9rem;
        border-radius: 0.3rem;
        background: var(--problem-desktop-base);
        color: var(--problem-desktop-ink);
        text-align: left;
    }

    .problem-lane-step--workflow,
    .problem-lane-step--ai-tool {
        --problem-desktop-focus: rgba(0, 255, 78, 0.075);
        --problem-desktop-owner: var(--al-primary);
    }

    .problem-lane-step i {
        position: relative;
        top: auto;
        left: auto;
        width: 7px;
        height: 7px;
        transform: none;
    }

    .problem-lane-step--ai-tool i,
    .problem-lane-step--workflow i {
        background: var(--al-primary);
    }

    .problem-lane-step span {
        color: inherit;
        font-size: clamp(0.9rem, 1vw, 1rem);
        line-height: 1.35;
    }

    .problem-lane-step small {
        margin: 0;
        color: var(--problem-desktop-owner);
        font-family: var(--al-font-body);
        font-size: 0.76rem;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.3;
        text-transform: none;
        white-space: nowrap;
    }

    .problem-lane.is-sequencing .problem-lane-step {
        animation: problem-desktop-step-focus var(--problem-desktop-cycle) linear infinite;
        animation-delay: var(--problem-desktop-delay);
    }

    .problem-lane--future.is-sequencing .problem-lane-step:nth-child(4) {
        animation-name: problem-desktop-step-focus-approval;
    }

    .problem-lane--today .problem-lane-step:nth-child(1) { --problem-desktop-delay: 0s; }
    .problem-lane--today .problem-lane-step:nth-child(2) { --problem-desktop-delay: 0.8s; }
    .problem-lane--today .problem-lane-step:nth-child(3) { --problem-desktop-delay: 1.75s; }
    .problem-lane--today .problem-lane-step:nth-child(4) { --problem-desktop-delay: 2.8s; }
    .problem-lane--today .problem-lane-step:nth-child(5) { --problem-desktop-delay: 3.85s; }
    .problem-lane--today .problem-lane-step:nth-child(6) { --problem-desktop-delay: 4.9s; }

    .problem-lane--future .problem-lane-step:nth-child(1) { --problem-desktop-delay: 0s; }
    .problem-lane--future .problem-lane-step:nth-child(2) { --problem-desktop-delay: 0.85s; }
    .problem-lane--future .problem-lane-step:nth-child(3) { --problem-desktop-delay: 1.7s; }
    .problem-lane--future .problem-lane-step:nth-child(4) {
        --problem-desktop-delay: 2.55s;
    }
    .problem-lane--future .problem-lane-step:nth-child(5) { --problem-desktop-delay: 4.15s; }

    .problem-outcome {
        grid-row: 3;
    }

    @keyframes problem-desktop-step-focus {
        0%, 15%, 100% {
            background: var(--problem-desktop-base);
            color: var(--problem-desktop-ink);
        }
        2%, 12% {
            background: var(--problem-desktop-focus);
            color: var(--al-white);
        }
    }

    @keyframes problem-desktop-step-focus-approval {
        0%, 21%, 100% {
            background: var(--problem-desktop-base);
            color: var(--problem-desktop-ink);
        }
        2%, 18% {
            background: var(--problem-desktop-focus);
            color: var(--al-white);
        }
    }
}

@media (min-width: 900px) {
    .problem-comparison {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        column-gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    .problem-lane--today,
    .problem-lane--future {
        grid-row: 1;
        margin-bottom: 0;
    }

    .problem-lane--today { grid-column: 1; }
    .problem-lane--future { grid-column: 2; }

    .problem-outcome {
        grid-row: 2;
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    .problem-lane > header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "description"
            "summary";
    }

    .problem-lane-summary {
        justify-self: start;
        max-width: none;
        margin-top: 0.65rem;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .problem-comparison {
        grid-template-rows: auto auto auto auto;
    }

    .problem-lane {
        padding: var(--al-space-lg) var(--al-space-md);
    }

    .problem-lane > header,
    .problem-lane > footer {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--al-space-xs);
    }

    .problem-lane > header p,
    .problem-lane > footer strong {
        text-align: left;
    }

    .problem-lane-stage {
        margin: var(--al-space-xl) 0 0;
    }

    .problem-lane--today .problem-lane-stage ol,
    .problem-lane--future .problem-lane-stage ol {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .problem-lane-step {
        --problem-mobile-focus: rgba(255, 255, 255, 0.075);
        --problem-mobile-owner: var(--al-gray-200);
        display: grid;
        grid-template-columns: 0.7rem minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 0.75rem;
        min-height: 3.65rem;
        padding: 0.68rem 0.75rem;
        border-radius: var(--al-radius-sm);
        background: rgba(255, 255, 255, 0.012);
        color: var(--al-gray-200);
        text-align: left;
        transform-origin: center;
        animation: problem-mobile-step-focus 7.2s linear infinite;
        animation-delay: var(--problem-mobile-delay, 0s);
        animation-play-state: paused;
    }

    .problem-lane-step--workflow,
    .problem-lane-step--ai-tool {
        --problem-mobile-focus: rgba(0, 255, 78, 0.075);
        --problem-mobile-owner: var(--al-primary);
    }

    .problem-lane .problem-lane-step i {
        position: relative;
        top: auto;
        left: auto;
        grid-row: 1 / span 2;
        align-self: center;
        width: 7px;
        height: 7px;
        --problem-node-shift: 0%;
        transform: none;
        animation: problem-mobile-step-node 7.2s linear infinite;
        animation-delay: var(--problem-mobile-delay, 0s);
        animation-play-state: paused;
    }

    .problem-lane.problem-lane--future .problem-lane-step i {
        animation-delay: var(--problem-mobile-delay, 0s);
    }

    .problem-lane-step span {
        color: inherit;
    }

    .problem-lane-step small {
        margin-top: 0.12rem;
        color: var(--problem-mobile-owner);
    }

    .problem-lane-step--workflow small,
    .problem-lane-step--ai-tool small {
        color: var(--al-primary);
    }

    .problem-lane .problem-lane-step--workflow i,
    .problem-lane .problem-lane-step--ai-tool i {
        background: var(--al-primary);
    }

    .problem-lane.is-sequencing .problem-lane-step,
    .problem-lane.is-sequencing .problem-lane-step i {
        animation-play-state: running;
    }

    .problem-lane--today .problem-lane-step:nth-child(1) { --problem-mobile-delay: 0s; }
    .problem-lane--today .problem-lane-step:nth-child(2) { --problem-mobile-delay: 1.2s; }
    .problem-lane--today .problem-lane-step:nth-child(3) { --problem-mobile-delay: 2.4s; }
    .problem-lane--today .problem-lane-step:nth-child(4) { --problem-mobile-delay: 3.6s; }
    .problem-lane--today .problem-lane-step:nth-child(5) { --problem-mobile-delay: 4.8s; }
    .problem-lane--today .problem-lane-step:nth-child(6) { --problem-mobile-delay: 6s; }

    .problem-lane--future .problem-lane-step:nth-child(1) { --problem-mobile-delay: 0s; }
    .problem-lane--future .problem-lane-step:nth-child(2) { --problem-mobile-delay: 1.25s; }
    .problem-lane--future .problem-lane-step:nth-child(3) { --problem-mobile-delay: 2.5s; }
    .problem-lane--future .problem-lane-step:nth-child(4) { --problem-mobile-delay: 3.75s; }
    .problem-lane--future .problem-lane-step:nth-child(5) { --problem-mobile-delay: 5.25s; }

    @keyframes problem-mobile-step-focus {
        0%, 16% {
            background: var(--problem-mobile-focus);
            color: var(--al-white);
            transform: scale(1.012);
        }
        19%, 100% {
            background: rgba(255, 255, 255, 0.012);
            color: var(--al-gray-200);
            transform: scale(1);
        }
    }

    @keyframes problem-mobile-step-node {
        0%, 16% { transform: scale(1.55); }
        19%, 100% { transform: scale(1); }
    }

}

@media (prefers-reduced-motion: reduce) {
    .client-reason-question > i { display: none; }
    .problem-lane-step,
    .problem-lane .problem-lane-step i { animation: none; }
}

/* ---------------------------------------------------------------------------
   Home hero additions
   ---------------------------------------------------------------------------
   The hero uses two deliberate rows: proposition + hand (the CTA concludes
   the proposition column), then a quiet single-line provider rail. Spacing is
   retuned here rather than in the 10k-line main stylesheet so the change is
   reviewable in one place.
--------------------------------------------------------------------------- */

.al-hero-content {
    column-gap: clamp(2rem, 3vw, 3rem);
    row-gap: var(--al-space-lg);
}

.al-hero-text {
    grid-row: 1;
    grid-column: 1;
}

.al-hero-visual--pixel {
    grid-row: 1;
    grid-column: 2;
    align-self: start;
    transform: translateY(clamp(-2.5rem, -3vw, -1.5rem));
}

/* The homepage hand uses a roomy transparent SVG canvas. On desktop, enlarge
   that canvas beyond its narrow grid track so the visible pixels fill the
   right-side composition without moving the proof panel. */
@media (min-width: 901px) {
    .al-hero-visual--pixel {
        align-self: stretch;
        min-height: clamp(20rem, 29vw, 26rem);
        transform: none;
    }

    .al-hero-visual--pixel .pxh {
        position: absolute;
        top: 50%;
        left: 30%;
        width: clamp(22rem, 39vw, 35rem);
        transform: translate(-48%, -47%);
    }

    .al-hero-visual--pixel .pxh-hand {
        flex: 0 0 auto;
        width: 100%;
    }
}

.al-hero-eyebrow {
    display: block;
    font-family: var(--al-font-body);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--al-gray-400);
    margin: 0 0 var(--al-space-md);
}

/* Keep the setup and proposition in one semantic headline while giving the
   shorter proposition the display emphasis. */
.al-hero-title-intro {
    display: block;
    max-width: 660px;
    margin-bottom: var(--al-space-md);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--al-font-body);
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    text-shadow: none;
}

.al-mobile-print-word {
    display: inline-block;
    white-space: nowrap;
}

.al-mobile-print-letter {
    display: inline-block;
}

.al-mobile-print-target .al-mobile-print-visual {
    display: inline;
}

.al-mobile-print-target .al-mobile-print-word,
.al-mobile-print-target .al-mobile-print-letter {
    display: inline-block;
}

.al-mobile-print-target {
    position: relative;
}

.al-mobile-print-hand {
    position: absolute;
    z-index: 4;
    top: var(--hero-print-hand-y, 0);
    left: var(--hero-print-hand-x, 0);
    display: none;
    width: 3rem;
    height: 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-14%, -76%);
    transition: left 45ms linear, top 45ms linear, opacity 80ms linear;
}

.al-mobile-print-hand img {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes al-mobile-letter-print {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: scaleY(0.35); }
    50% { opacity: 1; clip-path: inset(0 0 0 0); filter: brightness(1.7); transform: scaleY(1); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); filter: none; transform: scaleY(1); }
}

.al-hero .al-hero-principle {
    margin: 0 0 var(--al-space-lg);
    max-width: 660px;
    font-weight: 500;
    color: var(--al-gray-200);
    line-height: 1.6;
}

/* The benefit is a transfer of work, not three feature cards. A seven-pixel
   handoff marker joins each step without introducing a stock arrow. */
.al-hero-benefit {
    --al-handoff-right:
        linear-gradient(currentColor 0 0) 0 6px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 5px 6px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 10px 6px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 15px 1px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 15px 6px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 15px 11px / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 20px 6px / 4px 4px no-repeat;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem);
    max-width: 760px;
    margin: 0 0 var(--al-space-lg);
    padding: 0;
    list-style: none;
}

.al-hero-benefit li {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.al-hero-benefit li:not(:last-child)::after {
    position: absolute;
    top: 0.25rem;
    right: calc(-1 * clamp(1rem, 2.2vw, 1.95rem));
    width: 24px;
    height: 16px;
    color: var(--al-primary);
    content: '';
    background: var(--al-handoff-right);
    opacity: 0.58;
    pointer-events: none;
}

.al-hero-benefit li:first-child strong::before {
    display: inline-block;
    width: 24px;
    height: 16px;
    margin-right: 0.55rem;
    color: var(--al-primary);
    content: '';
    background: var(--al-handoff-right);
    opacity: 0.58;
    vertical-align: -0.2rem;
}

.al-hero-benefit strong,
.al-hero-benefit span {
    display: block;
}

.al-hero-benefit strong {
    color: var(--al-white);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    font-weight: 700;
    line-height: 1.35;
}

.al-hero-benefit-copy {
    margin-top: 0.5rem;
    color: var(--al-gray-300);
    font-size: clamp(0.92rem, 1.08vw, 1rem);
    line-height: 1.55;
}

/* The CTA lives in the proposition column; it concludes the message. */
.al-hero-cta {
    width: fit-content;
    max-width: 100%;
    margin: var(--al-space-md) 0 0;
    text-align: center;
    white-space: normal;
}

/* Provider marks read as a footnote strip: one quiet line, even gaps. */
.al-hero-validation {
    grid-row: 2;
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: var(--al-space-md);
    text-align: left;
}

.al-hero-providers {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: var(--al-space-sm);
    padding: 0;
}

.al-hero-providers > p {
    max-width: none;
    margin: 0;
    color: var(--al-gray-400);
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: nowrap;
}

.al-hero-providers ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--al-space-sm) clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-hero-provider {
    display: flex;
    flex: none;
    min-height: 2.25rem;
    align-items: center;
}

/* Several of these SVGs carry only an aspect ratio (no width/height attrs),
   which collapses to 0 under width:auto + max-height inside a shrink-to-fit
   flex item. A definite height with object-fit:contain sizes every mark
   reliably; per-brand max-widths below cap the wide ones. */
.al-hero-provider img {
    display: block;
    width: auto;
    height: 1.5rem;
    object-fit: contain;
    object-position: left center;
    opacity: 0.7;
}

.al-hero-provider-link {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
}

.al-hero-provider-link:focus-visible {
    outline: 2px solid var(--al-primary);
    outline-offset: 5px;
}

.al-hero-provider:not(.al-hero-provider--atelier) img {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.6;
}

/* Muted like its peers (hover restores presence via the link); sized with a
   definite height because this SVG is also ratio-only. The link keeps
   fit-content width from the base rule — a percentage width here would be
   cyclic inside the shrink-to-fit rail. */
.al-hero-provider--atelier img {
    height: 1.6rem;
    max-width: 7.2rem;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.72;
    transition: opacity var(--al-transition-fast);
}

.al-hero-provider--atelier .al-hero-provider-link:hover img,
.al-hero-provider--atelier .al-hero-provider-link:focus-visible img {
    opacity: 0.92;
}
.al-hero-provider--azure img { max-width: 6.2rem; }
.al-hero-provider--google-cloud img { max-width: 8.5rem; }
.al-hero-provider--aws img { max-width: 3.8rem; height: 1.6rem; }
.al-hero-provider--openai img { max-width: 7.1rem; }
.al-hero-provider--anthropic img {
    max-width: 7.6rem;
    filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
    .al-hero-provider--atelier img { transition: none !important; }
}

.al-hero-support {
    margin: var(--al-space-md) 0 0;
    font-family: var(--al-font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--al-gray-400);
    max-width: 660px;
}

/* Same guard as the closing CTA: the action never sets the document width. */
.al-hero-buttons .al-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

/* The two-column hero becomes cramped on tablets before the phone navigation
   breakpoint. Collapse the composition while there is still room to keep the
   three-part benefit sequence on one readable row. */
@media (max-width: 900px) {
    .al-hero {
        min-height: auto;
        align-items: flex-start;
        padding: 6rem 0 2.5rem;
    }

    .al-hero-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        transform: none;
    }

    .al-hero-title-intro {
        color: var(--al-primary);
    }

    .al-hero-text,
    .al-hero-validation {
        grid-column: 1;
    }

    .al-hero-text { grid-row: 1; }

    .al-hero-visual--pixel {
        display: none;
    }

    .al-hero-validation {
        grid-row: 2;
        padding-top: 0.25rem;
    }

    .al-clients {
        margin-top: 0;
    }
}

@media (max-width: 780px) {
    .al-hero > .al-container {
        width: 100%;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .al-hero-smoke,
    .al-hero-pattern,
    .al-hero::after {
        display: none;
    }

    .al-hero-content {
        text-align: center;
    }

    .al-hero-text {
        width: 100%;
    }

    .al-hero-title {
        position: relative;
        max-width: 100%;
        margin-bottom: 1.75rem;
        font-size: clamp(1.42rem, 7.1vw, 1.9rem);
        line-height: 1.08;
        text-align: center;
        text-shadow: none;
    }

    .al-hero-title-line {
        display: block;
        white-space: nowrap;
    }

    .al-hero-title-intro {
        max-width: 30ch;
        margin-right: auto;
        margin-bottom: 1rem;
        margin-left: auto;
        color: var(--al-white);
        font-family: var(--al-font-ui);
        font-size: 0.98rem;
        line-height: 1.5;
        text-align: center;
    }

    .al-hero-title-line--primary {
        color: var(--al-primary);
    }

    .al-hero-title-line--secondary {
        color: var(--al-primary);
    }

    .al-mobile-print-target.is-mobile-printing .al-mobile-print-letter {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: scaleY(0.35);
        transform-origin: center bottom;
    }

    .al-mobile-print-target.is-mobile-printing .al-mobile-print-letter.is-printed {
        animation: al-mobile-letter-print 150ms steps(2, end) forwards;
    }

    .al-mobile-print-target .al-mobile-print-hand {
        display: block;
    }

    .al-mobile-print-hand.is-visible {
        opacity: 1;
    }

    .al-hero-benefit {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: none;
        margin-bottom: 1rem;
        text-align: center;
    }

    .al-hero-benefit li {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        align-items: start;
        justify-items: center;
        padding: 0.75rem 0;
        text-align: center;
    }

    .al-hero-benefit li:not(:last-child)::after {
        display: none;
    }

    .al-hero-benefit li:first-child strong::before {
        display: none;
    }

    .al-hero-benefit strong {
        font-family: var(--al-font-ui);
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .al-hero-benefit-copy {
        margin-top: 0;
        max-width: 32ch;
        color: #c0c9c2;
        font-family: var(--al-font-ui);
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .al-hero-cta {
        display: flex;
        min-height: 44px;
        margin: 1rem auto 0;
        padding-right: 1.1rem;
        padding-left: 1.1rem;
        white-space: nowrap;
    }

    .al-hero-validation {
        text-align: center;
    }

    .al-hero-providers > p {
        color: var(--al-gray-300);
        font-family: var(--al-font-ui);
        text-align: center;
    }

    .al-hero-providers ul {
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin-right: auto;
        margin-left: auto;
    }

    .al-hero-provider {
        min-height: 1.75rem;
    }

    .al-hero-provider img {
        height: 1.2rem;
    }

    .al-hero-provider--atelier img {
        height: 1.3rem;
    }

    .al-hero-provider--aws img {
        height: 1.25rem;
    }

    .al-hero-provider--anthropic img {
        max-width: 5.6rem;
    }

    /* Give the rail's label its own line before the logos start wrapping. */
    .al-hero-providers > p {
        flex-basis: 100%;
    }
}

/* Keep the proof rail on the centered mobile proposition axis. */
@media (max-width: 768px) {
    .al-hero-providers,
    .al-hero-providers ul {
        justify-content: center;
    }

    .al-hero-providers > p {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    /* The two authored lines both clear the phone gutter; keep the explicit
       break instead of letting the headline fall into a three-line staircase. */
    .al-hero-title { font-size: clamp(1.42rem, 7.1vw, 1.9rem); }
    .al-hero-title-line { display: block; white-space: nowrap; }

    /* Tighten the stack so the action sits as close to the fold as this much
       copy allows. */
    .al-hero-title-intro { margin-bottom: 1rem; }
    .al-hero-benefit { margin-bottom: var(--al-space-md); }
    .al-hero-providers > p {
        font-size: clamp(0.72rem, 3.2vw, 0.82rem);
        letter-spacing: -0.01em;
    }
    .al-hero-eyebrow { margin-bottom: var(--al-space-sm); }
    .problem-outcome-note { font-size: clamp(0.7rem, 3.1vw, 0.82rem); }
}

/* ---------------------------------------------------------------------------
   Interior page opener
   ---------------------------------------------------------------------------
   The nav is fixed, so the first block on an interior page has to clear it.
   Only the FIRST block gets this; `.blk + .blk` still collapses every join
   below, so the page stays one continuous surface.
--------------------------------------------------------------------------- */

.blk--open {
    padding-top: calc(var(--al-space-4xl) + 4.5rem);
}

.blk--open .blk-title {
    /* The opener carries the page, so it is allowed to run larger than a
       section head - but still inside two lines, never a stacked staircase. */
    font-size: clamp(1.7rem, 5.4vw, 3.4rem);
    max-width: 26ch;
}

/* ---------------------------------------------------------------------------
   Workflow catalogue (/workflows)
   ---------------------------------------------------------------------------
   Every row is a two-column grid: the description on the left, the day figure
   on the right. Because the figure lives in its own fixed track, a long
   description can never shift it - the day counts read as one aligned column
   straight down the page, which is the whole point of publishing them.
--------------------------------------------------------------------------- */

.wfl-group + .wfl-group { padding-top: 0; }

.wfl-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--al-space-md) var(--al-space-xl);
    padding-bottom: var(--al-space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.wfl-group-head .blk-title {
    font-size: clamp(1.25rem, 3vw, 1.9rem);
    max-width: 24ch;
}

/* Status is a plain line of type, not a chip. It already has a border-top from
   .blk-card-status inside a card; here it sits under a rule of its own, so
   strip the doubled one. */
.wfl-group-status {
    margin: 0;
    padding-top: 0;
    border-top: none;
    color: var(--al-gray-300);
}

.wfl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wfl-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--al-space-xl);
    padding: var(--al-space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wfl-item-main { min-width: 0; }

.wfl-item-name {
    color: var(--al-white);
    font-size: clamp(1.02rem, 1.9vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--al-space-sm);
}

.wfl-item-body {
    color: var(--al-gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 58ch;
}

/* The figure is the second column of the grid. Fixed width so the numbers line
   up with each other rather than with their own descriptions. */
.wfl-item-days {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    width: 6.5rem;
    margin: 0;
    text-align: right;
}

.wfl-item-days b {
    font-family: var(--al-font-mono);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    line-height: 1;
    /* Display type needs air: without this the numeral sits cramped against
       its label. */
    letter-spacing: 0.01em;
    color: var(--al-primary);
}

.wfl-item-days span {
    font-family: var(--al-font-mono);
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--al-gray-300);
}

/* ---- the two stages ---- */

.wfl-stages {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--al-space-xl);
    margin: 0;
    padding: 0;
}

.wfl-stage {
    display: grid;
    /* Number and copy on one grid, so both stages' headings share a baseline
       however long the body above runs. */
    grid-template-rows: auto 1fr;
    gap: var(--al-space-sm);
    padding-top: var(--al-space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.wfl-stage .blk-step-num { margin-bottom: 0; }

.wfl-stage-name {
    color: var(--al-white);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--al-space-sm);
}

.wfl-stage-body {
    color: var(--al-gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 780px) {
    .wfl-stages { grid-template-columns: 1fr; }

    /* The day figure moves under its description rather than squeezing the
       text into a narrow column. */
    .wfl-item {
        grid-template-columns: 1fr;
        gap: var(--al-space-md);
    }

    .wfl-item-days {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
        width: auto;
        text-align: left;
    }

    .wfl-item-days b { font-size: 1.4rem; }

    .wfl-group-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* The nav is fixed, so any section reached by an in-page anchor (/workflows#offers,
   /#how-it-works, /#pricing) would otherwise land with its heading tucked
   underneath it. Hold every addressable block clear of the bar. */
.blk[id],
.wfl-group[id] {
    scroll-margin-top: 6.5rem;
}
