@charset "utf-8";

/*
    MecanoPro AI - /features/mecanopro-ai.

    ? Nine different jobs do not fit a list of bullet points, and they do fit a day. The body of the
    ? page is a Monday at the shop, in order, with the time down the left and a dashed red line
    ? running through it - the same bay line the home, features and solutions pages paint under their
    ? heroes, turned on its side. The time is real structure here: the entries are a sequence.

    ? The hero is the one memorable thing. It is the website chat as a visitor sees it, played once,
    ? and it is deliberately not a flattering one: the second question gets handed to a person,
    ? because that is the honest edge of the product and the part a shop owner worries about.

    ? Same ground as the rest of the site (concrete, the brand's steel, red used the way a shop uses
    ? paint). Scoped under .mecanopro-ai-page so the shared components keep their look elsewhere.
*/

.mecanopro-ai-page {
    --ai-concrete: #e8ebee;
    --ai-paper: #f4f6f7;
    --ai-line: #cdd4da;
    --ai-ink: #151b21;
    --ai-steel: #1f272f;
    --ai-text: #36424d;
    --ai-muted: #55616c;
    --ai-red: #fb172b;
    --ai-red-dark: #d9101f;

    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-stretch: 100%;
    color: var(--ai-text);
}

/*  The display voice, shared with the other pages: the same family pulled condensed and heavy */
.mecanopro-ai-page .ai-hero-title,
.mecanopro-ai-page .ai-section-title,
.mecanopro-ai-page .day-time,
.mecanopro-ai-page .day-title,
.mecanopro-ai-page .control-name,
.mecanopro-ai-page .ai-mcp-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.mecanopro-ai-page a:focus-visible {
    outline: 3px solid var(--ai-ink);
    outline-offset: 3px;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the conversation is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

.mecanopro-ai-page .ai-hero {
    position: relative;
    background-color: var(--ai-ink);
    color: #c3ccd5;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

/*  The red bay line, as on the other pages */
.mecanopro-ai-page .ai-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--ai-red) 0 28px, transparent 28px 48px);
}

.mecanopro-ai-page .ai-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.mecanopro-ai-page .ai-hero-title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.96;
    color: #ffffff;
    max-width: 15ch;
    text-wrap: balance;
}

.mecanopro-ai-page .ai-hero-lede {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 52ch;
}

.mecanopro-ai-page .ai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/*  The quiet button, drawn for the dark ground */
.mecanopro-ai-page .btn-ai-ghost,
.mecanopro-ai-page .btn-ai-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.mecanopro-ai-page .btn-ai-ghost:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--ai-ink);
}

/*  The conversation ----------------------------------------------------------------------------- */

.mecanopro-ai-page .chat-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 470px;
    background-color: var(--ai-paper);
    border-radius: 14px;
    padding: 0 22px 18px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

.mecanopro-ai-page .chat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--ai-line);
    font-size: 15px;
    font-weight: 700;
    color: var(--ai-ink);
}

.mecanopro-ai-page .chat-card-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ai-muted);
}

.mecanopro-ai-page .chat-card-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1f9d55;
}

.mecanopro-ai-page .chat-thread {
    list-style: none;
    margin: 0;
    padding: 18px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*  ? The one thing on the page that moves by itself: the messages arrive in order, once. */
.mecanopro-ai-page .chat-line {
    display: flex;
    margin: 0;
    animation: chat-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.95s);
}

.mecanopro-ai-page .chat-bubble {
    display: inline-block;
    max-width: 84%;
    padding: 11px 15px;
    font-size: 15px;
    line-height: 1.45;
}

.mecanopro-ai-page .chat-line-customer .chat-bubble {
    background-color: var(--ai-concrete);
    color: var(--ai-ink);
    border-radius: 14px 14px 14px 4px;
}

.mecanopro-ai-page .chat-line-assistant {
    justify-content: flex-end;
}

.mecanopro-ai-page .chat-line-assistant .chat-bubble {
    background-color: var(--ai-steel);
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
}

/*  What the software did, as opposed to what anyone said. Dashed, like paint on the floor. */
.mecanopro-ai-page .chat-line-note {
    justify-content: center;
}

.mecanopro-ai-page .chat-line-note .chat-bubble {
    max-width: none;
    padding: 5px 14px;
    background-color: #ffffff;
    border: 1.5px dashed var(--ai-red);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ai-red-dark);
}

.mecanopro-ai-page .chat-card-caption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ai-muted);
}

@keyframes chat-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {

    .mecanopro-ai-page .chat-line {
        animation: none;
    }
}

/*-------------------------------------------------------------------------------------------------
    Shared section heading
-------------------------------------------------------------------------------------------------*/

.mecanopro-ai-page .ai-section-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.4vw, 56px);
    color: var(--ai-ink);
    text-wrap: balance;
}

.mecanopro-ai-page .ai-section-lede {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ai-muted);
    max-width: 44ch;
}

/*-------------------------------------------------------------------------------------------------
    The day
-------------------------------------------------------------------------------------------------*/

.mecanopro-ai-page .ai-day {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
}

.mecanopro-ai-page .ai-day-head {
    margin-bottom: clamp(40px, 5vw, 72px);
}

