@charset "utf-8";

/*
    Scheduling - /solutions/scheduling.

    ? 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: a Tuesday
    ? at the shop. The label down the left is the time of day, and the dashed red bay line runs
    ? through it, as on the feature pages. Each stop is a moment the calendar fails, with what the
    ? schedule does about it right underneath.

    ? The hero is the daily calendar with one appointment being refused, because "the same bay is
    ? promised twice" is the problem and "the red warning shows before you save" is the answer. The
    ? cost is a sum the reader fills in with their own numbers - there is no statistic on this page.

    ? Same ground as the rest of the site (concrete, the brand's steel, red used the way a shop uses
    ? paint). Scoped under .scheduling-page so the shared components keep their look elsewhere.
*/

.scheduling-page {
    --sch-concrete: #e8ebee;
    --sch-paper: #f4f6f7;
    --sch-line: #cdd4da;
    --sch-ink: #151b21;
    --sch-steel: #1f272f;
    --sch-text: #36424d;
    --sch-muted: #55616c;
    --sch-red: #fb172b;
    --sch-red-dark: #d9101f;
    --sch-green: #1f9d55;

    font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-stretch: 100%;
    color: var(--sch-text);
}

/*  The display voice, shared with the other pages: the same family pulled condensed and heavy */
.scheduling-page .sch-hero-title,
.scheduling-page .sch-section-title,
.scheduling-page .day-card-title,
.scheduling-page .day-block-title,
.scheduling-page .sum-box,
.scheduling-page .stop-label,
.scheduling-page .stop-title,
.scheduling-page .view-name,
.scheduling-page .rule-name,
.scheduling-page .sch-nudge-title {
    font-stretch: 76%;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.scheduling-page a:focus-visible {
    outline: 3px solid var(--sch-ink);
    outline-offset: 3px;
}

.scheduling-page .sch-hero a:focus-visible,
.scheduling-page .sch-nudge a:focus-visible {
    outline-color: #ffffff;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the calendar is the lightest thing on the first screen
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-hero {
    position: relative;
    background-color: var(--sch-ink);
    color: #c3ccd5;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

/*  The red bay line, as on the other pages */
.scheduling-page .sch-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--sch-red) 0 28px, transparent 28px 48px);
}

.scheduling-page .sch-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.scheduling-page .sch-hero-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b78;
}

.scheduling-page .sch-hero-title {
    margin: 0 0 24px;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.96;
    color: #ffffff;
    max-width: 14ch;
    text-wrap: balance;
}

.scheduling-page .sch-hero-lede {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 52ch;
}

.scheduling-page .sch-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/*  The quiet button, drawn for the dark ground */
.scheduling-page .btn-sch-ghost,
.scheduling-page .btn-sch-ghost:focus {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.scheduling-page .btn-sch-ghost:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--sch-ink);
}

/*  The daily calendar ---------------------------------------------------------------------------- */

.scheduling-page .day-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 540px;
    background-color: var(--sch-paper);
    border-radius: 14px;
    padding: 0 20px 18px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

.scheduling-page .day-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--sch-line);
}

.scheduling-page .day-card-title {
    font-size: 24px;
    color: var(--sch-ink);
}

.scheduling-page .day-card-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sch-muted);
}

.scheduling-page .day-card-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--sch-green);
}

/*  Three bays across, a half hour a row. The hour rules are drawn behind the blocks. */
.scheduling-page .day-grid {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    grid-template-rows: 32px repeat(8, 34px);
    column-gap: 8px;
    margin-top: 12px;
    background-image: repeating-linear-gradient(180deg, transparent 0 67px, var(--sch-line) 67px 68px);
    background-position: 0 32px;
    background-size: 100% 272px;
    background-repeat: no-repeat;
}

.scheduling-page .day-bay {
    align-self: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sch-muted);
    text-align: center;
}

.scheduling-page .day-hour {
    padding-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sch-muted);
    font-variant-numeric: tabular-nums;
}

/*  ? The one thing on the page that moves by itself: the appointments arrive in order, once. */
.scheduling-page .day-block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0;
    padding: 7px 9px;
    min-width: 0;
    overflow: hidden;
    background-color: var(--sch-steel);
    border-radius: 6px;
    color: #ffffff;
    animation: day-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.4s + var(--i, 0) * 0.5s);
}

.scheduling-page .day-block-title {
    font-size: 17px;
    line-height: 1.05;
}

.scheduling-page .day-block-vehicle {
    font-size: 12.5px;
    line-height: 1.3;
    color: #c3ccd5;
}

/*  A client who confirmed from the reminder gets a green tick, as on the real calendar */
.scheduling-page .day-block-tick {
    position: absolute;
    top: 7px;
    right: 8px;
    font-size: 13px;
    color: #4fd08a;
}

