/* Home page styles */

/* Hero (Figma 49:2783, 1920 x 1236) */
.hero { position: relative; overflow: hidden; padding: 110px 0 0; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 70%, #fff 100%); }
.hero__pin { position: absolute; width: 34px; height: 44px; }
.hero__pin--red { left: 130px; top: 107px; transform: rotate(-12deg); }
.hero__pin--teal { right: 150px; top: 187px; transform: rotate(10deg); }
.hero__dots { position: absolute; left: calc(50% + 500px); top: 37px; width: 220px; height: 147px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.hero__title { max-width: 1160px; font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.1; letter-spacing: -2px; }
.hero__title em { font-style: normal; color: var(--blue); }
.hero__sub { margin-top: 20px; font-family: var(--font-head); font-weight: 500; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.5; }
.hero__text { margin-top: 15px; max-width: 932px; font-size: 20px; line-height: 1.68; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 45px; }
.hero__note { margin-top: 30px; font-size: 16px; color: var(--muted); }
.hero__tag { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .52px; text-transform: uppercase; }
.hero__tag img { width: 14px; height: 18px; }
/* Figma crops the 1331px-wide dashboard image to 1240px (60px off each side) and fades it out at the bottom */
.hero__shot { width: 100%; max-width: 1240px; margin-top: 30px; }
.hero__shot-img { display: block; width: 100%; height: auto; }

/* Trust stats (Figma 49:2930) */
.stats { padding-bottom: 50px; }
.stats__row { display: flex; align-items: stretch; }
.stats__item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px 8px; text-align: center; border-right: 1px solid var(--border); }
.stats__item:last-child { border-right: 0; }
.stats__item img { width: 37px; height: 37px; }
.stats__item strong { font-family: var(--font-head); font-weight: 800; font-size: 36.8px; line-height: 1; letter-spacing: -1.1px; color: var(--blue); }
.stats__item p { font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-top: 70px; }
  .hero__pin, .hero__dots { display: none; }
  .hero__text { font-size: 17px; }
  .stats__row { flex-wrap: wrap; }
  .stats__item { flex: 1 1 33%; border-bottom: 1px solid var(--border); }
  .stats__item:nth-child(3n) { border-right: 0; }
}
@media (max-width: 560px) {
  .stats__item { flex-basis: 50%; }
  .stats__item:nth-child(3n) { border-right: 1px solid var(--border); }
  .stats__item:nth-child(even) { border-right: 0; }
}

/* ==========================================================
   Remaining Home sections (Figma 49:2955 onward)
   ========================================================== */
main .section__lead { line-height: 1.95; }
main .section__title, .whatis__title, .partner__title { letter-spacing: 0; }
main .section--sky { background: var(--sky); }
main .section__head { max-width: none; }
.section__head .section__title--narrow { max-width: 945px; margin-left: auto; margin-right: auto; }
.hs-steps { margin: 0; padding: 0; list-style: none; }
.hs-center { display: flex; justify-content: center; margin-top: 40px; }
.hs-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 40px; }
.hs-cta-row--left { justify-content: flex-start; }

