/* ==========================================================================
   Thinkmate — suite sections
   Integrations marquee · auto-playing feature tabs · invoicing page.
   Loaded only on the pages that use these sections, after style.css.
   ========================================================================== */

/* ---------- Shared: fixed-width app mock scaled to its container ---------- */
.sx-scale { position: relative; width: 100%; overflow: hidden; }
.sx-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.no-js .sx-stage { position: relative; }

/* Blur-in heading, used on the new sections */
.blur-in { opacity: 0; filter: blur(10px); transform: translateY(12px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), filter .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.blur-in.in { opacity: 1; filter: none; transform: none; }
.no-js .blur-in { opacity: 1; filter: none; transform: none; }

/* ---------- 1. Integrations marquee ---------- */
.si-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.si-copy h2 { max-width: 560px; }
.si-copy > p { font-size: 1.125rem; color: var(--muted); max-width: 500px; }
.si-stats { display: flex; gap: 32px; margin: 28px 0 32px; flex-wrap: wrap; }
.si-stats div { display: flex; flex-direction: column; }
.si-stats b { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.si-stats span { font-size: .875rem; color: var(--muted); }
.si-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }

.si-marquee { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: 540px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.si-col { position: relative; overflow: hidden; }
.si-track { display: flex; flex-direction: column; gap: 16px; animation: siUp var(--dur, 40s) linear infinite; will-change: transform; }
.si-col.down .si-track { animation-name: siDown; }
.si-col:nth-child(2) { margin-top: 36px; }
.si-col:nth-child(4) { margin-top: 64px; }
.si-marquee:hover .si-track { animation-play-state: paused; }
.si-marquee.paused .si-track { animation-play-state: paused; }
/* Each track holds its tiles twice; moving by half its height loops seamlessly. */
@keyframes siUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes siDown { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

.si-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 18px 10px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line-2); text-align: center; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.si-tile:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); }
.si-tile svg.brand { width: 34px; height: 34px; }
.si-tile svg.line { width: 30px; height: 30px; }
.si-tile span { font-size: .8125rem; font-weight: 500; color: var(--ink-2); line-height: 1.25; max-width: 100%; overflow-wrap: break-word; }
.si-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 34px; padding: 0 9px; border-radius: 9px; font: 700 .78rem/1 var(--font-display); letter-spacing: -.01em; color: #fff; white-space: nowrap; }

@media (max-width: 1024px) {
  .si-grid { grid-template-columns: 1fr; gap: 40px; }
  .si-marquee { height: 460px; }
}
@media (max-width: 560px) {
  .si-marquee { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 420px; }
  .si-marquee .si-col:nth-child(4) { display: none; }
  .si-track { gap: 12px; }
  .si-tile { min-height: 100px; border-radius: 14px; padding: 14px 6px; }
  .si-tile span { font-size: .75rem; }
  @keyframes siUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
  @keyframes siDown { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }
}