/*  The refused appointment sits over the one that is already there, offset so both read */
.scheduling-page .day-block-refused {
    z-index: 2;
    margin: 14px 0 2px 16px;
    background-color: #ffffff;
    border: 2px dashed var(--sch-red);
    color: var(--sch-red-dark);
}

.scheduling-page .day-block-refused .day-block-vehicle {
    color: var(--sch-red-dark);
}

.scheduling-page .day-warning {
    margin: 14px 0 0;
    text-align: center;
    animation: day-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.4s + var(--i, 0) * 0.5s);
}

.scheduling-page .day-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff0f1;
    border: 1.5px solid var(--sch-red);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sch-red-dark);
    text-wrap: balance;
}

.scheduling-page .day-card-caption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sch-muted);
}

@keyframes day-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {

    .scheduling-page .day-block,
    .scheduling-page .day-warning {
        animation: none;
    }
}

/*-------------------------------------------------------------------------------------------------
    Shared section heading
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sch-red-dark);
}

.scheduling-page .sch-section-title {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.4vw, 56px);
    color: var(--sch-ink);
    text-wrap: balance;
}

.scheduling-page .sch-section-lede {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--sch-muted);
    max-width: 46ch;
}

/*-------------------------------------------------------------------------------------------------
    What it is costing you - a sum the reader does
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-cost {
    background-color: var(--sch-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.scheduling-page .sch-cost-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.scheduling-page .sch-cost-text {
    margin: 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--sch-text);
    max-width: 46ch;
}

.scheduling-page .sum {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.scheduling-page .sum-term {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 118px;
    text-align: center;
}

/*  An empty box to fill in with a pencil, not a number */
.scheduling-page .sum-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 84px;
    background-color: #ffffff;
    border: 2px dashed var(--sch-line);
    font-size: 40px;
    color: var(--sch-line);
}

.scheduling-page .sum-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sch-ink);
}

.scheduling-page .sum-op {
    padding-top: 22px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--sch-red-dark);
}

.scheduling-page .sum-result .sum-box {
    background-color: var(--sch-ink);
    border: 2px solid var(--sch-ink);
    color: #ffffff;
}

.scheduling-page .sum-note {
    margin: 22px 0 0;
    font-size: 14.5px;
    color: var(--sch-muted);
}

/*-------------------------------------------------------------------------------------------------
    The Tuesday
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-trip {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
}

.scheduling-page .sch-trip-head {
    margin-bottom: clamp(40px, 5vw, 72px);
}

.scheduling-page .stops {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scheduling-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 */
.scheduling-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(--sch-ink);
    z-index: 1;
}

/*  The line itself: dashed red, running from this marker to the next */
.scheduling-page .stop::after {
    content: "";
    position: absolute;
    left: 208px;
    top: 28px;
    bottom: -8px;
    width: 3px;
    background-image: repeating-linear-gradient(180deg, var(--sch-red) 0 10px, transparent 10px 18px);
}

.scheduling-page .stop:last-child::after {
    display: none;
}

.scheduling-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(--sch-ink);
}

.scheduling-page .stop-body {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.scheduling-page .stop-title {
    margin: 0 0 20px;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--sch-ink);
    max-width: 24ch;
    text-wrap: balance;
}

.scheduling-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. */
.scheduling-page .stop-today,
.scheduling-page .stop-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    max-width: 60ch;
}

.scheduling-page .stop-today {
    padding: 14px 18px;
    margin-bottom: 18px;
    background-color: var(--sch-paper);
    border-left: 4px solid var(--sch-line);
    color: var(--sch-muted);
}

.scheduling-page .stop-text {
    color: var(--sch-text);
}

.scheduling-page .stop-tag {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sch-muted);
}

.scheduling-page .stop-tag-with {
    color: var(--sch-red-dark);
}

.scheduling-page .stop-points {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.scheduling-page .stop-points li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--sch-muted);
}

/*  A painted square, not a tick: these are facts about the product, not a checklist */
.scheduling-page .stop-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background-color: var(--sch-red);
}

