@charset "utf-8";

/*
    Scheduling - /features/scheduling.

    ? Five facts: the same appointment reads as a calendar, a technician row, a kanban card and a
    ? table row; the schedule spans multiple bays and technicians; a web booking lands pending until
    ? approved; reminders fire on their own; and arrival check-in shows what is actually in the shop.
    ? The hero dramatizes the one visual fact (four shapes, one appointment); the timeline below is
    ? the other three in the order they actually happen - request, reminder, arrival - the same
    ? dashed-line sequence the AI and Accounting pages use for a job that runs in order.

    ? 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;

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

.scheduling-page .sch-hero-title,
.scheduling-page .sch-section-title,
.scheduling-page .step-time,
.scheduling-page .step-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;
}

/*-------------------------------------------------------------------------------------------------
    Hero - dark, so the four views are 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);
}

.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, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.scheduling-page .sch-hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sch-red);
    margin: 0 0 14px;
}

.scheduling-page .sch-hero-title {
    margin: 0 0 24px;
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 1;
    color: #ffffff;
    max-width: 17ch;
    text-wrap: balance;
}

.scheduling-page .sch-hero-lede {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.6;
    color: #c3ccd5;
    max-width: 54ch;
}

.scheduling-page .sch-hero-note {
    margin: 0 0 32px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #9aa6b1;
    max-width: 50ch;
}

.scheduling-page .sch-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.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 same appointment, four shapes ------------------------------------------------------------- */

.scheduling-page .shapes-card {
    margin: 0 0 0 auto;
    width: 100%;
    max-width: 440px;
    background-color: var(--sch-paper);
    border-radius: 14px;
    padding: 18px 20px 20px;
    box-shadow: 0 40px 60px -36px rgba(0, 0, 0, 0.7);
}

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

.scheduling-page .shapes-card-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--sch-muted);
}

.scheduling-page .shape-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*  ? The one thing on the page that moves by itself: the same job appears in each view, once. */
.scheduling-page .shape-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    animation: shape-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--i, 0) * 0.85s);
}

.scheduling-page .shape-row i {
    flex: none;
    font-size: 14px;
    color: var(--sch-red);
}

.scheduling-page .shape-label {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sch-muted);
    min-width: 76px;
}

.scheduling-page .shape-job {
    color: var(--sch-ink);
    font-weight: 600;
}

.scheduling-page .shape-row-calendar {
    background-color: #ffffff;
    border: 1px solid var(--sch-line);
}

.scheduling-page .shape-row-tech {
    background-color: #ffffff;
    border: 1px solid var(--sch-line);
}

.scheduling-page .shape-row-kanban {
    background-color: var(--sch-steel);
}

.scheduling-page .shape-row-kanban .shape-job,
.scheduling-page .shape-row-kanban .shape-label {
    color: #ffffff;
}

.scheduling-page .shape-row-kanban .shape-stage {
    margin-left: auto;
    flex: none;
    padding: 3px 10px;
    background-color: var(--sch-red);
    color: #ffffff;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.scheduling-page .shape-row-table {
    background-color: #ffffff;
    border: 1px dashed var(--sch-line);
}

.scheduling-page .shapes-card-caption {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--sch-muted);
}

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

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

    .scheduling-page .shape-row {
        animation: none;
    }
}

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

.scheduling-page .sch-section-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 4.2vw, 50px);
    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: 50ch;
}

/*-------------------------------------------------------------------------------------------------
    From request to the board - the three-step sequence
-------------------------------------------------------------------------------------------------*/

.scheduling-page .sch-steps {
    background-color: #ffffff;
    padding: clamp(56px, 8vw, 104px) 0;
}

.scheduling-page .sch-steps-head {
    margin-bottom: clamp(40px, 5vw, 72px);
}

.scheduling-page .step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scheduling-page .step-entry {
    position: relative;
    display: grid;
    grid-template-columns: 160px 40px minmax(0, 1fr);
    margin: 0;
    padding-bottom: clamp(40px, 5vw, 64px);
}

.scheduling-page .step-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(--sch-ink);
    z-index: 1;
}

.scheduling-page .step-entry::after {
    content: "";
    position: absolute;
    left: 178px;
    top: 28px;
    bottom: -8px;
    width: 3px;
    background-image: repeating-linear-gradient(180deg, var(--sch-red) 0 10px, transparent 10px 18px);
}

.scheduling-page .step-entry:last-child::after {
    display: none;
}

.scheduling-page .step-time {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--sch-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scheduling-page .step-body {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.scheduling-page .step-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.8vw, 36px);
    color: var(--sch-ink);
    max-width: 24ch;
    text-wrap: balance;
}

.scheduling-page .step-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--sch-text);
    max-width: 58ch;
}

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

@media (max-width: 991px) {

    .scheduling-page .sch-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .scheduling-page .sch-hero-title {
        max-width: 20ch;
    }

    .scheduling-page .shapes-card {
        margin-left: 0;
    }

    .scheduling-page .step-entry {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .scheduling-page .step-entry::before {
        grid-column: 1;
        justify-self: start;
        margin-top: 6px;
    }

    .scheduling-page .step-entry::after {
        left: 6px;
        top: 24px;
    }

    .scheduling-page .step-time {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 10px;
    }

    .scheduling-page .step-body {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {

    .scheduling-page .sch-hero-actions .btn {
        width: 100%;
    }

    .scheduling-page .shape-label {
        min-width: 64px;
    }
}
