/* TaskEye website: fonts, colours, buttons, and the look of
   each builder section (Advanced > class: te-hero, te-walk, te-features...).
   The look is the field service demo the client approved: a white and cool
   board-grey page, one bright service blue for action and live state, and a
   status colour per stage of a task. Sofia Sans Condensed sets headings,
   Sofia Sans the text, Spline Sans Mono task numbers and times. The
   header and footer are in parts.css; the own blocks (product screens, the
   walkthrough, contact, map and HubSpot form) in blocks.css; the walkthrough's
   drawn sample screens in sample-screens.css.
   Colours read the builder's design kit ("Design") first. */

@font-face {
    font-family: "Sofia Sans Condensed";
    src: url("fonts/sofia-condensed.woff2") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sofia Sans";
    src: url("fonts/sofia-sans.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Spline Sans Mono";
    src: url("fonts/spline-mono.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: var(--kit-color-background, #ffffff);
    --board: var(--kit-color-surface, #eef3fa);
    --board-deep: #dde6f3;
    --line: var(--kit-color-border, #d5deeb);
    --line-strong: #7f8ca0;
    --ink: var(--kit-color-text, #172133);
    --ink-soft: #4b586c;

    --blue: var(--kit-color-primary, #1b62e8);
    --blue-hover: #1350c4;
    --blue-soft: #e2ecfd;
    --blue-ink: #1450c2;

    --canary: var(--kit-color-canary, #ffd21f);
    --canary-soft: #fff3bd;
    --canary-ink: #6f5300;
    --carbon: #3a3d9e;
    --green: var(--kit-color-whatsapp, #12814a);
    --green-hover: #0d6a3c;
    --green-soft: #ddf2e6;
    --red: #cc2e26;

    /* The status colour of a task, set by data-state on any element. */
    --st: var(--line-strong);
    --st-soft: var(--board);
    --st-ink: var(--ink);

    --display: "Sofia Sans Condensed", "Arial Narrow", system-ui, sans-serif;
    --body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "Spline Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --wrap: 1200px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --tap: 2.75rem;
    --radius: 0.375rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-state="upcoming"] { --st: var(--blue); --st-soft: var(--blue-soft); --st-ink: var(--blue-ink); }
[data-state="progress"] { --st: var(--canary); --st-soft: var(--canary-soft); --st-ink: var(--canary-ink); }
[data-state="completed"] { --st: var(--green); --st-soft: var(--green-soft); --st-ink: var(--green-hover); }

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 720px) {
    body {
        font-size: 1.1875rem;
    }
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--canary);
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

.icon-defs,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 50;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #ffffff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Buttons: the layout's own, and the builder's button items. ------------- */

.button,
.sf-page .bn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.55rem 1.25rem;
    border: 2px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue);
    color: #ffffff;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover,
.sf-page a.bn-button:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
    color: #ffffff;
}

.button--line,
.sf-page .bn-button-outline {
    border-color: var(--ink);
    background: var(--white);
    color: var(--ink);
}

.button--line:hover,
.sf-page a.bn-button-outline:hover {
    border-color: var(--ink);
    background: var(--blue-soft);
    color: var(--ink);
}

.button--light {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ink);
}

.button--light:hover {
    border-color: var(--canary);
    background: var(--canary);
    color: var(--ink);
}

.button--wa,
.sf-page .bn-button.te-wa {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
}

.button--wa:hover,
.sf-page a.bn-button.te-wa:hover {
    border-color: var(--green-hover);
    background: var(--green-hover);
    color: #ffffff;
}

/* A WhatsApp button with no number in Settings draws as a label: hide it,
   with the heading and line just before it, and a section that has no other
   button or own block. The builder's preview keeps them, so the owner can still edit them. */
.sf-page span.bn-button.te-wa,
.site-main:not([data-preview]) .sf-rich :is(h2, h3, p):has(+ span.bn-button.te-wa),
.site-main:not([data-preview]) .sf-rich :is(h2, h3):has(+ p + span.bn-button.te-wa),
.site-main:not([data-preview]) [data-block-id]:has(span.bn-button.te-wa):not(:has(a.bn-button, .bn-own-block)) {
    display: none;
}

.button--small {
    min-height: var(--tap);
    padding: 0.35rem 0.95rem;
    font-size: 1rem;
}

.button:disabled {
    border-color: var(--line);
    background: var(--board);
    color: var(--ink-soft);
    cursor: not-allowed;
}

.float-wa {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    box-shadow: 0 0.6rem 1.6rem -0.6rem rgb(23 33 51 / 0.55);
}

/* The builder's sections, in TaskEye's colours and type. ------------------ */

.sf-page {
    --sf-accent: var(--blue);
    --sf-accent-ink: #ffffff;
    --sf-ink: var(--ink);
    --sf-text: var(--ink-soft);
    --sf-alt: var(--white);
    --sf-radius: var(--radius);
    --sf-heading-font: var(--display);
    --sf-heading-weight: 800;
    --sf-heading-tracking: -0.008em;
    --sf-body-font: var(--body);
    --sf-card-line: 1px solid var(--line);
}

.site-main .sf-container {
    max-width: calc(var(--wrap) + 2 * var(--sf-gutter, 2.5rem));
}

.site-main .sf-layout-plain .sf-body {
    max-width: none;
}

.site-main .sf-rich-section {
    padding-block: min(var(--sf-pad, 5rem), clamp(3.5rem, 8vw, 6.5rem));
}

.site-main .sf-rich > :first-child,
.site-main .bn-column > :first-child {
    margin-top: 0;
}

.site-main .sf-rich :is(h1, h2, h3),
.site-main .fbe-core-heading {
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    text-wrap: balance;
}

.site-main .sf-rich h1 {
    font-size: clamp(3rem, 9vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.012em;
}

.site-main .sf-rich h2,
.site-main .fbe-core-heading {
    font-size: clamp(2.25rem, 6vw, 3.6rem);
    line-height: 0.98;
}

.site-main .sf-rich h3 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.site-main .sf-rich > p,
.site-main .bn-column > p {
    max-width: 44rem;
    color: var(--ink-soft);
}

.site-main .sf-rich :is(h1, h2) + p {
    font-size: 1.1875rem;
}

.site-main .sf-rich .bn-button {
    margin: 0.4rem 0.6rem 0.4rem 0;
}

/* Lists become check rows. */
.site-main .sf-rich ul:not([class]) {
    padding: 0;
    list-style: none;
}

.site-main .sf-rich ul:not([class]) > li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink);
}

.site-main .sf-rich ul:not([class]) > li + li {
    margin-top: 0.45rem;
}

.site-main .sf-rich ul:not([class]) > li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.3em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231450c2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Pictures: product screens and photos keep their own shape. */
.site-main .bn-image img {
    width: 100%;
    border-radius: var(--radius);
}

.site-main .bn-image figcaption {
    margin-top: 0.7rem;
    color: var(--ink-soft);
    font-size: 1rem;
}

/* The package's icon list as feature cards. */
.site-main .fbe-icons-boxed .fbe-icons-item {
    border: 1px solid var(--line);
    border-top: 0.3rem solid var(--blue);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: none;
}

.site-main .fbe-icons-mark {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.site-main .fbe-icons-item h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.site-main .fbe-icons-item p {
    color: var(--ink-soft);
    font-size: 1.0625rem;
}

/* Home: the photo carries the headline on its calm left side. ------------ */

.sf-rich-section.te-hero {
    --sf-heading: var(--ink);
    --sf-words: var(--ink-soft);
    color: var(--ink);
    --sf-surface: var(--white);
    --sf-alt: var(--white);
}

.te-hero .sf-rich-picture {
    object-position: 64% 30%;
}

.sf-rich-section.te-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgb(255 255 255 / 0.97) 0, rgb(255 255 255 / 0.93) 40%, rgb(255 255 255 / 0.15) 62%, rgb(255 255 255 / 0) 75%);
    pointer-events: none;
}

.te-hero .sf-container {
    position: relative;
    z-index: 1;
}

/* Room for the product screens that rise into the bottom of the photo. */
.site-main .sf-rich-section.te-hero {
    padding-bottom: calc(min(var(--sf-pad, 5rem), clamp(3.5rem, 8vw, 6.5rem)) + clamp(3rem, 12vw, 9rem));
}

.te-hero .sf-rich .bn-column:first-child {
    max-width: 36rem;
}

.te-hero .sf-rich h1 {
    color: var(--ink);
    font-size: clamp(3.25rem, 6.6vw, 6rem);
}

.te-hero .sf-rich h1 + p {
    max-width: 31rem;
    color: var(--ink-soft);
}

.te-hero .sf-rich .bn-button-outline {
    background: rgb(255 255 255 / 0.9);
}

.te-hero .sf-rich .bn-button + p {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 959px) {
    .sf-rich-section.te-hero::before {
        background: linear-gradient(180deg, rgb(255 255 255 / 0.92) 0, rgb(255 255 255 / 0.86) 100%);
    }

    .te-hero .sf-rich .bn-column:last-child:empty {
        display: none;
    }
}

/* The product screens rise out of the bottom of the hero photo. */
.sf-rich-section.te-screens-band {
    position: relative;
    z-index: 2;
    margin-top: clamp(-9rem, -12vw, -3rem);
    padding-bottom: clamp(1rem, 4vw, 3rem);
    overflow: visible;
    background: none;
}

/* Inner page tops: a calm board-grey band with a blue rule. -------------- */

.sf-rich-section.te-intro {
    border-bottom: 1px solid var(--line);
    --sf-surface: var(--board);
    --sf-alt: var(--board);
}

.te-intro .sf-rich h1 {
    max-width: 52rem;
}

.te-intro .sf-rich h1::before {
    content: "";
    display: block;
    width: 3.5rem;
    height: 0.35rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: var(--blue);
}

/* Bands. ------------------------------------------------------------------ */

.sf-rich-section:is(.te-walk, .te-apps, .te-industries, .te-demo, .te-faq) {
    --sf-surface: var(--board);
    --sf-alt: var(--board);
}

.sf-rich-section:is(.te-features, .te-before-after, .te-feature, .te-feature-pair, .te-contact, .te-also) {
    --sf-surface: var(--white);
    --sf-alt: var(--white);
}

.te-feature + div > .te-feature,
div:has(> .te-feature) + div > .te-feature {
    border-top: 1px solid var(--line);
}

.site-main .te-feature .bn-columns,
.site-main .te-apps .bn-columns,
.site-main .te-contact .bn-columns {
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.site-main .te-feature .bn-column:last-child .bn-image img[src*="phone-"] {
    width: auto;
    max-height: 34rem;
    margin-inline: auto;
}

.site-main .te-feature .bn-column:last-child .bn-image figcaption {
    text-align: center;
}

.site-main .te-features .fbe-icons,
.site-main .te-industries .fbe-icons {
    margin-block: 1.5rem 1.75rem;
}

.site-main .te-before-after .bn-columns {
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-block: 1.5rem 1.75rem;
}

.site-main .te-before-after .bn-column:first-child .bn-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0.6rem 0.6rem 0 #f8d3dc, 1.2rem 1.2rem 0 var(--canary-soft);
}

.site-main .te-before-after .bn-column:first-child figcaption {
    margin-top: 1.6rem;
}

.site-main .te-feature-pair .bn-columns {
    gap: clamp(2rem, 5vw, 4rem);
}

.site-main .te-feature-pair .bn-column {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-top: 0.3rem solid var(--blue);
    border-radius: var(--radius);
}

.site-main .te-feature-pair h2 {
    font-size: clamp(2rem, 4.4vw, 2.75rem);
}

.sf-rich-section.te-industries-teaser,
.sf-rich-section.te-website {
    border-block: 1px solid var(--line);
    --sf-surface: var(--canary-soft);
    --sf-alt: var(--canary-soft);
}

.site-main :is(.te-industries-teaser, .te-website, .te-cta) .bn-columns {
    align-items: center;
    gap: 1.5rem 3rem;
}

.site-main :is(.te-industries-teaser, .te-website) h2 {
    font-size: clamp(2rem, 4.6vw, 3rem);
}

.site-main :is(.te-industries-teaser, .te-website, .te-cta) .bn-column:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.site-main :is(.te-industries-teaser, .te-website, .te-cta) .bn-column:last-child .bn-button {
    margin: 0;
}

@media (min-width: 860px) {
    .site-main :is(.te-industries-teaser, .te-website, .te-cta) .bn-column:last-child {
        justify-content: flex-end;
    }
}

.sf-rich-section.te-cta {
    --sf-surface: var(--blue);
    --sf-alt: var(--blue);
    color: #ffffff;
}

.site-main .te-cta .sf-rich :is(h2, p) {
    color: #ffffff;
}

.site-main .te-cta .bn-button-solid:not(.te-wa) {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ink);
}

.site-main .te-cta a.bn-button-solid:not(.te-wa):hover {
    border-color: var(--canary);
    background: var(--canary);
    color: var(--ink);
}

.site-main .te-cta .bn-button.te-wa {
    border-color: #ffffff;
}

.site-main .te-also .sf-rich p {
    max-width: 52rem;
    font-size: 1.25rem;
}

.site-main .te-faq .fbe-faq-item {
    border-color: var(--line);
    background: var(--white);
}

.site-main .te-faq .fbe-faq-item summary {
    font-weight: 700;
}

.site-main .te-demo .bn-columns {
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.site-main .te-demo .bn-column:last-child {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.site-main .te-demo .bn-column:last-child h3:first-child {
    margin-top: 0;
}

/* Motion: parts below the first screen fade up as they scroll in (site.js).
   Nothing moves for visitors who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
    .site-main [data-reveal] {
        opacity: 0;
        translate: 0 1.5rem;
    }

    .site-main [data-reveal][data-reveal].is-revealed {
        opacity: 1;
        translate: none;
        transition:
            opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
            translate 0.8s var(--ease-out) var(--reveal-delay, 0ms);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .site-main [data-reveal] {
        opacity: 1;
        translate: none;
    }

    .float-wa {
        display: none;
    }
}