/*-------------------------------------------------------------------------------------------------
    Four windows
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-views {
    background-color: var(--sch-concrete);
    padding: clamp(56px, 8vw, 104px) 0;
}

.scheduling-page .sch-views-head {
    margin-bottom: clamp(32px, 4vw, 56px);
}

.scheduling-page .view-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.scheduling-page .view-card {
    margin: 0;
    padding: 26px 22px 28px;
    background-color: #ffffff;
    border-top: 6px solid var(--sch-ink);
}

.scheduling-page .view-icon {
    display: block;
    margin-bottom: 18px;
    font-size: 24px;
    color: var(--sch-red-dark);
}

.scheduling-page .view-name {
    margin: 0 0 12px;
    font-size: 28px;
    color: var(--sch-ink);
}

.scheduling-page .view-question {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--sch-text);
}

.scheduling-page .view-more {
    margin: 28px 0 0;
    font-size: 15.5px;
    font-weight: 700;
}

.scheduling-page .view-more a {
    color: var(--sch-ink);
    text-decoration: underline;
    text-decoration-color: var(--sch-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.scheduling-page .view-more a i {
    margin-left: 4px;
    font-size: 13px;
    transition: transform 0.18s ease;
}

.scheduling-page .view-more a:hover i,
.scheduling-page .view-more a:focus i {
    transform: translateX(4px);
}

/*-------------------------------------------------------------------------------------------------
    Where it stops and you start
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-rules {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0;
}

.scheduling-page .sch-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 */
.scheduling-page .sch-rules-head {
    position: sticky;
    top: 110px;
}

.scheduling-page .rule-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--sch-line);
}

.scheduling-page .rule-rows li {
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid var(--sch-line);
}

.scheduling-page .rule-name {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 34px);
    color: var(--sch-ink);
}

.scheduling-page .rule-text {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--sch-text);
    max-width: 60ch;
}

/*-------------------------------------------------------------------------------------------------
    The nudge - the dark annex
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-nudge {
    position: relative;
    background-color: var(--sch-steel);
    color: #c3ccd5;
    padding: clamp(56px, 8vw, 104px) 0;
}

.scheduling-page .sch-nudge::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--sch-red) 0 28px, transparent 28px 48px);
}

.scheduling-page .sch-nudge-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}

.scheduling-page .sch-nudge-title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 52px);
    color: #ffffff;
    max-width: 20ch;
    text-wrap: balance;
}

.scheduling-page .sch-nudge-text {
    margin: 0 0 28px;
    font-size: 17.5px;
    line-height: 1.6;
    color: #b6c0ca;
    max-width: 52ch;
}

.scheduling-page .sch-nudge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.scheduling-page .sch-nudge-alt {
    font-size: 15.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--sch-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 */
.scheduling-page .sch-others-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b6c0ca;
}

.scheduling-page .sch-others ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.scheduling-page .sch-others li {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.scheduling-page .sch-others a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    font-size: 16.5px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.scheduling-page .sch-others a > i:first-child {
    width: 22px;
    text-align: center;
    color: #ff6b78;
}

.scheduling-page .sch-others a span {
    flex: 1 1 auto;
}

.scheduling-page .sch-others-go {
    font-size: 13px;
    transition: transform 0.18s ease;
}

.scheduling-page .sch-others a:hover .sch-others-go,
.scheduling-page .sch-others a:focus .sch-others-go {
    transform: translateX(4px);
}

/*-------------------------------------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------------------------------------*/

@media (max-width: 991px) {

    .scheduling-page .sch-hero-inner,
    .scheduling-page .sch-cost-inner,
    .scheduling-page .sch-rules-inner,
    .scheduling-page .sch-nudge-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .scheduling-page .sch-hero-title {
        max-width: 18ch;
    }

    .scheduling-page .day-card {
        margin-left: 0;
    }

    .scheduling-page .sch-rules-head {
        position: static;
    }

    .scheduling-page .sch-rules-inner {
        gap: 28px;
    }

    .scheduling-page .view-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /*  The time moves above the stop, and the line moves to the left edge */
    .scheduling-page .stop {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .scheduling-page .stop::before {
        grid-column: 1;
        justify-self: start;
        margin-top: 6px;
    }

    .scheduling-page .stop::after {
        left: 6px;
        top: 24px;
    }

    .scheduling-page .stop-label {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 12px;
    }

    .scheduling-page .stop-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {

    .scheduling-page .sch-hero-actions .btn {
        width: 100%;
    }

    .scheduling-page .day-card {
        padding: 0 14px 16px;
    }

    .scheduling-page .day-grid {
        grid-template-columns: 36px repeat(3, minmax(0, 1fr));
        column-gap: 5px;
    }

    .scheduling-page .day-block {
        padding: 6px 6px;
    }

    .scheduling-page .day-block-title {
        font-size: 15px;
    }

    .scheduling-page .day-block-vehicle {
        font-size: 11.5px;
    }

    .scheduling-page .day-block-tick {
        display: none;
    }

    .scheduling-page .view-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /*  On a phone the sum is read down the page: a box and its label, then the sign, then the next */
    .scheduling-page .sum {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .scheduling-page .sum-term {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        width: 100%;
        text-align: left;
    }

    .scheduling-page .sum-box {
        flex: 0 0 76px;
        width: 76px;
        height: 56px;
        font-size: 28px;
    }

    .scheduling-page .sum-op {
        padding: 4px 0 4px 28px;
        font-size: 26px;
    }

    .scheduling-page .sch-nudge-actions .btn {
        width: 100%;
    }
}
