/* =========================================================
   BusCMMS – Home page styles
   ========================================================= */

/* ---------- Utilities (pehle inline style the) ---------- */
.mw-40 { max-width: 40rem; }
.mw-44 { max-width: 44rem; }
.mw-46 { max-width: 46rem; }
.hp-h1 { font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.15; }
.btn.btn-circle.hiw-icon { width: 84px; height: 84px; font-size: 2rem; z-index: 1; }
.cp2-hr { border-top: 2px solid #fab758; opacity: 1; }
.hp-cta-bg { background: url('../img/photos/bus-final-cta.webp') top center / cover no-repeat; aspect-ratio: 1850 / 850; }
.hp-cta-pad { padding-top: 3%; }

/* ---------- Hero ---------- */
.hp-hero-visual { perspective: 1200px; }
.hp-hero-img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 28px 48px rgba(30, 34, 40, .16));
  transform: rotateY(-6deg) rotateX(2deg); transition: transform .35s ease-out;
  animation: hpHeroFloat 5s ease-in-out infinite;
}
@keyframes hpHeroFloat { 50% { translate: 0 -10px; } }
@keyframes hpSlideIn { from { transform: translateX(40px); } }
@media (max-width: 991px) { .hp-hero-img { transform: none; animation: none; } }

/* ---------- How It Works ---------- */
@media (min-width: 992px) {
  .hiw-step:nth-child(even) { margin-top: 64px; }
  .hiw-link { position: absolute; top: 40px; left: calc(50% + 40px); width: calc(100% - 80px); height: 68px; overflow: visible; }
  .hiw-step:nth-child(even) .hiw-link { top: -24px; }
}
@media (max-width: 991px) {
  #how-it-works [data-group="hiw"] { opacity: 1 !important; transform: none !important; animation: none !important; }
}
[data-cue="hiwDraw"] { clip-path: inset(-10px 100% -10px 0); }
@keyframes hiwDraw { to { clip-path: inset(-10px 0 -10px 0); } }

