/* Construction industry page (/industry/construction-employees-attendance-app).
   The body carries `finances-page` and `nbfc-page` as well as `con-page`,
   so finances.css and nbfc-field-force-management.css supply the whole NBFC
   design (layout, spacing, animations) and the NBFC colour theme. This
   file only adds the pieces the Construction copy deck needs and the NBFC
   page does not have, all scoped to `.con-page`, in the NBFC blues (accent
   #164bd6, brand blue #1e5bfa) with the NBFC orange for pain points, the
   same blue and orange as the copy deck. Built the same way as the
   Manufacturing and EdTech pages. */

/* Hero heading, set like the NBFC hero: three centred lines stepping in,
   widest first ("Construction Site Attendance" / "Management Software
   for" / "Every Site"), the accent words in the NBFC blue. The first line
   is a little longer than NBFC's, so on desktop the heading is a touch
   smaller than the NBFC clamp (4.6vw, 68px) and sits between the floating
   icons instead of running into them. */
@media (min-width: 1000px) {
  .con-page.nbfc-page .fin-hero-center .prod-hero-headline {
    font-size: clamp(34px, 3.95vw, 60px);
  }
}

/* Rotating word (set up by the page script): it shares the last line with
   "Every", as on the NBFC headline. The page script holds it at the width
   of the longest word and each word starts at its left edge, so the line
   never changes width and "Every" stays perfectly still (no re-centring,
   no flicker). Whole words slide up and fade in turn. Each word is the NBFC accent blue (#164bd6), solid
   as on the NBFC headline. */
.con-page.nbfc-page .crm-suite-hero.fin-hero-center .fin-hero-title-accent.con-rotator.is-ready {
  position: relative;
  display: inline-block;
  color: #164bd6;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.con-page .con-rotator-sizer {
  visibility: hidden;
}

/* Each word's box is padded above and below (and shifted up by the same
   amount, so the word stays exactly in place), so no glyph is clipped by
   the heading's tight 1.1 line height. */
