@charset "utf-8";

/*
    Communications - /solutions/communications.

    ? The solutions are problem-first, so this page keeps their order (the problem, what it costs, what
    ? you do not have yet, the answer, the nudge) and lays it out as the thing it is about. Here that is one customer's thread: every message, from whichever device, with who sent it and how under it.

    ? Same ground as the rest of the site (concrete, the brand's steel, red used the way a shop uses
    ? paint). Scoped under .communications-page so the shared components keep their look elsewhere.
*/

.communications-page {
    --cmn-concrete: #e8ebee;
    --cmn-paper: #f4f6f7;
    --cmn-line: #cdd4da;
    --cmn-ink: #151b21;
    --cmn-steel: #1f272f;
    --cmn-text: #36424d;
    --cmn-muted: #55616c;
    --cmn-red: #fb172b;
    --cmn-red-dark: #d9101f;
    --cmn-green: #1f9d55;

    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-stretch: 100%;
    color: var(--cmn-text);
}

/*  The display voice, shared with the other pages: the same family pulled condensed and heavy */
.communications-page .cmn-hero-title,
.communications-page .cmn-section-title,
.communications-page .msg-card-title,
.communications-page .stop-label,
.communications-page .stop-title,
.communications-page .rule-name,
.communications-page .cmn-nudge-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.communications-page a:focus-visible {
    outline: 3px solid var(--cmn-ink);
    outline-offset: 3px;
}

.communications-page .cmn-hero a:focus-visible,
.communications-page .cmn-nudge a:focus-visible {
    outline-color: #ffffff;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the calendar is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-hero {
    position: relative;
    background-color: var(--cmn-ink);
    color: #c3ccd5;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

/*  The red bay line, as on the other pages */
.communications-page .cmn-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--cmn-red) 0 28px, transparent 28px 48px);
}

.communications-page .cmn-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.communications-page .cmn-hero-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b78;
}

.communications-page .cmn-hero-title {
    margin: 0 0 24px;
    font-size: clamp(38px, 4.4vw, 64px);
    line-height: 0.98;
    color: #ffffff;
    max-width: 18ch;
    text-wrap: balance;
}

.communications-page .cmn-hero-lede {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 52ch;
}

.communications-page .cmn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/*  The quiet button, drawn for the dark ground */
.communications-page .btn-cmn-ghost,
.communications-page .btn-cmn-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.communications-page .btn-cmn-ghost:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--cmn-ink);
}

/*  The thread ------------------------------------------------------------------------------------- */

.communications-page .msg-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 500px;
    background-color: var(--cmn-paper);
    border-radius: 14px;
    padding: 0 22px 18px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

.communications-page .msg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--cmn-line);
}

.communications-page .msg-card-title {
    font-stretch: 76%;
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    color: var(--cmn-ink);
}

.communications-page .msg-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cmn-muted);
}

.communications-page .msg-card-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cmn-green);
}

.communications-page .msg-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. */
.communications-page .msg-line {
    display: flex;
    flex-direction: column;
    margin: 0;
    animation: msg-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.4s + var(--i, 0) * 0.7s);
}

.communications-page .msg-bubble {
    display: inline-block;
    max-width: 84%;
    padding: 11px 15px;
    font-size: 15px;
    line-height: 1.45;
}

/*  Who sent it, and how, is under every bubble - the part a dispute turns on */
.communications-page .msg-meta {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cmn-muted);
}

.communications-page .msg-line-customer {
    align-items: flex-start;
}

.communications-page .msg-line-customer .msg-bubble {
    background-color: var(--cmn-concrete);
    color: var(--cmn-ink);
    border-radius: 14px 14px 14px 4px;
}

.communications-page .msg-line-shop {
    align-items: flex-end;
}

.communications-page .msg-line-shop .msg-bubble {
    background-color: var(--cmn-steel);
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
}

/*  What the software recorded, as paint on the floor */
.communications-page .msg-line-note {
    align-items: center;
}

.communications-page .msg-line-note .msg-bubble {
    max-width: none;
    padding: 5px 14px;
    background-color: #ffffff;
    border: 1.5px dashed var(--cmn-red);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cmn-red-dark);
}

.communications-page .msg-card-caption {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cmn-muted);
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {

    .communications-page .msg-line {
        animation: none;
    }
}

/*-------------------------------------------------------------------------------------------------
    Shared section heading
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cmn-red-dark);
}

.communications-page .cmn-section-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.4vw, 56px);
    color: var(--cmn-ink);
    text-wrap: balance;
}

.communications-page .cmn-section-lede {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--cmn-muted);
    max-width: 46ch;
}

/*-------------------------------------------------------------------------------------------------
    What it is costing you - questions for the team
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-cost {
    background-color: var(--cmn-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.communications-page .cmn-cost-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.communications-page .cmn-cost-text {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--cmn-text);
    max-width: 46ch;
}

.communications-page .ask {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.communications-page .ask-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0;
    padding: 20px 22px;
    background-color: #ffffff;
    border-left: 6px solid var(--cmn-ink);
}

.communications-page .ask-num {
    font-stretch: 76%;
    font-weight: 800;
    font-size: 44px;
    line-height: 0.9;
    color: var(--cmn-red-dark);
}

.communications-page .ask-question {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cmn-ink);
}

.communications-page .ask-answer {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--cmn-muted);
}

/*-------------------------------------------------------------------------------------------------
    The vehicle's life
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-trip {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
}

.communications-page .cmn-trip-head {
    margin-bottom: clamp(40px, 5vw, 72px);
}

.communications-page .stops {
    list-style: none;
    margin: 0;
    padding: 0;
}

.communications-page .stop {
    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 */