/* ---------- Features: tabs + carousel ---------- */
#features { overflow-x: clip; }
.hp-feature-journey { max-width: 1250px; margin: 0 auto; }
.hp-feature-tabs { display: flex; justify-content: space-between; gap: .75rem; max-width: 1250px; margin: 0 auto 2rem; }
.hp-feature-tabs.nav-tabs-basic { flex-wrap: nowrap; }
.hp-feature-tab { flex: 1 0 auto; font-size: .85rem; font-weight: 700; text-align: center; white-space: nowrap; cursor: pointer; color: #60697b; }
.hp-feature-tabs.nav-tabs-basic .hp-feature-tab.active,
.hp-feature-tabs.nav-tabs-basic .hp-feature-tab:hover,
.hp-feature-tabs.nav-tabs-basic .hp-feature-tab:focus { color: #343f52; border-bottom-color: #fab758; }
.hp-feature-tabs.nav-tabs-basic .hp-feature-tab[aria-pressed="true"] { color: #343f52 !important; border-bottom-color: #fab758 !important; }
.hp-feature-tab:focus-visible { outline: 2px solid #fab758; outline-offset: -2px; }
@media (max-width: 991px) {
  .hp-feature-tabs { justify-content: flex-start; gap: .5rem; margin-bottom: 1.5rem; padding: 0 .15rem .35rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .hp-feature-tabs.nav-tabs-basic { flex-direction: row; }
  .hp-feature-tab { flex: 0 0 auto; padding: .6rem .35rem; scroll-snap-align: center; }
}
.hp-feature-step { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hp-feature-number { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; letter-spacing: 0; }
.hp-feature-points { display: grid; gap: .55rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.hp-feature-points li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; line-height: 1.45; }
.hp-feature-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 700; }
.hp-feature-link i { transition: transform .2s ease; }
.hp-feature-link:hover i { transform: translateX(4px); }

.ft-card { position: relative; display: grid; border: 1px solid #eef0f3; border-radius: 1.5rem; background: #fff; box-shadow: 0 1.2rem 3rem rgba(52,63,82,.1); overflow: hidden; transition: opacity .8s ease, transform .8s ease; }
.ft-card.ft-pre { opacity: 0; transform: translateY(48px) scale(.97); }
.ft-slide { grid-area: 1/1; display: grid; grid-template-columns: 5fr 7fr; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .4s ease, transform .45s ease, visibility 0s .45s; }
.ft-slide.is-prev { transform: translateX(-28px); }
.ft-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .5s ease .1s; }
.ft-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 3.5vw, 3.25rem); }
.ft-copy .hp-feature-step { margin-bottom: 1rem; font-size: .9rem; letter-spacing: 0; text-transform: none; }
.ft-copy .hp-feature-number { width: 36px; height: 36px; font-size: .8rem; }
.ft-copy h3 { margin-bottom: .8rem; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.2; }
.ft-copy p { margin-bottom: 1.1rem; line-height: 1.6; }
.ft-visual { display: flex; align-items: center; justify-content: center; padding: clamp(1.25rem, 2.5vw, 2.25rem); background: linear-gradient(135deg, #fff8ee, #fef3e2); }
.ft-shot { width: 100%; margin: 0; border-radius: .9rem; background: #fff; box-shadow: 0 1.2rem 2.4rem rgba(52,63,82,.16); overflow: hidden; }
.ft-shot::before { content: ""; display: block; height: 24px; background: radial-gradient(circle at 14px 12px, #f5b4ae 4px, transparent 5px), radial-gradient(circle at 30px 12px, #f6dd9a 4px, transparent 5px), radial-gradient(circle at 46px 12px, #b7e1b0 4px, transparent 5px), #f3f4f6; }
.ft-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.ft-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.ft-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(52,63,82,.16); border-radius: 50%; background: #fff; color: #343f52; cursor: pointer; transition: background-color .2s; }
.ft-arrow:hover { background: #fab758; color: #493416; }
.ft-arrow:focus-visible, .ft-dots button:focus-visible { outline: 2px solid #fab758; outline-offset: 3px; }
.ft-dots { display: flex; gap: .5rem; }
.ft-dots button { position: relative; width: clamp(26px, 6vw, 52px); height: 4px; padding: 0; border: 0; border-radius: 99px; background: #dfe3e7; overflow: hidden; cursor: pointer; }
.ft-dots i { position: absolute; inset: 0; background: #fab758; transform: scaleX(0); transform-origin: left; }
.ft-dots button[aria-pressed="true"] i { transform: scaleX(1); }
.ft-auto .ft-dots button[aria-pressed="true"] i { transform: scaleX(0); animation: ftFill 5s linear forwards; }
.ft-paused .ft-dots button[aria-pressed="true"] i { animation-play-state: paused; }
@keyframes ftFill { to { transform: scaleX(1); } }
.ft-slide.is-on .ft-copy > * { animation: ftUp .6s ease both; }
.ft-slide.is-on .ft-copy > :nth-child(1) { animation-delay: .15s; }
.ft-slide.is-on .ft-copy > :nth-child(2) { animation-delay: .25s; }
.ft-slide.is-on .ft-copy > :nth-child(3) { animation-delay: .35s; }
.ft-slide.is-on .ft-copy > :nth-child(4) { animation-delay: .45s; }
.ft-slide.is-on .ft-copy > :nth-child(5) { animation-delay: .55s; }
.ft-slide.is-on .ft-shot { animation: ftZoom .8s ease both .1s; }
@keyframes ftUp { from { opacity: 0; transform: translateY(22px); } }
@keyframes ftZoom { from { opacity: 0; transform: translateX(40px) scale(.94); } }
@media (max-width: 991px) { .ft-slide { grid-template-columns: 1fr; } .ft-visual { order: -1; } .ft-copy { padding: 1.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .ft-slide, .ft-card { transition: none; }
  .ft-card.ft-pre { opacity: 1; transform: none; }
  .ft-slide.is-on .ft-copy > *, .ft-slide.is-on .ft-shot { animation: none; }
}

/* ---------- Benefits: pinned road scene ---------- */
.hp-benefits-section { overflow-x: clip; }
.hp-benefit-journey { background: #fff; padding-top: .5rem; }
.hp-benefit-track { --road-h: 20px; --wm: min(15vw, 25vh); position: relative; height: calc(var(--wm) + var(--road-h)); overflow: hidden; margin-top: .5rem; }
.hp-benefit-wordmark { position: absolute; right: 0; bottom: calc(var(--road-h) - .06em); left: 0; text-align: center; white-space: nowrap; font-size: var(--wm); font-weight: 800; line-height: .8; color: #f0f1f4; pointer-events: none; user-select: none; will-change: transform; }
.hp-benefit-road { position: absolute; right: 0; bottom: 0; left: 0; height: var(--road-h); overflow: hidden; background: #4f555d; box-shadow: inset 0 3px 4px rgba(0,0,0,.18); }
.hp-benefit-lane { position: absolute; top: 50%; left: -64px; right: -64px; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 32px, transparent 32px 64px); will-change: transform; }
.hp-benefit-stops { position: absolute; right: 0; bottom: var(--road-h); left: 0; }
.hp-benefit-stop { position: relative; display: block; width: 2px; height: 40px; margin: 0 auto; background: #cfd4da; }
.hp-benefit-stop::before { content: ""; position: absolute; top: -14px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; border: 3px solid #cfd4da; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.hp-benefit-stop.is-done, .hp-benefit-stop.is-active { background: #fab758; }
.hp-benefit-stop.is-done::before { border-color: #fab758; }
.hp-benefit-stop.is-active::before { border-color: #fab758; background: #fab758; box-shadow: 0 0 0 6px rgba(250,183,88,.25); }
.hp-benefit-bus { position: absolute; z-index: 2; left: 0; bottom: 6px; width: clamp(150px, 16vw, 250px); height: auto; transform: translate3d(-100%, 0, 0); will-change: transform; filter: drop-shadow(0 5px 3px rgba(52,63,82,.2)); }
.hp-benefit-band { background: #fff8ee; padding: 2.25rem 0 2.5rem; }
.hp-benefit-card { height: 100%; padding: 1.3rem; border: 1px solid rgba(250,183,88,.3); border-radius: .9rem; background: #fff; box-shadow: 0 .25rem .75rem rgba(180,130,40,.08); cursor: pointer; opacity: .6; transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.hp-benefit-card.is-done { opacity: .85; }
.hp-benefit-card.is-active { opacity: 1; transform: translateY(-6px); border-color: #fab758; box-shadow: 0 1rem 2.2rem rgba(180,130,40,.18); }
.hp-benefit-card:focus-visible { outline: 2px solid #fab758; outline-offset: 3px; }
.hp-benefit-icon { display: grid; width: 44px; height: 44px; margin-bottom: .8rem; place-items: center; border-radius: 50%; background: #fef3e2; color: #fab758; font-size: 1.3rem; transition: background-color .4s, color .4s; }
.hp-benefit-card.is-active .hp-benefit-icon { background: #fab758; color: #fff; }
.hp-benefit-text h3 { margin: 0 0 .4rem; font-size: clamp(1rem, .7vw + .6rem, 1.2rem); line-height: 1.25; }
.hp-benefit-text p { margin: 0; font-size: .9rem; line-height: 1.5; }
.hp-static .hp-benefit-track { display: none; }
.hp-static .hp-benefit-card { opacity: 1; cursor: default; }
@media (max-width: 991px) {          /* mobile + tablet: plain cards, no road scene */
  .hp-benefit-track { display: none; }
  .hp-benefit-band { padding: 1.5rem 0 2rem; }
  .hp-benefit-card { opacity: 1; cursor: default; }
  .hp-benefit-icon { background: #fab758; color: #fff; }
  .hp-benefit-card.is-active { transform: none; border-color: rgba(250,183,88,.3); box-shadow: 0 .25rem .75rem rgba(180,130,40,.08); }
}
@media (min-width: 992px) {
  #hpBenefitScroll:not(.hp-static) .hp-benefit-journey { display: flex; flex-direction: column; height: calc(100vh - var(--hh, 100px) - 20px); height: calc(100svh - var(--hh, 100px) - 20px); min-height: 430px; }
  #hpBenefitScroll:not(.hp-static) .hp-benefit-track { flex: 0 0 auto; }
  #hpBenefitScroll:not(.hp-static) .hp-benefit-band { flex: 1 1 auto; display: flex; align-items: center; padding: .75rem 0; }
  #hpBenefitScroll:not(.hp-static) .hp-benefit-band > .container { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hp-benefit-card, .hp-benefit-icon, .hp-benefit-stop::before { transition: none; } }

/* ---------- Who it's for: mosaic ---------- */
.mz-wrap { container-type: inline-size; position: relative; }
.mz { display: grid; grid-auto-flow: dense; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.mz-lines, .mz-big, .mz-tan { display: none; }
.mz-i { position: relative; margin: 0; grid-column: 1/-1; border-radius: .4rem; overflow: hidden; background: #e9edf2; box-shadow: 0 .4rem 1.2rem rgba(52,63,82,.14); }
.mz-i.r23 { grid-column: span 1; aspect-ratio: 2/3; }
.mz-i.r45 { grid-column: span 1; aspect-ratio: 4/5; }
.mz-i.r32 { aspect-ratio: 3/2; }
.mz-i.r54 { aspect-ratio: 5/4; }
.mz-i.r21 { aspect-ratio: 2/1; }
.mz-i.r169 { aspect-ratio: 16/9; }
.mz-i img { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; transition: transform .7s ease; }
.mz-i:hover img { transform: scale(1.05); }
.mz-i figcaption { position: absolute; top: 0; right: 0; left: 0; padding: .7rem .8rem 1.6rem; background: linear-gradient(rgba(20,24,30,.75), transparent); }
.mz-i h3 { margin: 0; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.mz-i h3::before { content: "\25B7"; margin-right: .35rem; font-size: .7em; }
.mz-js .mz-i { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i) * 80ms); }
.mz-js.is-in .mz-i { opacity: 1; transform: none; }

/* tile positions (desktop) + stagger index */
.mz-t1 { --x: 23.54; --y: 26.17; --w: 11.09; --h: 5.70; }
.mz-t2 { --x: 79.99; --y: 10.53; --w: 6.98;  --h: 20.03; }
.mz-t3 { --x: 87.98; --y: 53.07; --w: 10.30; --h: 15.94; }
.mz-p0  { --i: 0;  --x: 50.47; --y: 52.92; --w: 21.81; --h: 34.65; }
.mz-p1  { --i: 1;  --x: 35.78; --y: 52.92; --w: 13.75; --h: 43.57; }
.mz-p2  { --i: 2;  --x: 55.22; --y: 11.99; --w: 12.53; --h: 38.74; }
.mz-p3  { --i: 3;  --x: 35.78; --y: 26.46; --w: 18.07; --h: 24.27; }
.mz-p4  { --i: 4;  --x: 14.47; --y: 33.48; --w: 20.16; --h: 24.85; }
.mz-p5  { --i: 5;  --x: 20.95; --y: 59.94; --w: 13.68; --h: 18.57; }
.mz-p6  { --i: 6;  --x: 68.97; --y: 4.39;  --w: 9.94;  --h: 26.17; }
.mz-p7  { --i: 7;  --x: 87.98; --y: 24.27; --w: 10.30; --h: 26.46; }
.mz-p8  { --i: 8;  --x: 68.97; --y: 32.46; --w: 18.07; --h: 18.27; }
.mz-p9  { --i: 9;  --x: 73.29; --y: 53.07; --w: 13.75; --h: 15.94; }
.mz-p10 { --i: 10; --x: 73.29; --y: 71.35; --w: 13.75; --h: 15.94; }

@media (min-width: 992px) {
  .mz-stage { position: relative; aspect-ratio: 1389/684; }
  .mz { display: block; position: absolute; inset: 0; }
  .mz-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .mz-big { display: block; position: absolute; z-index: 1; left: 4.7%; top: 63%; margin: 0; color: #fab758; font-size: 4.2cqw; font-weight: 800; line-height: .98; }
  .mz-tan { display: block; position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); background: #fab758; border-radius: .15rem; }
  .mz .mz-i { position: absolute; z-index: 2; grid-column: auto; aspect-ratio: auto; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: .2rem; }
  .mz-i figcaption { padding: .55rem .6rem 1.2rem; }
  .mz-i h3 { font-size: clamp(.58rem, .95cqw, .8rem); }
}
@media (prefers-reduced-motion: reduce) { .mz-js .mz-i { opacity: 1; transform: none; transition: none; } }

/* ---------- Integrations ---------- */
.hp-int-stage { position: relative; display: grid; grid-template-columns: 28% 1fr 28%; height: 500px; }
.hp-int-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.hp-flow { animation: hpDash 1.4s linear infinite; }
@keyframes hpDash { to { stroke-dashoffset: -24; } }
.hp-int-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-around; }
.hp-int-node { display: flex; align-items: center; gap: .7rem; height: 76px; padding: 0 .9rem; border: 1px solid #eef0f3; border-radius: .9rem; background: #fff; box-shadow: 0 .4rem 1.2rem rgba(52,63,82,.08); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.hp-int-node:hover { transform: translateY(-3px); border-color: #fab758; box-shadow: 0 .9rem 1.8rem rgba(180,130,40,.16); }
.hp-int-ico { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fef3e2; color: #fab758; font-size: 1.2rem; }
.hp-int-txt { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; line-height: 1.25; }
.hp-int-txt strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; color: #343f52; }
.hp-int-txt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .72rem; color: #60697b; }
.hp-int-tag { flex: 0 0 auto; padding: .15rem .5rem; border-radius: 99px; background: #fef3e2; color: #b27a1f; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hp-int-out .hp-int-node { border-left: 3px solid #fab758; }
.hp-int-hub { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hp-int-core { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 210px; height: 210px; padding: 0 1.25rem; border-radius: 50%; text-align: center; background: #fff; border: 3px solid #fab758; box-shadow: 0 0 0 10px rgba(250,183,88,.16), 0 1.2rem 2.6rem rgba(250,183,88,.4); }
.hp-int-logo { display: block; width: 72px; height: 72px; margin-bottom: .5rem; border-radius: 16px; object-fit: contain; }
.hp-int-logo-fb { display: none; margin-bottom: .35rem; font-size: 2.8rem; line-height: 1; color: #fab758; }
.hp-int-core.no-logo .hp-int-logo { display: none; }
.hp-int-core.no-logo .hp-int-logo-fb { display: block; }
.hp-int-core strong { font-size: 1.1rem; line-height: 1.2; color: #343f52; }
.hp-int-core small { max-width: 130px; font-size: .68rem; line-height: 1.25; color: #60697b; }
.hp-int-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(250,183,88,.6); animation: hpPulse 2.8s ease-out infinite; }
.hp-int-ring.r2 { animation-delay: 1.4s; }
@keyframes hpPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 991px) {
  .hp-int-stage { display: flex; flex-direction: column; height: auto; gap: 1.5rem; max-width: 520px; margin: 0 auto; }
  .hp-int-lines { display: none; }
  .hp-int-col { gap: .75rem; }
  .hp-int-hub { padding: 1.25rem 0; }
  .hp-int-in::before, .hp-int-out::before { display: block; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #60697b; }
  .hp-int-in::before { content: "Connect your telematics"; }
  .hp-int-out::before { content: "Powers your maintenance"; }
}
@media (prefers-reduced-motion: reduce) { .hp-flow, .hp-int-ring { animation: none; } .hp-int-node { transition: none; } }

/* ---------- Shared soft background (hero) ---------- */
.hp-bg { position: relative; overflow: hidden; background: #fff; }
.hp-bg > .container { position: relative; }
.hp-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 12%, rgba(250,183,88,.15), transparent 40%), radial-gradient(circle at 5% 95%, rgba(250,183,88,.10), transparent 38%), radial-gradient(rgba(52,63,82,.06) 1px, transparent 1.4px) 0 0/24px 24px; }

/* ---------- Compliance ---------- */
#compliance { overflow-x: clip; }
.cp2-row { display: flex; align-items: center; gap: .8rem; padding: .55rem .2rem; border-bottom: 1px solid #f1f2f5; }
.cp2-row:last-child { border-bottom: 0; }
.cp2-ico { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: .6rem; background: #fef3e2; color: #e8962a; font-size: 1.1rem; }
.cp2-name { flex: 1 1 auto; min-width: 0; line-height: 1.25; font-size: .92rem; font-weight: 600; color: #343f52; }
.cp2-name small { display: block; font-size: .72rem; font-weight: 500; color: #8a93a3; }
.cp2-pill { flex: 0 0 auto; min-width: 100px; padding: .28rem .8rem; border: 1px solid; border-radius: 99px; background: #fff; font-size: .78rem; font-weight: 700; text-align: center; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.cp2-pill:focus-visible { outline: 2px solid #fab758; outline-offset: 2px; }
.cp2-pill.ok, .cp2-badge.ok { background: #e6f6ee; border-color: #9fdcc0; color: #1f8a5b; }
.cp2-pill.due, .cp2-badge.due { background: #fff3d6; border-color: #f5cf84; color: #a86a00; }
.cp2-pill.over, .cp2-badge.over { background: #fdeaea; border-color: #f3b2b2; color: #c0392b; }
.cp2-paper { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.5rem; border: 1px solid #eef0f3; border-top: 4px solid #fab758; border-radius: .9rem; background: #fff; box-shadow: 0 1.4rem 3rem rgba(52,63,82,.12); }
.cp2-rrow { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed #eceef2; font-size: .9rem; color: #343f52; }
.cp2-dot { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; font-size: .8rem; transition: background-color .3s; }
.cp2-rrow.s-ok .cp2-dot { background: #2fb37b; }
.cp2-rrow.s-due .cp2-dot { background: #f4a23a; }
.cp2-rrow.s-over .cp2-dot { background: #e0524a; }
.cp2-rl { flex: 1 1 auto; min-width: 0; }
.cp2-tag { padding: .1rem .45rem; border-radius: .4rem; background: #fef3e2; color: #b27a1f; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.cp2-badge { min-width: 86px; padding: .18rem .6rem; border: 1px solid; border-radius: 99px; font-size: .72rem; font-weight: 700; text-align: center; }
.cp2-bar { height: 8px; border-radius: 99px; background: #f1f3f6; overflow: hidden; }
.cp2-bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: #fab758; transition: width .6s ease, background-color .3s; }
.cp2-bar.is-done > span { background: #2fb37b; }
.cp2-stamp { position: absolute; top: 1rem; right: 1.25rem; padding: .3rem .75rem; border: 3px solid #2fb37b; border-radius: .6rem; background: rgba(255,255,255,.9); color: #2fb37b; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: rotate(-8deg) scale(1.6); pointer-events: none; transition: opacity .35s, transform .35s; }
.cp2-done .cp2-stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
@media (max-width: 575px) { .cp2-tag { display: none; } .cp2-pill { min-width: 88px; } }
@media (prefers-reduced-motion: reduce) { .cp2-pill, .cp2-bar > span, .cp2-dot, .cp2-stamp { transition: none; } }

/* ---------- Testimonials ---------- */
#testimonials { overflow-x: clip; }
.tm-stage { position: relative; height: 350px; margin-top: 2.5rem; }
.tm-card { position: absolute; top: 44px; left: 50%; width: min(360px, 90%); padding: 2.6rem 1.4rem 1.2rem; text-align: center; background: #fff; border: 1px solid #eef0f3; border-radius: 2.2rem 1rem 2.2rem 1rem; box-shadow: 0 .8rem 2rem rgba(52,63,82,.08); opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.7); transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .45s ease, box-shadow .45s ease; }
.tm-card[data-pos="0"] { opacity: 1; pointer-events: auto; z-index: 3; transform: translateX(-50%) scale(1); border-top: 5px solid #fab758; border-left: 5px solid #fab758; box-shadow: 0 1.6rem 3.2rem rgba(180,130,40,.2); }
.tm-card[data-pos="-1"], .tm-card[data-pos="1"] { cursor: pointer; z-index: 1; }
@media (min-width: 1200px) {
  .tm-card[data-pos="-1"] { opacity: .55; pointer-events: auto; transform: translateX(calc(-50% - 96%)) scale(.85); }
  .tm-card[data-pos="1"]  { opacity: .55; pointer-events: auto; transform: translateX(calc(-50% + 96%)) scale(.85); }
  .tm-card[data-pos="-1"]:hover, .tm-card[data-pos="1"]:hover { opacity: .85; }
}
.tm-av { position: absolute; top: -32px; left: 50%; display: grid; width: 64px; height: 64px; margin-left: -32px; place-items: center; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #fab758, #f08a24); box-shadow: 0 .5rem 1rem rgba(180,130,40,.3); color: #fff; font-size: 1.2rem; font-weight: 800; }
.tm-q { display: block; margin: .2rem 0 .15rem; color: #fab758; font-size: 1.4rem; line-height: 1; }
.tm-card p { margin-bottom: .6rem; font-size: .88rem !important; line-height: 1.5; color: #60697b; }
.tm-role { display: block; margin-top: .1rem; font-size: .74rem; color: #8a93a3; }
.tm-stars { margin: .3rem 0 .6rem; color: #fab758; font-size: .85rem; letter-spacing: .1rem; }
.tm-controls { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .25rem; }
.tm-dots { display: flex; gap: .55rem; }
.tm-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fab758; border-radius: 50%; background: #fff; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.tm-dots button[aria-pressed="true"] { background: #fab758; box-shadow: 0 0 0 4px rgba(250,183,88,.25); }
.tm-dots button:focus-visible { outline: 2px solid #343f52; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tm-card, .tm-dots button { transition: none; } }

/* ---------- AI sections (shared) ---------- */
.ai-sec { overflow-x: clip; }
.ai-cta { margin-top: 1.75rem; text-align: center; }

/* ---------- AI Auditor ---------- */
.aa-wrap { max-width: 1040px; margin: 0 auto; }
.aa-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 2rem; }
.aa-steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.aa-steps li { position: relative; display: flex; align-items: center; gap: .75rem; padding-bottom: 2.1rem; font-size: .9rem; font-weight: 700; color: #a3a8b3; transition: color .35s; }
.aa-steps li:last-child { padding-bottom: 0; }
.aa-steps li span { position: relative; z-index: 1; display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f1f3f6; font-size: .76rem; transition: background-color .35s, color .35s, box-shadow .35s; }
.aa-steps li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: #eef0f3; }
.aa-steps li:last-child::after { display: none; }
.aa-steps li.is-done, .aa-steps li.is-on { color: #343f52; }
.aa-steps li.is-done span { background: #fcd9a0; color: #343f52; }
.aa-steps li.is-on span { background: #fab758; color: #fff; box-shadow: 0 0 0 5px rgba(250,183,88,.22); }
@media (max-width: 991px) {
  .aa-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .aa-steps { flex-direction: row; justify-content: space-between; }
  .aa-steps li { flex: 1; padding: 0; font-size: 0; }
  .aa-steps li:last-child { flex: 0 0 auto; }
  .aa-steps li span { font-size: .76rem; }
  .aa-steps li::after { position: static; flex: 1; width: auto; height: 2px; margin-left: .5rem; }
}
.aa-card { position: relative; border: 1px solid #eef0f3; border-radius: 1.25rem; background: #fff; box-shadow: 0 1.4rem 3rem rgba(52,63,82,.12); overflow: hidden; }
.aa-head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; background: #fafbfc; font-size: .85rem; font-weight: 700; color: #343f52; }
.aa-logo { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #fab758; color: #fff; font-size: 1rem; }
.aa-head > span:nth-child(2) { white-space: nowrap; }
.aa-file { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .78rem; font-weight: 600; color: #8a93a3; }
.aa-status { flex: 0 0 auto; padding: .22rem .75rem; border-radius: 99px; background: #fef3e2; color: #b27a1f; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.aa-status.is-done { background: #e6f6ee; color: #1f8a5b; }
.aa-bar { height: 3px; background: #f1f3f6; }
.aa-bar > span { display: block; width: 100%; height: 100%; background: #fab758; }
.aa-body { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.75rem; min-height: 270px; padding: 1.5rem 1.75rem 1rem; }
.aa-paper { position: relative; padding: 1rem .95rem; border: 1px solid #eceef2; border-radius: .5rem; background: #fffdf7; box-shadow: 0 .6rem 1.2rem rgba(52,63,82,.1); transform: rotate(-2deg); overflow: hidden; }
.aa-paper b { display: block; margin-bottom: .55rem; padding-bottom: .4rem; border-bottom: 2px solid #343f52; font-size: .6rem; letter-spacing: .06em; color: #343f52; }
.aa-pr { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; padding: .34rem .25rem; border-bottom: 1px dotted #d9dce2; border-radius: .2rem; font-size: .68rem; color: #8a93a3; }
.aa-pr em { font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; font-size: .8rem; font-style: normal; color: #2f5fa8; white-space: nowrap; }
.aa-pr em.bad { color: #c0392b; }
.aa-sig svg { width: 76px; height: 20px; fill: none; stroke: #2f5fa8; stroke-width: 1.6; stroke-linecap: round; }
.aa-beam { position: absolute; inset: 0; z-index: 2; border-bottom: 2px solid #fab758; background: linear-gradient(rgba(250,183,88,0) 70%, rgba(250,183,88,.28)); box-shadow: 0 6px 14px rgba(250,183,88,.45); opacity: 0; pointer-events: none; }
.aa-stamp { position: absolute; right: .6rem; bottom: 2rem; z-index: 3; padding: .25rem .7rem; border: 3px solid #2fb37b; border-radius: .5rem; background: rgba(255,255,255,.9); color: #2fb37b; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-10deg); }
.aa-fields { display: flex; flex-direction: column; gap: .55rem; }
.aa-card h4 { margin: 0 0 .2rem; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8a93a3; }
.aa-f { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid #f1f2f5; border-left: 3px solid #2fb37b; border-radius: .45rem; background: #fff; font-size: .82rem; }
.aa-f.warn { border-left-color: #f4a23a; }
.aa-f .k { flex: 0 0 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; color: #8a93a3; }
.aa-f .v { margin-left: auto; font-weight: 700; text-align: right; color: #343f52; }
.aa-find { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .75rem 1.75rem 1.5rem; }
.aa-chip { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: .6rem; font-size: .8rem; font-weight: 600; line-height: 1.35; }
.aa-chip i { flex: 0 0 auto; font-size: 1.05rem; }
.aa-chip.ok { background: #e6f6ee; color: #1f8a5b; }
.aa-chip.warn { background: #fff3d6; color: #a86a00; }
@media (max-width: 767px) {
  .aa-body { grid-template-columns: 1fr; min-height: 0; padding: 1.25rem 1.25rem .75rem; }
  .aa-paper { transform: none; }
  .aa-find { grid-template-columns: 1fr; padding: .5rem 1.25rem 1.25rem; }
}

/* ---------- AI Voice Agent ---------- */
.av-wrap { max-width: 1000px; margin: 0 auto; }
.av-stage { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); grid-template-areas: "u orb r" "rep rep rep"; align-items: center; gap: 1.25rem 1.5rem; padding: 2rem 1.75rem 1.5rem; border: 1px solid #eef0f3; border-radius: 1.5rem; background: radial-gradient(circle at 50% 30%, #fff8ec, #fff 62%); box-shadow: 0 1.4rem 3rem rgba(52,63,82,.1); overflow: hidden; }
.av-user { grid-area: u; }
.av-mid { grid-area: orb; text-align: center; }
.av-res { grid-area: r; display: grid; }
.av-reply { grid-area: rep; justify-self: center; display: flex; align-items: flex-start; gap: .7rem; width: 100%; max-width: 560px; min-height: 4.6rem; padding: .9rem 1.1rem; border-radius: 1rem; background: #fef3e2; color: #343f52; font-size: .92rem; line-height: 1.5; }
.av-reply i { flex: 0 0 auto; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fab758; color: #fff; font-size: 1rem; }
.av-reply p, .av-line p { margin: 0; }
.av-lbl { display: flex; align-items: center; gap: .3rem; margin-bottom: .25rem; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.av-line { padding: .8rem 1rem; border-radius: 1rem 1rem .3rem 1rem; background: #fff; border: 1px solid #eceef2; box-shadow: 0 .5rem 1.1rem rgba(52,63,82,.08); font-size: .95rem; font-weight: 600; line-height: 1.45; color: #343f52; min-height: 5.6rem; }
.av-line p::before { content: "\201C"; }
.av-line p::after { content: "\201D"; }
.av-orbwrap { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.av-orb { position: absolute; left: 50%; top: 50%; display: grid; width: 92px; height: 92px; margin: -46px 0 0 -46px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #fab758, #f08a24); color: #fff; font-size: 2.1rem; box-shadow: 0 .8rem 1.8rem rgba(240,138,36,.38); }
.av-orb::before, .av-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(250,183,88,.55); opacity: 0; }
.av-stage.is-talk .av-orb::before { animation: hpPulse 1.8s ease-out infinite; }
.av-stage.is-talk .av-orb::after { animation: hpPulse 1.8s ease-out .9s infinite; }
.av-ring span { position: absolute; left: 50%; top: 50%; width: 4px; height: 22px; margin: -11px 0 0 -2px; border-radius: 3px; background: #fab758; transform: rotate(var(--a)) translateY(-76px) scaleY(.3); transition: background-color .3s; }
.av-stage.is-user .av-ring span { background: #b9bfca; }
.av-stage.is-talk .av-ring span { animation: avRing .7s ease-in-out infinite alternate; }
.av-ring span:nth-child(3n) { animation-delay: -.25s !important; }
.av-ring span:nth-child(3n+1) { animation-delay: -.5s !important; }
.av-ring span:nth-child(5n) { animation-duration: .55s !important; }
@keyframes avRing { from { transform: rotate(var(--a)) translateY(-76px) scaleY(.3); } to { transform: rotate(var(--a)) translateY(-76px) scaleY(1.5); } }
.av-state { display: inline-block; margin-top: .1rem; padding: .22rem .8rem; border-radius: 99px; background: #fff; border: 1px solid #eceef2; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #343f52; }
.av-rc { grid-area: 1 / 1; align-self: center; padding: 1rem 1.1rem; border: 1px solid #eceef2; border-left: 4px solid #fab758; border-radius: .9rem; background: #fff; box-shadow: 0 .6rem 1.3rem rgba(52,63,82,.1); }
.av-rc:not(:first-child) { visibility: hidden; }
.av-rc h5 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .9rem; font-weight: 800; color: #343f52; }
.av-rc h5 i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fef3e2; color: #f08a24; font-size: 1rem; }
.av-rc h5 em { margin-left: auto; padding: .1rem .55rem; border-radius: 99px; background: #e6f6ee; color: #1f8a5b; font-size: .62rem; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.av-r { display: flex; justify-content: space-between; gap: .75rem; padding: .38rem 0; border-top: 1px dotted #e2e5ea; font-size: .8rem; color: #8a93a3; }
.av-r b { font-weight: 700; color: #343f52; text-align: right; }
.av-r b.w { color: #c77d0a; }
.av-caps { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.av-caps li { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .85rem; border-radius: 99px; background: #f4f5f7; color: #6b7280; font-size: .78rem; font-weight: 700; transition: background-color .35s, color .35s, transform .35s; }
.av-caps li.is-on { background: #fab758; color: #343f52; transform: translateY(-2px); }
@media (min-width: 768px) and (max-width: 991px) {   /* tablet: orb on top, question + result side by side */
  .av-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "orb orb" "u r" "rep rep"; padding: 1.75rem 1.5rem 1.5rem; }
}
@media (max-width: 767px) {
  .av-stage { grid-template-columns: 1fr; grid-template-areas: "u" "orb" "rep" "r"; padding: 1.25rem 1rem; }
  .av-line, .av-reply { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .av-stage.is-talk .av-ring span, .av-stage.is-talk .av-orb::before, .av-stage.is-talk .av-orb::after { animation: none; }
  .aa-steps li, .aa-steps li span, .av-caps li { transition: none; }
}