.con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word {
  position: absolute;
  top: -0.12em;
  left: 0;
  padding: 0.12em 0 0.22em;
  white-space: nowrap;
  color: #164bd6;
  background: none;
  -webkit-text-fill-color: #164bd6;
  opacity: 0;
  transform: translate3d(0, 0.45em, 0);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word.is-current {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word.is-leaving {
  opacity: 0;
  transform: translate3d(0, -0.45em, 0);
}

/* Hero description, set exactly like the NBFC hero: centred lines, each
   held on one line, under the centred heading. The copy deck's subhead is
   set in two balanced lines (108 / 113 characters), as under the NBFC
   headline, so the block runs about the width of the heading's first
   line and lines up with it on both sides. The text scales with the heading,
   so the two stay level at every desktop width. Below 1200px it wraps naturally, as on the NBFC page. */
@media (min-width: 1200px) {
  .con-page.nbfc-page .fin-hero-center .prod-hero-sub {
    max-width: none;
    font-size: min(17px, 1.14vw);
    text-align: center;
  }

  .con-page.nbfc-page .fin-hero-center .prod-hero-sub .nbfc-hero-sub-line {
    display: block;
    white-space: nowrap;
  }
}

/* Quick answer section, kept compact. The heading ("What Is Construction
   Workforce Management Software?") is longer than NBFC's, and the shared
   rules hold its first line on one line, which ran it into the picture.
   Here it is a little smaller and wraps naturally in balanced lines inside
   the copy column, which never passes the middle of the section where the
   picture starts. The paragraphs and field layer also sit
   closer together. */
@media (min-width: 1101px) {
  .con-page.nbfc-page .nbfc-answer .fin-journey-heading h2 {
    font-size: clamp(28px, 2.6vw, 40px) !important;
    text-wrap: balance;
  }

  .con-page.nbfc-page .nbfc-answer .fin-journey-heading h2 .fin-journey-lead {
    display: inline;
  }

  .con-page.nbfc-page .nbfc-answer .fin-journey-heading h2 span {
    white-space: normal !important;
  }

  .con-page.nbfc-page .nbfc-answer {
    padding: 28px 0;
  }

  .con-page.nbfc-page .nbfc-answer .nbfc-answer-text {
    margin-top: 10px;
  }

  .con-page.nbfc-page .nbfc-answer .nbfc-answer-text p {
    font-size: 16px;
    line-height: 1.55;
  }

  .con-page.nbfc-page .nbfc-answer .nbfc-layer {
    margin-top: 16px;
  }
}

/* Quick answer picture (two site staff checking attendance on a tablet,
   with an "Attendance Verified" card): cropped around its centre so both
   people and the card stay in view. Square corners only, as on the Media
   page. */
.con-page.nbfc-page .nbfc-answer-media,
.con-page.nbfc-page .nbfc-answer-media img {
  border-radius: 0 !important;
}

.con-page.nbfc-page .nbfc-answer-media img {
  object-position: 50% 50%;
}

/* "TrackOlap for Construction" label: no leading dash. The NBFC
   page draws a short rule before this label; this page shows the
   label on its own, with no dash anywhere in the content. */
.con-page.nbfc-page .nbfc-layer-title::before {
  display: none;
}

/* Pain points: the NBFC section background, with the NBFC tile
   grid (14px cells, faint brand blue) behind the pill, heading and intro,
   reaching up through the section's top padding and fading out at the
   sides and just below the intro. */
.con-page.finances-page .con-proof .fin-leaks-heading {
  position: relative;
  isolation: isolate;
}

.con-page.finances-page .con-proof .fin-leaks-heading::before {
  position: absolute;
  z-index: -1;
  top: -96px;
  bottom: -24px;
  left: 50%;
  width: min(1000px, 100vw);
  background-image:
    linear-gradient(rgba(30, 91, 250, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 91, 250, 0.09) 1px, transparent 1px);
  background-position: center top;
  background-repeat: repeat;
  background-size: 14px 14px;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 1024px) {
  .con-page.finances-page .con-proof .fin-leaks-heading::before {
    top: -72px;
  }
}

@media (max-width: 900px) {
  .con-page.finances-page .con-proof .fin-leaks-heading::before {
    width: 100vw;
  }
}

/* How it works: the heading and Stage 1 read as one section (as on the
   Agriculture page). Stage 1 has no background of its own, so the section's single
   top glow runs on behind it instead of a second glow starting under the
   heading, and Stage 1 starts closer to the subheading. The heading block
   is also wide enough for its lines to sit centred. */
.con-page.finances-page .crm-workflow-step:first-child {
  padding-top: 16px;
  background: transparent;
}

.con-page.sales-crm-softwares-page .crm-section-heading.crm-workflow-heading {
  width: min(calc(100% - 48px), 1280px);
  padding-bottom: 24px;
}

/* How it works heading, set like the NBFC hero headline: two centred
   lines, the second narrower than the first ("How TrackOlap's
   Construction Site" / "Attendance App Works"). */
.con-page .crm-workflow-heading .con-workflow-line {
  display: block;
}

.con-page.finances-page .crm-workflow-heading .con-workflow-title .fin-workflow-lead,
.con-page.finances-page .crm-workflow-heading .con-workflow-title .crm-workflow-title-gradient {
  display: inline;
  white-space: normal;
}

/* Subheading aligned to the heading, as under the NBFC hero headline: on
   desktop the heading block is exactly as wide as the heading's first
   (widest) line, and the subheading fills that width without widening it,
   in two balanced, centred lines. */
@media (min-width: 901px) {
  .con-page.sales-crm-softwares-page .crm-section-heading.crm-workflow-heading {
    width: fit-content;
    max-width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
  }

  .con-page.finances-page .crm-section-heading.crm-workflow-heading > p.crm-workflow-summary {
    width: 0;
    min-width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
    text-wrap: balance;
  }
}

/* How it works subheading on desktop: one centred line ("Seven steps
   take you ... one project or fifty.") sized with the heading, so it spans
   about the width of the heading's first line. If it ever runs a little
   wider, the heading block widens with it and both stay centred. */
@media (min-width: 1101px) {
  .con-page.finances-page .crm-section-heading.crm-workflow-heading > p.crm-workflow-summary {
    width: auto;
    min-width: 0;
    font-size: min(18.5px, 1.3vw);
    white-space: nowrap;
  }
}

/* Multi-site heading: on desktop "Built for Multi-Site Construction
   Attendance" reads on one centred line ("Construction Attendance" in
   blue), a touch smaller than the shared clamp so it fits. The heading
   block is exactly as wide as that line and the intro fills the same
   width: its full lines run edge to edge under the heading and the last
   line is centred, so both line up on the left and right. Below 901px
   both wrap naturally. */
@media (min-width: 901px) {
  .con-page.finances-page .prod-task-capabilities-head {
    width: fit-content;
    max-width: min(1200px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
  }

  .con-page.finances-page.nbfc-page .prod-task-capabilities-head h2 {
    font-size: clamp(28px, 3vw, 44px) !important;
    white-space: nowrap;
  }

  .con-page.finances-page .prod-task-capabilities-head .prod-task-capabilities-intro {
    width: 0;
    min-width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    text-align: justify;
    text-align-last: center;
    text-wrap: pretty;
  }
}

/* Comparison heading, set like the sections above: "Registers Record
   Names." on the first line and "TrackOlap Records Proof." in blue below
   it, centred (balanced if it ever wraps). The heading block is exactly as
   wide as the heading's longer line. */
@media (min-width: 901px) {
  .con-page.finances-page .fin-compare-heading {
    width: fit-content;
    max-width: min(1100px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
  }

  .con-page.finances-page .fin-compare-heading h2 {
    text-align: center;
    text-wrap: balance;
  }

  .con-page.nbfc-page .fin-compare-heading .ind-compare-intro {
    width: 0;
    min-width: 100%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    text-align-last: center;
    text-wrap: balance;
  }
}

/* Comparison subheading on desktop: one centred line ("How a construction
   worker attendance tracking app compares with paper registers and
   spreadsheets.") sized with the heading (about 0.33 x its
   clamp(28px, 3.4vw, 48px)), so it spans the width of "TrackOlap Records
   Proof." and lines up with the heading on both sides. If it ever runs a
   little wider, the heading block widens with it and both stay centred. */
@media (min-width: 1200px) {
  .con-page.nbfc-page .fin-compare-heading .ind-compare-intro {
    width: auto;
    min-width: 0;
    font-size: min(16px, 1.13vw);
    white-space: nowrap;
  }
}

/* Impact cards on phones: two compact cards per row (2 x 2) instead of
   four tall full-width cards stacked down the screen, with smaller
   figures and labels so each sentence fits in a few short lines. */
@media (max-width: 560px) {
  .con-page.finances-page .nbfc-impact .fin-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .con-page.finances-page .nbfc-impact .fin-results-card {
    min-height: 0;
    padding: 20px 12px;
    justify-content: flex-start;
    border-radius: 16px;
  }

  .con-page.finances-page .nbfc-impact .fin-results-value {
    margin: 0 0 8px;
  }

  .con-page.finances-page .nbfc-impact .fin-results-value strong {
    font-size: 30px;
  }

  .con-page.finances-page .nbfc-impact .fin-results-label {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Mid-page demo CTA: the NBFC section as it is (same band height, form
   card width, form fields and full-width submit button), so it measures
   exactly like the NBFC page's CTA. Only the heading differs: it is a
   little smaller, splits into its two halves (balanced, so "Month-End."
   never breaks at its hyphen on a line of its own), and the decorative
   arrow, which otherwise wrapped onto a line of its own, is dropped. */
.con-page .con-cta .fin-cta-form-copy h2 {
  font-size: clamp(28px, 2.6vw, 40px);
}

.con-page .con-cta .fin-cta-form-copy h2 span:not(.fin-cta-form-arrow) {
  display: block;
  text-wrap: balance;
}

.con-page .con-cta .fin-cta-form-arrow {
  display: none;
}

.con-page .con-cta .fin-cta-form-copy > p {
  max-width: 520px;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
}

/* Project types heading: the shared Finance rule justifies the intro
   across the width of a much longer heading, which stretches the word
   spacing of a short intro. Here the heading and intro are centred as one
   block, the intro set in balanced, normally spaced lines under it. */
.con-page .crm-section-heading.crm-communication-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.con-page .crm-communication-heading h2 {
  text-align: center;
  text-wrap: balance;
}

/* On desktop the heading reads on two balanced lines ("Construction
   Labour Management Software" / "for Every Type of Project", the second
   in blue), a touch smaller than the shared clamp. Below 901px it wraps
   naturally. */
@media (min-width: 901px) {
  .con-page.finances-page .crm-section-heading.crm-communication-heading {
    max-width: min(1200px, calc(100% - 48px));
  }

  .con-page.finances-page.nbfc-page .crm-communication-heading h2 {
    font-size: clamp(28px, 3vw, 44px) !important;
  }

  .con-page.finances-page.nbfc-page .crm-communication-heading h2 .fin-segments-lead {
    white-space: nowrap !important;
  }

  .con-page.finances-page.nbfc-page .crm-communication-heading h2 .fin-segments-lead + span {
    display: block;
  }

  /* Subheading aligned to the heading: the heading block is exactly as
     wide as its first (widest) line, and the subheading fills that width
     without widening it, its full line running edge to edge under the
     heading and the last line centred. */
  .con-page.finances-page .crm-section-heading.crm-communication-heading {
    width: fit-content;
  }

  .con-page.finances-page.nbfc-page .crm-section-heading.crm-communication-heading > p:last-child {
    width: 0;
    min-width: 100%;
    max-width: none;
    font-size: 18px;
    text-align: justify;
    text-align-last: center;
    text-wrap: pretty;
  }
}

.con-page .crm-section-heading.crm-communication-heading > p:last-child {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  text-align-last: center;
  text-wrap: balance;
}

/* Hero trust line under the email bar (the copy deck's four points:
   "Geofenced site check-ins" to "Payroll-ready reports"), each with an NBFC blue
   tick. Wraps and stays centred on small
   screens. */
.con-page .con-hero-trust {
  display: flex;
  margin: 18px 0 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--crm-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.con-page .con-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.con-page .con-hero-trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #164bd6;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .con-page .con-hero-trust {
    gap: 6px 14px;
    font-size: 13px;
  }
}

/* Get Started cards: the NBFC rule holds each title on one line from
   1280px up, but "Talk to a Construction Specialist" is longer than the
   NBFC titles, so it could run out of its card into the next one, where
   it would flicker while the cards fade in. Here the
   titles wrap in balanced lines inside their cards at every width, and
   the cards stay inside their own column. */
.con-page.nbfc-page .crm-get-started-card {
  min-width: 0;
  overflow: hidden;
}

.con-page.nbfc-page .crm-get-started-card h3 {
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Scroll reveal: once an element has faded in, drop the animation's
   `will-change` hint so the revealed cards no longer sit on their own
   compositing layers, which can make text shimmer while scrolling. */
.con-page.finances-page .fin-reveal.is-revealed {
  will-change: auto;
}

/* ---- How it works on phones ----
   The section heading (pill, title and intro) stays centred, its two
   lines each wrapping in balanced lines instead of leaving a single word
   alone. Each stage's copy reads from the left, in one column with the
   picture: the stage label, title, description, "Key capabilities" label
   and the capability cards all start at the same left edge. */
@media (max-width: 760px) {
  .con-page.finances-page .crm-workflow-heading .con-workflow-title .con-workflow-line {
    text-wrap: balance;
  }

  .con-page.sales-crm-softwares-page .crm-workflow-copy {
    text-align: left;
  }

  .con-page.sales-crm-softwares-page .crm-workflow-copy .crm-step-number {
    margin-right: 0;
    margin-left: 0;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: left;
  }

  .con-page.sales-crm-softwares-page .crm-workflow-copy h3,
  .con-page.sales-crm-softwares-page .crm-workflow-copy .crm-step-description {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
    text-wrap: pretty;
  }

  .con-page.nbfc-page .crm-workflow-copy .nbfc-capability-label {
    text-align: left;
  }

  .con-page.sales-crm-softwares-page .crm-workflow-copy .crm-capability-list {
    justify-content: start;
  }
}

/* ---- Hero on phones ----
   The headline flows as one centred paragraph (finances.css), but filled
   line by line instead of balanced, so "Construction Site" stays together
   on the first line rather than leaving "Construction" on its own:
   "Construction Site" / "Attendance" / "Management Software" / "for
   Every" / the rotating word. On a phone the rotating word sits centred
   on its own last line (the desktop rule holds it at the width of
   "Contractor" beside "Every", which pushed that line off-centre on a
   narrow screen), so every line is centred and nothing else moves while
   the words change.
   The hero also ends closer to the logo strip (the shared 108px bottom
   padding left a large empty gap under the email bar). */
@media (max-width: 760px) {
  .con-page.finances-page .fin-hero-center .crm-suite-hero-inner {
    padding-bottom: 44px;
  }

  .con-page.finances-page .fin-hero-center .prod-hero-headline {
    text-wrap: wrap;
  }

  .con-page.nbfc-page .crm-suite-hero.fin-hero-center .fin-hero-title-accent.con-rotator.is-ready {
    display: block;
    width: auto !important;
    text-align: center;
  }

  .con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word {
    left: 50%;
    transform: translate3d(-50%, 0.45em, 0);
  }

  .con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word.is-current {
    transform: translate3d(-50%, 0, 0);
  }

  .con-page.nbfc-page .crm-suite-hero.fin-hero-center .con-rotator-word.is-leaving {
    transform: translate3d(-50%, -0.45em, 0);
  }
}

/* ---- How it works capabilities on phones ----
   The construction capabilities are longer than the EdTech ones, so as
   full-size pills each took a whole row. On a phone they sit in a
   two-column grid (2 x 2), every card the same width and the cards in a
   row the same height, with slightly smaller text that wraps inside its
   card and reads from the left, like the rest of the stage copy. */
@media (max-width: 760px) {
  .con-page.sales-crm-softwares-page .crm-workflow-copy .crm-capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .con-page.sales-crm-softwares-page .crm-workflow-copy .crm-capability-list li {
    display: flex;
    min-height: 0;
    padding: 9px 12px;
    justify-content: flex-start;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    text-wrap: pretty;
  }
}

/* ---- Project types on phones and tablets ----
   The tabs sit in one row that scrolls sideways. The row scrolls with
   touch (momentum, snapping to each tab), and the page script scrolls it
   so the selected tab is always fully in view. A soft fade on the right
   edge shows there are more tabs to swipe to. Same breakpoint as the
   shared rule that turns the tab list into a row (900px). */
@media (max-width: 900px) {
  .con-page.sales-crm-softwares-page .crm-communication-tabs {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  }

  .con-page.sales-crm-softwares-page .crm-communication-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .con-page.sales-crm-softwares-page .crm-communication-tab:last-child {
    margin-right: 48px;
  }
}

/* ---- How it works pictures on phones ----
   The seven step pictures come from different sets: some have their own
   coloured card, some a white or transparent background, and each has
   different built-in margins, so on a phone they sat at different widths
   under the centred copy. Here every picture sits in the same frame: full
   width, the same 4:3 shape, the same soft blue background and rounded
   corners, with the picture centred inside it. */
@media (max-width: 760px) {
  .con-page.sales-crm-softwares-page .crm-workflow-media {
    display: flex;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #e4eeff 0%, #f3f8ff 100%);
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(30, 91, 250, 0.08);
  }

  .con-page.sales-crm-softwares-page .crm-workflow-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

/* ---- Comparison table on phones and tablets ----
   The table needs about 980px, so below 1060px it scrolls sideways inside
   its own box (the "Swipe right" pill above it). The box is pinned to the
   column width, scrolls only sideways, takes touch swipes in both
   directions (sideways for the table, up and down for the page), and is
   never moved by a transform, so a swipe always scrolls the table. */
@media (max-width: 1060px) {
  .con-page.finances-page .ind-compare .ind-compare-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    transform: none;
    will-change: auto;
  }

  .con-page.finances-page .ind-compare .ind-compare-table {
    width: 980px;
    min-width: 980px;
    max-width: none;
  }
}