.communications-page .stop::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(--cmn-ink);
    z-index: 1;
}

/*  The line itself: dashed red, running from this marker to the next */
.communications-page .stop::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 28px;
    bottom: -8px;
    width: 3px;
    background-image: repeating-linear-gradient(180deg, var(--cmn-red) 0 10px, transparent 10px 18px);
}

.communications-page .stop:last-child::after {
    display: none;
}

.communications-page .stop-link {
    margin: 20px 0 0;
    font-size: 15.5px;
    font-weight: 700;
}

.communications-page .stop-link a {
    color: var(--cmn-ink);
    text-decoration: underline;
    text-decoration-color: var(--cmn-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.communications-page .stop-link a i {
    margin-left: 4px;
    font-size: 13px;
    transition: transform 0.18s ease;
}

.communications-page .stop-link a:hover i,
.communications-page .stop-link a:focus i {
    transform: translateX(4px);
}

.communications-page .stop-label {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(28px, 2.8vw, 40px);
    font-variant-numeric: tabular-nums;
    color: var(--cmn-ink);
}

.communications-page .stop-body {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.communications-page .stop-title {
    margin: 0 0 20px;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--cmn-ink);
    max-width: 24ch;
    text-wrap: balance;
}

.communications-page .stop-title .tier-badge {
    vertical-align: middle;
    font-stretch: 100%;
    letter-spacing: normal;
}

/*  What happens today, then what the schedule does. Today is the quieter of the two. */
.communications-page .stop-today,
.communications-page .stop-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    max-width: 60ch;
}

.communications-page .stop-today {
    padding: 14px 18px;
    margin-bottom: 18px;
    background-color: var(--cmn-paper);
    border-left: 4px solid var(--cmn-line);
    color: var(--cmn-muted);
}

.communications-page .stop-text {
    color: var(--cmn-text);
}

.communications-page .stop-tag {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cmn-muted);
}

.communications-page .stop-tag-with {
    color: var(--cmn-red-dark);
}

.communications-page .stop-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.communications-page .stop-points li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--cmn-muted);
}

/*  A painted square, not a tick: these are facts about the product, not a checklist */
.communications-page .stop-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: var(--cmn-red);
}

/*-------------------------------------------------------------------------------------------------
    Where it stops and you start
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-rules {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0;
}

.communications-page .cmn-rules-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 */
.communications-page .cmn-rules-head {
    position: sticky;
    top: 110px;
}

.communications-page .rule-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--cmn-line);
}

.communications-page .rule-rows li {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--cmn-line);
}

.communications-page .rule-name {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 34px);
    color: var(--cmn-ink);
}

.communications-page .rule-text {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--cmn-text);
    max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------
    The nudge - the dark annex
-------------------------------------------------------------------------------------------------*/

.communications-page .cmn-nudge {
    position: relative;
    background-color: var(--cmn-steel);
    color: #c3ccd5;
    padding: clamp(56px, 8vw, 104px) 0;
}

.communications-page .cmn-nudge::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--cmn-red) 0 28px, transparent 28px 48px);
}

.communications-page .cmn-nudge-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.communications-page .cmn-nudge-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 52px);
    color: #ffffff;
    max-width: 20ch;
    text-wrap: balance;
}

.communications-page .cmn-nudge-text {
    margin: 0 0 28px;
    font-size: 17.5px;
    line-height: 1.6;
    color: #b6c0ca;
    max-width: 52ch;
}

.communications-page .cmn-nudge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.communications-page .cmn-nudge-alt {
    font-size: 15.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--cmn-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/*  The other places a shop loses time: a short list of ways on, not a second set of cards */
.communications-page .cmn-others-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b6c0ca;
}

.communications-page .cmn-others ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.communications-page .cmn-others li {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.communications-page .cmn-others a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    font-size: 16.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.communications-page .cmn-others a > i:first-child {
    width: 22px;
    text-align: center;
    color: #ff6b78;
}

.communications-page .cmn-others a span {
    flex: 1 1 auto;
}

.communications-page .cmn-others-go {
    font-size: 13px;
    transition: transform 0.18s ease;
}

.communications-page .cmn-others a:hover .cmn-others-go,
.communications-page .cmn-others a:focus .cmn-others-go {
    transform: translateX(4px);
}

/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .communications-page .cmn-hero-inner,
    .communications-page .cmn-cost-inner,
    .communications-page .cmn-rules-inner,
    .communications-page .cmn-nudge-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .communications-page .cmn-hero-title {
        max-width: 18ch;
    }

    .communications-page .msg-card {
        margin-left: 0;
    }

    .communications-page .cmn-rules-head {
        position: static;
    }

    .communications-page .cmn-rules-inner {
        gap: 28px;
    }

        /*  The time moves above the stop, and the line moves to the left edge */
    .communications-page .stop {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .communications-page .stop::before {
        grid-column: 1;
        justify-self: start;
        margin-top: 6px;
    }

    .communications-page .stop::after {
        left: 6px;
        top: 24px;
    }

    .communications-page .stop-label {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .communications-page .stop-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {

    .communications-page .cmn-hero-actions .btn {
        width: 100%;
    }

    .communications-page .msg-card {
        padding: 0 16px 16px;
    }

    .communications-page .msg-bubble {
        max-width: 92%;
    }

    .communications-page .ask-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .communications-page .ask-num {
        font-size: 36px;
    }

    .communications-page .cmn-nudge-actions .btn {
        width: 100%;
    }
}