/* shared card + icons */
.hs-card { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hs-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px rgba(6,42,89,.1); border-color: #b9d4f2; }
.hs-card__title { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 25px; color: var(--navy); }
.hs-card__text { font-size: 15px; line-height: 25px; color: var(--muted); }
.hs-icon { flex: none; display: grid; place-items: center; background: var(--sky); border-radius: 12px; }
.hs-icon--lg { width: 70px; height: 70px; border-radius: 16px; }
.hs-icon--sm { width: 50px; height: 50px; }
.hs-icon--grad, .hs-step .hs-icon { background: linear-gradient(134deg, #7a4ca3 0%, #1765d8 85%); }
.hs-icon--grad { width: 54px; height: 54px; }
.hs-icon--role { width: 46px; height: 46px; }
.hs-icon--glass { width: 50px; height: 50px; background: rgba(255,255,255,.16); }
.hs-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; background: #14bfa5; }
.hs-tick--lg { width: 40px; height: 40px; margin: 0; }
.hs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.hs-grid3--top { align-items: start; }
.hs-head-left { max-width: 760px; margin-bottom: 40px; }
.hs-head-left--wide { max-width: none; }
.hs-head-left .section__lead { margin-top: 15px; }

/* features grid */
.hs-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.hs-feat { position: relative; isolation: isolate; width: calc((100% - 50px) / 3); }
/* White cards; on hover (or keyboard focus) the card turns purple-to-blue with white text and icon */
.hs-feat::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(139deg, #7a4ca3 0%, #1765d8 85%); opacity: 0; transition: opacity .25s; }
.hs-feat:hover::before, .hs-feat:focus-within::before { opacity: 1; }
.hs-feat .hs-card__title, .hs-feat .hs-card__text, .hs-feat .hs-icon { transition: color .25s, background-color .25s; }
.hs-feat .hs-icon img { transition: filter .25s; }
.hs-feat:hover, .hs-feat:focus-within { border-color: transparent; }
.hs-feat:hover .hs-icon, .hs-feat:focus-within .hs-icon { background: rgba(234,245,255,.2); }
.hs-feat:hover .hs-icon img, .hs-feat:focus-within .hs-icon img { filter: brightness(0) invert(1); }
.hs-feat:hover .hs-card__title, .hs-feat:hover .hs-card__text, .hs-feat:focus-within .hs-card__title, .hs-feat:focus-within .hs-card__text { color: #fff; }
.hs-more { display: inline-flex; align-items: center; gap: 15px; font-weight: 700; font-size: 15px; line-height: 25px; color: var(--blue); }
.hs-more img { width: 15px; height: 11px; transition: transform .2s; }
.hs-more:hover img { transform: translateX(5px); }

/* split layouts */
.hs-split { display: flex; align-items: flex-start; gap: 50px; }
.hs-split__main { flex: 1 1 0; min-width: 0; }
.hs-split__art { flex: none; width: 540px; }
.hs-split__art--insights img { width: 540px; height: 810px; object-fit: cover; }
.hs-checks { display: flex; flex-direction: column; gap: 35px; }
.hs-checks li { display: flex; gap: 16px; align-items: flex-start; }
.hs-checks .hs-card__title { margin-bottom: 5px; }
.hs-split--roles .section__title { margin-bottom: 40px; }
.hs-split__art--roles { position: relative; height: 614px; overflow: hidden; }
.hs-split__art--roles img { position: absolute; max-width: none; height: 117.56%; left: 4.75%; top: -8.59%; width: 89.11%; }
.hs-roles li { display: flex; gap: 20px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid var(--border); }
.hs-roles li:first-child { padding-top: 0; }
.hs-roles .hs-card__title { margin-bottom: 10px; }
.hs-roles .hs-card__text { line-height: 24px; }
.hs-roles + .hs-cta-row { margin-top: 40px; }

/* steps */
.hs-steps { display: flex; gap: 20px; align-items: stretch; }
.hs-step { position: relative; flex: 1 1 0; min-width: 0; }
.hs-step:hover { z-index: 1; }
.hs-step__num { position: absolute; top: 33px; right: 30px; font-family: var(--font-head); font-weight: 800; font-size: 41.6px; line-height: 1; color: rgba(23,101,216,.22); }
/* Decorative step number drawn from data-num, so the deliberately faint watermark isn't treated as body text by contrast checks */
.hs-step__num::before { content: attr(data-num); }
.hs-step:not(:last-child)::after { content: ""; position: absolute; top: 61px; right: -22px; width: 24px; border-top: 3px dotted var(--blue); }

/* workflows */
.hs-wf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 50px; }
.hs-wf__item { display: flex; gap: 20px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid var(--border); }
.hs-wf__item:nth-child(-n+2) { padding-top: 10px; }
.hs-wf .hs-card__title { margin-bottom: 15px; }
.hs-wf .hs-card__text { line-height: 25.5px; }

/* what is */
.whatis { background: var(--navy); color: #fff; padding: 80px 0; }
.whatis__top { display: flex; gap: 50px; align-items: flex-start; }
.whatis__title { flex: 1 1 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: 0; max-width: 557px; }
.whatis__title em { font-style: normal; color: var(--blue-light); }
.whatis__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 35px; }
.whatis__cards { display: flex; gap: 50px; margin-top: 40px; }
.whatis__card { flex: 1 1 0; padding: 35px; background: rgba(255,255,255,.06); border: 1px solid; border-top-width: 5px; border-radius: 26px; transition: transform .25s, background .25s; }
.whatis__card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.whatis__card--red { border-color: #ff2854; }
.whatis__card--teal { border-color: #14bfa5; }
.whatis__card h3 { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 25px; }
.whatis__card p { margin-top: 10px; font-size: 15px; line-height: 25px; }

/* one platform */
.hs-plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; align-items: start; }
.hs-plat__card { align-items: center; gap: 0; padding: 20px 20px 30px; text-align: center; }
.hs-plat__card:first-child { align-self: stretch; }
.hs-plat__stage { width: 100%; height: 280px; display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 20px 30px; background: var(--sky); border-radius: 16px; overflow: hidden; }
.hs-plat__stage--phones { padding: 20px; }
.hs-plat__title { margin: 30px 0 10px; font-family: var(--font-head); font-weight: 800; font-size: 18.4px; line-height: 23.92px; letter-spacing: -.368px; color: var(--navy); }
.hs-plat__card .hs-card__text { line-height: 25.5px; }
.mock { position: relative; flex: none; width: 483px; height: 405px; overflow: hidden; background: #f7f8fa; border: 1px solid var(--border); border-radius: 19.4px; box-shadow: 0 21px 53px -16px rgba(6,42,89,.22); }
.mock__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 35px; padding: 0 14px; background: var(--navy); border-bottom: 1px solid var(--border); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff2854; }
.mock__bar i:nth-child(2) { background: #ffc34d; }
.mock__bar i:nth-child(3) { background: #14bfa5; }
.mock__bar b { width: 255px; max-width: 55%; height: 7px; margin-left: 14px; border-radius: 5px; background: #cfe0f3; }
.mock__img { position: absolute; max-width: none; }
.mock__img--a { height: 76.07%; left: 0; top: 8.9%; width: 134.31%; }
.mock__img--b { height: 85.03%; left: 1.66%; top: 10.41%; width: 101.09%; }
.mock__img--c { height: 82.22%; left: 1.57%; top: 10.33%; width: 111.52%; }
.phone { position: relative; flex: none; width: 190px; height: 384px; overflow: hidden; background: #fff; border: 8px solid var(--navy); border-radius: 36px; filter: drop-shadow(0 24px 30px rgba(6,42,89,.22)); }
.phone--low { margin-top: 50px; }
.phone__img { position: absolute; max-width: none; }
.phone__img--a { height: 100.62%; left: 5.5%; top: 1.68%; width: 89.23%; }
.phone__img--b { height: 102.32%; left: 5.17%; top: 2.5%; width: 90.73%; }
.phone__notch { position: absolute; top: 0; left: 52px; width: 70px; height: 16px; background: var(--navy); border-radius: 0 0 12px 12px; }

/* technology partner */
.partner { padding: 0 70px; background: linear-gradient(180deg, var(--sky) 0, var(--sky) 526px, #fff 526px); }
.partner__card { border-radius: 56px; padding: 80px 0; background: linear-gradient(148deg, #7a4ca3 0%, #1155b9 85%); color: #fff; overflow: hidden; }
.partner__inner { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.partner__head { text-align: center; }
.partner__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -1px; }
.partner__title em { font-style: normal; color: #9cc7ff; }
.partner__head p { max-width: 1113px; margin: 15px auto 0; font-size: 18px; line-height: 35px; }
.partner__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 50px; margin-top: 40px; }
.partner__item { display: flex; gap: 20px; align-items: flex-start; padding: 30px 0; border-bottom: 1px solid #6573c8; }
.partner__item h3 { font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 25px; margin-bottom: 15px; }
.partner__item p { font-size: 15px; line-height: 25px; }
.partner__stats { display: flex; gap: 25px; margin-top: 40px; }
.partner__stat { flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 24px 30px rgba(6,42,89,.22); text-align: center; transition: transform .25s; }
.partner__stat:hover { transform: translateY(-4px); }
.partner__stat strong { font-family: var(--font-head); font-weight: 800; font-size: 54.4px; line-height: 1; letter-spacing: -2.176px; color: var(--blue); }
.partner__stat span { font-weight: 700; font-size: 16px; line-height: 25.6px; color: var(--navy); }

/* FAQ */
.faq { padding-bottom: 80px; }
.faq__layout { display: flex; gap: 50px; align-items: flex-start; }
.faq__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.faq__art { flex: none; width: 540px; }
.faq__art img { width: 540px; height: 810px; object-fit: cover; border-radius: 0 0 220px 220px; -webkit-mask-image: linear-gradient(180deg, #000 82.3%, rgba(0,0,0,.22) 90.5%, rgba(0,0,0,.11) 94.2%, transparent 100%); mask-image: linear-gradient(180deg, #000 82.3%, rgba(0,0,0,.22) 90.5%, rgba(0,0,0,.11) 94.2%, transparent 100%); }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: background .25s, box-shadow .25s, border-color .25s; }
.faq__item:hover { border-color: var(--blue); }
.faq__q { margin: 0; }
.faq__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: 16px; line-height: 23.52px; color: var(--navy); }
.faq__q button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 15px; }
.faq__chev { flex: none; width: 22px; height: 22px; }
.faq__chev--light { display: none; transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 26px 26px; font-size: 15px; line-height: 25px; color: #fff; }
.faq__item.is-open { background: var(--blue); border-color: var(--blue); box-shadow: 0 18px 18px rgba(23,101,216,.25); }
.faq__item.is-open .faq__q button { color: #fff; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__chev--light { display: block; }
.faq__item.is-open .faq__chev--dark { display: none; }
.faq__item:not(.is-open) .faq__a { visibility: hidden; }

/* PLAN. TRACK. PROVE. banner */
.ptp { position: relative; overflow: hidden; background: radial-gradient(circle 1230px at 71.4% 50%, #1765d8 0, #0f4899 24%, #0a3979 36%, #062a59 48%, #062a59 100%); }
.ptp__inner { position: relative; padding-top: 100px; padding-bottom: 100px; min-height: 420px; }
.ptp__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(46px, 7.2vw, 90px); line-height: .89; color: #fff; max-width: 612px; }
.ptp__title span { display: block; color: #ff2854; }
.ptp__sub { margin-top: 30px; padding: 0 4px; font-weight: 700; font-size: clamp(16px, 1.6vw, 25px); line-height: 30px; letter-spacing: 0; text-transform: uppercase; color: #fff; }
.ptp__art { position: absolute; left: calc(50% + 71px); bottom: 14px; width: 577px; height: 400px; overflow: hidden; pointer-events: none; }
.ptp__art img { width: 100%; height: auto; max-width: none; }

/* CTA banner */
.cta { padding: 10px 0 80px; }
.cta__card { position: relative; min-height: 542px; display: flex; align-items: center; justify-content: center; padding: 60px 24px 60px; 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; }

/* Responsive */
@media (max-width: 1100px) {
  .hs-feat { width: calc((100% - 25px) / 2); }
  .hs-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-steps { flex-wrap: wrap; }
  .hs-step { flex: 1 1 calc(50% - 10px); }
  .hs-step::after { display: none; }
  .hs-split__art { width: 400px; }
  .hs-split__art--insights img { width: 400px; height: 600px; }
  .hs-split__art--roles { height: 455px; }
  .faq__art { width: 400px; }
  .faq__art img { width: 400px; height: 600px; border-radius: 0 0 160px 160px; }
  .partner { padding: 0 24px; }
  .partner__card { border-radius: 40px; }
  .ptp__art { left: auto; right: 0; width: 460px; height: 320px; opacity: .9; }
}
@media (max-width: 900px) {
  .hs-split, .faq__layout, .whatis__top, .whatis__cards { flex-direction: column; }
  .hs-split--roles { flex-direction: column-reverse; }
  .hs-split__art, .faq__art { width: 100%; max-width: 420px; margin: 0 auto; }
  .hs-split__art--insights img, .faq__art img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .hs-split__art--roles { height: auto; aspect-ratio: 540 / 614; }
  .hs-wf, .partner__grid { grid-template-columns: 1fr; }
  .hs-wf__item:nth-child(2) { padding-top: 30px; }
  .whatis { padding: 56px 0; }
  .whatis__cards { gap: 25px; }
  .whatis__title { max-width: none; }
  .hs-plat { grid-template-columns: minmax(0, 1fr); }
  .hs-plat__card { min-width: 0; }
  .partner__card { padding: 56px 0; }
  .partner__stats { flex-direction: column; }
  .ptp__inner { padding-top: 56px; padding-bottom: 0; min-height: 0; text-align: center; }
  .ptp__title { margin: 0 auto; }
  .ptp__art { position: relative; left: auto; right: auto; bottom: auto; width: min(100%, 420px); height: auto; aspect-ratio: 577 / 400; margin: 20px auto 0; }
  .cta__title { letter-spacing: -2px; }
}
@media (max-width: 560px) {
  .hs-feat { width: 100%; }
  .hs-grid3 { grid-template-columns: 1fr; }
  .hs-step { flex-basis: 100%; }
  .hs-card { padding: 24px; }
  .hs-plat__stage { padding: 14px; }
  .mock { zoom: .62; }
  .phone { zoom: .8; }
  .faq__q button { padding: 18px 18px; font-size: 15px; }
  .faq__a p { padding: 0 18px 20px; }
  .partner { padding: 0 12px; }
  .partner__card { border-radius: 28px; }
  .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; }
  .hs-cta-row .btn { width: 100%; }
}

/* 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) {
  .hero { padding-top: 32px; }
  .hero__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) {
  .hero { padding-top: 32px; }
  .hero__title { font-size: 36px; line-height: 44px; letter-spacing: -1.5px; }
}
