/* TaskEye website: the own blocks' look. The product screens in the hero,
   "Follow one task" (a task ticket with six tear-off stubs; its drawn screens
   are in sample-screens.css), the contact details, the map card and the
   HubSpot form. */

/* Product screens: the web portal with the phone in front of it. --------- */

.screens {
    position: relative;
    max-width: 66rem;
    margin: 0 auto;
    padding-right: 9%;
    padding-bottom: 6%;
}

.screens__desk {
    width: 100%;
    filter: drop-shadow(0 1.6rem 2.2rem rgb(23 33 51 / 0.28));
}

.screens__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24%;
    filter: drop-shadow(0 1.2rem 1.6rem rgb(23 33 51 / 0.35));
}

/* Follow one task -------------------------------------------------------- */

/* The builder numbers and indents lists in text; these lists are parts of a drawing. */
.sf-rich :is(.walk, .facts, .screens) :is(ul, ol),
.sf-rich :is(.walk, .facts) dl {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-rich .walk li {
    margin: 0;
}

.sf-rich .walk li::marker {
    content: none;
}

.walk {
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    font-size: 1.0625rem;
}

.task-no {
    margin: 0;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.ticket-strip {
    display: grid;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
}

.ticket-head {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    padding: 1.1rem 1.25rem 1.2rem;
    border-bottom: 2px dashed var(--line-strong);
}

.ticket-head .task-no {
    font-size: 1.375rem;
}

.ticket-head .task-no span {
    color: var(--ink-soft);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
}

.ticket-facts {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.ticket-facts div {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.5rem;
}

.ticket-facts dt {
    color: var(--ink-soft);
}

.ticket-facts dd {
    margin: 0;
}

.sample-label {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.05rem 0.65rem;
    border: 1.5px solid var(--carbon);
    border-radius: 999px;
    color: var(--carbon);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

.stubs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.stubs li {
    margin: 0;
}

.stubs li + li {
    border-left: 2px dotted var(--line-strong);
}

.stubs li:nth-child(3n + 1) {
    border-left: 0;
}

.stubs li:nth-child(n + 4) {
    border-top: 2px dotted var(--line-strong);
}

.stub {
    display: grid;
    align-content: start;
    gap: 0.15rem;
    width: 100%;
    height: 100%;
    min-height: 4.75rem;
    padding: 0.7rem 0.75rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.stub:hover {
    background: var(--blue-soft);
}

.stub[aria-current="step"] {
    background: var(--blue);
    color: #ffffff;
}

.stub:focus-visible {
    position: relative;
    z-index: 1;
}

.stub-n {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.stub-label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
}

.stub-time {
    font-family: var(--mono);
    font-size: 0.8125rem;
    opacity: 0.8;
}

@media (min-width: 1040px) {
    .ticket-head {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 2rem;
        padding: 0.9rem 1.25rem;
    }

    .ticket-facts {
        grid-template-columns: repeat(3, minmax(0, auto));
        justify-content: start;
        column-gap: 2rem;
    }

    .ticket-facts div {
        grid-template-columns: none;
        gap: 0;
    }

    .ticket-facts dt {
        font-size: 0.875rem;
    }

    .stubs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .stubs li:nth-child(3n + 1) {
        border-left: 2px dotted var(--line-strong);
    }

    .stubs li:first-child {
        border-left: 0;
    }

    .stubs li:nth-child(n + 4) {
        border-top: 0;
    }

    .stub {
        padding: 0.9rem 1rem 1rem;
    }

    .stub-n {
        font-size: 2.5rem;
    }
}

.walk-caption {
    display: grid;
    gap: 0.75rem;
}

.walk-heading {
    display: grid;
    gap: 0.35rem;
}

.walk-count {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 600;
}

.site-main .walk-caption h3 {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
}

.walk-sides {
    display: grid;
    gap: 0.5rem;
}

.walk-sides p {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0;
}

.walk-sides .icon {
    margin-top: 0.2em;
    color: var(--blue);
}

.walk-nav {
    display: flex;
    gap: 0.6rem;
}

.walk-nav .button {
    flex: 1;
}

@media (min-width: 1040px) {
    .walk-caption {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
        align-items: center;
        column-gap: 2rem;
        min-height: 8.5rem;
    }

    .walk-nav .button {
        flex: none;
    }
}

/* The stage: the phone first on small screens, beside the portal on wide ones. */
.walk-stage {
    display: grid;
    grid-template-areas: "phone" "desk" "tag";
    gap: 1.25rem;
    align-items: start;
}

.walk-stage .phone {
    grid-area: phone;
    justify-self: center;
    width: min(100%, 22rem);
    font-size: 1rem;
}

.walk-stage .desk {
    grid-area: desk;
    container-type: inline-size;
    font-size: 1rem;
}

.screen-tag {
    grid-area: tag;
    justify-self: start;
    margin: 0;
    padding: 0.1rem 0.55rem;
    border: 1.5px solid var(--carbon);
    border-radius: 0.25rem;
    background: var(--white);
    color: var(--carbon);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (min-width: 1040px) {
    .walk-stage {
        grid-template-columns: minmax(0, 1fr) 20rem;
        grid-template-areas: "desk phone" "tag phone";
    }

    .walk-stage .phone-body {
        min-height: 31rem;
    }
}

/* Contact details from Settings. ----------------------------------------- */

.facts {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.facts div {
    display: grid;
    gap: 0.2rem;
}

.facts dt {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    font-weight: 600;
}

.facts dt .icon {
    color: var(--blue);
}

.facts dd {
    margin: 0;
    padding-left: 1.75rem;
    font-weight: 600;
}

/* Map card: a drawn street map, not a real one. */
.map-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--board);
}

.map-card__map {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
}

.map-card .button {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
}

.map-ground { fill: #e8eef7; }
.map-park { fill: #d7ecd9; }
.map-river { fill: none; stroke: #b9d3f4; stroke-width: 14; stroke-linecap: round; }
.map-road { fill: none; stroke: #ffffff; stroke-width: 6; }
.map-highway { fill: none; stroke: var(--canary); stroke-width: 9; stroke-linecap: round; }
.map-ring { fill: color-mix(in srgb, var(--blue) 16%, transparent); }
.map-drop { fill: var(--red); }
.map-drop-dot { fill: #ffffff; }

/* HubSpot's form, and the notes that stand in for it. */
.hubspot {
    min-height: 12rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.hubspot__note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0;
    padding-left: 0.9rem;
    border-left: 3px solid var(--carbon);
    color: var(--ink-soft);
}

.hubspot__note--error {
    border-left-color: var(--red);
}