.mecanopro-ai-page .day {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mecanopro-ai-page .day-entry {
    position: relative;
    display: grid;
    grid-template-columns: 190px 40px minmax(0, 1fr);
    margin: 0;
    padding-bottom: clamp(44px, 5.5vw, 72px);
}

/*  The marker on the line: a small square with an ink edge, where the red line passes through */
.mecanopro-ai-page .day-entry::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 14px;
    height: 14px;
    margin-top: 10px;
    background-color: #ffffff;
    border: 3px solid var(--ai-ink);
    z-index: 1;
}

/*  The line itself: dashed red, running from this marker to the next */
.mecanopro-ai-page .day-entry::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 28px;
    bottom: -8px;
    width: 3px;
    background-image: repeating-linear-gradient(180deg, var(--ai-red) 0 10px, transparent 10px 18px);
}

.mecanopro-ai-page .day-entry:last-child::after {
    display: none;
}

.mecanopro-ai-page .day-time {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(28px, 2.8vw, 40px);
    font-variant-numeric: tabular-nums;
    color: var(--ai-ink);
}

.mecanopro-ai-page .day-body {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.mecanopro-ai-page .day-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--ai-ink);
    max-width: 24ch;
    text-wrap: balance;
}

.mecanopro-ai-page .day-text {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--ai-text);
    max-width: 58ch;
}

.mecanopro-ai-page .day-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.mecanopro-ai-page .day-points li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ai-muted);
}

/*  A painted square, not a tick: these are facts about the product, not a checklist */
.mecanopro-ai-page .day-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: var(--ai-red);
}

.mecanopro-ai-page .day-link {
    margin: 20px 0 0;
    font-size: 15.5px;
    font-weight: 700;
}

.mecanopro-ai-page .day-link a {
    color: var(--ai-ink);
    text-decoration: underline;
    text-decoration-color: var(--ai-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.mecanopro-ai-page .day-link a i {
    margin-left: 4px;
    font-size: 13px;
    transition: transform 0.18s ease;
}

.mecanopro-ai-page .day-link a:hover i,
.mecanopro-ai-page .day-link a:focus i {
    transform: translateX(4px);
}

/*-------------------------------------------------------------------------------------------------
    You stay in charge
-------------------------------------------------------------------------------------------------*/

.mecanopro-ai-page .ai-control {
    background-color: var(--ai-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.mecanopro-ai-page .ai-control-inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}

/*  The heading stays in view while the rows go by */
.mecanopro-ai-page .ai-control-head {
    position: sticky;
    top: 110px;
}

.mecanopro-ai-page .control-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--ai-line);
}

.mecanopro-ai-page .control-rows li {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--ai-line);
}

.mecanopro-ai-page .control-name {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 34px);
    color: var(--ai-ink);
}

.mecanopro-ai-page .control-text {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ai-text);
    max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------
    Your own AI - the dark annex
-------------------------------------------------------------------------------------------------*/

.mecanopro-ai-page .ai-mcp {
    position: relative;
    background-color: var(--ai-steel);
    color: #c3ccd5;
    padding: clamp(56px, 8vw, 104px) 0;
}

.mecanopro-ai-page .ai-mcp::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--ai-red) 0 28px, transparent 28px 48px);
}

.mecanopro-ai-page .ai-mcp-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.mecanopro-ai-page .ai-mcp-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 52px);
    color: #ffffff;
    max-width: 17ch;
    text-wrap: balance;
}

.mecanopro-ai-page .ai-mcp-lede {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: #b6c0ca;
    max-width: 48ch;
}

.mecanopro-ai-page .ai-mcp-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mecanopro-ai-page .ai-mcp-points li {
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 16.5px;
    line-height: 1.55;
    color: #ffffff;
}

.mecanopro-ai-page .ai-mcp-points li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mecanopro-ai-page .ai-mcp-note {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #b6c0ca;
    max-width: 52ch;
}

/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .mecanopro-ai-page .ai-hero-inner,
    .mecanopro-ai-page .ai-control-inner,
    .mecanopro-ai-page .ai-mcp-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .mecanopro-ai-page .ai-hero-title {
        max-width: 18ch;
    }

    .mecanopro-ai-page .chat-card {
        margin-left: 0;
    }

    .mecanopro-ai-page .ai-control-head {
        position: static;
    }

    .mecanopro-ai-page .ai-control-inner {
        gap: 28px;
    }

    /*  The time moves above the entry, and the line moves to the left edge */
    .mecanopro-ai-page .day-entry {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .mecanopro-ai-page .day-entry::before {
        grid-column: 1;
        justify-self: start;
        margin-top: 6px;
    }

    .mecanopro-ai-page .day-entry::after {
        left: 6px;
        top: 24px;
    }

    .mecanopro-ai-page .day-time {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .mecanopro-ai-page .day-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {

    .mecanopro-ai-page .ai-hero-actions .btn {
        width: 100%;
    }

    .mecanopro-ai-page .chat-card {
        padding: 0 16px 16px;
    }

    .mecanopro-ai-page .chat-bubble {
        max-width: 92%;
    }
}