/* ---------- 2. Auto-playing feature tabs (side list) ---------- */
.ft-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.ft-head p { color: var(--muted); font-size: 1.125rem; max-width: 640px; margin: 14px auto 0; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ft-tabs { display: flex; flex-direction: column; gap: 14px; }
.ft-tab { position: relative; overflow: hidden; display: block; width: 100%; text-align: left; border: 0; cursor: pointer; padding: 22px 26px; border-radius: 18px; background: var(--bg-soft); font: inherit; color: inherit; transition: background .2s ease; }
.ft-tab:hover { background: var(--blue-50); }
.ft-fill { position: absolute; inset: 0; background: var(--blue-100); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ft-tab.on .ft-fill { animation: ftFill var(--ft-dur, 6s) linear forwards; }
.ft-tabs.paused .ft-tab.on .ft-fill { animation-play-state: paused; }
@keyframes ftFill { to { transform: scaleX(1); } }
.ft-tab b, .ft-tab small { position: relative; display: block; }
.ft-tab b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.ft-tab small { margin-top: 6px; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.ft-tab .ft-ic { position: relative; float: right; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); margin: -2px -6px 0 12px; }
.ft-tab .ft-ic svg { width: 17px; height: 17px; }

.ft-screen { position: relative; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--blue-50), #eef6ff 60%, #ecfbfc); padding: clamp(14px, 3vw, 40px); border: 1px solid var(--line-2); }
.ft-panes { display: grid; }
.ft-pane { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ft-pane.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -ms-overflow-style: none; scrollbar-width: none; }
  .ft-tabs::-webkit-scrollbar { display: none; }
  .ft-tab { flex: 0 0 270px; scroll-snap-align: start; padding: 18px 20px; }
  .ft-tab .ft-ic { display: none; }
}

/* ---------- App mock (shared by tabs and invoicing page) ---------- */
.app { width: 100%; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 196px 1fr; font-size: 13px; color: var(--ink); text-align: left; }
.app-side { background: #fbfcfe; border-right: 1px solid var(--line-2); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-org { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; padding: 2px 6px 14px; }
.app-org i { width: 24px; height: 24px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.app-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #9aa1b9; padding: 10px 8px 4px; }
.app-nav { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); font-size: 12.5px; }
.app-nav svg { width: 15px; height: 15px; color: #8b93ad; }
.app-nav.on { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.app-nav.on svg { color: var(--blue-600); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); }
.app-top h4 { margin: 0; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.app-top .sp { flex: 1; }
.app-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--blue-600); color: #fff; white-space: nowrap; }
.app-btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; }
.app-btn svg { width: 13px; height: 13px; }
.app-av { width: 28px; height: 28px; border-radius: 50%; background: var(--deep-700); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.app-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 430px; background: #fcfdff; }
.app-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.app-tabs span { padding: 0 0 9px; }
.app-tabs span.on { color: var(--blue-700); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue-600); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; font-size: 11px; color: var(--muted); }
.kpi b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; }
.kpi em { font-style: normal; font-size: 11px; color: #16a34a; font-weight: 600; }
.kpi em.dn { color: #dc2626; }

.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); background: #f8f9fc; padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .mono { font-variant-numeric: tabular-nums; }
.tbl a, .tbl .lnk { color: var(--blue-600); font-weight: 600; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; }

.sx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.sx-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sx-st.ok { color: #15803d; background: #ecfdf3; }
.sx-st.part { color: #b45309; background: #fffbeb; }
.sx-st.open { color: #1d4ed8; background: #eff4ff; }
.sx-st.late { color: #b91c1c; background: #fef2f2; }
.sx-st.draft { color: #52525b; background: #f4f4f5; }
.sx-st.off { color: #6d28d9; background: #f5f3ff; }

.sx-bar { height: 7px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.sx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--w, 50%); transform-origin: left; }

.card2 { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.card2 h5 { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }

.tog { width: 34px; height: 19px; border-radius: 99px; background: #d4d8e3; position: relative; flex: none; transition: background .3s ease; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.tog.on { background: var(--blue-600); }
.tog.on::after { transform: translateX(15px); }
.chk { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid #c4c9d6; display: inline-grid; place-items: center; flex: none; background: #fff; transition: background .25s, border-color .25s; }
.chk.on { background: var(--blue-600); border-color: var(--blue-600); }
.chk.on::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* Animate content when its pane or card becomes active */
.anim .stg { opacity: 0; transform: translateY(8px); }
.sx-play.anim .stg, .sx-play .anim .stg { animation: rowIn .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.sx-play .grow i { animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
@keyframes grow { from { transform: scaleX(0); } }
.sx-play .growy { animation: growY .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); transform-origin: bottom; }
@keyframes growY { from { transform: scaleY(0); } }
.sx-play .sx-pop { animation: pop .55s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d, 1.2s); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.sx-play .tog.late-on { animation: togOn 0s linear forwards; animation-delay: var(--d, 1s); }
.sx-play .tog.late-on::after { animation: togKnob .3s cubic-bezier(.3,1.4,.5,1) forwards; animation-delay: var(--d, 1s); }
@keyframes togOn { to { background: var(--blue-600); } }
@keyframes togKnob { to { transform: translateX(15px); } }
.sx-play .chk.late-on { animation: chkOn 0s linear forwards; animation-delay: var(--d, 1s); }
@keyframes chkOn { to { background: var(--blue-600); border-color: var(--blue-600); } }
.sx-play .chk.late-on::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; animation: fadeIn .2s linear forwards; animation-delay: var(--d, 1s); }
@keyframes fadeIn { to { opacity: 1; } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.sx-play .draw { animation: draw 1.6s cubic-bezier(.4,0,.2,1) both .25s; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.cursor { position: absolute; width: 18px; height: 18px; z-index: 5; pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.sx-play .cursor { animation: cursorMove 2.4s cubic-bezier(.5,0,.2,1) forwards; animation-delay: .5s; }
@keyframes cursorMove { 0% { opacity: 0; transform: translate(var(--fx, -60px), var(--fy, 60px)); } 15% { opacity: 1; } 70% { transform: translate(0, 0); } 78% { transform: translate(0, 0) scale(.85); } 86%, 100% { opacity: 1; transform: translate(0, 0) scale(1); } }

/* ---------- 3. Invoicing page ---------- */
.inv-hero { padding: calc(var(--header-h) + 64px) 0 40px; text-align: center; }
.inv-hero .crumbs { justify-content: center; color: var(--muted); margin-bottom: 22px; display: flex; gap: 8px; font-size: .875rem; }
.inv-hero .crumbs a:hover { color: var(--blue-600); }
.inv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); font-size: .9rem; font-weight: 500; }
.inv-hero h1 { margin: 22px auto 18px; max-width: 1080px; }
.inv-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto; }
.inv-hero .hero-actions { justify-content: center; margin-top: 30px; }

.inv-demo { background: linear-gradient(170deg, var(--blue-50) 0%, #f1f6ff 55%, #eefbfc 100%); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 34px clamp(12px, 3vw, 64px) 0; overflow: hidden; }
.seg { display: flex; justify-content: center; margin: 0 auto 34px; }
.seg-in { display: inline-flex; flex-wrap: nowrap; gap: 4px; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-in::-webkit-scrollbar { display: none; }
.seg button { position: relative; overflow: hidden; flex: none; border: 0; background: transparent; font: 500 1rem/1 var(--font); color: var(--ink-2); padding: 13px 20px; border-radius: 11px; cursor: pointer; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.seg button:hover { color: var(--blue-700); }
.seg button.on { background: var(--blue-700); color: #fff; }
.seg button .seg-bar { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; opacity: 0; }
.seg button.on .seg-bar { opacity: 1; }
.seg button .seg-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.seg button.on .seg-bar i { animation: ftFill var(--ft-dur, 6s) linear forwards; }
.seg-in.paused button.on .seg-bar i { animation-play-state: paused; }
.inv-demo .ft-panes { max-width: 1120px; margin: 0 auto; }
.inv-demo .app { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* Invoice document */
.sx-doc { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 26px 28px; box-shadow: 0 10px 30px -18px rgba(20,32,120,.25); }
.doc-top { display: flex; justify-content: space-between; gap: 20px; }
.doc-logo { width: 42px; height: 42px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.doc-logo svg { width: 22px; height: 22px; }
.sx-doc h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .02em; margin: 0 0 12px; text-align: right; }
.sx-doc .from b, .sx-doc .to b { display: block; font-size: 13.5px; margin-bottom: 6px; }
.sx-doc .from span, .sx-doc .to span { display: block; font-size: 12px; color: var(--muted); line-height: 1.7; }
.sx-doc .meta { display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 12px; justify-content: end; }
.sx-doc .meta span { color: var(--muted); text-align: right; }
.sx-doc .meta b { text-align: right; }
.sx-doc .to { text-align: right; margin-top: 14px; }
.sx-doc hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }
.sx-doc .tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 26px; justify-content: end; margin-left: auto; width: 290px; font-size: 12.5px; margin-top: 14px; }
.sx-doc .tot span { color: var(--muted); }
.sx-doc .tot b { text-align: right; font-variant-numeric: tabular-nums; }
.sx-doc .tot .gt { font-size: 15px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line-2); }
.sx-doc .fisc { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: #15803d; background: #ecfdf3; border-radius: 8px; padding: 6px 10px; margin-top: 14px; font-weight: 600; }
.sx-doc .fisc svg { width: 14px; height: 14px; }

.side-panel { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; display: flex; flex-direction: column; }
.side-panel > div { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.side-panel > div:last-child { border-bottom: 0; }
.side-panel h5 { margin: 0 0 10px; font: 600 12.5px/1.2 var(--font); letter-spacing: 0; }
.steps2 { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.steps2 span { display: flex; align-items: center; gap: 9px; }
.steps2 i { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--blue-600); color: var(--blue-600); display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 700; flex: none; }
.steps2 i.done { background: var(--blue-600); color: #fff; }
.kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.kv span { color: var(--muted); }
.sel { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; margin-bottom: 8px; }
.sel span { color: var(--muted); margin-right: 6px; }
.sel svg { width: 13px; height: 13px; color: var(--muted); }

.pay-opt { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pay-opt:last-child { border-bottom: 0; }
.pay-opt .si-badge { min-width: 52px; height: 28px; font-size: 11px; border-radius: 7px; }
.pay-opt div { flex: 1; }
.pay-opt small { display: block; font-size: 11.5px; color: var(--muted); }
.sx-toast { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 11px 14px; font-size: 12.5px; z-index: 4; }
.sx-toast .ok-ic { width: 28px; height: 28px; border-radius: 50%; background: #ecfdf3; color: #16a34a; display: grid; place-items: center; }
.sx-toast .ok-ic svg { width: 15px; height: 15px; }
.sx-toast small { display: block; color: var(--muted); font-size: 11.5px; }

.swatches { display: flex; gap: 8px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches i.on { box-shadow: 0 0 0 2px var(--blue-600); }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tpls div { border: 1px solid var(--line); border-radius: 8px; height: 62px; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.tpls div.on { border-color: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-100); }
.tpls i { display: block; height: 5px; border-radius: 3px; background: #e7eaf2; }
.tpls i.h { width: 45%; height: 8px; background: var(--c, var(--blue-600)); }

/* Benefit cards (2 columns) */
.inv-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ib { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; overflow: hidden; }
.ib h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: 16px; }
.ib ul { list-style: disc; padding-left: 20px; margin-bottom: 28px; }
.ib li { color: var(--ink-2); margin-bottom: 10px; line-height: 1.55; }
.ib li::marker { color: var(--blue-500); }
.ib-vis { margin-top: auto; position: relative; }

/* Small feature cards (3 columns) */
.inv-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.if { background: var(--bg-soft); border-radius: var(--r-lg); padding: 28px 28px 0; display: flex; flex-direction: column; overflow: hidden; min-height: 360px; transition: transform .3s ease, box-shadow .3s ease; }
.if:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.if h3 { font-size: 1.3rem; font-weight: 500; font-family: var(--font-display); letter-spacing: -.02em; }
.if p { color: var(--muted); margin-bottom: 22px; }
.if-vis { margin-top: auto; position: relative; background: #fff; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 14px 16px; font-size: 12.5px; min-height: 150px; box-shadow: 0 -10px 30px -22px rgba(20,32,120,.25); }
.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-list span { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--ink-2); }
.menu-list span svg { width: 14px; height: 14px; color: var(--muted); }
.menu-list span.on { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.log { display: flex; flex-direction: column; gap: 11px; }
.log span { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; }
.log span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue-500)); }
.log small { color: var(--muted); font-size: 11px; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.sx-tags span { padding: 5px 10px; border-radius: 99px; background: var(--blue-50); color: var(--blue-700); font-size: 11.5px; font-weight: 500; }
.sx-tags span.g { background: #ecfdf3; color: #15803d; }
.sx-tags span.a { background: #fffbeb; color: #b45309; }
.sx-tags span.v { background: #f5f3ff; color: #6d28d9; }

@media (max-width: 1024px) {
  .inv-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .inv-benefits, .inv-feats { grid-template-columns: 1fr; }
  .inv-hero { padding-top: calc(var(--header-h) + 36px); }
  .seg { justify-content: flex-start; }
  .seg button { padding: 11px 15px; font-size: .9375rem; }
  .if { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .si-track { animation: none !important; }
  .ft-tab.on .ft-fill, .seg button.on .seg-bar i { animation: none !important; transform: scaleX(1); }
  .blur-in { opacity: 1; filter: none; transform: none; transition: none; }
  .anim .stg { opacity: 1 !important; transform: none !important; animation: none !important; }
  .sx-play .grow i, .sx-play .growy, .sx-play .sx-pop, .sx-play .cursor { animation: none !important; }
  .cursor { display: none; }
  .ft-pane { transition: none; }
}

/* Late additions: ageing bar and no-JS fallbacks */
.sx-play .growx { animation: growX 1s cubic-bezier(.2,.8,.2,1) both .3s; transform-origin: left; }
@keyframes growX { from { transform: scaleX(0); } }
.no-js .anim .stg { opacity: 1; transform: none; }

/* ---------- 4. Automation flow (home "Turn manual tasks into automations") ---------- */
.fl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); align-items: center; max-width: 1120px; margin: 44px auto 40px; }
.fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.fl-svg .base { fill: none; stroke: #dfe5f6; stroke-width: 2; }
.fl-svg .flow { fill: none; stroke: url(#flGrad); stroke-width: 2; stroke-dasharray: 6 9; opacity: .55; animation: flDash 1.2s linear infinite; transition: opacity .3s, stroke-width .3s; }
.fl-svg .flow.hot { opacity: 1; stroke-width: 3; }
.fl-svg circle { fill: var(--blue-600); filter: drop-shadow(0 0 5px rgba(61,92,255,.8)); }
.fl-svg circle.o { fill: var(--cyan-500); filter: drop-shadow(0 0 5px rgba(25,198,212,.8)); }
@keyframes flDash { to { stroke-dashoffset: -15; } }
.fl-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.fl-head { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fl-in { align-items: flex-start; }
.fl-out { align-items: flex-end; }
.fl-out .fl-head { align-self: flex-end; }

.fl-chip { display: flex; align-items: center; gap: 12px; width: 270px; padding: 10px 14px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s, transform .3s; }
.fl-chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.fl-chip .ic svg { width: 20px; height: 20px; }
.fl-chip:nth-of-type(3n) .ic { background: #ecfdf3; color: #16a34a; }
.fl-chip:nth-of-type(4n) .ic { background: #ecfeff; color: #0891b2; }
.fl-chip b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.fl-chip small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.fl-chip.hot { border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-100), var(--shadow); transform: translateX(4px); }

.fl-hub { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fl-core { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.fl-core .ring { position: absolute; inset: 0; border-radius: 50%; }
.fl-core .r1 { background: conic-gradient(from 0deg, #2440f5, #3d7bff, #19c6d4, transparent 70%, #2440f5); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); animation: flSpin 6s linear infinite; }
.fl-core .r2 { inset: 22px; border: 2px dashed #c7d2fe; animation: flSpin 18s linear infinite reverse; }
.fl-core .r3 { inset: 40px; background: #fff; box-shadow: 0 20px 50px -18px rgba(36,64,245,.55), inset 0 0 0 1px var(--line-2); }
.fl-core .wave { position: absolute; inset: 40px; border-radius: 50%; border: 2px solid rgba(61,92,255,.35); animation: flWave 3s ease-out infinite; }
.fl-core .wave:nth-of-type(2) { animation-delay: 1.5s; }
.fl-core img { position: relative; width: 58px; height: auto; }
@keyframes flSpin { to { transform: rotate(360deg); } }
@keyframes flWave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.fl-label { text-align: center; }
.fl-label b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.fl-ticker { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); box-shadow: var(--shadow-sm); white-space: nowrap; }
.fl-ticker i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; animation: flBlink 1.6s ease-in-out infinite; }
.fl-ticker span { transition: opacity .25s; }
@keyframes flBlink { 50% { opacity: .35; } }

.fl-res { display: flex; align-items: center; gap: 12px; width: 300px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(16px); transition: border-color .3s, box-shadow .3s; }
.fl.in .fl-res { animation: flResIn .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 140ms + 300ms); }
@keyframes flResIn { to { opacity: 1; transform: none; } }
.fl-res .ok { width: 34px; height: 34px; border-radius: 50%; background: #ecfdf3; color: #16a34a; display: grid; place-items: center; flex: none; transition: background .3s, color .3s, transform .3s; }
.fl-res .ok svg { width: 17px; height: 17px; }
.fl-res div { flex: 1; min-width: 0; }
.fl-res b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.fl-res small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.fl-res em { font-style: normal; font-size: .7rem; font-weight: 600; color: #15803d; background: #ecfdf3; padding: 3px 8px; border-radius: 999px; flex: none; }
.fl-res.hot { border-color: #86efac; box-shadow: 0 0 0 4px #dcfce7, var(--shadow); }
.fl-res.hot .ok { background: #16a34a; color: #fff; transform: scale(1.08); }

@media (max-width: 1100px) {
  .fl { grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); }
  .fl-chip { width: 236px; }
  .fl-res { width: 260px; }
  .fl-core { width: 160px; height: 160px; }
  .fl-core .r2 { inset: 18px; } .fl-core .r3, .fl-core .wave { inset: 32px; }
  .fl-core img { width: 46px; }
  .fl-ticker { white-space: normal; max-width: 210px; }
  .fl-res em { display: none; }
}
@media (max-width: 860px) {
  .fl { grid-template-columns: 1fr; gap: 44px; margin: 32px auto 32px; max-width: 520px; }
  .fl-svg { display: none; }
  .fl-in, .fl-out { align-items: stretch; }
  .fl-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .fl-in .fl-head { grid-column: 1 / -1; }
  .fl-out .fl-head { align-self: flex-start; }
  .fl-chip, .fl-res { width: 100%; }
  .fl-res em { display: inline-block; }
  .fl-chip { padding: 8px 10px 8px 8px; gap: 10px; }
  .fl-chip .ic { width: 34px; height: 34px; }
  .fl-chip small { display: none; }
  .fl-chip.hot { transform: none; }
  .fl-hub::before, .fl-hub::after { content: ""; position: absolute; left: 50%; width: 2px; height: 36px; background: repeating-linear-gradient(to bottom, var(--blue-400) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: flDrop 1s linear infinite; }
  .fl-hub::before { top: -40px; } .fl-hub::after { bottom: -40px; }
  @keyframes flDrop { to { background-position: 0 24px; } }
}
@media (max-width: 400px) { .fl-in { grid-template-columns: 1fr; } .fl-chip small { display: block; } }
@media (prefers-reduced-motion: reduce) {
  .fl-svg .flow, .fl-core .ring, .fl-core .wave, .fl-ticker i, .fl-hub::before, .fl-hub::after { animation: none !important; }
  .fl-svg circle { display: none; }
  .fl-res { opacity: 1; transform: none; animation: none !important; }
}
.no-js .fl-res { opacity: 1; transform: none; }

/* ---------- 5. Project cards with photos ---------- */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.pj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.pj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.pj-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pj-card:hover .pj-media > img { transform: scale(1.07); }
.pj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,11,46,0) 45%, rgba(6,11,46,.45) 100%); pointer-events: none; }
.pj-logo { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; height: 54px; max-width: 72%; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px -10px rgba(6,11,46,.5); backdrop-filter: blur(6px); }
.pj-logo img { height: 38px; width: auto; max-width: 160px; object-fit: contain; }
.pj-name { font: 600 .82rem/1 var(--font-display); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pj-body .tag { align-self: flex-start; }
.pj-body h3 { margin: 14px 0 8px; font-size: 1.16rem; }
.pj-body p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 18px; }
.pj-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--blue-600); }
.pj-link:hover { color: var(--blue-700); }
.pj-link span { transition: transform .25s; } .pj-link:hover span { transform: translate(2px, -2px); }
.pj-muted { color: var(--muted); font-weight: 500; }
.pj-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.pj-filters button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 .92rem/1 var(--font); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pj-filters button span { font-size: .75rem; padding: 3px 7px; border-radius: 99px; background: var(--bg-soft); color: var(--muted); }
.pj-filters button:hover { border-color: var(--blue-400); color: var(--blue-700); }
.pj-filters button.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pj-filters button.on span { background: rgba(255,255,255,.2); color: #fff; }
.pj-card.pj-hide { display: none; }
.pj-card.pj-show { animation: pjIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pjIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 1024px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pj-grid.pj-all { grid-template-columns: 1fr; }
  .pj-grid.pj-home { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .pj-grid.pj-home::-webkit-scrollbar { display: none; }
  .pj-grid.pj-home > .pj-card { flex: 0 0 84%; scroll-snap-align: start; }
  .pj-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .pj-filters button { flex: none; }
}

/* ---------- 6. Client logo marquee (hero trust row) ---------- */
.trust-row:has(.cl-marquee) { flex-direction: column; align-items: stretch; gap: 18px; }
.trust-row > div:first-child { min-width: 0; }
.trust-row:has(.cl-marquee) .checks { justify-content: center; }
.cl-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cl-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: clScroll 38s linear infinite; }
.cl-marquee:hover .cl-track { animation-play-state: paused; }
.cl-track li { flex: none; display: flex; align-items: center; height: 56px; }
.cl-track img { height: 44px; width: auto; max-width: 170px; object-fit: contain; opacity: .8; transition: opacity .25s, transform .25s; }
.cl-track img:hover { opacity: 1; transform: scale(1.05); }
.cl-word { font: 700 1.15rem/1 var(--font-display); letter-spacing: -.02em; color: #4b5470; opacity: .85; white-space: nowrap; }
@keyframes clScroll { to { transform: translateX(calc(-50% - 24px)); } }
@media (max-width: 600px) { .cl-track { gap: 34px; } .cl-track img { height: 34px; } .cl-word { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .cl-track { animation: none; flex-wrap: wrap; width: auto; } .cl-track li[aria-hidden] { display: none; } .pj-card.pj-show { animation: none; } }
.trust-row:has(.cl-marquee) .lbl { text-align: center; margin-bottom: 16px; }
.trust-row:has(.cl-marquee) > * { width: 100%; max-width: 100%; flex-wrap: wrap; } .cl-marquee { width: 100%; max-width: 100%; }
