/* Features page styles (Figma 93:2) */
html, body { overflow-x: clip; }
.section--tint { background: var(--sky); }

/* Hero (93:48) */
.fhero { position: relative; overflow: hidden; padding: 84px 0 0; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 70%, #fff 100%); }
.fhero__wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; object-fit: cover; pointer-events: none; }
.fhero__pin { position: absolute; width: 34px; height: 44px; }
.fhero__pin--red { left: 134px; top: 121px; transform: rotate(-12deg); }
.fhero__pin--teal { right: 146px; top: 182px; transform: rotate(10deg); }
.fhero__dots { position: absolute; left: calc(50% + 471px); top: 80px; width: 220px; height: 147px; }
.fhero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fhero__title { max-width: 980px; font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 5vw, 76px); line-height: 1.105; letter-spacing: -3px; text-wrap: balance; }
.fhero__text { margin-top: 24px; max-width: 813px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.68; color: var(--muted); }
.fhero__btn { margin-top: 32px; padding: 0 24px; }
/* Same crop and fade as the Figma mask group: the 1331px image is cropped to 1240px and fades out at the bottom */
.fhero__shot { position: relative; width: 100%; max-width: 1240px; margin-top: 34px; margin-bottom: 0; aspect-ratio: 1240 / 598; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 44%, rgba(0,0,0,.25) 72%, transparent 89%); mask-image: linear-gradient(180deg, #000 44%, rgba(0,0,0,.25) 72%, transparent 89%); }
.fhero__shot-glow { position: absolute; left: -4.89%; top: 11px; width: 107.35%; max-width: none; filter: blur(17px); opacity: .15; }
.fhero__shot-img { position: relative; display: block; width: 107.35%; max-width: none; height: auto; margin: 2px 0 0 -4.89%; }

/* Overview grid (93:99) */
.fsec-title { max-width: 760px; margin: 0 auto 56px; text-align: center; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.14; letter-spacing: 0; text-wrap: balance; }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 15px; min-height: 276px; padding: 30px 30px 30px; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fcard:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 30px rgba(6, 42, 89, .1); }
.fcard__icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: var(--sky); }
.fcard__icon img { width: 25px; height: 25px; }
.fcard h3 { margin-top: 20px; padding-right: 20px; font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 25px; }
.fcard p { margin-top: -5px; padding-right: 20px; font-size: 15px; line-height: 25px; color: var(--muted); }
.fcard__go { position: absolute; right: 19px; bottom: 19px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); transition: transform .2s; }
.fcard__go img { width: 17px; height: 17px; }
.fcard:hover .fcard__go { transform: translateX(3px); }

/* Split sections (93:205, 93:270) */
.fsplit__inner { display: flex; align-items: center; gap: 88px; }
.fsplit__text { flex: 1 1 0; min-width: 0; max-width: 620px; }
.fsplit__title { max-width: 546px; line-height: 50px; letter-spacing: 0; }
.fsplit__lead { margin-top: 18px; font-size: 18px; line-height: 35px; color: var(--muted); }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.point { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.point:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(6, 42, 89, .08); }
.point__tick { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #14bfa5; }
.point__tick img { width: 13px; height: 13px; }
.point h3 { margin-top: 10px; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 25.6px; }
.point p { margin-top: 6px; font-size: 14px; line-height: 22.4px; color: var(--muted); }
.flink { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-weight: 800; font-size: 16px; line-height: 25.6px; color: var(--blue); }
.flink img { width: 18px; height: 18px; transition: transform .2s; }
.flink:hover img { transform: translateX(4px); }
.fsplit__media--route { flex: none; width: 497px; }
.fsplit__media--route img { width: 100%; height: auto; }
.fsplit__media--cust { flex: none; width: 546px; }
.fsplit__crop { position: relative; width: 100%; aspect-ratio: 546 / 848; overflow: hidden; transform: scaleX(-1); }
.fsplit__crop img { position: absolute; left: 2.59%; top: -4.58%; width: 94.82%; height: 109.16%; max-width: none; }

@media (max-width: 1100px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .fsplit__inner { gap: 40px; }
  .fsplit__media--route { width: 38%; }
  .fsplit__media--cust { width: 42%; }
  .fhero__pin--red { left: 40px; }
  .fhero__pin--teal { right: 40px; }
}
@media (max-width: 900px) {
  .fhero { padding-top: 56px; }
  .fhero__title { letter-spacing: -1.5px; }
  .fhero__pin, .fhero__dots { display: none; }
  .fsplit__inner { flex-direction: column; align-items: stretch; }
  .fsplit--rev .fsplit__inner { flex-direction: column; }
  .fsplit__text { max-width: none; }
  .fsplit__title { max-width: none; line-height: 1.15; }
  .fsplit__media--route, .fsplit__media--cust { width: 100%; max-width: 420px; margin: 0 auto; }
  .fsplit--rev .fsplit__text { order: 1; }
  .fsplit--rev .fsplit__media { order: 2; }
}
@media (max-width: 560px) {
  .fgrid, .points { grid-template-columns: 1fr; }
  .fcard { min-height: 0; padding-bottom: 70px; }
  .fsplit__lead { font-size: 16px; line-height: 1.7; }
}

/* Card-grid split sections (93:364, 93:441, 93:525, 93:615, 93:722, 93:793, 93:862) */
.fsplit--cards .fsplit__inner { justify-content: center; align-items: center; gap: 88px; }
.fsplit--cards .fsplit__text { flex: none; width: 546px; max-width: 100%; }
.fsplit--cards .fsplit__title { max-width: none; }
.fsplit__title--wide { width: 579px; max-width: none; }
.fsplit__media--sticky, .fsplit__media--mid { flex: none; width: 546px; }
.fsplit__media--sticky { align-self: stretch; }
.fcrop { position: relative; width: 100%; overflow: hidden; }
.fsplit__media--sticky .fcrop { position: sticky; top: 110px; }
.fcrop img { position: absolute; max-width: none; }
.fcrop--visits { aspect-ratio: 546 / 777.14; }
.fcrop--visits img { left: 3.73%; top: -12.43%; width: 92.53%; height: 116.23%; }
.fcrop--territories { aspect-ratio: 546 / 775.97; }
.fcrop--territories img { left: 5.85%; top: -8.02%; width: 88.3%; height: 111.08%; }
.fcrop--trends { aspect-ratio: 546 / 788.31; }
.fcrop--trends img { left: 0; top: -15.73%; width: 100%; height: 123.76%; }
.fcrop--churn { aspect-ratio: 546 / 788.31; }
.fcrop--churn img { left: 7.77%; top: -2.29%; width: 84.45%; height: 104.58%; }
.fcrop--performance { aspect-ratio: 546 / 853.53; }
.fcrop--performance img { left: 0; top: -11%; width: 100%; height: 114.37%; }
.fcrop--command { aspect-ratio: 546 / 818.52; }
.fcrop--command img { left: 6.27%; top: -6.46%; width: 87.47%; height: 104.28%; }
.fcrop--reps { aspect-ratio: 546 / 859.53; }
.fcrop--reps img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Churn steps (93:615) */
.fsteps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.fstep { list-style: none; position: relative; padding: 34px 28px; background: #fff; border: 1px solid var(--border); border-radius: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fstep:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 26px rgba(6, 42, 89, .18); }
.fstep--link::after { content: ""; position: absolute; left: 100%; top: 60px; width: 24px; border-top: 3px dotted var(--blue); }
.fstep__num { position: absolute; top: 24px; right: 28px; font-family: var(--font-head); font-weight: 800; font-size: 41.6px; line-height: 41.6px; color: rgba(23, 101, 216, .22); }
.fstep__icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(134deg, #1765d8 20%, #ff2854 160%); }
.fstep__icon img { width: 25px; height: 25px; }
.fstep h3 { margin-top: 22px; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 32px; }
.fstep p { margin-top: 10px; font-size: 15px; line-height: 25.5px; color: var(--muted); }

/* Centered section heads */
.fhead { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.fhead .section__title { font-size: clamp(30px, 3.4vw, 44.8px); line-height: 1.12; letter-spacing: -1.344px; }
.fhead p { margin-top: 18px; font-size: 18px; line-height: 35px; color: var(--muted); }

/* Integrations (93:990) */
.fint__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.fint__card { padding: 34px 30px; background: #fff; border: 1px solid var(--border); border-radius: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fint__card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 30px rgba(6, 42, 89, .1); }
.fint__icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: var(--sky); }
.fint__icon img { width: 25px; height: 25px; }
.fint__card h3 { margin-top: 22px; font-family: var(--font-head); font-weight: 800; font-size: 18.4px; line-height: 23.92px; letter-spacing: -.368px; }
.fint__card p { margin-top: 10px; font-size: 15px; line-height: 25.5px; color: var(--muted); }

/* Enterprise data (93:1037) */
.fsec { background: var(--navy); color: #fff; }
.fsec .section__title { color: #fff; }
.fsec .section__title em { color: #9cc7ff; }
.fsec .fhead p { font-size: 17px; line-height: 29.75px; color: rgba(255, 255, 255, .85); }
.fsec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 0 auto; }
.fsec__card { padding: 30px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; transition: transform .2s, background .2s, border-color .2s; }
.fsec__card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.fsec__icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .12); }
.fsec__icon img { width: 25px; height: 25px; }
.fsec__card h3 { margin-top: 18px; font-family: var(--font-head); font-weight: 800; font-size: 18.4px; line-height: 23.92px; letter-spacing: -.368px; color: #fff; }
.fsec__card p { margin-top: 10px; font-size: 15px; line-height: 25.5px; color: rgba(255, 255, 255, .78); }

/* FAQ (93:1103) */
.ffaq__list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.ffaq__item { background: #fff; border: 1px solid var(--border); border-radius: 20px; transition: background .25s, box-shadow .25s, border-color .25s; }
.ffaq__item:hover { border-color: var(--blue); }
.ffaq__q { margin: 0; }
.ffaq__q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border: 0; background: none; text-align: left; font-family: var(--font-head); font-weight: 800; font-size: 16.8px; line-height: 23.52px; color: var(--navy); cursor: pointer; }
.ffaq__q button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 20px; }
.ffaq__chev { flex: none; width: 22px; height: 22px; }
.ffaq__chev--light { display: none; }
.ffaq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.ffaq__a > div { overflow: hidden; }
.ffaq__a p { padding: 0 26px 26px; font-size: 15px; line-height: 26.25px; color: rgba(255, 255, 255, .92); }
.ffaq__item.is-open { background: var(--blue); border-color: var(--blue); box-shadow: 0 18px 18px rgba(23, 101, 216, .3); }
.ffaq__item.is-open .ffaq__q button { color: #fff; }
.ffaq__item.is-open .ffaq__a { grid-template-rows: 1fr; }
.ffaq__item.is-open .ffaq__chev--light { display: block; }
.ffaq__item.is-open .ffaq__chev--dark { display: none; }
.ffaq__item:not(.is-open) .ffaq__a { visibility: hidden; }

/* CTA banner (93:1165) */
.cta { padding: 10px 0 80px; }
.cta__card { position: relative; min-height: 542px; display: flex; align-items: center; justify-content: center; padding: 60px 24px 110px; overflow: hidden; border-radius: 50px; background: linear-gradient(148deg, #1765d8 14.9%, #0a3f96 93.8%); box-shadow: 0 24px 60px -18px rgba(6,42,89,.22); }
.cta__pin { position: absolute; width: 76px; height: auto; max-width: none; }
.cta__pin--red { left: 8.4%; top: 56px; }
.cta__pin--teal { left: 84.5%; top: 372px; }
.cta__wave { position: absolute; left: 0; bottom: -3px; width: 100%; height: auto; }
.cta__content { position: relative; width: 100%; max-width: 744px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.cta__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-weight: 800; font-size: 12px; line-height: 19.2px; letter-spacing: .96px; text-transform: uppercase; }
.cta__badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff2854; box-shadow: 0 0 0 4px rgba(255,40,84,.18); }
.cta__title { margin-top: 15px; font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.083; letter-spacing: -3px; }
.cta__text { max-width: 640px; margin: 25px 0; font-size: 18px; line-height: 35px; opacity: .9; }

/* Use-case matrix: table on desktop, one card per row on mobile */
.fmx__table { width: 100%; max-width: 1080px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.fmx__table th { padding: 20px 28px; background: var(--navy); color: #fff; text-align: left; font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 22px; }
.fmx__table td { padding: 20px 28px; border-top: 1px solid var(--border); font-size: 15px; line-height: 25.5px; color: var(--muted); vertical-align: top; }
.fmx__table tbody tr:first-child td { border-top: 0; }
.fmx__table td:nth-child(2) { font-family: var(--font-head); font-weight: 800; color: var(--blue); }
.fmx__table td:nth-child(3) { color: var(--navy); font-weight: 600; }
@media (max-width: 760px) {
  .fmx__table, .fmx__table tbody, .fmx__table tr, .fmx__table td { display: block; width: 100%; }
  .fmx__table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .fmx__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fmx__table tbody tr { margin-bottom: 16px; padding: 8px 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
  .fmx__table td, .fmx__table tbody tr:first-child td { padding: 12px 22px; border-top: 0; }
  .fmx__table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-head); font-weight: 800; font-size: 12px; line-height: 18px; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); opacity: .6; }
}

/* Responsive additions */
@media (max-width: 1100px) {
  .fsplit--cards .fsplit__inner { gap: 40px; }
  .fsplit--cards .fsplit__text { flex: 1 1 0; width: auto; min-width: 0; }
  .fsplit__title--wide { width: auto; }
  .fsplit__media--sticky, .fsplit__media--mid { width: 40%; }
  .fint__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fsec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fstep--link::after { display: none; }
}
@media (max-width: 900px) {
  .fsplit--cards .fsplit__inner { flex-direction: column; align-items: stretch; }
  .fsplit--cards .fsplit__text { flex: none; width: 100%; order: 1; }
  .fsplit--cards.fsplit--rev .fsplit__inner { flex-direction: column; }
  .fsplit--cards .fsplit__media { order: 2; width: 100%; max-width: 420px; margin: 0 auto; align-self: center; }
  .fsplit__media--sticky .fcrop { position: relative; top: auto; }
  .cta__title { letter-spacing: -2px; }
}
@media (max-width: 560px) {
  .fsteps, .fint__grid, .fsec__grid { grid-template-columns: 1fr; }
  .fhead { margin-bottom: 36px; }
  .fhead p { font-size: 16px; line-height: 1.7; }
  .fhead .section__title { letter-spacing: -.5px; }
  .ffaq__q button { padding: 18px; font-size: 15px; }
  .ffaq__a p { padding: 0 18px 20px; }
  .cta__card { border-radius: 30px; padding: 66px 20px 100px; }
  .cta__pin { width: 34px; }
  .cta__pin--red { top: 6px; left: 16px; }
  .cta__pin--teal { top: auto; left: auto; right: 16px; bottom: 36px; }
  .cta__text { font-size: 16px; line-height: 28px; }
}

/* Less empty blue space above "Everything You Need to Manage..." (the hero already leaves its own gap above) */
#overview { padding-top: 44px; }
@media (max-width: 900px) { #overview { padding-top: 36px; } }

/* Less empty space under "Explore Route Optimization", before the Customers section */
#route-optimization { padding-bottom: 48px; }
@media (max-width: 900px) { #route-optimization { padding-bottom: 36px; } }

/* Tablet: closing-banner pins tucked into the corners, clear of the text */
@media (min-width: 561px) and (max-width: 900px) {
  .cta__pin { width: 44px; }
  .cta__pin--red { left: 5%; top: 8px; }
  .cta__pin--teal { left: auto; right: 5%; top: auto; bottom: 36px; }
}

/* Cards in the overview grid jump to these sections: keep the section heading clear of the sticky header */
#customers, #trends, #churn { scroll-margin-top: 90px; }

/* Hero title: "Features" sits on its own line via CSS (no <br> plus spaces in the text) */
.fhero__title span { display: block; }

/* Phones: closing banner has no decorative pins and tighter spacing */
@media (max-width: 560px) {
  .cta__pin { display: none; }
  .cta { padding-bottom: 56px; }
  .cta__card { min-height: 0; padding: 56px 20px; }
  .cta__wave { height: 56px; width: 100%; object-fit: fill; }
}

/* Phones: smaller hero heading, matching the feature pages */
@media (max-width: 560px) {
  .fhero { padding-top: 32px; }
  .fhero__title { font-size: 30px; line-height: 38px; letter-spacing: -1px; }
}

/* Tablets: smaller hero heading and tighter top spacing */
@media (min-width: 561px) and (max-width: 900px) {
  .fhero { padding-top: 32px; }
  .fhero__title { font-size: 36px; line-height: 44px; letter-spacing: -1.5px; }
}
